diff --git a/packages/@aws-cdk/aws-synthetics-alpha/README.md b/packages/@aws-cdk/aws-synthetics-alpha/README.md index a946fcd03ba10..0c64ba10df1c8 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/README.md +++ b/packages/@aws-cdk/aws-synthetics-alpha/README.md @@ -24,7 +24,6 @@ To illustrate how to use a canary, assume your application defines the following ```console % curl "https://api.example.com/user/books/topbook/" The Hitchhikers Guide to the Galaxy - ``` The below code defines a canary that will hit the `books/topbook` endpoint every 5 minutes: @@ -81,7 +80,6 @@ The Canary code will be executed in a lambda function created by Synthetics on y To learn more about Synthetics capabilities, check out the [docs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html). - ### Canary Schedule You can specify the schedule on which a canary runs by providing a @@ -104,7 +102,6 @@ const schedule = synthetics.Schedule.cron({ If you want the canary to run just once upon deployment, you can use `Schedule.once()`. - ### Canary DeleteLambdaResourcesOnCanaryDeletion You can specify whether the AWS CloudFormation is to also delete the Lambda functions and layers used by this canary, when the canary is deleted. @@ -237,3 +234,24 @@ new cloudwatch.Alarm(this, 'CanaryAlarm', { comparisonOperator: cloudwatch.ComparisonOperator.LESS_THAN_THRESHOLD, }); ``` + +### Artifacts + +You can pass an S3 bucket to store artifacts from canary runs. If you do not, +one will be auto-generated when the canary is created. You may add +[lifecycle rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html) +to the auto-generated bucket. + +```ts +const canary = new synthetics.Canary(this, 'MyCanary', { + schedule: synthetics.Schedule.rate(Duration.minutes(5)), + test: synthetics.Test.custom({ + code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')), + handler: 'index.handler', + }), + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0, + artifactsBucketLifecycleRules: [{ + expiration: Duration.days(30), + }], +}); +``` diff --git a/packages/@aws-cdk/aws-synthetics-alpha/lib/canary.ts b/packages/@aws-cdk/aws-synthetics-alpha/lib/canary.ts index a5503b61708ef..6b1f3a7149e87 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/lib/canary.ts +++ b/packages/@aws-cdk/aws-synthetics-alpha/lib/canary.ts @@ -213,6 +213,16 @@ export interface CanaryProps { * @default false */ readonly enableAutoDeleteLambdas?: boolean; + + /** + * Lifecycle rules for the generated canary artifact bucket. Has no effect + * if a bucket is passed to `artifactsBucketLocation`. If you pass a bucket + * to `artifactsBucketLocation`, you can add lifecycle rules to the bucket + * itself. + * + * @default - no rules applied to the generated bucket. + */ + readonly artifactsBucketLifecycleRules?: Array; } /** @@ -269,6 +279,7 @@ export class Canary extends cdk.Resource implements ec2.IConnectable { this.artifactsBucket = props.artifactsBucketLocation?.bucket ?? new s3.Bucket(this, 'ArtifactsBucket', { encryption: s3.BucketEncryption.KMS_MANAGED, enforceSSL: true, + lifecycleRules: props.artifactsBucketLifecycleRules, }); this.role = props.role ?? this.createDefaultRole(props); diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/canary.test.ts b/packages/@aws-cdk/aws-synthetics-alpha/test/canary.test.ts index 2ca2104ef7430..feb1f7bda4d14 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/canary.test.ts +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/canary.test.ts @@ -149,6 +149,35 @@ test('An existing role can be specified instead of auto-created', () => { }); }); +test('An auto-generated bucket can have lifecycle rules', () => { + // GIVEN + const stack = new Stack(); + const lifecycleRules = [{ + expiration: Duration.days(30), + }]; + + // WHEN + new synthetics.Canary(stack, 'Canary', { + artifactsBucketLifecycleRules: lifecycleRules, + test: synthetics.Test.custom({ + handler: 'index.handler', + code: synthetics.Code.fromInline('/* Synthetics handler code */'), + }), + runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_8, + }); + + // THEN + Template.fromStack(stack).hasResourceProperties('AWS::S3::Bucket', { + LifecycleConfiguration: { + Rules: [ + { + ExpirationInDays: 30, + }, + ], + }, + }); +}); + test('An existing bucket and prefix can be specified instead of auto-created', () => { // GIVEN const stack = new Stack(); diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json index 892453ac2c8b6..5d59f49070188 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.assets.json @@ -1,20 +1,20 @@ { "version": "32.0.0", "files": { - "86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2": { + "fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad": { "source": { - "path": "asset.86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.bundle", + "path": "asset.fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.bundle", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.zip", + "objectKey": "fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "802ff37ba76829d10db21bce3564f84bf2d4fb57f7db19c7e2534fb1dce44680": { + "5c382b4e425866a69d59a5cffba84fb128c5482ea37a4da5b0ddb7a5a803d15e": { "source": { "path": "IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "802ff37ba76829d10db21bce3564f84bf2d4fb57f7db19c7e2534fb1dce44680.json", + "objectKey": "5c382b4e425866a69d59a5cffba84fb128c5482ea37a4da5b0ddb7a5a803d15e.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json index ae39f3b6b2d81..5b5fe3e73e60b 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/IntegCanaryTestDefaultTestDeployAssert3AD5A094.template.json @@ -25,7 +25,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1688622716625" + "salt": "1688756012414" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -295,7 +295,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.zip" + "S3Key": "fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.zip" }, "Timeout": 120, "Handler": "index.handler", @@ -401,7 +401,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.zip" + "S3Key": "fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.zip" }, "Timeout": 120, "Handler": "index.isComplete", @@ -443,7 +443,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.zip" + "S3Key": "fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.zip" }, "Timeout": 120, "Handler": "index.onTimeout", @@ -480,7 +480,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1688622716626" + "salt": "1688756012414" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -627,7 +627,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1688622716626" + "salt": "1688756012415" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -774,7 +774,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1688622716626" + "salt": "1688756012415" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -921,7 +921,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1688622716627" + "salt": "1688756012415" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" @@ -1068,7 +1068,7 @@ "outputPaths": [ "CanaryRuns.0.Status.State" ], - "salt": "1688622716627" + "salt": "1688756012416" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f/index.js b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f/index.js deleted file mode 100644 index d8eb5561c1981..0000000000000 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f/index.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict";var Jz=Object.create;var im=Object.defineProperty;var Zz=Object.getOwnPropertyDescriptor;var eG=Object.getOwnPropertyNames;var tG=Object.getPrototypeOf,nG=Object.prototype.hasOwnProperty;var Xe=(e,n)=>()=>(e&&(n=e(e=0)),n);var m=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),wa=(e,n)=>{for(var t in n)im(e,t,{get:n[t],enumerable:!0})},Ex=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of eG(n))!nG.call(e,s)&&s!==t&&im(e,s,{get:()=>n[s],enumerable:!(r=Zz(n,s))||r.enumerable});return e};var us=(e,n,t)=>(t=e!=null?Jz(tG(e)):{},Ex(n||!e||!e.__esModule?im(t,"default",{value:e,enumerable:!0}):t,e)),z=e=>Ex(im({},"__esModule",{value:!0}),e);var $={};wa($,{__assign:()=>am,__asyncDelegator:()=>Dx,__asyncGenerator:()=>Bx,__asyncValues:()=>Mx,__await:()=>ms,__awaiter:()=>Rx,__classPrivateFieldGet:()=>Ux,__classPrivateFieldIn:()=>Gx,__classPrivateFieldSet:()=>zx,__createBinding:()=>dm,__decorate:()=>vx,__esDecorate:()=>rG,__exportStar:()=>Nx,__extends:()=>xx,__generator:()=>Ix,__importDefault:()=>jx,__importStar:()=>Lx,__makeTemplateObject:()=>Fx,__metadata:()=>Ax,__param:()=>kx,__propKey:()=>oG,__read:()=>N_,__rest:()=>wx,__runInitializers:()=>sG,__setFunctionName:()=>iG,__spread:()=>Ox,__spreadArray:()=>qx,__spreadArrays:()=>Tx,__values:()=>cm,default:()=>cG});function xx(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");I_(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function wx(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s=0;i--)(c=e[i])&&(o=(s<3?c(o):s>3?c(n,t,o):c(n,t))||o);return s>3&&o&&Object.defineProperty(n,t,o),o}function kx(e,n){return function(t,r){n(t,r,e)}}function rG(e,n,t,r,s,o){function c(fe){if(fe!==void 0&&typeof fe!="function")throw new TypeError("Function expected");return fe}for(var i=r.kind,u=i==="getter"?"get":i==="setter"?"set":"value",l=!n&&e?r.static?e:e.prototype:null,a=n||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),g,C=!1,w=t.length-1;w>=0;w--){var R={};for(var O in r)R[O]=O==="access"?{}:r[O];for(var O in r.access)R.access[O]=r.access[O];R.addInitializer=function(fe){if(C)throw new TypeError("Cannot add initializers after decoration has completed");o.push(c(fe||null))};var G=(0,t[w])(i==="accessor"?{get:a.get,set:a.set}:a[u],R);if(i==="accessor"){if(G===void 0)continue;if(G===null||typeof G!="object")throw new TypeError("Object expected");(g=c(G.get))&&(a.get=g),(g=c(G.set))&&(a.set=g),(g=c(G.init))&&s.unshift(g)}else(g=c(G))&&(i==="field"?s.unshift(g):a[u]=g)}l&&Object.defineProperty(l,r.name,a),C=!0}function sG(e,n,t){for(var r=arguments.length>2,s=0;s0&&o[o.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function N_(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(i){c={error:i}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return o}function Ox(){for(var e=[],n=0;n1||i(C,w)})})}function i(C,w){try{u(r[C](w))}catch(R){g(o[0][3],R)}}function u(C){C.value instanceof ms?Promise.resolve(C.value.v).then(l,a):g(o[0][2],C)}function l(C){i("next",C)}function a(C){i("throw",C)}function g(C,w){C(w),o.shift(),o.length&&i(o[0][0],o[0][1])}}function Dx(e){var n,t;return n={},r("next"),r("throw",function(s){throw s}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(s,o){n[s]=e[s]?function(c){return(t=!t)?{value:ms(e[s](c)),done:!1}:o?o(c):c}:o}}function Mx(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof cm=="function"?cm(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(c){return new Promise(function(i,u){c=e[o](c),s(i,u,c.done,c.value)})}}function s(o,c,i,u){Promise.resolve(u).then(function(l){o({value:l,done:i})},c)}}function Fx(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function Lx(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&dm(n,e,t);return aG(n,e),n}function jx(e){return e&&e.__esModule?e:{default:e}}function Ux(e,n,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(e):r?r.value:n.get(e)}function zx(e,n,t,r,s){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?e!==n||!s:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?s.call(e,t):s?s.value=t:n.set(e,t),t}function Gx(e,n){if(n===null||typeof n!="object"&&typeof n!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?n===e:e.has(n)}var I_,am,dm,aG,cG,H=Xe(()=>{I_=function(e,n){return I_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])},I_(e,n)};am=function(){return am=Object.assign||function(n){for(var t,r=1,s=arguments.length;r{"use strict";Object.defineProperty($x,"__esModule",{value:!0})});var Kx=m(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.HttpAuthLocation=void 0;var dG;(function(e){e.HEADER="header",e.QUERY="query"})(dG=va.HttpAuthLocation||(va.HttpAuthLocation={}))});var Wx=m(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0})});var Yx=m(Xx=>{"use strict";Object.defineProperty(Xx,"__esModule",{value:!0})});var Jx=m(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0})});var ew=m(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0})});var nw=m(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0})});var sw=m(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0})});var ow=m(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var O_=(H(),z($));O_.__exportStar(ew(),ka);O_.__exportStar(nw(),ka);O_.__exportStar(sw(),ka)});var aw=m(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0})});var dw=m(cw=>{"use strict";Object.defineProperty(cw,"__esModule",{value:!0})});var lw=m(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.EndpointURLScheme=void 0;var lG;(function(e){e.HTTP="http",e.HTTPS="https"})(lG=Aa.EndpointURLScheme||(Aa.EndpointURLScheme={}))});var mw=m(uw=>{"use strict";Object.defineProperty(uw,"__esModule",{value:!0})});var fw=m(pw=>{"use strict";Object.defineProperty(pw,"__esModule",{value:!0})});var gw=m(yw=>{"use strict";Object.defineProperty(yw,"__esModule",{value:!0})});var _w=m(hw=>{"use strict";Object.defineProperty(hw,"__esModule",{value:!0})});var Sw=m(Cw=>{"use strict";Object.defineProperty(Cw,"__esModule",{value:!0})});var bw=m(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});var Ra=(H(),z($));Ra.__exportStar(mw(),Ir);Ra.__exportStar(fw(),Ir);Ra.__exportStar(gw(),Ir);Ra.__exportStar(_w(),Ir);Ra.__exportStar(Sw(),Ir)});var Ew=m(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0})});var xw=m(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.FieldPosition=void 0;var uG;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(uG=Ia.FieldPosition||(Ia.FieldPosition={}))});var vw=m(ww=>{"use strict";Object.defineProperty(ww,"__esModule",{value:!0})});var Aw=m(kw=>{"use strict";Object.defineProperty(kw,"__esModule",{value:!0})});var Iw=m(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var Rw=(H(),z($));Rw.__exportStar(vw(),lm);Rw.__exportStar(Aw(),lm)});var Ow=m(Nw=>{"use strict";Object.defineProperty(Nw,"__esModule",{value:!0})});var qw=m(Tw=>{"use strict";Object.defineProperty(Tw,"__esModule",{value:!0})});var Dw=m(Bw=>{"use strict";Object.defineProperty(Bw,"__esModule",{value:!0})});var Fw=m(Mw=>{"use strict";Object.defineProperty(Mw,"__esModule",{value:!0})});var jw=m(Lw=>{"use strict";Object.defineProperty(Lw,"__esModule",{value:!0})});var zw=m(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var $w=m(Gw=>{"use strict";Object.defineProperty(Gw,"__esModule",{value:!0})});var Kw=m(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0})});var Ww=m(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0})});var Yw=m(Xw=>{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0})});var Qw=m(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.RequestHandlerProtocol=void 0;var mG;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(mG=Na.RequestHandlerProtocol||(Na.RequestHandlerProtocol={}))});var Zw=m(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0})});var tv=m(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var rv=m(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0})});var sv=m(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});var Ae=(H(),z($));Ae.__exportStar(Hx(),we);Ae.__exportStar(Kx(),we);Ae.__exportStar(Wx(),we);Ae.__exportStar(Yx(),we);Ae.__exportStar(Jx(),we);Ae.__exportStar(ow(),we);Ae.__exportStar(aw(),we);Ae.__exportStar(dw(),we);Ae.__exportStar(lw(),we);Ae.__exportStar(bw(),we);Ae.__exportStar(Ew(),we);Ae.__exportStar(xw(),we);Ae.__exportStar(Iw(),we);Ae.__exportStar(Ow(),we);Ae.__exportStar(qw(),we);Ae.__exportStar(Dw(),we);Ae.__exportStar(Fw(),we);Ae.__exportStar(jw(),we);Ae.__exportStar(zw(),we);Ae.__exportStar($w(),we);Ae.__exportStar(Kw(),we);Ae.__exportStar(Ww(),we);Ae.__exportStar(Yw(),we);Ae.__exportStar(Qw(),we);Ae.__exportStar(Zw(),we);Ae.__exportStar(tv(),we);Ae.__exportStar(rv(),we)});var ov=m(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.Field=void 0;var pG=sv(),T_=class{constructor({name:n,kind:t=pG.FieldPosition.HEADER,values:r=[]}){this.name=n,this.kind=t,this.values=r}add(n){this.values.push(n)}set(n){this.values=n}remove(n){this.values=this.values.filter(t=>t!==n)}toString(){return this.values.map(n=>n.includes(",")||n.includes(" ")?`"${n}"`:n).join(", ")}get(){return this.values}};um.Field=T_});var iv=m(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.Fields=void 0;var q_=class{constructor({fields:n=[],encoding:t="utf-8"}){this.entries={},n.forEach(this.setField.bind(this)),this.encoding=t}setField(n){this.entries[n.name.toLowerCase()]=n}getField(n){return this.entries[n.toLowerCase()]}removeField(n){delete this.entries[n.toLowerCase()]}getByType(n){return Object.values(this.entries).filter(t=>t.kind===n)}};mm.Fields=q_});var cv=m(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var dv=m(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.HttpRequest=void 0;var Oa=class{constructor(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?`${n.protocol}:`:n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?`/${n.path}`:n.path:"/",this.username=n.username,this.password=n.password,this.fragment=n.fragment}static isInstance(n){if(!n)return!1;let t=n;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query=="object"&&typeof t.headers=="object"}clone(){let n=new Oa({...this,headers:{...this.headers}});return n.query&&(n.query=fG(n.query)),n}};pm.HttpRequest=Oa;function fG(e){return Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{})}});var lv=m(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.HttpResponse=void 0;var B_=class{constructor(n){this.statusCode=n.statusCode,this.reason=n.reason,this.headers=n.headers||{},this.body=n.body}static isInstance(n){if(!n)return!1;let t=n;return typeof t.statusCode=="number"&&typeof t.headers=="object"}};fm.HttpResponse=B_});var uv=m(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.isValidHostname=void 0;function yG(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}ym.isValidHostname=yG});var pv=m(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0})});var $e=m(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});var Nr=(H(),z($));Nr.__exportStar(ov(),En);Nr.__exportStar(iv(),En);Nr.__exportStar(cv(),En);Nr.__exportStar(dv(),En);Nr.__exportStar(lv(),En);Nr.__exportStar(uv(),En);Nr.__exportStar(pv(),En)});var yv=m(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.getAddExpectContinuePlugin=xn.addExpectContinueMiddlewareOptions=xn.addExpectContinueMiddleware=void 0;var gG=$e();function fv(e){return n=>async t=>{let{request:r}=t;return gG.HttpRequest.isInstance(r)&&r.body&&e.runtime==="node"&&(r.headers={...r.headers,Expect:"100-continue"}),n({...t,request:r})}}xn.addExpectContinueMiddleware=fv;xn.addExpectContinueMiddlewareOptions={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0};var hG=e=>({applyToStack:n=>{n.add(fv(e),xn.addExpectContinueMiddlewareOptions)}});xn.getAddExpectContinuePlugin=hG});var Ta=m(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.getHostHeaderPlugin=vt.hostHeaderMiddlewareOptions=vt.hostHeaderMiddleware=vt.resolveHostHeaderConfig=void 0;var _G=$e();function CG(e){return e}vt.resolveHostHeaderConfig=CG;var SG=e=>n=>async t=>{if(!_G.HttpRequest.isInstance(t.request))return n(t);let{request:r}=t,{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]="";else if(!r.headers.host){let o=r.hostname;r.port!=null&&(o+=`:${r.port}`),r.headers.host=o}return n(t)};vt.hostHeaderMiddleware=SG;vt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var bG=e=>({applyToStack:n=>{n.add((0,vt.hostHeaderMiddleware)(e),vt.hostHeaderMiddlewareOptions)}});vt.getHostHeaderPlugin=bG});var gv=m(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.getLoggerPlugin=Gt.loggerMiddlewareOptions=Gt.loggerMiddleware=void 0;var PG=()=>(e,n)=>async t=>{var r,s;try{let o=await e(t),{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a,overrideOutputFilterSensitiveLog:g}=l,C=a??n.inputFilterSensitiveLog,w=g??n.outputFilterSensitiveLog,{$metadata:R,...O}=o.output;return(r=u?.info)===null||r===void 0||r.call(u,{clientName:c,commandName:i,input:C(t.input),output:w(O),metadata:R}),o}catch(o){let{clientName:c,commandName:i,logger:u,dynamoDbDocumentClientOptions:l={}}=n,{overrideInputFilterSensitiveLog:a}=l,g=a??n.inputFilterSensitiveLog;throw(s=u?.error)===null||s===void 0||s.call(u,{clientName:c,commandName:i,input:g(t.input),error:o,metadata:o.$metadata}),o}};Gt.loggerMiddleware=PG;Gt.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var EG=e=>({applyToStack:n=>{n.add((0,Gt.loggerMiddleware)(),Gt.loggerMiddlewareOptions)}});Gt.getLoggerPlugin=EG});var qa=m(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});var xG=(H(),z($));xG.__exportStar(gv(),D_)});var Ba=m($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.getRecursionDetectionPlugin=$t.addRecursionDetectionMiddlewareOptions=$t.recursionDetectionMiddleware=void 0;var wG=$e(),hv="X-Amzn-Trace-Id",vG="AWS_LAMBDA_FUNCTION_NAME",kG="_X_AMZN_TRACE_ID",AG=e=>n=>async t=>{let{request:r}=t;if(!wG.HttpRequest.isInstance(r)||e.runtime!=="node"||r.headers.hasOwnProperty(hv))return n(t);let s=process.env[vG],o=process.env[kG],c=i=>typeof i=="string"&&i.length>0;return c(s)&&c(o)&&(r.headers[hv]=o),n({...t,request:r})};$t.recursionDetectionMiddleware=AG;$t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};var RG=e=>({applyToStack:n=>{n.add((0,$t.recursionDetectionMiddleware)(e),$t.addRecursionDetectionMiddlewareOptions)}});$t.getRecursionDetectionPlugin=RG});var Cv=m(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getCheckContentLengthHeaderPlugin=wn.checkContentLengthHeaderMiddlewareOptions=wn.checkContentLengthHeader=void 0;var IG=$e(),NG="content-length";function _v(){return(e,n)=>async t=>{var r;let{request:s}=t;if(IG.HttpRequest.isInstance(s)&&!s.headers[NG]){let o="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof((r=n?.logger)===null||r===void 0?void 0:r.warn)=="function"?n.logger.warn(o):console.warn(o)}return e({...t})}}wn.checkContentLengthHeader=_v;wn.checkContentLengthHeaderMiddlewareOptions={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0};var OG=e=>({applyToStack:n=>{n.add(_v(),wn.checkContentLengthHeaderMiddlewareOptions)}});wn.getCheckContentLengthHeaderPlugin=OG});var Sv=m(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.resolveS3Config=void 0;var TG=e=>{var n,t,r;return{...e,forcePathStyle:(n=e.forcePathStyle)!==null&&n!==void 0?n:!1,useAccelerateEndpoint:(t=e.useAccelerateEndpoint)!==null&&t!==void 0?t:!1,disableMultiregionAccessPoints:(r=e.disableMultiregionAccessPoints)!==null&&r!==void 0?r:!1}};gm.resolveS3Config=TG});var Pv=m(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getThrow200ExceptionsPlugin=Ht.throw200ExceptionsMiddlewareOptions=Ht.throw200ExceptionsMiddleware=void 0;var qG=$e(),BG=e=>n=>async t=>{let r=await n(t),{response:s}=r;if(!qG.HttpResponse.isInstance(s))return r;let{statusCode:o,body:c}=s;if(o<200||o>=300)return r;let i=await bv(c,e),u=await DG(i,e);if(i.length===0){let l=new Error("S3 aborted request");throw l.name="InternalError",l}return u&&u.match("")&&(s.statusCode=400),s.body=i,r};Ht.throw200ExceptionsMiddleware=BG;var bv=(e=new Uint8Array,n)=>e instanceof Uint8Array?Promise.resolve(e):n.streamCollector(e)||Promise.resolve(new Uint8Array),DG=(e,n)=>bv(e,n).then(t=>n.utf8Encoder(t));Ht.throw200ExceptionsMiddlewareOptions={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0};var MG=e=>({applyToStack:n=>{n.addRelativeTo((0,Ht.throw200ExceptionsMiddleware)(e),Ht.throw200ExceptionsMiddlewareOptions)}});Ht.getThrow200ExceptionsPlugin=MG});var M_=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.build=Kn.parse=Kn.validate=void 0;var FG=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;Kn.validate=FG;var LG=e=>{let n=e.split(":");if(n.length<6||n[0]!=="arn")throw new Error("Malformed ARN");let[,t,r,s,o,...c]=n;return{partition:t,service:r,region:s,accountId:o,resource:c.join(":")}};Kn.parse=LG;var jG=e=>{let{partition:n="aws",service:t,region:r,accountId:s,resource:o}=e;if([t,r,s,o].some(c=>typeof c!="string"))throw new Error("Input ARN object is invalid");return`arn:${n}:${t}:${r}:${s}:${o}`};Kn.build=jG});var xv=m(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.getValidateBucketNamePlugin=vn.validateBucketNameMiddlewareOptions=vn.validateBucketNameMiddleware=void 0;var UG=M_();function Ev(){return e=>async n=>{let{input:{Bucket:t}}=n;if(typeof t=="string"&&!(0,UG.validate)(t)&&t.indexOf("/")>=0){let r=new Error(`Bucket name shouldn't contain '/', received '${t}'`);throw r.name="InvalidBucketName",r}return e({...n})}}vn.validateBucketNameMiddleware=Ev;vn.validateBucketNameMiddlewareOptions={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0};var zG=e=>({applyToStack:n=>{n.add(Ev(),vn.validateBucketNameMiddlewareOptions)}});vn.getValidateBucketNamePlugin=zG});var fs=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var hm=(H(),z($));hm.__exportStar(Cv(),ps);hm.__exportStar(Sv(),ps);hm.__exportStar(Pv(),ps);hm.__exportStar(xv(),ps)});var Ma=m(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.ProviderError=void 0;var Da=class extends Error{constructor(n,t=!0){super(n),this.tryNextLink=t,this.name="ProviderError",Object.setPrototypeOf(this,Da.prototype)}static from(n,t=!0){return Object.assign(new this(n.message,t),n)}};_m.ProviderError=Da});var wv=m(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.CredentialsProviderError=void 0;var GG=Ma(),Fa=class extends GG.ProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Fa.prototype)}};Cm.CredentialsProviderError=Fa});var vv=m(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.TokenProviderError=void 0;var $G=Ma(),La=class extends $G.ProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="TokenProviderError",Object.setPrototypeOf(this,La.prototype)}};Sm.TokenProviderError=La});var kv=m(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.chain=void 0;var HG=Ma();function KG(...e){return()=>{let n=Promise.reject(new HG.ProviderError("No providers in chain"));for(let t of e)n=n.catch(r=>{if(r?.tryNextLink)return t();throw r});return n}}bm.chain=KG});var Av=m(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.fromStatic=void 0;var VG=e=>()=>Promise.resolve(e);Pm.fromStatic=VG});var Rv=m(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.memoize=void 0;var WG=(e,n,t)=>{let r,s,o,c=!1,i=async()=>{s||(s=e());try{r=await s,o=!0,c=!1}finally{s=void 0}return r};return n===void 0?async u=>((!o||u?.forceRefresh)&&(r=await i()),r):async u=>((!o||u?.forceRefresh)&&(r=await i()),c?r:t&&!t(r)?(c=!0,r):(n(r)&&await i(),r))};Em.memoize=WG});var Re=m(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});var ys=(H(),z($));ys.__exportStar(wv(),Vn);ys.__exportStar(Ma(),Vn);ys.__exportStar(vv(),Vn);ys.__exportStar(kv(),Vn);ys.__exportStar(Av(),Vn);ys.__exportStar(Rv(),Vn)});var U_={};wa(U_,{__assign:()=>L_,__asyncDelegator:()=>a2,__asyncGenerator:()=>i2,__asyncValues:()=>c2,__await:()=>ja,__awaiter:()=>e2,__classPrivateFieldGet:()=>m2,__classPrivateFieldSet:()=>p2,__createBinding:()=>n2,__decorate:()=>QG,__exportStar:()=>r2,__extends:()=>XG,__generator:()=>t2,__importDefault:()=>u2,__importStar:()=>l2,__makeTemplateObject:()=>d2,__metadata:()=>ZG,__param:()=>JG,__read:()=>Iv,__rest:()=>YG,__spread:()=>s2,__spreadArrays:()=>o2,__values:()=>j_});function XG(e,n){F_(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function YG(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s=0;i--)(c=e[i])&&(o=(s<3?c(o):s>3?c(n,t,o):c(n,t))||o);return s>3&&o&&Object.defineProperty(n,t,o),o}function JG(e,n){return function(t,r){n(t,r,e)}}function ZG(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function e2(e,n,t,r){function s(o){return o instanceof t?o:new t(function(c){c(o)})}return new(t||(t=Promise))(function(o,c){function i(a){try{l(r.next(a))}catch(g){c(g)}}function u(a){try{l(r.throw(a))}catch(g){c(g)}}function l(a){a.done?o(a.value):s(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function t2(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,s&&(o=l[0]&2?s.return:l[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,l[1])).done)return o;switch(s=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,s=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Iv(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(i){c={error:i}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return o}function s2(){for(var e=[],n=0;n1||i(C,w)})})}function i(C,w){try{u(r[C](w))}catch(R){g(o[0][3],R)}}function u(C){C.value instanceof ja?Promise.resolve(C.value.v).then(l,a):g(o[0][2],C)}function l(C){i("next",C)}function a(C){i("throw",C)}function g(C,w){C(w),o.shift(),o.length&&i(o[0][0],o[0][1])}}function a2(e){var n,t;return n={},r("next"),r("throw",function(s){throw s}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(s,o){n[s]=e[s]?function(c){return(t=!t)?{value:ja(e[s](c)),done:s==="return"}:o?o(c):c}:o}}function c2(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof j_=="function"?j_(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(c){return new Promise(function(i,u){c=e[o](c),s(i,u,c.done,c.value)})}}function s(o,c,i,u){Promise.resolve(u).then(function(l){o({value:l,done:i})},c)}}function d2(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function l2(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function u2(e){return e&&e.__esModule?e:{default:e}}function m2(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function p2(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var F_,L_,z_=Xe(()=>{F_=function(e,n){return F_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])},F_(e,n)};L_=function(){return L_=Object.assign||function(n){for(var t,r=1,s=arguments.length;r{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.toUtf8=gs.fromUtf8=void 0;var f2=e=>{let n=[];for(let t=0,r=e.length;t>6|192,s&63|128);else if(t+1>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else n.push(s>>12|224,s>>6&63|128,s&63|128)}return Uint8Array.from(n)};gs.fromUtf8=f2;var y2=e=>{let n="";for(let t=0,r=e.length;ti.toString(16)).join("%");n+=decodeURIComponent(c)}else n+=String.fromCharCode((s&15)<<12|(e[++t]&63)<<6|e[++t]&63)}return n};gs.toUtf8=y2});var Ov=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.toUtf8=hs.fromUtf8=void 0;function g2(e){return new TextEncoder().encode(e)}hs.fromUtf8=g2;function h2(e){return new TextDecoder("utf-8").decode(e)}hs.toUtf8=h2});var Bv=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toUtf8=_s.fromUtf8=void 0;var Tv=Nv(),qv=Ov(),_2=e=>typeof TextEncoder=="function"?(0,qv.fromUtf8)(e):(0,Tv.fromUtf8)(e);_s.fromUtf8=_2;var C2=e=>typeof TextDecoder=="function"?(0,qv.toUtf8)(e):(0,Tv.toUtf8)(e);_s.toUtf8=C2});var Dv=m(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.convertToBuffer=void 0;var S2=Bv(),b2=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:S2.fromUtf8;function P2(e){return e instanceof Uint8Array?e:typeof e=="string"?b2(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}xm.convertToBuffer=P2});var Mv=m(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.isEmptyData=void 0;function E2(e){return typeof e=="string"?e.length===0:e.byteLength===0}wm.isEmptyData=E2});var Fv=m(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.numToUint8=void 0;function x2(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}vm.numToUint8=x2});var Lv=m(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.uint32ArrayFrom=void 0;function w2(e){if(!Uint32Array.from){for(var n=new Uint32Array(e.length),t=0;t{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.uint32ArrayFrom=Kt.numToUint8=Kt.isEmptyData=Kt.convertToBuffer=void 0;var v2=Dv();Object.defineProperty(Kt,"convertToBuffer",{enumerable:!0,get:function(){return v2.convertToBuffer}});var k2=Mv();Object.defineProperty(Kt,"isEmptyData",{enumerable:!0,get:function(){return k2.isEmptyData}});var A2=Fv();Object.defineProperty(Kt,"numToUint8",{enumerable:!0,get:function(){return A2.numToUint8}});var R2=Lv();Object.defineProperty(Kt,"uint32ArrayFrom",{enumerable:!0,get:function(){return R2.uint32ArrayFrom}})});var zv=m(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.AwsCrc32=void 0;var jv=(z_(),z(U_)),G_=Ua(),Uv=za(),I2=function(){function e(){this.crc32=new Uv.Crc32}return e.prototype.update=function(n){(0,G_.isEmptyData)(n)||this.crc32.update((0,G_.convertToBuffer)(n))},e.prototype.digest=function(){return jv.__awaiter(this,void 0,void 0,function(){return jv.__generator(this,function(n){return[2,(0,G_.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Uv.Crc32},e}();Am.AwsCrc32=I2});var za=m(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AwsCrc32=Wn.Crc32=Wn.crc32=void 0;var N2=(z_(),z(U_)),O2=Ua();function T2(e){return new Gv().update(e).digest()}Wn.crc32=T2;var Gv=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var s=N2.__values(n),o=s.next();!o.done;o=s.next()){var c=o.value;this.checksum=this.checksum>>>8^B2[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();Wn.Crc32=Gv;var q2=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],B2=(0,O2.uint32ArrayFrom)(q2),D2=zv();Object.defineProperty(Wn,"AwsCrc32",{enumerable:!0,get:function(){return D2.AwsCrc32}})});var Ss=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.toHex=Cs.fromHex=void 0;var $v={},$_={};for(let e=0;e<256;e++){let n=e.toString(16).toLowerCase();n.length===1&&(n=`0${n}`),$v[e]=n,$_[n]=e}function M2(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let n=new Uint8Array(e.length/2);for(let t=0;t{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.Int64=void 0;var L2=Ss(),Ga=class{constructor(n){if(this.bytes=n,n.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776e3||n<-9223372036854776e3)throw new Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,s=Math.abs(Math.round(n));r>-1&&s>0;r--,s/=256)t[r]=s;return n<0&&Hv(t),new Ga(t)}valueOf(){let n=this.bytes.slice(0),t=n[0]&128;return t&&Hv(n),parseInt((0,L2.toHex)(n),16)*(t?-1:1)}toString(){return String(this.valueOf())}};Rm.Int64=Ga;function Hv(e){for(let n=0;n<8;n++)e[n]^=255;for(let n=7;n>-1&&(e[n]++,e[n]===0);n--);}});var W_=m(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.HeaderMarshaller=void 0;var bs=Ss(),K_=H_(),V_=class{constructor(n,t){this.toUtf8=n,this.fromUtf8=t}format(n){let t=[];for(let o of Object.keys(n)){let c=this.fromUtf8(o);t.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(n[o]))}let r=new Uint8Array(t.reduce((o,c)=>o+c.byteLength,0)),s=0;for(let o of t)r.set(o,s),s+=o.byteLength;return r}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,n.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,n.value,!1),new Uint8Array(r.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(n.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+n.value.byteLength));o.setUint8(0,6),o.setUint16(1,n.value.byteLength,!1);let c=new Uint8Array(o.buffer);return c.set(n.value,3),c;case"string":let i=this.fromUtf8(n.value),u=new DataView(new ArrayBuffer(3+i.byteLength));u.setUint8(0,7),u.setUint16(1,i.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(i,3),l;case"timestamp":let a=new Uint8Array(9);return a[0]=8,a.set(K_.Int64.fromNumber(n.value.valueOf()).bytes,1),a;case"uuid":if(!W2.test(n.value))throw new Error(`Invalid UUID received: ${n.value}`);let g=new Uint8Array(17);return g[0]=9,g.set((0,bs.fromHex)(n.value.replace(/\-/g,"")),1),g}}parse(n){let t={},r=0;for(;r{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.splitMessage=void 0;var X2=za(),Wv=4,Xn=Wv*2,Or=4,Y2=Xn+Or*2;function Q2({byteLength:e,byteOffset:n,buffer:t}){if(e{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.EventStreamCodec=void 0;var J2=za(),Z2=W_(),e$=Xv(),X_=class{constructor(n,t){this.headerMarshaller=new Z2.HeaderMarshaller(n,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(n){this.messageBuffer.push(this.decode(n))}endOfStream(){this.isEndOfStream=!0}getMessage(){let n=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage(){return n},isEndOfStream(){return t}}}getAvailableMessages(){let n=this.messageBuffer;this.messageBuffer=[];let t=this.isEndOfStream;return{getMessages(){return n},isEndOfStream(){return t}}}encode({headers:n,body:t}){let r=this.headerMarshaller.format(n),s=r.byteLength+t.byteLength+16,o=new Uint8Array(s),c=new DataView(o.buffer,o.byteOffset,o.byteLength),i=new J2.Crc32;return c.setUint32(0,s,!1),c.setUint32(4,r.byteLength,!1),c.setUint32(8,i.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),c.setUint32(s-4,i.update(o.subarray(8,s-4)).digest(),!1),o}decode(n){let{headers:t,body:r}=(0,e$.splitMessage)(n);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(n){return this.headerMarshaller.format(n)}};Om.EventStreamCodec=X_});var Jv=m(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var Zv=m(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.MessageDecoderStream=void 0;var Y_=class{constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.decoder.decode(n)}};Tm.MessageDecoderStream=Y_});var ek=m(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.MessageEncoderStream=void 0;var Q_=class{constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream)yield this.options.encoder.encode(n);this.options.includeEndFrame&&(yield new Uint8Array(0))}};qm.MessageEncoderStream=Q_});var tk=m(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.SmithyMessageDecoderStream=void 0;var J_=class{constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream){let t=await this.options.deserializer(n);t!==void 0&&(yield t)}}};Bm.SmithyMessageDecoderStream=J_});var nk=m(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.SmithyMessageEncoderStream=void 0;var Z_=class{constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.serializer(n)}};Dm.SmithyMessageEncoderStream=Z_});var eC=m(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});var Yn=(H(),z($));Yn.__exportStar(Yv(),Vt);Yn.__exportStar(W_(),Vt);Yn.__exportStar(H_(),Vt);Yn.__exportStar(Jv(),Vt);Yn.__exportStar(Zv(),Vt);Yn.__exportStar(ek(),Vt);Yn.__exportStar(tk(),Vt);Yn.__exportStar(nk(),Vt)});var rk=m(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.normalizeProvider=void 0;var t$=e=>{if(typeof e=="function")return e;let n=Promise.resolve(e);return()=>n};Mm.normalizeProvider=t$});var Tr=m(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});var n$=(H(),z($));n$.__exportStar(rk(),tC)});var Lm=m(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.isArrayBuffer=void 0;var r$=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Fm.isArrayBuffer=r$});var qr=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.fromString=Ps.fromArrayBuffer=void 0;var s$=Lm(),nC=require("buffer"),o$=(e,n=0,t=e.byteLength-n)=>{if(!(0,s$.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return nC.Buffer.from(e,n,t)};Ps.fromArrayBuffer=o$;var i$=(e,n)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return n?nC.Buffer.from(e,n):nC.Buffer.from(e)};Ps.fromString=i$});var rC=m(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.fromUtf8=void 0;var a$=qr(),c$=e=>{let n=(0,a$.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)};jm.fromUtf8=c$});var sk=m(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.toUint8Array=void 0;var d$=rC(),l$=e=>typeof e=="string"?(0,d$.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e);Um.toUint8Array=l$});var ok=m(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.toUtf8=void 0;var u$=qr(),m$=e=>(0,u$.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");zm.toUtf8=m$});var jt=m($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var sC=(H(),z($));sC.__exportStar(rC(),$a);sC.__exportStar(sk(),$a);sC.__exportStar(ok(),$a)});var Br=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.MAX_PRESIGNED_TTL=Z.KEY_TYPE_IDENTIFIER=Z.MAX_CACHE_SIZE=Z.UNSIGNED_PAYLOAD=Z.EVENT_ALGORITHM_IDENTIFIER=Z.ALGORITHM_IDENTIFIER_V4A=Z.ALGORITHM_IDENTIFIER=Z.UNSIGNABLE_PATTERNS=Z.SEC_HEADER_PATTERN=Z.PROXY_HEADER_PATTERN=Z.ALWAYS_UNSIGNABLE_HEADERS=Z.HOST_HEADER=Z.TOKEN_HEADER=Z.SHA256_HEADER=Z.SIGNATURE_HEADER=Z.GENERATED_HEADERS=Z.DATE_HEADER=Z.AMZ_DATE_HEADER=Z.AUTH_HEADER=Z.REGION_SET_PARAM=Z.TOKEN_QUERY_PARAM=Z.SIGNATURE_QUERY_PARAM=Z.EXPIRES_QUERY_PARAM=Z.SIGNED_HEADERS_QUERY_PARAM=Z.AMZ_DATE_QUERY_PARAM=Z.CREDENTIAL_QUERY_PARAM=Z.ALGORITHM_QUERY_PARAM=void 0;Z.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";Z.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";Z.AMZ_DATE_QUERY_PARAM="X-Amz-Date";Z.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";Z.EXPIRES_QUERY_PARAM="X-Amz-Expires";Z.SIGNATURE_QUERY_PARAM="X-Amz-Signature";Z.TOKEN_QUERY_PARAM="X-Amz-Security-Token";Z.REGION_SET_PARAM="X-Amz-Region-Set";Z.AUTH_HEADER="authorization";Z.AMZ_DATE_HEADER=Z.AMZ_DATE_QUERY_PARAM.toLowerCase();Z.DATE_HEADER="date";Z.GENERATED_HEADERS=[Z.AUTH_HEADER,Z.AMZ_DATE_HEADER,Z.DATE_HEADER];Z.SIGNATURE_HEADER=Z.SIGNATURE_QUERY_PARAM.toLowerCase();Z.SHA256_HEADER="x-amz-content-sha256";Z.TOKEN_HEADER=Z.TOKEN_QUERY_PARAM.toLowerCase();Z.HOST_HEADER="host";Z.ALWAYS_UNSIGNABLE_HEADERS={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};Z.PROXY_HEADER_PATTERN=/^proxy-/;Z.SEC_HEADER_PATTERN=/^sec-/;Z.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];Z.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";Z.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";Z.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";Z.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";Z.MAX_CACHE_SIZE=50;Z.KEY_TYPE_IDENTIFIER="aws4_request";Z.MAX_PRESIGNED_TTL=60*60*24*7});var iC=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.clearCredentialCache=Qn.getSigningKey=Qn.createScope=void 0;var p$=Ss(),f$=jt(),oC=Br(),Es={},Gm=[],y$=(e,n,t)=>`${e}/${n}/${t}/${oC.KEY_TYPE_IDENTIFIER}`;Qn.createScope=y$;var g$=async(e,n,t,r,s)=>{let o=await ik(e,n.secretAccessKey,n.accessKeyId),c=`${t}:${r}:${s}:${(0,p$.toHex)(o)}:${n.sessionToken}`;if(c in Es)return Es[c];for(Gm.push(c);Gm.length>oC.MAX_CACHE_SIZE;)delete Es[Gm.shift()];let i=`AWS4${n.secretAccessKey}`;for(let u of[t,r,s,oC.KEY_TYPE_IDENTIFIER])i=await ik(e,i,u);return Es[c]=i};Qn.getSigningKey=g$;var h$=()=>{Gm.length=0,Object.keys(Es).forEach(e=>{delete Es[e]})};Qn.clearCredentialCache=h$;var ik=(e,n,t)=>{let r=new e(n);return r.update((0,f$.toUint8Array)(t)),r.digest()}});var cC=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.getCanonicalHeaders=void 0;var aC=Br(),_$=({headers:e},n,t)=>{let r={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();(o in aC.ALWAYS_UNSIGNABLE_HEADERS||n?.has(o)||aC.PROXY_HEADER_PATTERN.test(o)||aC.SEC_HEADER_PATTERN.test(o))&&(!t||t&&!t.has(o))||(r[o]=e[s].trim().replace(/\s+/g," "))}return r};$m.getCanonicalHeaders=_$});var dC=m(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.escapeUri=void 0;var C$=e=>encodeURIComponent(e).replace(/[!'()*]/g,S$);Hm.escapeUri=C$;var S$=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var ak=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.escapeUriPath=void 0;var b$=dC(),P$=e=>e.split("/").map(b$.escapeUri).join("/");Km.escapeUriPath=P$});var lC=m(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var ck=(H(),z($));ck.__exportStar(dC(),Vm);ck.__exportStar(ak(),Vm)});var uC=m(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.getCanonicalQuery=void 0;var Wm=lC(),E$=Br(),x$=({query:e={}})=>{let n=[],t={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===E$.SIGNATURE_HEADER)continue;n.push(r);let s=e[r];typeof s=="string"?t[r]=`${(0,Wm.escapeUri)(r)}=${(0,Wm.escapeUri)(s)}`:Array.isArray(s)&&(t[r]=s.slice(0).sort().reduce((o,c)=>o.concat([`${(0,Wm.escapeUri)(r)}=${(0,Wm.escapeUri)(c)}`]),[]).join("&"))}return n.map(r=>t[r]).filter(r=>r).join("&")};Xm.getCanonicalQuery=x$});var mC=m(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.getPayloadHash=void 0;var w$=Lm(),v$=Ss(),k$=jt(),dk=Br(),A$=async({headers:e,body:n},t)=>{for(let r of Object.keys(e))if(r.toLowerCase()===dk.SHA256_HEADER)return e[r];if(n==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof n=="string"||ArrayBuffer.isView(n)||(0,w$.isArrayBuffer)(n)){let r=new t;return r.update((0,k$.toUint8Array)(n)),(0,v$.toHex)(await r.digest())}return dk.UNSIGNED_PAYLOAD};Ym.getPayloadHash=A$});var lk=m(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.deleteHeader=Jn.getHeaderValue=Jn.hasHeader=void 0;var R$=(e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return!0;return!1};Jn.hasHeader=R$;var I$=(e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))if(e===t.toLowerCase())return n[t]};Jn.getHeaderValue=I$;var N$=(e,n)=>{e=e.toLowerCase();for(let t of Object.keys(n))e===t.toLowerCase()&&delete n[t]};Jn.deleteHeader=N$});var pC=m(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.cloneQuery=Dr.cloneRequest=void 0;var O$=({headers:e,query:n,...t})=>({...t,headers:{...e},query:n?(0,Dr.cloneQuery)(n):void 0});Dr.cloneRequest=O$;var T$=e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return{...n,[t]:Array.isArray(r)?[...r]:r}},{});Dr.cloneQuery=T$});var fC=m(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.moveHeadersToQuery=void 0;var q$=pC(),B$=(e,n={})=>{var t;let{headers:r,query:s={}}=typeof e.clone=="function"?e.clone():(0,q$.cloneRequest)(e);for(let o of Object.keys(r)){let c=o.toLowerCase();c.slice(0,6)==="x-amz-"&&!(!((t=n.unhoistableHeaders)===null||t===void 0)&&t.has(c))&&(s[o]=r[o],delete r[o])}return{...e,headers:r,query:s}};Qm.moveHeadersToQuery=B$});var yC=m(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.prepareRequest=void 0;var D$=pC(),M$=Br(),F$=e=>{e=typeof e.clone=="function"?e.clone():(0,D$.cloneRequest)(e);for(let n of Object.keys(e.headers))M$.GENERATED_HEADERS.indexOf(n.toLowerCase())>-1&&delete e.headers[n];return e};Jm.prepareRequest=F$});var uk=m(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.toDate=Mr.iso8601=void 0;var L$=e=>(0,Mr.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");Mr.iso8601=L$;var j$=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;Mr.toDate=j$});var gk=m(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.SignatureV4=void 0;var U$=eC(),Zm=Ss(),mk=Tr(),Ha=jt(),Ze=Br(),ep=iC(),pk=cC(),z$=uC(),gC=mC(),G$=lk(),$$=fC(),fk=yC(),H$=uk(),hC=class{constructor({applyChecksum:n,credentials:t,region:r,service:s,sha256:o,uriEscapePath:c=!0}){this.headerMarshaller=new U$.HeaderMarshaller(Ha.toUtf8,Ha.fromUtf8),this.service=s,this.sha256=o,this.uriEscapePath=c,this.applyChecksum=typeof n=="boolean"?n:!0,this.regionProvider=(0,mk.normalizeProvider)(r),this.credentialProvider=(0,mk.normalizeProvider)(t)}async presign(n,t={}){let{signingDate:r=new Date,expiresIn:s=3600,unsignableHeaders:o,unhoistableHeaders:c,signableHeaders:i,signingRegion:u,signingService:l}=t,a=await this.credentialProvider();this.validateResolvedCredentials(a);let g=u??await this.regionProvider(),{longDate:C,shortDate:w}=tp(r);if(s>Ze.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=(0,ep.createScope)(w,g,l??this.service),O=(0,$$.moveHeadersToQuery)((0,fk.prepareRequest)(n),{unhoistableHeaders:c});a.sessionToken&&(O.query[Ze.TOKEN_QUERY_PARAM]=a.sessionToken),O.query[Ze.ALGORITHM_QUERY_PARAM]=Ze.ALGORITHM_IDENTIFIER,O.query[Ze.CREDENTIAL_QUERY_PARAM]=`${a.accessKeyId}/${R}`,O.query[Ze.AMZ_DATE_QUERY_PARAM]=C,O.query[Ze.EXPIRES_QUERY_PARAM]=s.toString(10);let G=(0,pk.getCanonicalHeaders)(O,o,i);return O.query[Ze.SIGNED_HEADERS_QUERY_PARAM]=yk(G),O.query[Ze.SIGNATURE_QUERY_PARAM]=await this.getSignature(C,R,this.getSigningKey(a,g,w,l),this.createCanonicalRequest(O,G,await(0,gC.getPayloadHash)(n,this.sha256))),O}async sign(n,t){return typeof n=="string"?this.signString(n,t):n.headers&&n.payload?this.signEvent(n,t):n.message?this.signMessage(n,t):this.signRequest(n,t)}async signEvent({headers:n,payload:t},{signingDate:r=new Date,priorSignature:s,signingRegion:o,signingService:c}){let i=o??await this.regionProvider(),{shortDate:u,longDate:l}=tp(r),a=(0,ep.createScope)(u,i,c??this.service),g=await(0,gC.getPayloadHash)({headers:{},body:t},this.sha256),C=new this.sha256;C.update(n);let w=(0,Zm.toHex)(await C.digest()),R=[Ze.EVENT_ALGORITHM_IDENTIFIER,l,a,s,w,g].join(` -`);return this.signString(R,{signingDate:r,signingRegion:i,signingService:c})}async signMessage(n,{signingDate:t=new Date,signingRegion:r,signingService:s}){return this.signEvent({headers:this.headerMarshaller.format(n.message.headers),payload:n.message.body},{signingDate:t,signingRegion:r,signingService:s,priorSignature:n.priorSignature}).then(c=>({message:n.message,signature:c}))}async signString(n,{signingDate:t=new Date,signingRegion:r,signingService:s}={}){let o=await this.credentialProvider();this.validateResolvedCredentials(o);let c=r??await this.regionProvider(),{shortDate:i}=tp(t),u=new this.sha256(await this.getSigningKey(o,c,i,s));return u.update((0,Ha.toUint8Array)(n)),(0,Zm.toHex)(await u.digest())}async signRequest(n,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:s,signingRegion:o,signingService:c}={}){let i=await this.credentialProvider();this.validateResolvedCredentials(i);let u=o??await this.regionProvider(),l=(0,fk.prepareRequest)(n),{longDate:a,shortDate:g}=tp(t),C=(0,ep.createScope)(g,u,c??this.service);l.headers[Ze.AMZ_DATE_HEADER]=a,i.sessionToken&&(l.headers[Ze.TOKEN_HEADER]=i.sessionToken);let w=await(0,gC.getPayloadHash)(l,this.sha256);!(0,G$.hasHeader)(Ze.SHA256_HEADER,l.headers)&&this.applyChecksum&&(l.headers[Ze.SHA256_HEADER]=w);let R=(0,pk.getCanonicalHeaders)(l,s,r),O=await this.getSignature(a,C,this.getSigningKey(i,u,g,c),this.createCanonicalRequest(l,R,w));return l.headers[Ze.AUTH_HEADER]=`${Ze.ALGORITHM_IDENTIFIER} Credential=${i.accessKeyId}/${C}, SignedHeaders=${yk(R)}, Signature=${O}`,l}createCanonicalRequest(n,t,r){let s=Object.keys(t).sort();return`${n.method} -${this.getCanonicalPath(n)} -${(0,z$.getCanonicalQuery)(n)} -${s.map(o=>`${o}:${t[o]}`).join(` -`)} - -${s.join(";")} -${r}`}async createStringToSign(n,t,r){let s=new this.sha256;s.update((0,Ha.toUint8Array)(r));let o=await s.digest();return`${Ze.ALGORITHM_IDENTIFIER} -${n} -${t} -${(0,Zm.toHex)(o)}`}getCanonicalPath({path:n}){if(this.uriEscapePath){let t=[];for(let o of n.split("/"))o?.length!==0&&o!=="."&&(o===".."?t.pop():t.push(o));let r=`${n?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&n?.endsWith("/")?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return n}async getSignature(n,t,r,s){let o=await this.createStringToSign(n,t,s),c=new this.sha256(await r);return c.update((0,Ha.toUint8Array)(o)),(0,Zm.toHex)(await c.digest())}getSigningKey(n,t,r,s){return(0,ep.getSigningKey)(this.sha256,n,r,t,s||this.service)}validateResolvedCredentials(n){if(typeof n!="object"||typeof n.accessKeyId!="string"||typeof n.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}};np.SignatureV4=hC;var tp=e=>{let n=(0,H$.iso8601)(e).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}},yk=e=>Object.keys(e).sort().join(";")});var _C=m(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.prepareRequest=pt.moveHeadersToQuery=pt.getPayloadHash=pt.getCanonicalQuery=pt.getCanonicalHeaders=void 0;var hk=(H(),z($));hk.__exportStar(gk(),pt);var K$=cC();Object.defineProperty(pt,"getCanonicalHeaders",{enumerable:!0,get:function(){return K$.getCanonicalHeaders}});var V$=uC();Object.defineProperty(pt,"getCanonicalQuery",{enumerable:!0,get:function(){return V$.getCanonicalQuery}});var W$=mC();Object.defineProperty(pt,"getPayloadHash",{enumerable:!0,get:function(){return W$.getPayloadHash}});var X$=fC();Object.defineProperty(pt,"moveHeadersToQuery",{enumerable:!0,get:function(){return X$.moveHeadersToQuery}});var Y$=yC();Object.defineProperty(pt,"prepareRequest",{enumerable:!0,get:function(){return Y$.prepareRequest}});hk.__exportStar(iC(),pt)});var Ck=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.resolveSigV4AuthConfig=ws.resolveAwsAuthConfig=void 0;var Q$=Re(),CC=_C(),xs=Tr(),J$=3e5,Z$=e=>{let n=e.credentials?_k(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,o;return e.signer?o=(0,xs.normalizeProvider)(e.signer):e.regionInfoProvider?o=()=>(0,xs.normalizeProvider)(e.region)().then(async c=>[await e.regionInfoProvider(c,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},c]).then(([c,i])=>{let{signingRegion:u,signingService:l}=c;e.signingRegion=e.signingRegion||u||i,e.signingName=e.signingName||l||e.serviceId;let a={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:t},g=e.signerConstructor||CC.SignatureV4;return new g(a)}):o=async c=>{c=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,xs.normalizeProvider)(e.region)(),properties:{}},c);let i=c.signingRegion,u=c.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||u||e.serviceId;let l={...e,credentials:n,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:t},a=e.signerConstructor||CC.SignatureV4;return new a(l)},{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:o}};ws.resolveAwsAuthConfig=Z$;var eH=e=>{let n=e.credentials?_k(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:t=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,o;return e.signer?o=(0,xs.normalizeProvider)(e.signer):o=(0,xs.normalizeProvider)(new CC.SignatureV4({credentials:n,region:e.region,service:e.signingName,sha256:s,uriEscapePath:t})),{...e,systemClockOffset:r,signingEscapePath:t,credentials:n,signer:o}};ws.resolveSigV4AuthConfig=eH;var _k=e=>typeof e=="function"?(0,Q$.memoize)(e,n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()n.expiration!==void 0):(0,xs.normalizeProvider)(e)});var SC=m(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.getSkewCorrectedDate=void 0;var tH=e=>new Date(Date.now()+e);rp.getSkewCorrectedDate=tH});var Sk=m(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.isClockSkewed=void 0;var nH=SC(),rH=(e,n)=>Math.abs((0,nH.getSkewCorrectedDate)(n).getTime()-e)>=3e5;sp.isClockSkewed=rH});var bk=m(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.getUpdatedSystemClockOffset=void 0;var sH=Sk(),oH=(e,n)=>{let t=Date.parse(e);return(0,sH.isClockSkewed)(t,n)?t-Date.now():n};op.getUpdatedSystemClockOffset=oH});var wk=m(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.getSigV4AuthPlugin=St.getAwsAuthPlugin=St.awsAuthMiddlewareOptions=St.awsAuthMiddleware=void 0;var xk=$e(),iH=SC(),Pk=bk(),aH=e=>(n,t)=>async function(r){var s,o,c,i;if(!xk.HttpRequest.isInstance(r.request))return n(r);let u=(c=(o=(s=t.endpointV2)===null||s===void 0?void 0:s.properties)===null||o===void 0?void 0:o.authSchemes)===null||c===void 0?void 0:c[0],l=u?.name==="sigv4a"?(i=u?.signingRegionSet)===null||i===void 0?void 0:i.join(","):void 0,a=await e.signer(u),g=await n({...r,request:await a.sign(r.request,{signingDate:(0,iH.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:l||t.signing_region,signingService:t.signing_service})}).catch(w=>{var R;let O=(R=w.ServerTime)!==null&&R!==void 0?R:Ek(w.$response);throw O&&(e.systemClockOffset=(0,Pk.getUpdatedSystemClockOffset)(O,e.systemClockOffset)),w}),C=Ek(g.response);return C&&(e.systemClockOffset=(0,Pk.getUpdatedSystemClockOffset)(C,e.systemClockOffset)),g};St.awsAuthMiddleware=aH;var Ek=e=>{var n,t,r;return xk.HttpResponse.isInstance(e)?(t=(n=e.headers)===null||n===void 0?void 0:n.date)!==null&&t!==void 0?t:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};St.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var cH=e=>({applyToStack:n=>{n.addRelativeTo((0,St.awsAuthMiddleware)(e),St.awsAuthMiddlewareOptions)}});St.getAwsAuthPlugin=cH;St.getSigV4AuthPlugin=St.getAwsAuthPlugin});var kn=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var vk=(H(),z($));vk.__exportStar(Ck(),ip);vk.__exportStar(wk(),ip)});var kk=m(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.resolveUserAgentConfig=void 0;function dH(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}ap.resolveUserAgentConfig=dH});var Ak=m((mPe,lH)=>{lH.exports={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var bC=m(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getUserAgentPrefix=Ut.useDefaultPartitionInfo=Ut.setPartitionInfo=Ut.partition=void 0;var uH=(H(),z($)),Rk=uH.__importDefault(Ak()),Ik=Rk.default,Nk="",mH=e=>{let{partitions:n}=Ik;for(let r of n){let{regions:s,outputs:o}=r;for(let[c,i]of Object.entries(s))if(c===e)return{...o,...i}}for(let r of n){let{regionRegex:s,outputs:o}=r;if(new RegExp(s).test(e))return{...o}}let t=n.find(r=>r.id==="aws");if(!t)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...t.outputs}};Ut.partition=mH;var pH=(e,n="")=>{Ik=e,Nk=n};Ut.setPartitionInfo=pH;var fH=()=>{(0,Ut.setPartitionInfo)(Rk.default,"")};Ut.useDefaultPartitionInfo=fH;var yH=()=>Nk;Ut.getUserAgentPrefix=yH});var Ok=m(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.debugId=void 0;cp.debugId="endpoints"});var Tk=m(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.toDebugString=void 0;function PC(e){return typeof e!="object"||e==null?e:"ref"in e?`$${PC(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(PC).join(", ")})`:JSON.stringify(e,null,2)}dp.toDebugString=PC});var Ka=m(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var qk=(H(),z($));qk.__exportStar(Ok(),lp);qk.__exportStar(Tk(),lp)});var Bk=m(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.EndpointError=void 0;var EC=class extends Error{constructor(n){super(n),this.name="EndpointError"}};up.EndpointError=EC});var Mk=m(Dk=>{"use strict";Object.defineProperty(Dk,"__esModule",{value:!0})});var Lk=m(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0})});var Uk=m(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0})});var Gk=m(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0})});var Hk=m($k=>{"use strict";Object.defineProperty($k,"__esModule",{value:!0})});var kt=m(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var vs=(H(),z($));vs.__exportStar(Bk(),Zn);vs.__exportStar(Mk(),Zn);vs.__exportStar(Lk(),Zn);vs.__exportStar(Uk(),Zn);vs.__exportStar(Gk(),Zn);vs.__exportStar(Hk(),Zn)});var xC=m(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.isIpAddress=void 0;var gH=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),hH=e=>gH.test(e)||e.startsWith("[")&&e.endsWith("]");mp.isIpAddress=hH});var wC=m(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.isValidHostLabel=void 0;var _H=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),CH=(e,n=!1)=>{if(!n)return _H.test(e);let t=e.split(".");for(let r of t)if(!(0,Va.isValidHostLabel)(r))return!1;return!0};Va.isValidHostLabel=CH});var Kk=m(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.isVirtualHostableS3Bucket=void 0;var SH=xC(),bH=wC(),PH=(e,n=!1)=>{if(n){for(let t of e.split("."))if(!(0,Wa.isVirtualHostableS3Bucket)(t))return!1;return!0}return!(!(0,bH.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,SH.isIpAddress)(e))};Wa.isVirtualHostableS3Bucket=PH});var Vk=m(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.parseArn=void 0;var EH=e=>{let n=e.split(":");if(n.length<6)return null;let[t,r,s,o,c,...i]=n;return t!=="arn"||r===""||s===""||i[0]===""?null:{partition:r,service:s,region:o,accountId:c,resourceId:i[0].includes("/")?i[0].split("/"):i}};pp.parseArn=EH});var Wk=m(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var vC=(H(),z($));vC.__exportStar(Kk(),Xa);vC.__exportStar(Vk(),Xa);vC.__exportStar(bC(),Xa)});var Xk=m(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.booleanEquals=void 0;var xH=(e,n)=>e===n;fp.booleanEquals=xH});var Qk=m(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.getAttrPathList=void 0;var Yk=kt(),wH=e=>{let n=e.split("."),t=[];for(let r of n){let s=r.indexOf("[");if(s!==-1){if(r.indexOf("]")!==r.length-1)throw new Yk.EndpointError(`Path: '${e}' does not end with ']'`);let o=r.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new Yk.EndpointError(`Invalid array index: '${o}' in path: '${e}'`);s!==0&&t.push(r.slice(0,s)),t.push(o)}else t.push(r)}return t};yp.getAttrPathList=wH});var Jk=m(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.getAttr=void 0;var vH=kt(),kH=Qk(),AH=(e,n)=>(0,kH.getAttrPathList)(n).reduce((t,r)=>{if(typeof t!="object")throw new vH.EndpointError(`Index '${r}' in '${n}' not found in '${JSON.stringify(e)}'`);return Array.isArray(t)?t[parseInt(r)]:t[r]},e);gp.getAttr=AH});var Zk=m(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.isSet=void 0;var RH=e=>e!=null;hp.isSet=RH});var eA=m(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.not=void 0;var IH=e=>!e;_p.not=IH});var nA=m(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0})});var rA=m(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.HttpAuthLocation=void 0;var NH;(function(e){e.HEADER="header",e.QUERY="query"})(NH=Ya.HttpAuthLocation||(Ya.HttpAuthLocation={}))});var oA=m(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0})});var aA=m(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0})});var dA=m(cA=>{"use strict";Object.defineProperty(cA,"__esModule",{value:!0})});var uA=m(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0})});var pA=m(mA=>{"use strict";Object.defineProperty(mA,"__esModule",{value:!0})});var yA=m(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0})});var hA=m(gA=>{"use strict";Object.defineProperty(gA,"__esModule",{value:!0})});var _A=m(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var kC=(H(),z($));kC.__exportStar(pA(),Qa);kC.__exportStar(yA(),Qa);kC.__exportStar(hA(),Qa)});var SA=m(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0})});var PA=m(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0})});var EA=m(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.HostAddressType=void 0;var OH;(function(e){e.AAAA="AAAA",e.A="A"})(OH=Ja.HostAddressType||(Ja.HostAddressType={}))});var wA=m(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0})});var vA=m(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.EndpointURLScheme=void 0;var TH;(function(e){e.HTTP="http",e.HTTPS="https"})(TH=Za.EndpointURLScheme||(Za.EndpointURLScheme={}))});var AA=m(kA=>{"use strict";Object.defineProperty(kA,"__esModule",{value:!0})});var IA=m(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0})});var OA=m(NA=>{"use strict";Object.defineProperty(NA,"__esModule",{value:!0})});var qA=m(TA=>{"use strict";Object.defineProperty(TA,"__esModule",{value:!0})});var DA=m(BA=>{"use strict";Object.defineProperty(BA,"__esModule",{value:!0})});var FA=m(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0})});var jA=m(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0})});var UA=m(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});var ec=(H(),z($));ec.__exportStar(OA(),Fr);ec.__exportStar(qA(),Fr);ec.__exportStar(DA(),Fr);ec.__exportStar(FA(),Fr);ec.__exportStar(jA(),Fr)});var GA=m(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0})});var HA=m($A=>{"use strict";Object.defineProperty($A,"__esModule",{value:!0})});var VA=m(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0})});var XA=m(WA=>{"use strict";Object.defineProperty(WA,"__esModule",{value:!0})});var QA=m(YA=>{"use strict";Object.defineProperty(YA,"__esModule",{value:!0})});var ZA=m(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0})});var tR=m(eR=>{"use strict";Object.defineProperty(eR,"__esModule",{value:!0})});var rR=m(nR=>{"use strict";Object.defineProperty(nR,"__esModule",{value:!0})});var oR=m(sR=>{"use strict";Object.defineProperty(sR,"__esModule",{value:!0})});var aR=m(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0})});var dR=m(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0})});var uR=m(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0})});var mR=m(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.RequestHandlerProtocol=void 0;var qH;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(qH=tc.RequestHandlerProtocol||(tc.RequestHandlerProtocol={}))});var fR=m(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0})});var gR=m(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0})});var _R=m(hR=>{"use strict";Object.defineProperty(hR,"__esModule",{value:!0})});var CR=m(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});var be=(H(),z($));be.__exportStar(nA(),_e);be.__exportStar(rA(),_e);be.__exportStar(oA(),_e);be.__exportStar(aA(),_e);be.__exportStar(dA(),_e);be.__exportStar(uA(),_e);be.__exportStar(_A(),_e);be.__exportStar(SA(),_e);be.__exportStar(PA(),_e);be.__exportStar(EA(),_e);be.__exportStar(wA(),_e);be.__exportStar(vA(),_e);be.__exportStar(AA(),_e);be.__exportStar(IA(),_e);be.__exportStar(UA(),_e);be.__exportStar(GA(),_e);be.__exportStar(HA(),_e);be.__exportStar(VA(),_e);be.__exportStar(XA(),_e);be.__exportStar(QA(),_e);be.__exportStar(ZA(),_e);be.__exportStar(tR(),_e);be.__exportStar(rR(),_e);be.__exportStar(oR(),_e);be.__exportStar(aR(),_e);be.__exportStar(dR(),_e);be.__exportStar(uR(),_e);be.__exportStar(mR(),_e);be.__exportStar(fR(),_e);be.__exportStar(gR(),_e);be.__exportStar(_R(),_e)});var SR=m(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.parseURL=void 0;var RC=CR(),BH=xC(),AC={[RC.EndpointURLScheme.HTTP]:80,[RC.EndpointURLScheme.HTTPS]:443},DH=e=>{let n=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:C,port:w,protocol:R="",path:O="",query:G={}}=e,fe=new URL(`${R}//${C}${w?`:${w}`:""}${O}`);return fe.search=Object.entries(G).map(([Ce,Ft])=>`${Ce}=${Ft}`).join("&"),fe}return new URL(e)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let t=n.href,{host:r,hostname:s,pathname:o,protocol:c,search:i}=n;if(i)return null;let u=c.slice(0,-1);if(!Object.values(RC.EndpointURLScheme).includes(u))return null;let l=(0,BH.isIpAddress)(s),a=t.includes(`${r}:${AC[u]}`)||typeof e=="string"&&e.includes(`${r}:${AC[u]}`),g=`${r}${a?`:${AC[u]}`:""}`;return{scheme:u,authority:g,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:l}};Cp.parseURL=DH});var bR=m(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.stringEquals=void 0;var MH=(e,n)=>e===n;Sp.stringEquals=MH});var PR=m(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.substring=void 0;var FH=(e,n,t,r)=>n>=t||e.length{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.uriEncode=void 0;var LH=e=>encodeURIComponent(e).replace(/[!*'()]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`);Pp.uriEncode=LH});var IC=m(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.aws=void 0;var Wt=(H(),z($));bt.aws=Wt.__importStar(Wk());Wt.__exportStar(Xk(),bt);Wt.__exportStar(Jk(),bt);Wt.__exportStar(Zk(),bt);Wt.__exportStar(wC(),bt);Wt.__exportStar(eA(),bt);Wt.__exportStar(SR(),bt);Wt.__exportStar(bR(),bt);Wt.__exportStar(PR(),bt);Wt.__exportStar(ER(),bt)});var NC=m(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.evaluateTemplate=void 0;var jH=IC(),UH=(e,n)=>{let t=[],r={...n.endpointParams,...n.referenceRecord},s=0;for(;s{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.getReferenceValue=void 0;var zH=({ref:e},n)=>({...n.endpointParams,...n.referenceRecord})[e];xp.getReferenceValue=zH});var nc=m(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.evaluateExpression=void 0;var GH=kt(),$H=OC(),HH=NC(),KH=xR(),VH=(e,n,t)=>{if(typeof e=="string")return(0,HH.evaluateTemplate)(e,t);if(e.fn)return(0,$H.callFunction)(e,t);if(e.ref)return(0,KH.getReferenceValue)(e,t);throw new GH.EndpointError(`'${n}': ${String(e)} is not a string, function or reference.`)};wp.evaluateExpression=VH});var OC=m(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.callFunction=void 0;var WH=(H(),z($)),XH=WH.__importStar(IC()),YH=nc(),QH=({fn:e,argv:n},t)=>{let r=n.map(s=>["boolean","number"].includes(typeof s)?s:(0,YH.evaluateExpression)(s,"arg",t));return e.split(".").reduce((s,o)=>s[o],XH)(...r)};vp.callFunction=QH});var wR=m(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.evaluateCondition=void 0;var TC=Ka(),JH=kt(),ZH=OC(),eK=({assign:e,...n},t)=>{var r,s;if(e&&e in t.referenceRecord)throw new JH.EndpointError(`'${e}' is already defined in Reference Record.`);let o=(0,ZH.callFunction)(n,t);return(s=(r=t.logger)===null||r===void 0?void 0:r.debug)===null||s===void 0||s.call(r,TC.debugId,`evaluateCondition: ${(0,TC.toDebugString)(n)} = ${(0,TC.toDebugString)(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};kp.evaluateCondition=eK});var Rp=m(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.evaluateConditions=void 0;var vR=Ka(),tK=wR(),nK=(e=[],n)=>{var t,r;let s={};for(let o of e){let{result:c,toAssign:i}=(0,tK.evaluateCondition)(o,{...n,referenceRecord:{...n.referenceRecord,...s}});if(!c)return{result:c};i&&(s[i.name]=i.value,(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,vR.debugId,`assign: ${i.name} := ${(0,vR.toDebugString)(i.value)}`))}return{result:!0,referenceRecord:s}};Ap.evaluateConditions=nK});var kR=m(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.getEndpointHeaders=void 0;var rK=kt(),sK=nc(),oK=(e,n)=>Object.entries(e).reduce((t,[r,s])=>({...t,[r]:s.map(o=>{let c=(0,sK.evaluateExpression)(o,"Header value entry",n);if(typeof c!="string")throw new rK.EndpointError(`Header '${r}' value '${c}' is not a string`);return c})}),{});Ip.getEndpointHeaders=oK});var RR=m(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.getEndpointProperty=void 0;var AR=kt(),iK=NC(),aK=qC(),cK=(e,n)=>{if(Array.isArray(e))return e.map(t=>(0,rc.getEndpointProperty)(t,n));switch(typeof e){case"string":return(0,iK.evaluateTemplate)(e,n);case"object":if(e===null)throw new AR.EndpointError(`Unexpected endpoint property: ${e}`);return(0,aK.getEndpointProperties)(e,n);case"boolean":return e;default:throw new AR.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};rc.getEndpointProperty=cK});var qC=m(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.getEndpointProperties=void 0;var dK=RR(),lK=(e,n)=>Object.entries(e).reduce((t,[r,s])=>({...t,[r]:(0,dK.getEndpointProperty)(s,n)}),{});Np.getEndpointProperties=lK});var IR=m(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.getEndpointUrl=void 0;var uK=kt(),mK=nc(),pK=(e,n)=>{let t=(0,mK.evaluateExpression)(e,"Endpoint URL",n);if(typeof t=="string")try{return new URL(t)}catch(r){throw console.error(`Failed to construct URL with ${t}`,r),r}throw new uK.EndpointError(`Endpoint URL must be a string, got ${typeof t}`)};Op.getEndpointUrl=pK});var OR=m(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.evaluateEndpointRule=void 0;var NR=Ka(),fK=Rp(),yK=kR(),gK=qC(),hK=IR(),_K=(e,n)=>{var t,r;let{conditions:s,endpoint:o}=e,{result:c,referenceRecord:i}=(0,fK.evaluateConditions)(s,n);if(!c)return;let u={...n,referenceRecord:{...n.referenceRecord,...i}},{url:l,properties:a,headers:g}=o;return(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,NR.debugId,`Resolving endpoint from template: ${(0,NR.toDebugString)(o)}`),{...g!=null&&{headers:(0,yK.getEndpointHeaders)(g,u)},...a!=null&&{properties:(0,gK.getEndpointProperties)(a,u)},url:(0,hK.getEndpointUrl)(l,u)}};Tp.evaluateEndpointRule=_K});var TR=m(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.evaluateErrorRule=void 0;var CK=kt(),SK=Rp(),bK=nc(),PK=(e,n)=>{let{conditions:t,error:r}=e,{result:s,referenceRecord:o}=(0,SK.evaluateConditions)(t,n);if(s)throw new CK.EndpointError((0,bK.evaluateExpression)(r,"Error",{...n,referenceRecord:{...n.referenceRecord,...o}}))};qp.evaluateErrorRule=PK});var qR=m(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.evaluateTreeRule=void 0;var EK=Rp(),xK=BC(),wK=(e,n)=>{let{conditions:t,rules:r}=e,{result:s,referenceRecord:o}=(0,EK.evaluateConditions)(t,n);if(s)return(0,xK.evaluateRules)(r,{...n,referenceRecord:{...n.referenceRecord,...o}})};Bp.evaluateTreeRule=wK});var BC=m(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.evaluateRules=void 0;var BR=kt(),vK=OR(),kK=TR(),AK=qR(),RK=(e,n)=>{for(let t of e)if(t.type==="endpoint"){let r=(0,vK.evaluateEndpointRule)(t,n);if(r)return r}else if(t.type==="error")(0,kK.evaluateErrorRule)(t,n);else if(t.type==="tree"){let r=(0,AK.evaluateTreeRule)(t,n);if(r)return r}else throw new BR.EndpointError(`Unknown endpoint rule: ${t}`);throw new BR.EndpointError("Rules evaluation failed")};Dp.evaluateRules=RK});var DR=m(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0});var IK=(H(),z($));IK.__exportStar(BC(),DC)});var MR=m(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.resolveEndpoint=void 0;var Mp=Ka(),NK=kt(),OK=DR(),TK=(e,n)=>{var t,r,s,o,c,i;let{endpointParams:u,logger:l}=n,{parameters:a,rules:g}=e;(r=(t=n.logger)===null||t===void 0?void 0:t.debug)===null||r===void 0||r.call(t,`${Mp.debugId} Initial EndpointParams: ${(0,Mp.toDebugString)(u)}`);let C=Object.entries(a).filter(([,O])=>O.default!=null).map(([O,G])=>[O,G.default]);if(C.length>0)for(let[O,G]of C)u[O]=(s=u[O])!==null&&s!==void 0?s:G;let w=Object.entries(a).filter(([,O])=>O.required).map(([O])=>O);for(let O of w)if(u[O]==null)throw new NK.EndpointError(`Missing required parameter: '${O}'`);let R=(0,OK.evaluateRules)(g,{endpointParams:u,logger:l,referenceRecord:{}});if(!((o=n.endpointParams)===null||o===void 0)&&o.Endpoint)try{let O=new URL(n.endpointParams.Endpoint),{protocol:G,port:fe}=O;R.url.protocol=G,R.url.port=fe}catch{}return(i=(c=n.logger)===null||c===void 0?void 0:c.debug)===null||i===void 0||i.call(c,`${Mp.debugId} Resolved endpoint: ${(0,Mp.toDebugString)(R)}`),R};Fp.resolveEndpoint=TK});var ks=m(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var MC=(H(),z($));MC.__exportStar(bC(),sc);MC.__exportStar(MR(),sc);MC.__exportStar(kt(),sc)});var FR=m(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.UA_ESCAPE_CHAR=st.UA_VALUE_ESCAPE_REGEX=st.UA_NAME_ESCAPE_REGEX=st.UA_NAME_SEPARATOR=st.SPACE=st.X_AMZ_USER_AGENT=st.USER_AGENT=void 0;st.USER_AGENT="user-agent";st.X_AMZ_USER_AGENT="x-amz-user-agent";st.SPACE=" ";st.UA_NAME_SEPARATOR="/";st.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;st.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;st.UA_ESCAPE_CHAR="-"});var LR=m(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getUserAgentPlugin=Xt.getUserAgentMiddlewareOptions=Xt.userAgentMiddleware=void 0;var qK=ks(),BK=$e(),ft=FR(),DK=e=>(n,t)=>async r=>{var s,o;let{request:c}=r;if(!BK.HttpRequest.isInstance(c))return n(r);let{headers:i}=c,u=((s=t?.userAgent)===null||s===void 0?void 0:s.map(FC))||[],l=(await e.defaultUserAgentProvider()).map(FC),a=((o=e?.customUserAgent)===null||o===void 0?void 0:o.map(FC))||[],g=(0,qK.getUserAgentPrefix)(),C=(g?[g]:[]).concat([...l,...u,...a]).join(ft.SPACE),w=[...l.filter(R=>R.startsWith("aws-sdk-")),...a].join(ft.SPACE);return e.runtime!=="browser"?(w&&(i[ft.X_AMZ_USER_AGENT]=i[ft.X_AMZ_USER_AGENT]?`${i[ft.USER_AGENT]} ${w}`:w),i[ft.USER_AGENT]=C):i[ft.X_AMZ_USER_AGENT]=C,n({...r,request:c})};Xt.userAgentMiddleware=DK;var FC=e=>{var n;let t=e[0].split(ft.UA_NAME_SEPARATOR).map(i=>i.replace(ft.UA_NAME_ESCAPE_REGEX,ft.UA_ESCAPE_CHAR)).join(ft.UA_NAME_SEPARATOR),r=(n=e[1])===null||n===void 0?void 0:n.replace(ft.UA_VALUE_ESCAPE_REGEX,ft.UA_ESCAPE_CHAR),s=t.indexOf(ft.UA_NAME_SEPARATOR),o=t.substring(0,s),c=t.substring(s+1);return o==="api"&&(c=c.toLowerCase()),[o,c,r].filter(i=>i&&i.length>0).reduce((i,u,l)=>{switch(l){case 0:return u;case 1:return`${i}/${u}`;default:return`${i}#${u}`}},"")};Xt.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var MK=e=>({applyToStack:n=>{n.add((0,Xt.userAgentMiddleware)(e),Xt.getUserAgentMiddlewareOptions)}});Xt.getUserAgentPlugin=MK});var oc=m(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var jR=(H(),z($));jR.__exportStar(kk(),Lp);jR.__exportStar(LR(),Lp)});var UR=m(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.booleanSelector=Lr.SelectorType=void 0;var FK;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(FK=Lr.SelectorType||(Lr.SelectorType={}));var LK=(e,n,t)=>{if(n in e){if(e[n]==="true")return!0;if(e[n]==="false")return!1;throw new Error(`Cannot load ${t} "${n}". Expected "true" or "false", got ${e[n]}.`)}};Lr.booleanSelector=LK});var ic=m(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});var jK=(H(),z($));jK.__exportStar(UR(),LC)});var zR=m(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=At.DEFAULT_USE_DUALSTACK_ENDPOINT=At.CONFIG_USE_DUALSTACK_ENDPOINT=At.ENV_USE_DUALSTACK_ENDPOINT=void 0;var jp=ic();At.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";At.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";At.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;At.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,jp.booleanSelector)(e,At.ENV_USE_DUALSTACK_ENDPOINT,jp.SelectorType.ENV),configFileSelector:e=>(0,jp.booleanSelector)(e,At.CONFIG_USE_DUALSTACK_ENDPOINT,jp.SelectorType.CONFIG),default:!1}});var GR=m(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Rt.DEFAULT_USE_FIPS_ENDPOINT=Rt.CONFIG_USE_FIPS_ENDPOINT=Rt.ENV_USE_FIPS_ENDPOINT=void 0;var Up=ic();Rt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Rt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Rt.DEFAULT_USE_FIPS_ENDPOINT=!1;Rt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Up.booleanSelector)(e,Rt.ENV_USE_FIPS_ENDPOINT,Up.SelectorType.ENV),configFileSelector:e=>(0,Up.booleanSelector)(e,Rt.CONFIG_USE_FIPS_ENDPOINT,Up.SelectorType.CONFIG),default:!1}});var HR=m(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.resolveCustomEndpointsConfig=void 0;var $R=Tr(),UK=e=>{var n,t;let{endpoint:r,urlParser:s}=e;return{...e,tls:(n=e.tls)!==null&&n!==void 0?n:!0,endpoint:(0,$R.normalizeProvider)(typeof r=="string"?s(r):r),isCustomEndpoint:!0,useDualstackEndpoint:(0,$R.normalizeProvider)((t=e.useDualstackEndpoint)!==null&&t!==void 0?t:!1)}};zp.resolveCustomEndpointsConfig=UK});var KR=m(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.getEndpointFromRegion=void 0;var zK=async e=>{var n;let{tls:t=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),c=await e.useFipsEndpoint(),{hostname:i}=(n=await e.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:c}))!==null&&n!==void 0?n:{};if(!i)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${i}`)};Gp.getEndpointFromRegion=zK});var WR=m($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.resolveEndpointsConfig=void 0;var VR=Tr(),GK=KR(),$K=e=>{var n,t;let r=(0,VR.normalizeProvider)((n=e.useDualstackEndpoint)!==null&&n!==void 0?n:!1),{endpoint:s,useFipsEndpoint:o,urlParser:c}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:s?(0,VR.normalizeProvider)(typeof s=="string"?c(s):s):()=>(0,GK.getEndpointFromRegion)({...e,useDualstackEndpoint:r,useFipsEndpoint:o}),isCustomEndpoint:!!s,useDualstackEndpoint:r}};$p.resolveEndpointsConfig=$K});var XR=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Hp=(H(),z($));Hp.__exportStar(zR(),As);Hp.__exportStar(GR(),As);Hp.__exportStar(HR(),As);Hp.__exportStar(WR(),As)});var YR=m(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.NODE_REGION_CONFIG_FILE_OPTIONS=It.NODE_REGION_CONFIG_OPTIONS=It.REGION_INI_NAME=It.REGION_ENV_NAME=void 0;It.REGION_ENV_NAME="AWS_REGION";It.REGION_INI_NAME="region";It.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[It.REGION_ENV_NAME],configFileSelector:e=>e[It.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};It.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var jC=m(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.isFipsRegion=void 0;var HK=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Kp.isFipsRegion=HK});var QR=m(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.getRealRegion=void 0;var KK=jC(),VK=e=>(0,KK.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;Vp.getRealRegion=VK});var ZR=m(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.resolveRegionConfig=void 0;var JR=QR(),WK=jC(),XK=e=>{let{region:n,useFipsEndpoint:t}=e;if(!n)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof n=="string")return(0,JR.getRealRegion)(n);let r=await n();return(0,JR.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,WK.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Wp.resolveRegionConfig=XK});var tI=m(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var eI=(H(),z($));eI.__exportStar(YR(),Xp);eI.__exportStar(ZR(),Xp)});var rI=m(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0})});var oI=m(sI=>{"use strict";Object.defineProperty(sI,"__esModule",{value:!0})});var iI=m(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.getHostnameFromVariants=void 0;var YK=(e=[],{useFipsEndpoint:n,useDualstackEndpoint:t})=>{var r;return(r=e.find(({tags:s})=>n===s.includes("fips")&&t===s.includes("dualstack")))===null||r===void 0?void 0:r.hostname};Yp.getHostnameFromVariants=YK});var aI=m(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.getResolvedHostname=void 0;var QK=(e,{regionHostname:n,partitionHostname:t})=>n||(t?t.replace("{region}",e):void 0);Qp.getResolvedHostname=QK});var cI=m(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.getResolvedPartition=void 0;var JK=(e,{partitionHash:n})=>{var t;return(t=Object.keys(n||{}).find(r=>n[r].regions.includes(e)))!==null&&t!==void 0?t:"aws"};Jp.getResolvedPartition=JK});var dI=m(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.getResolvedSigningRegion=void 0;var ZK=(e,{signingRegion:n,regionRegex:t,useFipsEndpoint:r})=>{if(n)return n;if(r){let s=t.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=e.match(s);if(o)return o[0].slice(1,-1)}};Zp.getResolvedSigningRegion=ZK});var uI=m(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.getRegionInfo=void 0;var lI=iI(),e6=aI(),t6=cI(),n6=dI(),r6=(e,{useFipsEndpoint:n=!1,useDualstackEndpoint:t=!1,signingService:r,regionHash:s,partitionHash:o})=>{var c,i,u,l,a,g;let C=(0,t6.getResolvedPartition)(e,{partitionHash:o}),w=e in s?e:(i=(c=o[C])===null||c===void 0?void 0:c.endpoint)!==null&&i!==void 0?i:e,R={useFipsEndpoint:n,useDualstackEndpoint:t},O=(0,lI.getHostnameFromVariants)((u=s[w])===null||u===void 0?void 0:u.variants,R),G=(0,lI.getHostnameFromVariants)((l=o[C])===null||l===void 0?void 0:l.variants,R),fe=(0,e6.getResolvedHostname)(w,{regionHostname:O,partitionHostname:G});if(fe===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:w,useFipsEndpoint:n,useDualstackEndpoint:t}}`);let Ce=(0,n6.getResolvedSigningRegion)(fe,{signingRegion:(a=s[w])===null||a===void 0?void 0:a.signingRegion,regionRegex:o[C].regionRegex,useFipsEndpoint:n});return{partition:C,signingService:r,hostname:fe,...Ce&&{signingRegion:Ce},...((g=s[w])===null||g===void 0?void 0:g.signingService)&&{signingService:s[w].signingService}}};ef.getRegionInfo=r6});var mI=m(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var UC=(H(),z($));UC.__exportStar(rI(),ac);UC.__exportStar(oI(),ac);UC.__exportStar(uI(),ac)});var Yt=m(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var zC=(H(),z($));zC.__exportStar(XR(),cc);zC.__exportStar(tI(),cc);zC.__exportStar(mI(),cc)});var pI=m(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.resolveEventStreamSerdeConfig=void 0;var s6=e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)});tf.resolveEventStreamSerdeConfig=s6});var fI=m(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});var o6=(H(),z($));o6.__exportStar(pI(),GC)});var dc=m(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.getContentLengthPlugin=An.contentLengthMiddlewareOptions=An.contentLengthMiddleware=void 0;var i6=$e(),yI="content-length";function gI(e){return n=>async t=>{let r=t.request;if(i6.HttpRequest.isInstance(r)){let{body:s,headers:o}=r;if(s&&Object.keys(o).map(c=>c.toLowerCase()).indexOf(yI)===-1)try{let c=e(s);r.headers={...r.headers,[yI]:String(c)}}catch{}}return n({...t,request:r})}}An.contentLengthMiddleware=gI;An.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var a6=e=>({applyToStack:n=>{n.add(gI(e.bodyLengthChecker),An.contentLengthMiddlewareOptions)}});An.getContentLengthPlugin=a6});var hI=m(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isArnBucketName=yt.isDnsCompatibleBucketName=yt.S3_HOSTNAME_PATTERN=yt.DOT_PATTERN=yt.resolveParamsForS3=void 0;var c6=async e=>{let n=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=n.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),(0,yt.isArnBucketName)(n)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!(0,yt.isDnsCompatibleBucketName)(n)||n.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||n.toLowerCase()!==n||n.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e};yt.resolveParamsForS3=c6;var d6=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,l6=/(\d+\.){3}\d+/,u6=/\.\./;yt.DOT_PATTERN=/\./;yt.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var m6=e=>d6.test(e)&&!l6.test(e)&&!u6.test(e);yt.isDnsCompatibleBucketName=m6;var p6=e=>{let[n,t,r,s,o,c]=e.split(":"),i=n==="arn"&&e.split(":").length>=6,u=[n,t,r,o,c].filter(Boolean).length===5;if(i&&!u)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return n==="arn"&&!!t&&!!r&&!!o&&!!c};yt.isArnBucketName=p6});var _I=m($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});var f6=(H(),z($));f6.__exportStar(hI(),$C)});var CI=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.createConfigValueProvider=void 0;var y6=(e,n,t)=>{let r=async()=>{var s;let o=(s=t[e])!==null&&s!==void 0?s:t[n];return typeof o=="function"?o():o};return e==="endpoint"||n==="endpoint"?async()=>{let s=await r();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:o,hostname:c,port:i,path:u}=s;return`${o}//${c}${i?":"+i:""}${u}`}}return s}:r};nf.createConfigValueProvider=y6});var HC=m(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.resolveParams=jr.getEndpointFromInstructions=void 0;var g6=_I(),h6=CI(),_6=async(e,n,t,r)=>{let s=await(0,jr.resolveParams)(e,n,t);if(typeof t.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return t.endpointProvider(s,r)};jr.getEndpointFromInstructions=_6;var C6=async(e,n,t)=>{var r;let s={},o=((r=n?.getEndpointParameterInstructions)===null||r===void 0?void 0:r.call(n))||{};for(let[c,i]of Object.entries(o))switch(i.type){case"staticContextParams":s[c]=i.value;break;case"contextParams":s[c]=e[i.name];break;case"clientContextParams":case"builtInParams":s[c]=await(0,h6.createConfigValueProvider)(i.name,c,t)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(s,t),String(t.serviceId).toLowerCase()==="s3"&&await(0,g6.resolveParamsForS3)(s),s};jr.resolveParams=C6});var SI=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.parseQueryString=void 0;function S6(e){let n={};if(e=e.replace(/^\?/,""),e)for(let t of e.split("&")){let[r,s=null]=t.split("=");r=decodeURIComponent(r),s&&(s=decodeURIComponent(s)),r in n?Array.isArray(n[r])?n[r].push(s):n[r]=[n[r],s]:n[r]=s}return n}rf.parseQueryString=S6});var Ur=m(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.parseUrl=void 0;var b6=SI(),P6=e=>{if(typeof e=="string")return(0,lc.parseUrl)(new URL(e));let{hostname:n,pathname:t,port:r,protocol:s,search:o}=e,c;return o&&(c=(0,b6.parseQueryString)(o)),{hostname:n,port:r?parseInt(r):void 0,protocol:s,path:t,query:c}};lc.parseUrl=P6});var KC=m(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.toEndpointV1=void 0;var bI=Ur(),E6=e=>typeof e=="object"?"url"in e?(0,bI.parseUrl)(e.url):e:(0,bI.parseUrl)(e);sf.toEndpointV1=E6});var EI=m(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var PI=(H(),z($));PI.__exportStar(HC(),of);PI.__exportStar(KC(),of)});var VC=m(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.endpointMiddleware=void 0;var x6=HC(),w6=({config:e,instructions:n})=>(t,r)=>async s=>{var o,c;let i=await(0,x6.getEndpointFromInstructions)(s.input,{getEndpointParameterInstructions(){return n}},{...e},r);r.endpointV2=i,r.authSchemes=(o=i.properties)===null||o===void 0?void 0:o.authSchemes;let u=(c=r.authSchemes)===null||c===void 0?void 0:c[0];return u&&(r.signing_region=u.signingRegion,r.signing_service=u.signingName),t({...s})};af.endpointMiddleware=w6});var WC=m(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.deserializerMiddleware=void 0;var v6=(e,n)=>(t,r)=>async s=>{let{response:o}=await t(s);try{let c=await n(o,e);return{response:o,output:c}}catch(c){if(Object.defineProperty(c,"$response",{value:o}),!("$metadata"in c)){let i="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";c.message+=` - `+i}throw c}};cf.deserializerMiddleware=v6});var XC=m(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.serializerMiddleware=void 0;var k6=(e,n)=>(t,r)=>async s=>{var o;let c=!((o=r.endpointV2)===null||o===void 0)&&o.url&&e.urlParser?async()=>e.urlParser(r.endpointV2.url):e.endpoint;if(!c)throw new Error("No valid endpoint provider available.");let i=await n(s.input,{...e,endpoint:c});return t({...s,request:i})};df.serializerMiddleware=k6});var xI=m(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.getSerdePlugin=Qt.serializerMiddlewareOption=Qt.deserializerMiddlewareOption=void 0;var A6=WC(),R6=XC();Qt.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};Qt.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function I6(e,n,t){return{applyToStack:r=>{r.add((0,A6.deserializerMiddleware)(e,t),Qt.deserializerMiddlewareOption),r.add((0,R6.serializerMiddleware)(e,n),Qt.serializerMiddlewareOption)}}}Qt.getSerdePlugin=I6});var N=m(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var YC=(H(),z($));YC.__exportStar(WC(),uc);YC.__exportStar(xI(),uc);YC.__exportStar(XC(),uc)});var wI=m(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.getEndpointPlugin=zr.endpointMiddlewareOptions=void 0;var N6=N(),O6=VC();zr.endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:N6.serializerMiddlewareOption.name};var T6=(e,n)=>({applyToStack:t=>{t.addRelativeTo((0,O6.endpointMiddleware)({config:e,instructions:n}),zr.endpointMiddlewareOptions)}});zr.getEndpointPlugin=T6});var vI=m(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.resolveEndpointConfig=void 0;var QC=Tr(),q6=KC(),B6=e=>{var n,t,r;let s=(n=e.tls)!==null&&n!==void 0?n:!0,{endpoint:o}=e,c=o!=null?async()=>(0,q6.toEndpointV1)(await(0,QC.normalizeProvider)(o)()):void 0;return{...e,endpoint:c,tls:s,isCustomEndpoint:!!o,useDualstackEndpoint:(0,QC.normalizeProvider)((t=e.useDualstackEndpoint)!==null&&t!==void 0?t:!1),useFipsEndpoint:(0,QC.normalizeProvider)((r=e.useFipsEndpoint)!==null&&r!==void 0?r:!1)}};lf.resolveEndpointConfig=B6});var AI=m(kI=>{"use strict";Object.defineProperty(kI,"__esModule",{value:!0})});var I=m(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var mc=(H(),z($));mc.__exportStar(EI(),Gr);mc.__exportStar(VC(),Gr);mc.__exportStar(wI(),Gr);mc.__exportStar(vI(),Gr);mc.__exportStar(AI(),Gr)});var uf=m(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.DEFAULT_RETRY_MODE=Rn.DEFAULT_MAX_ATTEMPTS=Rn.RETRY_MODES=void 0;var RI;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(RI=Rn.RETRY_MODES||(Rn.RETRY_MODES={}));Rn.DEFAULT_MAX_ATTEMPTS=3;Rn.DEFAULT_RETRY_MODE=RI.STANDARD});var II=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.NODEJS_TIMEOUT_ERROR_CODES=Nt.TRANSIENT_ERROR_STATUS_CODES=Nt.TRANSIENT_ERROR_CODES=Nt.THROTTLING_ERROR_CODES=Nt.CLOCK_SKEW_ERROR_CODES=void 0;Nt.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];Nt.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];Nt.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];Nt.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];Nt.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var fc=m(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.isServerError=Pt.isTransientError=Pt.isThrottlingError=Pt.isClockSkewError=Pt.isRetryableByTrait=void 0;var pc=II(),D6=e=>e.$retryable!==void 0;Pt.isRetryableByTrait=D6;var M6=e=>pc.CLOCK_SKEW_ERROR_CODES.includes(e.name);Pt.isClockSkewError=M6;var F6=e=>{var n,t;return((n=e.$metadata)===null||n===void 0?void 0:n.httpStatusCode)===429||pc.THROTTLING_ERROR_CODES.includes(e.name)||((t=e.$retryable)===null||t===void 0?void 0:t.throttling)==!0};Pt.isThrottlingError=F6;var L6=e=>{var n;return pc.TRANSIENT_ERROR_CODES.includes(e.name)||pc.NODEJS_TIMEOUT_ERROR_CODES.includes(e?.code||"")||pc.TRANSIENT_ERROR_STATUS_CODES.includes(((n=e.$metadata)===null||n===void 0?void 0:n.httpStatusCode)||0)};Pt.isTransientError=L6;var j6=e=>{var n;if(((n=e.$metadata)===null||n===void 0?void 0:n.httpStatusCode)!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!(0,Pt.isTransientError)(e)}return!1};Pt.isServerError=j6});var ZC=m(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.DefaultRateLimiter=void 0;var U6=fc(),JC=class{constructor(n){var t,r,s,o,c;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(t=n?.beta)!==null&&t!==void 0?t:.7,this.minCapacity=(r=n?.minCapacity)!==null&&r!==void 0?r:1,this.minFillRate=(s=n?.minFillRate)!==null&&s!==void 0?s:.5,this.scaleConstant=(o=n?.scaleConstant)!==null&&o!==void 0?o:.4,this.smooth=(c=n?.smooth)!==null&&c!==void 0?c:.8;let i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(n){if(this.enabled){if(this.refillTokenBucket(),n>this.currentCapacity){let t=(n-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,t))}this.currentCapacity=this.currentCapacity-n}}refillTokenBucket(){let n=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=n;return}let t=(n-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=n}updateClientSendingRate(n){let t;if(this.updateMeasuredRate(),(0,U6.isThrottlingError)(n)){let s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(n){return this.getPrecise(n*this.beta)}cubicSuccess(n){return this.getPrecise(this.scaleConstant*Math.pow(n-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(n){this.refillTokenBucket(),this.fillRate=Math.max(n,this.minFillRate),this.maxCapacity=Math.max(n,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let n=this.getCurrentTimeInSeconds(),t=Math.floor(n*2)/2;if(this.requestCount++,t>this.lastTxRateBucket){let r=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(n){return parseFloat(n.toFixed(8))}};mf.DefaultRateLimiter=JC});var Rs=m(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.REQUEST_HEADER=He.INVOCATION_ID_HEADER=He.NO_RETRY_INCREMENT=He.TIMEOUT_RETRY_COST=He.RETRY_COST=He.INITIAL_RETRY_TOKENS=He.THROTTLING_RETRY_DELAY_BASE=He.MAXIMUM_RETRY_DELAY=He.DEFAULT_RETRY_DELAY_BASE=void 0;He.DEFAULT_RETRY_DELAY_BASE=100;He.MAXIMUM_RETRY_DELAY=20*1e3;He.THROTTLING_RETRY_DELAY_BASE=500;He.INITIAL_RETRY_TOKENS=500;He.RETRY_COST=5;He.TIMEOUT_RETRY_COST=10;He.NO_RETRY_INCREMENT=1;He.INVOCATION_ID_HEADER="amz-sdk-invocation-id";He.REQUEST_HEADER="amz-sdk-request"});var OI=m(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.getDefaultRetryBackoffStrategy=void 0;var NI=Rs(),z6=()=>{let e=NI.DEFAULT_RETRY_DELAY_BASE;return{computeNextBackoffDelay:r=>Math.floor(Math.min(NI.MAXIMUM_RETRY_DELAY,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}};pf.getDefaultRetryBackoffStrategy=z6});var TI=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.createDefaultRetryToken=void 0;var G6=Rs(),$6=({retryDelay:e,retryCount:n,retryCost:t})=>({getRetryCount:()=>n,getRetryDelay:()=>Math.min(G6.MAXIMUM_RETRY_DELAY,e),getRetryCost:()=>t});ff.createDefaultRetryToken=$6});var gf=m(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.StandardRetryStrategy=void 0;var eS=uf(),er=Rs(),H6=OI(),qI=TI(),tS=class{constructor(n){this.maxAttempts=n,this.mode=eS.RETRY_MODES.STANDARD,this.capacity=er.INITIAL_RETRY_TOKENS,this.retryBackoffStrategy=(0,H6.getDefaultRetryBackoffStrategy)(),this.maxAttemptsProvider=typeof n=="function"?n:async()=>n}async acquireInitialRetryToken(n){return(0,qI.createDefaultRetryToken)({retryDelay:er.DEFAULT_RETRY_DELAY_BASE,retryCount:0})}async refreshRetryTokenForRetry(n,t){let r=await this.getMaxAttempts();if(this.shouldRetry(n,t,r)){let s=t.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?er.THROTTLING_RETRY_DELAY_BASE:er.DEFAULT_RETRY_DELAY_BASE);let o=this.retryBackoffStrategy.computeNextBackoffDelay(n.getRetryCount()),c=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o,i=this.getCapacityCost(s);return this.capacity-=i,(0,qI.createDefaultRetryToken)({retryDelay:c,retryCount:n.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(n){var t;this.capacity=Math.max(er.INITIAL_RETRY_TOKENS,this.capacity+((t=n.getRetryCost())!==null&&t!==void 0?t:er.NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${eS.DEFAULT_MAX_ATTEMPTS}`),eS.DEFAULT_MAX_ATTEMPTS}}shouldRetry(n,t,r){return n.getRetryCount()+1=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(n){return n==="TRANSIENT"?er.TIMEOUT_RETRY_COST:er.RETRY_COST}isRetryableError(n){return n==="THROTTLING"||n==="TRANSIENT"}};yf.StandardRetryStrategy=tS});var BI=m(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.AdaptiveRetryStrategy=void 0;var K6=uf(),V6=ZC(),W6=gf(),nS=class{constructor(n,t){this.maxAttemptsProvider=n,this.mode=K6.RETRY_MODES.ADAPTIVE;let{rateLimiter:r}=t??{};this.rateLimiter=r??new V6.DefaultRateLimiter,this.standardRetryStrategy=new W6.StandardRetryStrategy(n)}async acquireInitialRetryToken(n){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(n)}async refreshRetryTokenForRetry(n,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(n,t)}recordSuccess(n){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(n)}};hf.AdaptiveRetryStrategy=nS});var DI=m(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.ConfiguredRetryStrategy=void 0;var X6=Rs(),Y6=gf(),rS=class extends Y6.StandardRetryStrategy{constructor(n,t=X6.DEFAULT_RETRY_DELAY_BASE){super(typeof n=="function"?n:async()=>n),typeof t=="number"?this.computeNextBackoffDelay=()=>t:this.computeNextBackoffDelay=t}async refreshRetryTokenForRetry(n,t){let r=await super.refreshRetryTokenForRetry(n,t);return r.getRetryDelay=()=>this.computeNextBackoffDelay(r.getRetryCount()),r}};_f.ConfiguredRetryStrategy=rS});var FI=m(MI=>{"use strict";Object.defineProperty(MI,"__esModule",{value:!0})});var Ot=m(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});var $r=(H(),z($));$r.__exportStar(BI(),In);$r.__exportStar(DI(),In);$r.__exportStar(ZC(),In);$r.__exportStar(gf(),In);$r.__exportStar(uf(),In);$r.__exportStar(Rs(),In);$r.__exportStar(FI(),In)});function yc(){return Cf>Sf.length-16&&(LI.default.randomFillSync(Sf),Cf=0),Sf.slice(Cf,Cf+=16)}var LI,Sf,Cf,sS=Xe(()=>{LI=us(require("crypto")),Sf=new Uint8Array(256),Cf=Sf.length});var jI,UI=Xe(()=>{jI=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function Q6(e){return typeof e=="string"&&jI.test(e)}var tr,gc=Xe(()=>{UI();tr=Q6});function J6(e,n=0){let t=(et[e[n+0]]+et[e[n+1]]+et[e[n+2]]+et[e[n+3]]+"-"+et[e[n+4]]+et[e[n+5]]+"-"+et[e[n+6]]+et[e[n+7]]+"-"+et[e[n+8]]+et[e[n+9]]+"-"+et[e[n+10]]+et[e[n+11]]+et[e[n+12]]+et[e[n+13]]+et[e[n+14]]+et[e[n+15]]).toLowerCase();if(!tr(t))throw TypeError("Stringified UUID is invalid");return t}var et,nr,hc=Xe(()=>{gc();et=[];for(let e=0;e<256;++e)et.push((e+256).toString(16).substr(1));nr=J6});function Z6(e,n,t){let r=n&&t||0,s=n||new Array(16);e=e||{};let o=e.node||zI,c=e.clockseq!==void 0?e.clockseq:oS;if(o==null||c==null){let C=e.random||(e.rng||yc)();o==null&&(o=zI=[C[0]|1,C[1],C[2],C[3],C[4],C[5]]),c==null&&(c=oS=(C[6]<<8|C[7])&16383)}let i=e.msecs!==void 0?e.msecs:Date.now(),u=e.nsecs!==void 0?e.nsecs:aS+1,l=i-iS+(u-aS)/1e4;if(l<0&&e.clockseq===void 0&&(c=c+1&16383),(l<0||i>iS)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");iS=i,aS=u,oS=c,i+=122192928e5;let a=((i&268435455)*1e4+u)%4294967296;s[r++]=a>>>24&255,s[r++]=a>>>16&255,s[r++]=a>>>8&255,s[r++]=a&255;let g=i/4294967296*1e4&268435455;s[r++]=g>>>8&255,s[r++]=g&255,s[r++]=g>>>24&15|16,s[r++]=g>>>16&255,s[r++]=c>>>8|128,s[r++]=c&255;for(let C=0;C<6;++C)s[r+C]=o[C];return n||nr(s)}var zI,oS,iS,aS,GI,$I=Xe(()=>{sS();hc();iS=0,aS=0;GI=Z6});function eV(e){if(!tr(e))throw TypeError("Invalid UUID");let n,t=new Uint8Array(16);return t[0]=(n=parseInt(e.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=n&255,t[4]=(n=parseInt(e.slice(9,13),16))>>>8,t[5]=n&255,t[6]=(n=parseInt(e.slice(14,18),16))>>>8,t[7]=n&255,t[8]=(n=parseInt(e.slice(19,23),16))>>>8,t[9]=n&255,t[10]=(n=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=n&255,t}var bf,cS=Xe(()=>{gc();bf=eV});function tV(e){e=unescape(encodeURIComponent(e));let n=[];for(let t=0;t{hc();cS();nV="6ba7b810-9dad-11d1-80b4-00c04fd430c8",rV="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function sV(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),HI.default.createHash("md5").update(e).digest()}var HI,KI,VI=Xe(()=>{HI=us(require("crypto"));KI=sV});var oV,WI,XI=Xe(()=>{dS();VI();oV=Pf("v3",48,KI),WI=oV});function iV(e,n,t){e=e||{};let r=e.random||(e.rng||yc)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(let s=0;s<16;++s)n[t+s]=r[s];return n}return nr(r)}var YI,QI=Xe(()=>{sS();hc();YI=iV});function aV(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),JI.default.createHash("sha1").update(e).digest()}var JI,ZI,eN=Xe(()=>{JI=us(require("crypto"));ZI=aV});var cV,tN,nN=Xe(()=>{dS();eN();cV=Pf("v5",80,ZI),tN=cV});var rN,sN=Xe(()=>{rN="00000000-0000-0000-0000-000000000000"});function dV(e){if(!tr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var oN,iN=Xe(()=>{gc();oN=dV});var lS={};wa(lS,{NIL:()=>rN,parse:()=>bf,stringify:()=>nr,v1:()=>GI,v3:()=>WI,v4:()=>YI,v5:()=>tN,validate:()=>tr,version:()=>oN});var uS=Xe(()=>{$I();XI();QI();nN();sN();iN();gc();hc();cS()});var aN=m(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.getDefaultRetryQuota=void 0;var mS=Ot(),lV=(e,n)=>{var t,r,s;let o=e,c=(t=n?.noRetryIncrement)!==null&&t!==void 0?t:mS.NO_RETRY_INCREMENT,i=(r=n?.retryCost)!==null&&r!==void 0?r:mS.RETRY_COST,u=(s=n?.timeoutRetryCost)!==null&&s!==void 0?s:mS.TIMEOUT_RETRY_COST,l=e,a=R=>R.name==="TimeoutError"?u:i,g=R=>a(R)<=l;return Object.freeze({hasRetryTokens:g,retrieveRetryTokens:R=>{if(!g(R))throw new Error("No retry token available");let O=a(R);return l-=O,O},releaseRetryTokens:R=>{l+=R??c,l=Math.min(l,o)}})};Ef.getDefaultRetryQuota=lV});var pS=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.defaultDelayDecider=void 0;var uV=Ot(),mV=(e,n)=>Math.floor(Math.min(uV.MAXIMUM_RETRY_DELAY,Math.random()*2**n*e));xf.defaultDelayDecider=mV});var fS=m(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.defaultRetryDecider=void 0;var wf=fc(),pV=e=>e?(0,wf.isRetryableByTrait)(e)||(0,wf.isClockSkewError)(e)||(0,wf.isThrottlingError)(e)||(0,wf.isTransientError)(e):!1;vf.defaultRetryDecider=pV});var yS=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.asSdkError=void 0;var fV=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);kf.asSdkError=fV});var _S=m(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.StandardRetryStrategy=void 0;var gS=$e(),yV=fc(),Hr=Ot(),gV=(uS(),z(lS)),hV=aN(),_V=pS(),CV=fS(),SV=yS(),hS=class{constructor(n,t){var r,s,o;this.maxAttemptsProvider=n,this.mode=Hr.RETRY_MODES.STANDARD,this.retryDecider=(r=t?.retryDecider)!==null&&r!==void 0?r:CV.defaultRetryDecider,this.delayDecider=(s=t?.delayDecider)!==null&&s!==void 0?s:_V.defaultDelayDecider,this.retryQuota=(o=t?.retryQuota)!==null&&o!==void 0?o:(0,hV.getDefaultRetryQuota)(Hr.INITIAL_RETRY_TOKENS)}shouldRetry(n,t,r){return tsetTimeout(R,w));continue}throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=o,a.$metadata.totalRetryDelay=c,a}}};Af.StandardRetryStrategy=hS;var bV=e=>{if(!gS.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(o=>o.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t).getTime()-Date.now():r*1e3}});var dN=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.AdaptiveRetryStrategy=void 0;var cN=Ot(),PV=_S(),CS=class extends PV.StandardRetryStrategy{constructor(n,t){let{rateLimiter:r,...s}=t??{};super(n,s),this.rateLimiter=r??new cN.DefaultRateLimiter,this.mode=cN.RETRY_MODES.ADAPTIVE}async retry(n,t){return super.retry(n,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Rf.AdaptiveRetryStrategy=CS});var uN=m(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.NODE_RETRY_MODE_CONFIG_OPTIONS=Ue.CONFIG_RETRY_MODE=Ue.ENV_RETRY_MODE=Ue.resolveRetryConfig=Ue.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ue.CONFIG_MAX_ATTEMPTS=Ue.ENV_MAX_ATTEMPTS=void 0;var lN=Tr(),Is=Ot();Ue.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Ue.CONFIG_MAX_ATTEMPTS="max_attempts";Ue.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let n=e[Ue.ENV_MAX_ATTEMPTS];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Environment variable ${Ue.ENV_MAX_ATTEMPTS} mast be a number, got "${n}"`);return t},configFileSelector:e=>{let n=e[Ue.CONFIG_MAX_ATTEMPTS];if(!n)return;let t=parseInt(n);if(Number.isNaN(t))throw new Error(`Shared config file entry ${Ue.CONFIG_MAX_ATTEMPTS} mast be a number, got "${n}"`);return t},default:Is.DEFAULT_MAX_ATTEMPTS};var EV=e=>{var n;let{retryStrategy:t}=e,r=(0,lN.normalizeProvider)((n=e.maxAttempts)!==null&&n!==void 0?n:Is.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await(0,lN.normalizeProvider)(e.retryMode)()===Is.RETRY_MODES.ADAPTIVE?new Is.AdaptiveRetryStrategy(r):new Is.StandardRetryStrategy(r))}};Ue.resolveRetryConfig=EV;Ue.ENV_RETRY_MODE="AWS_RETRY_MODE";Ue.CONFIG_RETRY_MODE="retry_mode";Ue.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ue.ENV_RETRY_MODE],configFileSelector:e=>e[Ue.CONFIG_RETRY_MODE],default:Is.DEFAULT_RETRY_MODE}});var pN=m(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.getOmitRetryHeadersPlugin=Jt.omitRetryHeadersMiddlewareOptions=Jt.omitRetryHeadersMiddleware=void 0;var xV=$e(),mN=Ot(),wV=()=>e=>async n=>{let{request:t}=n;return xV.HttpRequest.isInstance(t)&&(delete t.headers[mN.INVOCATION_ID_HEADER],delete t.headers[mN.REQUEST_HEADER]),e(n)};Jt.omitRetryHeadersMiddleware=wV;Jt.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var vV=e=>({applyToStack:n=>{n.addRelativeTo((0,Jt.omitRetryHeadersMiddleware)(),Jt.omitRetryHeadersMiddlewareOptions)}});Jt.getOmitRetryHeadersPlugin=vV});var yN=m(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.getRetryAfterHint=Et.getRetryPlugin=Et.retryMiddlewareOptions=Et.retryMiddleware=void 0;var bS=$e(),SS=fc(),fN=Ot(),kV=(uS(),z(lS)),AV=yS(),RV=e=>(n,t)=>async r=>{let s=await e.retryStrategy(),o=await e.maxAttempts();if(IV(s)){s=s;let c=await s.acquireInitialRetryToken(t.partition_id),i=new Error,u=0,l=0,{request:a}=r;for(bS.HttpRequest.isInstance(a)&&(a.headers[fN.INVOCATION_ID_HEADER]=(0,kV.v4)());;)try{bS.HttpRequest.isInstance(a)&&(a.headers[fN.REQUEST_HEADER]=`attempt=${u+1}; max=${o}`);let{response:g,output:C}=await n(r);return s.recordSuccess(c),C.$metadata.attempts=u+1,C.$metadata.totalRetryDelay=l,{response:g,output:C}}catch(g){let C=NV(g);i=(0,AV.asSdkError)(g);try{c=await s.refreshRetryTokenForRetry(c,C)}catch{throw i.$metadata||(i.$metadata={}),i.$metadata.attempts=u+1,i.$metadata.totalRetryDelay=l,i}u=c.getRetryCount();let w=c.getRetryDelay();l+=w,await new Promise(R=>setTimeout(R,w))}}else return s=s,s?.mode&&(t.userAgent=[...t.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(n,r)};Et.retryMiddleware=RV;var IV=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",NV=e=>{let n={errorType:OV(e)},t=(0,Et.getRetryAfterHint)(e.$response);return t&&(n.retryAfterHint=t),n},OV=e=>(0,SS.isThrottlingError)(e)?"THROTTLING":(0,SS.isTransientError)(e)?"TRANSIENT":(0,SS.isServerError)(e)?"SERVER_ERROR":"CLIENT_ERROR";Et.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var TV=e=>({applyToStack:n=>{n.add((0,Et.retryMiddleware)(e),Et.retryMiddlewareOptions)}});Et.getRetryPlugin=TV;var qV=e=>{if(!bS.HttpResponse.isInstance(e))return;let n=Object.keys(e.headers).find(o=>o.toLowerCase()==="retry-after");if(!n)return;let t=e.headers[n],r=Number(t);return Number.isNaN(r)?new Date(t):new Date(r*1e3)};Et.getRetryAfterHint=qV});var On=m(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var Kr=(H(),z($));Kr.__exportStar(dN(),Nn);Kr.__exportStar(_S(),Nn);Kr.__exportStar(uN(),Nn);Kr.__exportStar(pS(),Nn);Kr.__exportStar(pN(),Nn);Kr.__exportStar(fS(),Nn);Kr.__exportStar(yN(),Nn)});var gN=m(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.NoOpLogger=void 0;var PS=class{trace(){}debug(){}info(){}warn(){}error(){}};If.NoOpLogger=PS});var CN=m(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.constructStack=void 0;var BV=()=>{let e=[],n=[],t=new Set,r=a=>a.sort((g,C)=>hN[C.step]-hN[g.step]||_N[C.priority||"normal"]-_N[g.priority||"normal"]),s=a=>{let g=!1,C=w=>w.name&&w.name===a?(g=!0,t.delete(a),!1):!0;return e=e.filter(C),n=n.filter(C),g},o=a=>{let g=!1,C=w=>w.middleware===a?(g=!0,w.name&&t.delete(w.name),!1):!0;return e=e.filter(C),n=n.filter(C),g},c=a=>(e.forEach(g=>{a.add(g.middleware,{...g})}),n.forEach(g=>{a.addRelativeTo(g.middleware,{...g})}),a),i=a=>{let g=[];return a.before.forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...i(C))}),g.push(a),a.after.reverse().forEach(C=>{C.before.length===0&&C.after.length===0?g.push(C):g.push(...i(C))}),g},u=(a=!1)=>{let g=[],C=[],w={};return e.forEach(O=>{let G={...O,before:[],after:[]};G.name&&(w[G.name]=G),g.push(G)}),n.forEach(O=>{let G={...O,before:[],after:[]};G.name&&(w[G.name]=G),C.push(G)}),C.forEach(O=>{if(O.toMiddleware){let G=w[O.toMiddleware];if(G===void 0){if(a)return;throw new Error(`${O.toMiddleware} is not found when adding ${O.name||"anonymous"} middleware ${O.relation} ${O.toMiddleware}`)}O.relation==="after"&&G.after.push(O),O.relation==="before"&&G.before.push(O)}}),r(g).map(i).reduce((O,G)=>(O.push(...G),O),[])},l={add:(a,g={})=>{let{name:C,override:w}=g,R={step:"initialize",priority:"normal",middleware:a,...g};if(C){if(t.has(C)){if(!w)throw new Error(`Duplicate middleware name '${C}'`);let O=e.findIndex(fe=>fe.name===C),G=e[O];if(G.step!==R.step||G.priority!==R.priority)throw new Error(`"${C}" middleware with ${G.priority} priority in ${G.step} step cannot be overridden by same-name middleware with ${R.priority} priority in ${R.step} step.`);e.splice(O,1)}t.add(C)}e.push(R)},addRelativeTo:(a,g)=>{let{name:C,override:w}=g,R={middleware:a,...g};if(C){if(t.has(C)){if(!w)throw new Error(`Duplicate middleware name '${C}'`);let O=n.findIndex(fe=>fe.name===C),G=n[O];if(G.toMiddleware!==R.toMiddleware||G.relation!==R.relation)throw new Error(`"${C}" middleware ${G.relation} "${G.toMiddleware}" middleware cannot be overridden by same-name middleware ${R.relation} "${R.toMiddleware}" middleware.`);n.splice(O,1)}t.add(C)}n.push(R)},clone:()=>c((0,Ns.constructStack)()),use:a=>{a.applyToStack(l)},remove:a=>typeof a=="string"?s(a):o(a),removeByTag:a=>{let g=!1,C=w=>{let{tags:R,name:O}=w;return R&&R.includes(a)?(O&&t.delete(O),g=!0,!1):!0};return e=e.filter(C),n=n.filter(C),g},concat:a=>{let g=c((0,Ns.constructStack)());return g.use(a),g},applyToStack:c,identify:()=>u(!0).map(a=>a.name+": "+(a.tags||[]).join(",")),resolve:(a,g)=>{for(let C of u().map(w=>w.middleware).reverse())a=C(a,g);return a}};return l};Ns.constructStack=BV;var hN={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},_N={high:3,normal:2,low:1}});var xS=m(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});var DV=(H(),z($));DV.__exportStar(CN(),ES)});var SN=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.Client=void 0;var MV=xS(),wS=class{constructor(n){this.middlewareStack=(0,MV.constructStack)(),this.config=n}send(n,t,r){let s=typeof t!="function"?t:void 0,o=typeof t=="function"?t:r,c=n.resolveMiddleware(this.middlewareStack,this.config,s);if(o)c(n).then(i=>o(null,i.output),i=>o(i)).catch(()=>{});else return c(n).then(i=>i.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Nf.Client=wS});var bN=m(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.fromBase64=void 0;var FV=qr(),LV=/^[A-Za-z0-9+/]*={0,2}$/,jV=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!LV.exec(e))throw new TypeError("Invalid base64 string.");let n=(0,FV.fromString)(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)};Of.fromBase64=jV});var PN=m(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.toBase64=void 0;var UV=qr(),zV=e=>(0,UV.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");Tf.toBase64=zV});var Os=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var EN=(H(),z($));EN.__exportStar(bN(),qf);EN.__exportStar(PN(),qf)});var kN=m(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.transformFromString=Ts.transformToString=void 0;var wN=Os(),vN=jt(),xN=vS();function GV(e,n="utf-8"){return n==="base64"?(0,wN.toBase64)(e):(0,vN.toUtf8)(e)}Ts.transformToString=GV;function $V(e,n){return n==="base64"?xN.Uint8ArrayBlobAdapter.mutate((0,wN.fromBase64)(e)):xN.Uint8ArrayBlobAdapter.mutate((0,vN.fromUtf8)(e))}Ts.transformFromString=$V});var vS=m(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.Uint8ArrayBlobAdapter=void 0;var AN=kN(),_c=class extends Uint8Array{static fromString(n,t="utf-8"){switch(typeof n){case"string":return(0,AN.transformFromString)(n,t);default:throw new Error(`Unsupported conversion from ${typeof n} to Uint8ArrayBlobAdapter.`)}}static mutate(n){return Object.setPrototypeOf(n,_c.prototype),n}transformToString(n="utf-8"){return(0,AN.transformToString)(this,n)}};Bf.Uint8ArrayBlobAdapter=_c});var RN=m(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.getAwsChunkedEncodingStream=void 0;var HV=require("stream"),KV=(e,n)=>{let{base64Encoder:t,bodyLengthChecker:r,checksumAlgorithmFn:s,checksumLocationName:o,streamHasher:c}=n,i=t!==void 0&&s!==void 0&&o!==void 0&&c!==void 0,u=i?c(s,e):void 0,l=new HV.Readable({read:()=>{}});return e.on("data",a=>{let g=r(a)||0;l.push(`${g.toString(16)}\r -`),l.push(a),l.push(`\r -`)}),e.on("end",async()=>{if(l.push(`0\r -`),i){let a=t(await u);l.push(`${o}:${a}\r -`),l.push(`\r -`)}l.push(null)}),l};Df.getAwsChunkedEncodingStream=KV});var AS=m(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.buildQueryString=void 0;var kS=lC();function VV(e){let n=[];for(let t of Object.keys(e).sort()){let r=e[t];if(t=(0,kS.escapeUri)(t),Array.isArray(r))for(let s=0,o=r.length;s{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.NODEJS_TIMEOUT_ERROR_CODES=void 0;Ff.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var RS=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getTransformedHeaders=void 0;var WV=e=>{let n={};for(let t of Object.keys(e)){let r=e[t];n[t]=Array.isArray(r)?r.join(","):r}return n};Lf.getTransformedHeaders=WV});var NN=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.setConnectionTimeout=void 0;var XV=(e,n,t=0)=>{if(!t)return;let r=setTimeout(()=>{e.destroy(),n(Object.assign(new Error(`Socket timed out without establishing a connection within ${t} ms`),{name:"TimeoutError"}))},t);e.on("socket",s=>{s.connecting?s.on("connect",()=>{clearTimeout(r)}):clearTimeout(r)})};jf.setConnectionTimeout=XV});var ON=m(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.setSocketKeepAlive=void 0;var YV=(e,{keepAlive:n,keepAliveMsecs:t})=>{n===!0&&e.on("socket",r=>{r.setKeepAlive(n,t||0)})};Uf.setSocketKeepAlive=YV});var TN=m(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.setSocketTimeout=void 0;var QV=(e,n,t=0)=>{e.setTimeout(t,()=>{e.destroy(),n(Object.assign(new Error(`Connection timed out after ${t} ms`),{name:"TimeoutError"}))})};zf.setSocketTimeout=QV});var IS=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.writeRequestBody=void 0;var JV=require("stream"),qN=1e3;async function ZV(e,n,t=qN){var r;let s=(r=n.headers)!==null&&r!==void 0?r:{},o=s.Expect||s.expect,c=-1,i=!1;o==="100-continue"&&await Promise.race([new Promise(u=>{c=Number(setTimeout(u,Math.max(qN,t)))}),new Promise(u=>{e.on("continue",()=>{clearTimeout(c),u()}),e.on("error",()=>{i=!0,clearTimeout(c),u()})})]),i||e8(e,n.body)}Gf.writeRequestBody=ZV;function e8(e,n){n instanceof JV.Readable?n.pipe(e):n?e.end(Buffer.from(n)):e.end()}});var MN=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.NodeHttpHandler=qs.DEFAULT_REQUEST_TIMEOUT=void 0;var t8=$e(),n8=AS(),BN=require("http"),DN=require("https"),r8=IN(),s8=RS(),o8=NN(),i8=ON(),a8=TN(),c8=IS();qs.DEFAULT_REQUEST_TIMEOUT=0;var NS=class{constructor(n){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(s=>{t(this.resolveDefaultConfig(s))}).catch(r):t(this.resolveDefaultConfig(n))})}resolveDefaultConfig(n){let{requestTimeout:t,connectionTimeout:r,socketTimeout:s,httpAgent:o,httpsAgent:c}=n||{},i=!0,u=50;return{connectionTimeout:r,requestTimeout:t??s,httpAgent:o||new BN.Agent({keepAlive:i,maxSockets:u}),httpsAgent:c||new DN.Agent({keepAlive:i,maxSockets:u})}}destroy(){var n,t,r,s;(t=(n=this.config)===null||n===void 0?void 0:n.httpAgent)===null||t===void 0||t.destroy(),(s=(r=this.config)===null||r===void 0?void 0:r.httpsAgent)===null||s===void 0||s.destroy()}async handle(n,{abortSignal:t}={}){return this.config||(this.config=await this.configProvider),new Promise((r,s)=>{var o,c;let i,u=async Ce=>{await i,r(Ce)},l=async Ce=>{await i,s(Ce)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t?.aborted){let Ce=new Error("Request aborted");Ce.name="AbortError",l(Ce);return}let a=n.protocol==="https:",g=(0,n8.buildQueryString)(n.query||{}),C;if(n.username!=null||n.password!=null){let Ce=(o=n.username)!==null&&o!==void 0?o:"",Ft=(c=n.password)!==null&&c!==void 0?c:"";C=`${Ce}:${Ft}`}let w=n.path;g&&(w+=`?${g}`),n.fragment&&(w+=`#${n.fragment}`);let R={headers:n.headers,host:n.hostname,method:n.method,path:w,port:n.port,agent:a?this.config.httpsAgent:this.config.httpAgent,auth:C},G=(a?DN.request:BN.request)(R,Ce=>{let Ft=new t8.HttpResponse({statusCode:Ce.statusCode||-1,reason:Ce.statusMessage,headers:(0,s8.getTransformedHeaders)(Ce.headers),body:Ce});u({response:Ft})});G.on("error",Ce=>{r8.NODEJS_TIMEOUT_ERROR_CODES.includes(Ce.code)?l(Object.assign(Ce,{name:"TimeoutError"})):l(Ce)}),(0,o8.setConnectionTimeout)(G,l,this.config.connectionTimeout),(0,a8.setSocketTimeout)(G,l,this.config.requestTimeout),t&&(t.onabort=()=>{G.abort();let Ce=new Error("Request aborted");Ce.name="AbortError",l(Ce)});let fe=R.agent;typeof fe=="object"&&"keepAlive"in fe&&(0,i8.setSocketKeepAlive)(G,{keepAlive:fe.keepAlive,keepAliveMsecs:fe.keepAliveMsecs}),i=(0,c8.writeRequestBody)(G,n,this.config.requestTimeout).catch(s)})}};qs.NodeHttpHandler=NS});var FN=m($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.NodeHttp2ConnectionPool=void 0;var OS=class{constructor(n){this.sessions=[],this.sessions=n??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(n){this.sessions.push(n)}contains(n){return this.sessions.includes(n)}remove(n){this.sessions=this.sessions.filter(t=>t!==n)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(n){for(let t of this.sessions)t===n&&(t.destroyed||t.destroy())}};$f.NodeHttp2ConnectionPool=OS});var LN=m(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.NodeHttp2ConnectionManager=void 0;var d8=(H(),z($)),l8=d8.__importDefault(require("http2")),u8=FN(),TS=class{constructor(n){if(this.sessionCache=new Map,this.config=n,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(n,t){let r=this.getUrlString(n),s=this.sessionCache.get(r);if(s){let u=s.poll();if(u&&!this.config.disableConcurrency)return u}let o=l8.default.connect(r);this.config.maxConcurrency&&o.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+n.destination.toString())}),o.unref();let c=()=>{o.destroy(),this.deleteSession(r,o)};o.on("goaway",c),o.on("error",c),o.on("frameError",c),o.on("close",()=>this.deleteSession(r,o)),t.requestTimeout&&o.setTimeout(t.requestTimeout,c);let i=this.sessionCache.get(r)||new u8.NodeHttp2ConnectionPool;return i.offerLast(o),this.sessionCache.set(r,i),o}deleteSession(n,t){let r=this.sessionCache.get(n);r&&r.contains(t)&&(r.remove(t),this.sessionCache.set(n,r))}release(n,t){var r;let s=this.getUrlString(n);(r=this.sessionCache.get(s))===null||r===void 0||r.offerLast(t)}destroy(){for(let[n,t]of this.sessionCache){for(let r of t)r.destroyed||r.destroy(),t.remove(r);this.sessionCache.delete(n)}}setMaxConcurrentStreams(n){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=n}setDisableConcurrentStreams(n){this.config.disableConcurrency=n}getUrlString(n){return n.destination.toString()}};Hf.NodeHttp2ConnectionManager=TS});var UN=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.NodeHttp2Handler=void 0;var m8=$e(),p8=AS(),jN=require("http2"),f8=RS(),y8=LN(),g8=IS(),qS=class{constructor(n){this.metadata={handlerProtocol:"h2"},this.connectionManager=new y8.NodeHttp2ConnectionManager({}),this.configProvider=new Promise((t,r)=>{typeof n=="function"?n().then(s=>{t(s||{})}).catch(r):t(n||{})})}destroy(){this.connectionManager.destroy()}async handle(n,{abortSignal:t}={}){this.config||(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams&&this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams));let{requestTimeout:r,disableConcurrentStreams:s}=this.config;return new Promise((o,c)=>{var i,u,l;let a=!1,g,C=async ze=>{await g,o(ze)},w=async ze=>{await g,c(ze)};if(t?.aborted){a=!0;let ze=new Error("Request aborted");ze.name="AbortError",w(ze);return}let{hostname:R,method:O,port:G,protocol:fe,query:Ce}=n,Ft="";if(n.username!=null||n.password!=null){let ze=(i=n.username)!==null&&i!==void 0?i:"",xa=(u=n.password)!==null&&u!==void 0?u:"";Ft=`${ze}:${xa}@`}let ds=`${fe}//${Ft}${R}${G?`:${G}`:""}`,A_={destination:new URL(ds)},Rr=this.connectionManager.lease(A_,{requestTimeout:(l=this.config)===null||l===void 0?void 0:l.sessionTimeout,disableConcurrentStreams:s||!1}),ls=ze=>{s&&this.destroySession(Rr),a=!0,w(ze)},Px=(0,p8.buildQueryString)(Ce||{}),R_=n.path;Px&&(R_+=`?${Px}`),n.fragment&&(R_+=`#${n.fragment}`);let Lt=Rr.request({...n.headers,[jN.constants.HTTP2_HEADER_PATH]:R_,[jN.constants.HTTP2_HEADER_METHOD]:O});Rr.ref(),Lt.on("response",ze=>{let xa=new m8.HttpResponse({statusCode:ze[":status"]||-1,headers:(0,f8.getTransformedHeaders)(ze),body:Lt});a=!0,C({response:xa}),s&&(Rr.close(),this.connectionManager.deleteSession(ds,Rr))}),r&&Lt.setTimeout(r,()=>{Lt.close();let ze=new Error(`Stream timed out because of no activity for ${r} ms`);ze.name="TimeoutError",ls(ze)}),t&&(t.onabort=()=>{Lt.close();let ze=new Error("Request aborted");ze.name="AbortError",ls(ze)}),Lt.on("frameError",(ze,xa,Qz)=>{ls(new Error(`Frame type id ${ze} in stream id ${Qz} has failed with code ${xa}.`))}),Lt.on("error",ls),Lt.on("aborted",()=>{ls(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Lt.rstCode}.`))}),Lt.on("close",()=>{Rr.unref(),s&&Rr.destroy(),a||ls(new Error("Unexpected error: http2 request did not get a response"))}),g=(0,g8.writeRequestBody)(Lt,n,r)})}destroySession(n){n.destroyed||n.destroy()}};Kf.NodeHttp2Handler=qS});var zN=m(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.Collector=void 0;var h8=require("stream"),BS=class extends h8.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(n,t,r){this.bufferedBytes.push(n),r()}};Vf.Collector=BS});var GN=m(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.streamCollector=void 0;var _8=zN(),C8=e=>new Promise((n,t)=>{let r=new _8.Collector;e.pipe(r),e.on("error",s=>{r.end(),t(s)}),r.on("error",t),r.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));n(s)})});Wf.streamCollector=C8});var Bs=m(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var DS=(H(),z($));DS.__exportStar(MN(),Cc);DS.__exportStar(UN(),Cc);DS.__exportStar(GN(),Cc)});var HN=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.sdkStreamMixin=void 0;var S8=Bs(),b8=qr(),MS=require("stream"),P8=require("util"),$N="The stream has already been transformed.",E8=e=>{var n,t;if(!(e instanceof MS.Readable)){let o=((t=(n=e?.__proto__)===null||n===void 0?void 0:n.constructor)===null||t===void 0?void 0:t.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let r=!1,s=async()=>{if(r)throw new Error($N);return r=!0,await(0,S8.streamCollector)(e)};return Object.assign(e,{transformToByteArray:s,transformToString:async o=>{let c=await s();return o===void 0||Buffer.isEncoding(o)?(0,b8.fromArrayBuffer)(c.buffer,c.byteOffset,c.byteLength).toString(o):new P8.TextDecoder(o).decode(c)},transformToWebStream:()=>{if(r)throw new Error($N);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof MS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return r=!0,MS.Readable.toWeb(e)}})};Xf.sdkStreamMixin=E8});var LS=m(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var FS=(H(),z($));FS.__exportStar(vS(),Sc);FS.__exportStar(RN(),Sc);FS.__exportStar(HN(),Sc)});var KN=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.collectBody=void 0;var jS=LS(),x8=async(e=new Uint8Array,n)=>{if(e instanceof Uint8Array)return jS.Uint8ArrayBlobAdapter.mutate(e);if(!e)return jS.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let t=n.streamCollector(e);return jS.Uint8ArrayBlobAdapter.mutate(await t)};Yf.collectBody=x8});var VN=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.Command=void 0;var w8=xS(),US=class{constructor(){this.middlewareStack=(0,w8.constructStack)()}};Qf.Command=US});var WN=m(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.SENSITIVE_STRING=void 0;Jf.SENSITIVE_STRING="***SensitiveInformation***"});var XN=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.createAggregatedClient=void 0;var v8=(e,n)=>{for(let t of Object.keys(e)){let r=e[t],s=async function(c,i,u){let l=new r(c);if(typeof i=="function")this.send(l,i);else if(typeof u=="function"){if(typeof i!="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},u)}else return this.send(l,i)},o=(t[0].toLowerCase()+t.slice(1)).replace(/Command$/,"");n.prototype[o]=s}};Zf.createAggregatedClient=v8});var GS=m(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.logger=K.strictParseByte=K.strictParseShort=K.strictParseInt32=K.strictParseInt=K.strictParseLong=K.limitedParseFloat32=K.limitedParseFloat=K.handleFloat=K.limitedParseDouble=K.strictParseFloat32=K.strictParseFloat=K.strictParseDouble=K.expectUnion=K.expectString=K.expectObject=K.expectNonNull=K.expectByte=K.expectShort=K.expectInt32=K.expectInt=K.expectLong=K.expectFloat32=K.expectNumber=K.expectBoolean=K.parseBoolean=void 0;var k8=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};K.parseBoolean=k8;var A8=e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&K.logger.warn(ey(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let n=e.toLowerCase();if((n==="false"||n==="true")&&K.logger.warn(ey(`Expected boolean, got ${typeof e}: ${e}`)),n==="false")return!1;if(n==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}};K.expectBoolean=A8;var R8=e=>{if(e!=null){if(typeof e=="string"){let n=parseFloat(e);if(!Number.isNaN(n))return String(n)!==String(e)&&K.logger.warn(ey(`Expected number but observed string: ${e}`)),n}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}};K.expectNumber=R8;var I8=Math.ceil(2**127*(2-2**-23)),N8=e=>{let n=(0,K.expectNumber)(e);if(n!==void 0&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0&&Math.abs(n)>I8)throw new TypeError(`Expected 32-bit float, got ${e}`);return n};K.expectFloat32=N8;var O8=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}};K.expectLong=O8;K.expectInt=K.expectLong;var T8=e=>zS(e,32);K.expectInt32=T8;var q8=e=>zS(e,16);K.expectShort=q8;var B8=e=>zS(e,8);K.expectByte=B8;var zS=(e,n)=>{let t=(0,K.expectLong)(e);if(t!==void 0&&D8(t,n)!==t)throw new TypeError(`Expected ${n}-bit integer, got ${e}`);return t},D8=(e,n)=>{switch(n){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},M8=(e,n)=>{if(e==null)throw n?new TypeError(`Expected a non-null value for ${n}`):new TypeError("Expected a non-null value");return e};K.expectNonNull=M8;var F8=e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let n=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${n}: ${e}`)};K.expectObject=F8;var L8=e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return K.logger.warn(ey(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}};K.expectString=L8;var j8=e=>{if(e==null)return;let n=(0,K.expectObject)(e),t=Object.entries(n).filter(([,r])=>r!=null).map(([r])=>r);if(t.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(t.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${t} were not null.`);return n};K.expectUnion=j8;var U8=e=>typeof e=="string"?(0,K.expectNumber)(Ds(e)):(0,K.expectNumber)(e);K.strictParseDouble=U8;K.strictParseFloat=K.strictParseDouble;var z8=e=>typeof e=="string"?(0,K.expectFloat32)(Ds(e)):(0,K.expectFloat32)(e);K.strictParseFloat32=z8;var G8=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Ds=e=>{let n=e.match(G8);if(n===null||n[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},$8=e=>typeof e=="string"?YN(e):(0,K.expectNumber)(e);K.limitedParseDouble=$8;K.handleFloat=K.limitedParseDouble;K.limitedParseFloat=K.limitedParseDouble;var H8=e=>typeof e=="string"?YN(e):(0,K.expectFloat32)(e);K.limitedParseFloat32=H8;var YN=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},K8=e=>typeof e=="string"?(0,K.expectLong)(Ds(e)):(0,K.expectLong)(e);K.strictParseLong=K8;K.strictParseInt=K.strictParseLong;var V8=e=>typeof e=="string"?(0,K.expectInt32)(Ds(e)):(0,K.expectInt32)(e);K.strictParseInt32=V8;var W8=e=>typeof e=="string"?(0,K.expectShort)(Ds(e)):(0,K.expectShort)(e);K.strictParseShort=W8;var X8=e=>typeof e=="string"?(0,K.expectByte)(Ds(e)):(0,K.expectByte)(e);K.strictParseByte=X8;var ey=e=>String(new TypeError(e).stack||e).split(` -`).slice(0,5).filter(n=>!n.includes("stackTraceWarning")).join(` -`);K.logger={warn:console.warn}});var QN=m(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.parseEpochTimestamp=Tt.parseRfc7231DateTime=Tt.parseRfc3339DateTimeWithOffset=Tt.parseRfc3339DateTime=Tt.dateToUtcString=void 0;var rr=GS(),Y8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],HS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Q8(e){let n=e.getUTCFullYear(),t=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),o=e.getUTCHours(),c=e.getUTCMinutes(),i=e.getUTCSeconds(),u=s<10?`0${s}`:`${s}`,l=o<10?`0${o}`:`${o}`,a=c<10?`0${c}`:`${c}`,g=i<10?`0${i}`:`${i}`;return`${Y8[r]}, ${u} ${HS[t]} ${n} ${l}:${a}:${g} GMT`}Tt.dateToUtcString=Q8;var J8=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Z8=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=J8.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,s,o,c,i,u,l]=n,a=(0,rr.strictParseShort)(Ms(r)),g=Zt(s,"month",1,12),C=Zt(o,"day",1,31);return bc(a,g,C,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})};Tt.parseRfc3339DateTime=Z8;var e4=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),t4=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let n=e4.exec(e);if(!n)throw new TypeError("Invalid RFC-3339 date-time value");let[t,r,s,o,c,i,u,l,a]=n,g=(0,rr.strictParseShort)(Ms(r)),C=Zt(s,"month",1,12),w=Zt(o,"day",1,31),R=bc(g,C,w,{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l});return a.toUpperCase()!="Z"&&R.setTime(R.getTime()-f4(a)),R};Tt.parseRfc3339DateTimeWithOffset=t4;var n4=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),r4=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),s4=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),o4=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let n=n4.exec(e);if(n){let[t,r,s,o,c,i,u,l]=n;return bc((0,rr.strictParseShort)(Ms(o)),$S(s),Zt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l})}if(n=r4.exec(e),n){let[t,r,s,o,c,i,u,l]=n;return d4(bc(a4(o),$S(s),Zt(r,"day",1,31),{hours:c,minutes:i,seconds:u,fractionalMilliseconds:l}))}if(n=s4.exec(e),n){let[t,r,s,o,c,i,u,l]=n;return bc((0,rr.strictParseShort)(Ms(l)),$S(r),Zt(s.trimLeft(),"day",1,31),{hours:o,minutes:c,seconds:i,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")};Tt.parseRfc7231DateTime=o4;var i4=e=>{if(e==null)return;let n;if(typeof e=="number")n=e;else if(typeof e=="string")n=(0,rr.strictParseDouble)(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(n)||n===1/0||n===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(n*1e3))};Tt.parseEpochTimestamp=i4;var bc=(e,n,t,r)=>{let s=n-1;return u4(e,s,t),new Date(Date.UTC(e,s,t,Zt(r.hours,"hour",0,23),Zt(r.minutes,"minute",0,59),Zt(r.seconds,"seconds",0,60),p4(r.fractionalMilliseconds)))},a4=e=>{let n=new Date().getUTCFullYear(),t=Math.floor(n/100)*100+(0,rr.strictParseShort)(Ms(e));return te.getTime()-new Date().getTime()>c4?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,$S=e=>{let n=HS.indexOf(e);if(n<0)throw new TypeError(`Invalid month: ${e}`);return n+1},l4=[31,28,31,30,31,30,31,31,30,31,30,31],u4=(e,n,t)=>{let r=l4[n];if(n===1&&m4(e)&&(r=29),t>r)throw new TypeError(`Invalid day for ${HS[n]} in ${e}: ${t}`)},m4=e=>e%4===0&&(e%100!==0||e%400===0),Zt=(e,n,t,r)=>{let s=(0,rr.strictParseByte)(Ms(e));if(sr)throw new TypeError(`${n} must be between ${t} and ${r}, inclusive`);return s},p4=e=>e==null?0:(0,rr.strictParseFloat32)("0."+e)*1e3,f4=e=>{let n=e[0],t=1;if(n=="+")t=1;else if(n=="-")t=-1;else throw new TypeError(`Offset direction, ${n}, must be "+" or "-"`);let r=Number(e.substring(1,3)),s=Number(e.substring(4,6));return t*(r*60+s)*60*1e3},Ms=e=>{let n=0;for(;n{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.decorateServiceException=Fs.ServiceException=void 0;var Pc=class extends Error{constructor(n){super(n.message),Object.setPrototypeOf(this,Pc.prototype),this.name=n.name,this.$fault=n.$fault,this.$metadata=n.$metadata}};Fs.ServiceException=Pc;var y4=(e,n={})=>{Object.entries(n).filter(([,r])=>r!==void 0).forEach(([r,s])=>{(e[r]==null||e[r]==="")&&(e[r]=s)});let t=e.message||e.Message||"UnknownError";return e.message=t,delete e.Message,e};Fs.decorateServiceException=y4});var JN=m(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.withBaseException=Vr.throwDefaultError=void 0;var g4=KS(),h4=({output:e,parsedBody:n,exceptionCtor:t,errorCode:r})=>{let s=C4(e),o=s.httpStatusCode?s.httpStatusCode+"":void 0,c=new t({name:n?.code||n?.Code||r||o||"UnknownError",$fault:"client",$metadata:s});throw(0,g4.decorateServiceException)(c,n)};Vr.throwDefaultError=h4;var _4=e=>({output:n,parsedBody:t,errorCode:r})=>{(0,Vr.throwDefaultError)({output:n,parsedBody:t,exceptionCtor:e,errorCode:r})};Vr.withBaseException=_4;var C4=e=>{var n,t;return{httpStatusCode:e.statusCode,requestId:(t=(n=e.headers["x-amzn-requestid"])!==null&&n!==void 0?n:e.headers["x-amzn-request-id"])!==null&&t!==void 0?t:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}});var ZN=m(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.loadConfigsForDefaultMode=void 0;var S4=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};ty.loadConfigsForDefaultMode=S4});var tO=m(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.emitWarningIfUnsupportedVersion=void 0;var eO=!1,b4=e=>{e&&!eO&&parseInt(e.substring(1,e.indexOf(".")))<14&&(eO=!0)};ny.emitWarningIfUnsupportedVersion=b4});var VS=m(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.extendedEncodeURIComponent=void 0;function P4(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()})}ry.extendedEncodeURIComponent=P4});var nO=m(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.getArrayIfSingleItem=void 0;var E4=e=>Array.isArray(e)?e:[e];sy.getArrayIfSingleItem=E4});var rO=m(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.getValueFromTextNode=void 0;var x4=e=>{let n="#text";for(let t in e)e.hasOwnProperty(t)&&e[t][n]!==void 0?e[t]=e[t][n]:typeof e[t]=="object"&&e[t]!==null&&(e[t]=(0,Ec.getValueFromTextNode)(e[t]));return e};Ec.getValueFromTextNode=x4});var sO=m(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.LazyJsonString=en.StringWrapper=void 0;var w4=function(){let e=Object.getPrototypeOf(this).constructor,n=Function.bind.apply(String,[null,...arguments]),t=new n;return Object.setPrototypeOf(t,e.prototype),t};en.StringWrapper=w4;en.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:en.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(en.StringWrapper,String);var Wr=class extends en.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(n){return n instanceof Wr?n:n instanceof String||typeof n=="string"?new Wr(n):new Wr(JSON.stringify(n))}};en.LazyJsonString=Wr});var aO=m(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.take=sr.convertMap=sr.map=void 0;function oO(e,n,t){let r,s,o;if(typeof n>"u"&&typeof t>"u")r={},o=e;else{if(r=e,typeof n=="function")return s=n,o=t,A4(r,s,o);o=n}for(let c of Object.keys(o)){if(!Array.isArray(o[c])){r[c]=o[c];continue}iO(r,null,o,c)}return r}sr.map=oO;var v4=e=>{let n={};for(let[t,r]of Object.entries(e||{}))n[t]=[,r];return n};sr.convertMap=v4;var k4=(e,n)=>{let t={};for(let r in n)iO(t,e,n,r);return t};sr.take=k4;var A4=(e,n,t)=>oO(e,Object.entries(t).reduce((r,[s,o])=>(Array.isArray(o)?r[s]=o:typeof o=="function"?r[s]=[n,o()]:r[s]=[n,o],r),{})),iO=(e,n,t,r)=>{if(n!==null){let c=t[r];typeof c=="function"&&(c=[,c]);let[i=R4,u=I4,l=r]=c;(typeof i=="function"&&i(n[l])||typeof i!="function"&&i)&&(e[r]=u(n[l]));return}let[s,o]=t[r];if(typeof o=="function"){let c,i=s===void 0&&(c=o())!=null,u=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;i?e[r]=c:u&&(e[r]=o())}else{let c=s===void 0&&o!=null,i=typeof s=="function"&&!!s(o)||typeof s!="function"&&!!s;(c||i)&&(e[r]=o)}},R4=e=>e!=null,I4=e=>e});var dO=m(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.resolvedPath=void 0;var cO=VS(),N4=(e,n,t,r,s,o)=>{if(n!=null&&n[t]!==void 0){let c=r();if(c.length<=0)throw new Error("Empty value provided for input HTTP label: "+t+".");e=e.replace(s,o?c.split("/").map(i=>(0,cO.extendedEncodeURIComponent)(i)).join("/"):(0,cO.extendedEncodeURIComponent)(c))}else throw new Error("No value provided for input HTTP label: "+t+".");return e};oy.resolvedPath=N4});var lO=m(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.serializeFloat=void 0;var O4=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};iy.serializeFloat=O4});var uO=m(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc._json=void 0;var T4=e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(n=>n!=null);if(typeof e=="object"){let n={};for(let t of Object.keys(e))e[t]!=null&&(n[t]=(0,xc._json)(e[t]));return n}return e};xc._json=T4});var mO=m(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.splitEvery=void 0;function q4(e,n,t){if(t<=0||!Number.isInteger(t))throw new Error("Invalid number of delimiters ("+t+") for splitEvery.");let r=e.split(n);if(t===1)return r;let s=[],o="";for(let c=0;c{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});var Ge=(H(),z($));Ge.__exportStar(gN(),Fe);Ge.__exportStar(SN(),Fe);Ge.__exportStar(KN(),Fe);Ge.__exportStar(VN(),Fe);Ge.__exportStar(WN(),Fe);Ge.__exportStar(XN(),Fe);Ge.__exportStar(QN(),Fe);Ge.__exportStar(JN(),Fe);Ge.__exportStar(ZN(),Fe);Ge.__exportStar(tO(),Fe);Ge.__exportStar(KS(),Fe);Ge.__exportStar(VS(),Fe);Ge.__exportStar(nO(),Fe);Ge.__exportStar(rO(),Fe);Ge.__exportStar(sO(),Fe);Ge.__exportStar(aO(),Fe);Ge.__exportStar(GS(),Fe);Ge.__exportStar(dO(),Fe);Ge.__exportStar(lO(),Fe);Ge.__exportStar(uO(),Fe);Ge.__exportStar(mO(),Fe)});var pO=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.resolveClientEndpointParameters=void 0;var B4=e=>({...e,useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"});cy.resolveClientEndpointParameters=B4});var fO=m((Nve,D4)=>{D4.exports={name:"@aws-sdk/client-s3",description:"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",version:"3.363.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3",test:"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha1-browser":"3.0.0","@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.363.0","@aws-sdk/credential-provider-node":"3.363.0","@aws-sdk/hash-blob-browser":"3.357.0","@aws-sdk/hash-stream-node":"3.357.0","@aws-sdk/md5-js":"3.357.0","@aws-sdk/middleware-bucket-endpoint":"3.363.0","@aws-sdk/middleware-expect-continue":"3.363.0","@aws-sdk/middleware-flexible-checksums":"3.363.0","@aws-sdk/middleware-host-header":"3.363.0","@aws-sdk/middleware-location-constraint":"3.363.0","@aws-sdk/middleware-logger":"3.363.0","@aws-sdk/middleware-recursion-detection":"3.363.0","@aws-sdk/middleware-sdk-s3":"3.363.0","@aws-sdk/middleware-signing":"3.363.0","@aws-sdk/middleware-ssec":"3.363.0","@aws-sdk/middleware-user-agent":"3.363.0","@aws-sdk/signature-v4-multi-region":"3.363.0","@aws-sdk/types":"3.357.0","@aws-sdk/util-endpoints":"3.357.0","@aws-sdk/util-user-agent-browser":"3.363.0","@aws-sdk/util-user-agent-node":"3.363.0","@aws-sdk/xml-builder":"3.310.0","@smithy/config-resolver":"^1.0.1","@smithy/eventstream-serde-browser":"^1.0.1","@smithy/eventstream-serde-config-resolver":"^1.0.1","@smithy/eventstream-serde-node":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.0.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-stream":"^1.0.1","@smithy/util-utf8":"^1.0.1","@smithy/util-waiter":"^1.0.1","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-s3"}}});var yO=m(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.resolveStsAuthConfig=void 0;var M4=kn(),F4=(e,{stsClientCtor:n})=>(0,M4.resolveAwsAuthConfig)({...e,stsClientCtor:n});dy.resolveStsAuthConfig=F4});var gO=m(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.resolveClientEndpointParameters=void 0;var L4=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"});ly.resolveClientEndpointParameters=L4});var hO=m((qve,j4)=>{j4.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.363.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.363.0","@aws-sdk/middleware-host-header":"3.363.0","@aws-sdk/middleware-logger":"3.363.0","@aws-sdk/middleware-recursion-detection":"3.363.0","@aws-sdk/middleware-sdk-sts":"3.363.0","@aws-sdk/middleware-signing":"3.363.0","@aws-sdk/middleware-user-agent":"3.363.0","@aws-sdk/types":"3.357.0","@aws-sdk/util-endpoints":"3.357.0","@aws-sdk/util-user-agent-browser":"3.363.0","@aws-sdk/util-user-agent-node":"3.363.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.1","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.1","@smithy/protocol-http":"^1.1.0","@smithy/smithy-client":"^1.0.2","@smithy/types":"^1.1.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.1","@smithy/util-utf8":"^1.0.1","fast-xml-parser":"4.2.5",tslib:"^2.5.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var uy=m(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.STSServiceException=Ls.__ServiceException=void 0;var _O=v();Object.defineProperty(Ls,"__ServiceException",{enumerable:!0,get:function(){return _O.ServiceException}});var wc=class extends _O.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,wc.prototype)}};Ls.STSServiceException=wc});var ir=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.GetSessionTokenResponseFilterSensitiveLog=pe.GetFederationTokenResponseFilterSensitiveLog=pe.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=pe.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=pe.AssumeRoleWithSAMLResponseFilterSensitiveLog=pe.AssumeRoleWithSAMLRequestFilterSensitiveLog=pe.AssumeRoleResponseFilterSensitiveLog=pe.CredentialsFilterSensitiveLog=pe.InvalidAuthorizationMessageException=pe.IDPCommunicationErrorException=pe.InvalidIdentityTokenException=pe.IDPRejectedClaimException=pe.RegionDisabledException=pe.PackedPolicyTooLargeException=pe.MalformedPolicyDocumentException=pe.ExpiredTokenException=void 0;var WS=v(),or=uy(),vc=class extends or.STSServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,vc.prototype)}};pe.ExpiredTokenException=vc;var kc=class extends or.STSServiceException{constructor(n){super({name:"MalformedPolicyDocumentException",$fault:"client",...n}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,kc.prototype)}};pe.MalformedPolicyDocumentException=kc;var Ac=class extends or.STSServiceException{constructor(n){super({name:"PackedPolicyTooLargeException",$fault:"client",...n}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Ac.prototype)}};pe.PackedPolicyTooLargeException=Ac;var Rc=class extends or.STSServiceException{constructor(n){super({name:"RegionDisabledException",$fault:"client",...n}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Rc.prototype)}};pe.RegionDisabledException=Rc;var Ic=class extends or.STSServiceException{constructor(n){super({name:"IDPRejectedClaimException",$fault:"client",...n}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,Ic.prototype)}};pe.IDPRejectedClaimException=Ic;var Nc=class extends or.STSServiceException{constructor(n){super({name:"InvalidIdentityTokenException",$fault:"client",...n}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,Nc.prototype)}};pe.InvalidIdentityTokenException=Nc;var Oc=class extends or.STSServiceException{constructor(n){super({name:"IDPCommunicationErrorException",$fault:"client",...n}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,Oc.prototype)}};pe.IDPCommunicationErrorException=Oc;var Tc=class extends or.STSServiceException{constructor(n){super({name:"InvalidAuthorizationMessageException",$fault:"client",...n}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Tc.prototype)}};pe.InvalidAuthorizationMessageException=Tc;var U4=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:WS.SENSITIVE_STRING}});pe.CredentialsFilterSensitiveLog=U4;var z4=e=>({...e,...e.Credentials&&{Credentials:(0,pe.CredentialsFilterSensitiveLog)(e.Credentials)}});pe.AssumeRoleResponseFilterSensitiveLog=z4;var G4=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:WS.SENSITIVE_STRING}});pe.AssumeRoleWithSAMLRequestFilterSensitiveLog=G4;var $4=e=>({...e,...e.Credentials&&{Credentials:(0,pe.CredentialsFilterSensitiveLog)(e.Credentials)}});pe.AssumeRoleWithSAMLResponseFilterSensitiveLog=$4;var H4=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:WS.SENSITIVE_STRING}});pe.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=H4;var K4=e=>({...e,...e.Credentials&&{Credentials:(0,pe.CredentialsFilterSensitiveLog)(e.Credentials)}});pe.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=K4;var V4=e=>({...e,...e.Credentials&&{Credentials:(0,pe.CredentialsFilterSensitiveLog)(e.Credentials)}});pe.GetFederationTokenResponseFilterSensitiveLog=V4;var W4=e=>({...e,...e.Credentials&&{Credentials:(0,pe.CredentialsFilterSensitiveLog)(e.Credentials)}});pe.GetSessionTokenResponseFilterSensitiveLog=W4});var my=m(Tn=>{"use strict";var CO=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",X4=CO+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",SO="["+CO+"]["+X4+"]*",Y4=new RegExp("^"+SO+"$"),Q4=function(e,n){let t=[],r=n.exec(e);for(;r;){let s=[];s.startIndex=n.lastIndex-r[0].length;let o=r.length;for(let c=0;c"u")};Tn.isExist=function(e){return typeof e<"u"};Tn.isEmptyObject=function(e){return Object.keys(e).length===0};Tn.merge=function(e,n,t){if(n){let r=Object.keys(n),s=r.length;for(let o=0;o{"use strict";var XS=my(),Z4={allowBooleanAttributes:!1,unpairedTags:[]};wO.validate=function(e,n){n=Object.assign({},Z4,n);let t=[],r=!1,s=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let o=0;o"&&e[o]!==" "&&e[o]!==" "&&e[o]!==` -`&&e[o]!=="\r";o++)u+=e[o];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),o--),!aW(u)){let g;return u.trim().length===0?g="Invalid space after '<'.":g="Tag '"+u+"' is an invalid name.",Ke("InvalidTag",g,gt(e,o))}let l=nW(e,o);if(l===!1)return Ke("InvalidAttr","Attributes for '"+u+"' have open quote.",gt(e,o));let a=l.value;if(o=l.index,a[a.length-1]==="/"){let g=o-a.length;a=a.substring(0,a.length-1);let C=xO(a,n);if(C===!0)r=!0;else return Ke(C.err.code,C.err.msg,gt(e,g+C.err.line))}else if(i)if(l.tagClosed){if(a.trim().length>0)return Ke("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",gt(e,c));{let g=t.pop();if(u!==g.tagName){let C=gt(e,g.tagStartPos);return Ke("InvalidTag","Expected closing tag '"+g.tagName+"' (opened in line "+C.line+", col "+C.col+") instead of closing tag '"+u+"'.",gt(e,c))}t.length==0&&(s=!0)}}else return Ke("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",gt(e,o));else{let g=xO(a,n);if(g!==!0)return Ke(g.err.code,g.err.msg,gt(e,o-a.length+g.err.line));if(s===!0)return Ke("InvalidXml","Multiple possible root nodes found.",gt(e,o));n.unpairedTags.indexOf(u)!==-1||t.push({tagName:u,tagStartPos:c}),r=!0}for(o++;o0)return Ke("InvalidXml","Invalid '"+JSON.stringify(t.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ke("InvalidXml","Start tag expected.",1);return!0};function bO(e){return e===" "||e===" "||e===` -`||e==="\r"}function PO(e,n){let t=n;for(;n5&&r==="xml")return Ke("InvalidXml","XML declaration allowed only at the start of the document.",gt(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function EO(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n"){n+=2;break}}return n}var eW='"',tW="'";function nW(e,n){let t="",r="",s=!1;for(;n"&&r===""){s=!0;break}t+=e[n]}return r!==""?!1:{value:t,index:n,tagClosed:s}}var rW=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function xO(e,n){let t=XS.getAllMatches(e,rW),r={};for(let s=0;s{var vO={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},cW=function(e){return Object.assign({},vO,e)};QS.buildOptions=cW;QS.defaultOptions=vO});var RO=m((jve,AO)=>{"use strict";var JS=class{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,[":@"]:n[":@"]}):this.child.push({[n.tagname]:n.child})}};AO.exports=JS});var NO=m((Uve,IO)=>{var dW=my();function lW(e,n){let t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let r=1,s=!1,o=!1,c="";for(;n"){if(o?e[n-1]==="-"&&e[n-2]==="-"&&(o=!1,r--):r--,r===0)break}else e[n]==="["?s=!0:c+=e[n];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function uW(e,n){let t="";for(;n{var _W=/^[-+]?0x[a-fA-F0-9]+$/,CW=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var SW={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function bW(e,n={}){if(n=Object.assign({},SW,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&_W.test(t))return Number.parseInt(t,16);{let r=CW.exec(t);if(r){let s=r[1],o=r[2],c=PW(r[3]),i=r[4]||r[6];if(!n.leadingZeros&&o.length>0&&s&&t[2]!==".")return e;if(!n.leadingZeros&&o.length>0&&!s&&t[1]!==".")return e;{let u=Number(t),l=""+u;return l.search(/[eE]/)!==-1||i?n.eNotation?u:e:t.indexOf(".")!==-1?l==="0"&&c===""||l===c||s&&l==="-"+c?u:e:o?c===l||s+c===l?u:e:t===l||t===s+l?u:e}}else return e}}function PW(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}OO.exports=bW});var BO=m(($ve,qO)=>{"use strict";var nb=my(),Bc=RO(),EW=NO(),xW=TO(),Gve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,nb.nameRegexp),ZS=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=wW,this.parseXml=IW,this.parseTextData=vW,this.resolveNameSpace=kW,this.buildAttributesMap=RW,this.isItStopNode=qW,this.replaceEntitiesValue=OW,this.readStopNodeData=DW,this.saveTextToParentTag=TW,this.addChild=NW}};function wW(e){let n=Object.keys(e);for(let t=0;t0)){c||(e=this.replaceEntitiesValue(e));let i=this.options.tagValueProcessor(n,e,t,s,o);return i==null?e:typeof i!=typeof e||i!==e?i:this.options.trimValues?tb(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?tb(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function kW(e){if(this.options.removeNSPrefix){let n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}var AW=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function RW(e,n,t){if(!this.options.ignoreAttributes&&typeof e=="string"){let r=nb.getAllMatches(e,AW),s=r.length,o={};for(let c=0;c",o,"Closing Tag is not closed."),u=e.substring(o+2,i).trim();if(this.options.removeNSPrefix){let g=u.indexOf(":");g!==-1&&(u=u.substr(g+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&(r=this.saveTextToParentTag(r,t,s));let l=s.substring(s.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let a=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(a=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):a=s.lastIndexOf("."),s=s.substring(0,a),t=this.tagsNodeStack.pop(),r="",o=i}else if(e[o+1]==="?"){let i=eb(e,o,!1,"?>");if(!i)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,t,s),!(this.options.ignoreDeclaration&&i.tagName==="?xml"||this.options.ignorePiTags)){let u=new Bc(i.tagName);u.add(this.options.textNodeName,""),i.tagName!==i.tagExp&&i.attrExpPresent&&(u[":@"]=this.buildAttributesMap(i.tagExp,s,i.tagName)),this.addChild(t,u,s)}o=i.closeIndex+1}else if(e.substr(o+1,3)==="!--"){let i=Xr(e,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let u=e.substring(o+4,i-2);r=this.saveTextToParentTag(r,t,s),t.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}o=i}else if(e.substr(o+1,2)==="!D"){let i=EW(e,o);this.docTypeEntities=i.entities,o=i.i}else if(e.substr(o+1,2)==="!["){let i=Xr(e,"]]>",o,"CDATA is not closed.")-2,u=e.substring(o+9,i);if(r=this.saveTextToParentTag(r,t,s),this.options.cdataPropName)t.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}]);else{let l=this.parseTextData(u,t.tagname,s,!0,!1,!0);l==null&&(l=""),t.add(this.options.textNodeName,l)}o=i+2}else{let i=eb(e,o,this.options.removeNSPrefix),u=i.tagName,l=i.tagExp,a=i.attrExpPresent,g=i.closeIndex;this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&r&&t.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,t,s,!1));let C=t;if(C&&this.options.unpairedTags.indexOf(C.tagname)!==-1&&(t=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),u!==n.tagname&&(s+=s?"."+u:u),this.isItStopNode(this.options.stopNodes,s,u)){let w="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)o=i.closeIndex;else if(this.options.unpairedTags.indexOf(u)!==-1)o=i.closeIndex;else{let O=this.readStopNodeData(e,u,g+1);if(!O)throw new Error(`Unexpected end of ${u}`);o=O.i,w=O.tagContent}let R=new Bc(u);u!==l&&a&&(R[":@"]=this.buildAttributesMap(l,s,u)),w&&(w=this.parseTextData(w,u,s,!0,a,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),R.add(this.options.textNodeName,w),this.addChild(t,R,s)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){u[u.length-1]==="/"?(u=u.substr(0,u.length-1),l=u):l=l.substr(0,l.length-1),this.options.transformTagName&&(u=this.options.transformTagName(u));let w=new Bc(u);u!==l&&a&&(w[":@"]=this.buildAttributesMap(l,s,u)),this.addChild(t,w,s),s=s.substr(0,s.lastIndexOf("."))}else{let w=new Bc(u);this.tagsNodeStack.push(t),u!==l&&a&&(w[":@"]=this.buildAttributesMap(l,s,u)),this.addChild(t,w,s),t=w}r="",o=g}}else r+=e[o];return n.child};function NW(e,n,t){let r=this.options.updateTag(n.tagname,t,n[":@"]);r===!1||(typeof r=="string"&&(n.tagname=r),e.addChild(n))}var OW=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){let t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){let t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){let t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function TW(e,n,t,r){return e&&(r===void 0&&(r=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function qW(e,n,t){let r="*."+t;for(let s in e){let o=e[s];if(r===o||n===o)return!0}return!1}function BW(e,n,t=">"){let r,s="";for(let o=n;o",t,`${n} is not closed`);if(e.substring(t+2,o).trim()===n&&(s--,s===0))return{tagContent:e.substring(r,t),i:o};t=o}else if(e[t+1]==="?")t=Xr(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=Xr(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=Xr(e,"]]>",t,"StopNode is not closed.")-2;else{let o=eb(e,t,">");o&&((o&&o.tagName)===n&&o.tagExp[o.tagExp.length-1]!=="/"&&s++,t=o.closeIndex)}}function tb(e,n,t){if(n&&typeof e=="string"){let r=e.trim();return r==="true"?!0:r==="false"?!1:xW(e,t)}else return nb.isExist(e)?e:""}qO.exports=ZS});var FO=m(MO=>{"use strict";function MW(e,n){return DO(e,n)}function DO(e,n,t){let r,s={};for(let o=0;o0&&(s[n.textNodeName]=r):r!==void 0&&(s[n.textNodeName]=r),s}function FW(e){let n=Object.keys(e);for(let t=0;t{var{buildOptions:UW}=kO(),zW=BO(),{prettify:GW}=FO(),$W=YS(),rb=class{constructor(n){this.externalEntities={},this.options=UW(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let o=$W.validate(n,t);if(o!==!0)throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}let r=new zW(this.options);r.addExternalEntities(this.externalEntities);let s=r.parseXml(n);return this.options.preserveOrder||s===void 0?s:GW(s,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};LO.exports=rb});var HO=m((Vve,$O)=>{var HW=` -`;function KW(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=HW),zO(e,n,"",t)}function zO(e,n,t,r){let s="",o=!1;for(let c=0;c`,o=!1;continue}else if(u===n.commentPropName){s+=r+``,o=!0;continue}else if(u[0]==="?"){let R=UO(i[":@"],n),O=u==="?xml"?"":r,G=i[u][0][n.textNodeName];G=G.length!==0?" "+G:"",s+=O+`<${u}${G}${R}?>`,o=!0;continue}let a=r;a!==""&&(a+=n.indentBy);let g=UO(i[":@"],n),C=r+`<${u}${g}`,w=zO(i[u],n,l,a);n.unpairedTags.indexOf(u)!==-1?n.suppressUnpairedNode?s+=C+">":s+=C+"/>":(!w||w.length===0)&&n.suppressEmptyNode?s+=C+"/>":w&&w.endsWith(">")?s+=C+`>${w}${r}`:(s+=C+">",w&&r!==""&&(w.includes("/>")||w.includes("`),o=!0}return s}function VW(e){let n=Object.keys(e);for(let t=0;t0&&n.processEntities)for(let t=0;t{"use strict";var XW=HO(),YW={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ar(e){this.options=Object.assign({},YW,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ZW),this.processTextOrObjNode=QW,this.options.format?(this.indentate=JW,this.tagEndChar=`> -`,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ar.prototype.build=function(e){return this.options.preserveOrder?XW(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};ar.prototype.j2x=function(e,n){let t="",r="";for(let s in e)if(!(typeof e[s]>"u"))if(e[s]===null)s[0]==="?"?r+=this.indentate(n)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)r+=this.buildTextValNode(e[s],s,"",n);else if(typeof e[s]!="object"){let o=this.isAttribute(s);if(o)t+=this.buildAttrPairStr(o,""+e[s]);else if(s===this.options.textNodeName){let c=this.options.tagValueProcessor(s,""+e[s]);r+=this.replaceEntitiesValue(c)}else r+=this.buildTextValNode(e[s],s,"",n)}else if(Array.isArray(e[s])){let o=e[s].length,c="";for(let i=0;i"u"||(u===null?s[0]==="?"?r+=this.indentate(n)+"<"+s+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+s+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?c+=this.j2x(u,n+1).val:c+=this.processTextOrObjNode(u,s,n):c+=this.buildTextValNode(u,s,"",n))}this.options.oneListGroup&&(c=this.buildObjectNode(c,s,"",n)),r+=c}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){let o=Object.keys(e[s]),c=o.length;for(let i=0;i"+e+s:this.options.commentPropName!==!1&&n===this.options.commentPropName&&o.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+n+t+o+this.tagEndChar+e+this.indentate(r)+s}};ar.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(r)+``+this.newLine;if(n[0]==="?")return this.indentate(r)+"<"+n+t+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(n,e);return s=this.replaceEntitiesValue(s),s===""?this.indentate(r)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+t+">"+s+"0&&this.options.processEntities)for(let n=0;n{"use strict";var e5=YS(),t5=jO(),n5=VO();WO.exports={XMLParser:t5,XMLValidator:e5,XMLBuilder:n5}});var Bn=m(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.de_GetSessionTokenCommand=ge.de_GetFederationTokenCommand=ge.de_GetCallerIdentityCommand=ge.de_GetAccessKeyInfoCommand=ge.de_DecodeAuthorizationMessageCommand=ge.de_AssumeRoleWithWebIdentityCommand=ge.de_AssumeRoleWithSAMLCommand=ge.de_AssumeRoleCommand=ge.se_GetSessionTokenCommand=ge.se_GetFederationTokenCommand=ge.se_GetCallerIdentityCommand=ge.se_GetAccessKeyInfoCommand=ge.se_DecodeAuthorizationMessageCommand=ge.se_AssumeRoleWithWebIdentityCommand=ge.se_AssumeRoleWithSAMLCommand=ge.se_AssumeRoleCommand=void 0;var r5=$e(),ne=v(),s5=sb(),cr=ir(),o5=uy(),i5=async(e,n)=>{let t=ur,r;return r=pr({...O5(e,n),Action:"AssumeRole",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_AssumeRoleCommand=i5;var a5=async(e,n)=>{let t=ur,r;return r=pr({...T5(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_AssumeRoleWithSAMLCommand=a5;var c5=async(e,n)=>{let t=ur,r;return r=pr({...q5(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_AssumeRoleWithWebIdentityCommand=c5;var d5=async(e,n)=>{let t=ur,r;return r=pr({...B5(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_DecodeAuthorizationMessageCommand=d5;var l5=async(e,n)=>{let t=ur,r;return r=pr({...D5(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_GetAccessKeyInfoCommand=l5;var u5=async(e,n)=>{let t=ur,r;return r=pr({...M5(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_GetCallerIdentityCommand=u5;var m5=async(e,n)=>{let t=ur,r;return r=pr({...F5(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_GetFederationTokenCommand=m5;var p5=async(e,n)=>{let t=ur,r;return r=pr({...L5(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),lr(n,t,"/",void 0,r)};ge.se_GetSessionTokenCommand=p5;var f5=async(e,n)=>{if(e.statusCode>=300)return y5(e,n);let t=await qn(e.body,n),r={};return r=G5(t.AssumeRoleResult,n),{$metadata:ot(e),...r}};ge.de_AssumeRoleCommand=f5;var y5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await ob(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await py(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await fy(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(t,n);default:let s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})}},g5=async(e,n)=>{if(e.statusCode>=300)return h5(e,n);let t=await qn(e.body,n),r={};return r=$5(t.AssumeRoleWithSAMLResult,n),{$metadata:ot(e),...r}};ge.de_AssumeRoleWithSAMLCommand=g5;var h5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await ob(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await XO(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await YO(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await py(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await fy(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(t,n);default:let s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})}},_5=async(e,n)=>{if(e.statusCode>=300)return C5(e,n);let t=await qn(e.body,n),r={};return r=H5(t.AssumeRoleWithWebIdentityResult,n),{$metadata:ot(e),...r}};ge.de_AssumeRoleWithWebIdentityCommand=_5;var C5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await ob(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await I5(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await XO(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await YO(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await py(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await fy(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(t,n);default:let s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})}},S5=async(e,n)=>{if(e.statusCode>=300)return b5(e,n);let t=await qn(e.body,n),r={};return r=K5(t.DecodeAuthorizationMessageResult,n),{$metadata:ot(e),...r}};ge.de_DecodeAuthorizationMessageCommand=S5;var b5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await N5(t,n);default:let s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})}},P5=async(e,n)=>{if(e.statusCode>=300)return E5(e,n);let t=await qn(e.body,n),r={};return r=X5(t.GetAccessKeyInfoResult,n),{$metadata:ot(e),...r}};ge.de_GetAccessKeyInfoCommand=P5;var E5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body),s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})},x5=async(e,n)=>{if(e.statusCode>=300)return w5(e,n);let t=await qn(e.body,n),r={};return r=Y5(t.GetCallerIdentityResult,n),{$metadata:ot(e),...r}};ge.de_GetCallerIdentityCommand=x5;var w5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body),s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})},v5=async(e,n)=>{if(e.statusCode>=300)return k5(e,n);let t=await qn(e.body,n),r={};return r=Q5(t.GetFederationTokenResult,n),{$metadata:ot(e),...r}};ge.de_GetFederationTokenCommand=v5;var k5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await py(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await fy(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(t,n);default:let s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})}},A5=async(e,n)=>{if(e.statusCode>=300)return R5(e,n);let t=await qn(e.body,n),r={};return r=J5(t.GetSessionTokenResult,n),{$metadata:ot(e),...r}};ge.de_GetSessionTokenCommand=A5;var R5=async(e,n)=>{let t={...e,body:await mr(e.body,n)},r=fr(e,t.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Dc(t,n);default:let s=t.body;return dr({output:e,parsedBody:s.Error,errorCode:r})}},ob=async(e,n)=>{let t=e.body,r=V5(t.Error,n),s=new cr.ExpiredTokenException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},I5=async(e,n)=>{let t=e.body,r=Z5(t.Error,n),s=new cr.IDPCommunicationErrorException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},XO=async(e,n)=>{let t=e.body,r=eX(t.Error,n),s=new cr.IDPRejectedClaimException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},N5=async(e,n)=>{let t=e.body,r=tX(t.Error,n),s=new cr.InvalidAuthorizationMessageException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},YO=async(e,n)=>{let t=e.body,r=nX(t.Error,n),s=new cr.InvalidIdentityTokenException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},py=async(e,n)=>{let t=e.body,r=rX(t.Error,n),s=new cr.MalformedPolicyDocumentException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},fy=async(e,n)=>{let t=e.body,r=sX(t.Error,n),s=new cr.PackedPolicyTooLargeException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},Dc=async(e,n)=>{let t=e.body,r=oX(t.Error,n),s=new cr.RegionDisabledException({$metadata:ot(e),...r});return(0,ne.decorateServiceException)(s,t)},O5=(e,n)=>{let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let r=yy(e.PolicyArns,n);e.PolicyArns?.length===0&&(t.PolicyArns=[]),Object.entries(r).forEach(([s,o])=>{let c=`PolicyArns.${s}`;t[c]=o})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let r=QO(e.Tags,n);e.Tags?.length===0&&(t.Tags=[]),Object.entries(r).forEach(([s,o])=>{let c=`Tags.${s}`;t[c]=o})}if(e.TransitiveTagKeys!=null){let r=z5(e.TransitiveTagKeys,n);e.TransitiveTagKeys?.length===0&&(t.TransitiveTagKeys=[]),Object.entries(r).forEach(([s,o])=>{let c=`TransitiveTagKeys.${s}`;t[c]=o})}return e.ExternalId!=null&&(t.ExternalId=e.ExternalId),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),e.SourceIdentity!=null&&(t.SourceIdentity=e.SourceIdentity),t},T5=(e,n)=>{let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.PrincipalArn!=null&&(t.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!=null&&(t.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!=null){let r=yy(e.PolicyArns,n);e.PolicyArns?.length===0&&(t.PolicyArns=[]),Object.entries(r).forEach(([s,o])=>{let c=`PolicyArns.${s}`;t[c]=o})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},q5=(e,n)=>{let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!=null&&(t.WebIdentityToken=e.WebIdentityToken),e.ProviderId!=null&&(t.ProviderId=e.ProviderId),e.PolicyArns!=null){let r=yy(e.PolicyArns,n);e.PolicyArns?.length===0&&(t.PolicyArns=[]),Object.entries(r).forEach(([s,o])=>{let c=`PolicyArns.${s}`;t[c]=o})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},B5=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},D5=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},M5=(e,n)=>({}),F5=(e,n)=>{let t={};if(e.Name!=null&&(t.Name=e.Name),e.Policy!=null&&(t.Policy=e.Policy),e.PolicyArns!=null){let r=yy(e.PolicyArns,n);e.PolicyArns?.length===0&&(t.PolicyArns=[]),Object.entries(r).forEach(([s,o])=>{let c=`PolicyArns.${s}`;t[c]=o})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let r=QO(e.Tags,n);e.Tags?.length===0&&(t.Tags=[]),Object.entries(r).forEach(([s,o])=>{let c=`Tags.${s}`;t[c]=o})}return t},L5=(e,n)=>{let t={};return e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.SerialNumber!=null&&(t.SerialNumber=e.SerialNumber),e.TokenCode!=null&&(t.TokenCode=e.TokenCode),t},yy=(e,n)=>{let t={},r=1;for(let s of e){if(s===null)continue;let o=j5(s,n);Object.entries(o).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},j5=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},U5=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},z5=(e,n)=>{let t={},r=1;for(let s of e)s!==null&&(t[`member.${r}`]=s,r++);return t},QO=(e,n)=>{let t={},r=1;for(let s of e){if(s===null)continue;let o=U5(s,n);Object.entries(o).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},ib=(e,n)=>{let t={};return e.AssumedRoleId!==void 0&&(t.AssumedRoleId=(0,ne.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(t.Arn=(0,ne.expectString)(e.Arn)),t},G5=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Mc(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=ib(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ne.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,ne.expectString)(e.SourceIdentity)),t},$5=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Mc(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=ib(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ne.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(t.Subject=(0,ne.expectString)(e.Subject)),e.SubjectType!==void 0&&(t.SubjectType=(0,ne.expectString)(e.SubjectType)),e.Issuer!==void 0&&(t.Issuer=(0,ne.expectString)(e.Issuer)),e.Audience!==void 0&&(t.Audience=(0,ne.expectString)(e.Audience)),e.NameQualifier!==void 0&&(t.NameQualifier=(0,ne.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,ne.expectString)(e.SourceIdentity)),t},H5=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Mc(e.Credentials,n)),e.SubjectFromWebIdentityToken!==void 0&&(t.SubjectFromWebIdentityToken=(0,ne.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=ib(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ne.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(t.Provider=(0,ne.expectString)(e.Provider)),e.Audience!==void 0&&(t.Audience=(0,ne.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,ne.expectString)(e.SourceIdentity)),t},Mc=(e,n)=>{let t={};return e.AccessKeyId!==void 0&&(t.AccessKeyId=(0,ne.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(t.SecretAccessKey=(0,ne.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(t.SessionToken=(0,ne.expectString)(e.SessionToken)),e.Expiration!==void 0&&(t.Expiration=(0,ne.expectNonNull)((0,ne.parseRfc3339DateTimeWithOffset)(e.Expiration))),t},K5=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,ne.expectString)(e.DecodedMessage)),t},V5=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},W5=(e,n)=>{let t={};return e.FederatedUserId!==void 0&&(t.FederatedUserId=(0,ne.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(t.Arn=(0,ne.expectString)(e.Arn)),t},X5=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,ne.expectString)(e.Account)),t},Y5=(e,n)=>{let t={};return e.UserId!==void 0&&(t.UserId=(0,ne.expectString)(e.UserId)),e.Account!==void 0&&(t.Account=(0,ne.expectString)(e.Account)),e.Arn!==void 0&&(t.Arn=(0,ne.expectString)(e.Arn)),t},Q5=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Mc(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=W5(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ne.strictParseInt32)(e.PackedPolicySize)),t},J5=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Mc(e.Credentials,n)),t},Z5=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},eX=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},tX=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},nX=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},rX=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},sX=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},oX=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ne.expectString)(e.message)),t},ot=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),iX=(e,n)=>(0,ne.collectBody)(e,n).then(t=>n.utf8Encoder(t)),dr=(0,ne.withBaseException)(o5.STSServiceException),lr=async(e,n,t,r,s)=>{let{hostname:o,protocol:c="https",port:i,path:u}=await e.endpoint(),l={protocol:c,hostname:o,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+t:u+t,headers:n};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new r5.HttpRequest(l)},ur={"content-type":"application/x-www-form-urlencoded"},qn=(e,n)=>iX(e,n).then(t=>{if(t.length){let r=new s5.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` -`)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let s=r.parse(t),o="#text",c=Object.keys(s)[0],i=s[c];return i[o]&&(i[c]=i[o],delete i[o]),(0,ne.getValueFromTextNode)(i)}return{}}),mr=async(e,n)=>{let t=await qn(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},pr=e=>Object.entries(e).map(([n,t])=>(0,ne.extendedEncodeURIComponent)(n)+"="+(0,ne.extendedEncodeURIComponent)(t)).join("&"),fr=(e,n)=>{if(n.Error?.Code!==void 0)return n.Error.Code;if(e.statusCode==404)return"NotFound"}});var gy=m(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.AssumeRoleCommand=js.$Command=void 0;var aX=kn(),cX=I(),dX=N(),ZO=v();Object.defineProperty(js,"$Command",{enumerable:!0,get:function(){return ZO.Command}});var lX=ir(),JO=Bn(),Fc=class extends ZO.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dX.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cX.getEndpointPlugin)(t,Fc.getEndpointParameterInstructions())),this.middlewareStack.use((0,aX.getAwsAuthPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:lX.AssumeRoleResponseFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JO.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,JO.de_AssumeRoleCommand)(n,t)}};js.AssumeRoleCommand=Fc});var hy=m(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.AssumeRoleWithWebIdentityCommand=Us.$Command=void 0;var uX=I(),mX=N(),nT=v();Object.defineProperty(Us,"$Command",{enumerable:!0,get:function(){return nT.Command}});var eT=ir(),tT=Bn(),Lc=class extends nT.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,mX.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,uX.getEndpointPlugin)(t,Lc.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:eT.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:eT.AssumeRoleWithWebIdentityResponseFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,tT.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,tT.de_AssumeRoleWithWebIdentityCommand)(n,t)}};Us.AssumeRoleWithWebIdentityCommand=Lc});var ab=m(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.decorateDefaultCredentialProvider=tn.getDefaultRoleAssumerWithWebIdentity=tn.getDefaultRoleAssumer=void 0;var pX=gy(),fX=hy(),rT="us-east-1",sT=e=>typeof e!="function"?e===void 0?rT:e:async()=>{try{return await e()}catch{return rT}},yX=(e,n)=>{let t,r;return async(s,o)=>{if(r=s,!t){let{logger:i,region:u,requestHandler:l}=e;t=new n({logger:i,credentialDefaultProvider:()=>async()=>r,region:sT(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:c}=await t.send(new pX.AssumeRoleCommand(o));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}};tn.getDefaultRoleAssumer=yX;var gX=(e,n)=>{let t;return async r=>{if(!t){let{logger:o,region:c,requestHandler:i}=e;t=new n({logger:o,region:sT(c||e.region),...i?{requestHandler:i}:{}})}let{Credentials:s}=await t.send(new fX.AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};tn.getDefaultRoleAssumerWithWebIdentity=gX;var hX=e=>n=>e({roleAssumer:(0,tn.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,tn.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});tn.decorateDefaultCredentialProvider=hX});var oT=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromEnv=it.ENV_EXPIRATION=it.ENV_SESSION=it.ENV_SECRET=it.ENV_KEY=void 0;var _X=Re();it.ENV_KEY="AWS_ACCESS_KEY_ID";it.ENV_SECRET="AWS_SECRET_ACCESS_KEY";it.ENV_SESSION="AWS_SESSION_TOKEN";it.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var CX=()=>async()=>{let e=process.env[it.ENV_KEY],n=process.env[it.ENV_SECRET],t=process.env[it.ENV_SESSION],r=process.env[it.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new _X.CredentialsProviderError("Unable to find environment variable credentials.")};it.fromEnv=CX});var db=m(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});var SX=(H(),z($));SX.__exportStar(oT(),cb)});var jc=m(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.getHomeDir=void 0;var bX=require("os"),PX=require("path"),EX=()=>{let{HOME:e,USERPROFILE:n,HOMEPATH:t,HOMEDRIVE:r=`C:${PX.sep}`}=process.env;return e||n||(t?`${r}${t}`:(0,bX.homedir)())};_y.getHomeDir=EX});var iT=m(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.getProfileName=nn.DEFAULT_PROFILE=nn.ENV_PROFILE=void 0;nn.ENV_PROFILE="AWS_PROFILE";nn.DEFAULT_PROFILE="default";var xX=e=>e.profile||process.env[nn.ENV_PROFILE]||nn.DEFAULT_PROFILE;nn.getProfileName=xX});var lb=m(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.getSSOTokenFilepath=void 0;var wX=require("crypto"),vX=require("path"),kX=jc(),AX=e=>{let t=(0,wX.createHash)("sha1").update(e).digest("hex");return(0,vX.join)((0,kX.getHomeDir)(),".aws","sso","cache",`${t}.json`)};Cy.getSSOTokenFilepath=AX});var aT=m(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.getSSOTokenFromFile=void 0;var RX=require("fs"),IX=lb(),{readFile:NX}=RX.promises,OX=async e=>{let n=(0,IX.getSSOTokenFilepath)(e),t=await NX(n,"utf8");return JSON.parse(t)};Sy.getSSOTokenFromFile=OX});var ub=m(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getConfigFilepath=Yr.ENV_CONFIG_PATH=void 0;var TX=require("path"),qX=jc();Yr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var BX=()=>process.env[Yr.ENV_CONFIG_PATH]||(0,TX.join)((0,qX.getHomeDir)(),".aws","config");Yr.getConfigFilepath=BX});var cT=m(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.getCredentialsFilepath=Qr.ENV_CREDENTIALS_PATH=void 0;var DX=require("path"),MX=jc();Qr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var FX=()=>process.env[Qr.ENV_CREDENTIALS_PATH]||(0,DX.join)((0,MX.getHomeDir)(),".aws","credentials");Qr.getCredentialsFilepath=FX});var lT=m(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.getProfileData=void 0;var dT=/^profile\s(["'])?([^\1]+)\1$/,LX=e=>Object.entries(e).filter(([n])=>dT.test(n)).reduce((n,[t,r])=>({...n,[dT.exec(t)[2]]:r}),{...e.default&&{default:e.default}});by.getProfileData=LX});var mb=m(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.parseIni=void 0;var jX=["__proto__","profile __proto__"],UX=e=>{let n={},t;for(let r of e.split(/\r?\n/))if(r=r.split(/(^|\s)[;#]/)[0].trim(),r[0]==="["&&r[r.length-1]==="]"){if(t=r.substring(1,r.length-1),jX.includes(t))throw new Error(`Found invalid profile name "${t}"`)}else if(t){let o=r.indexOf("="),c=0,i=r.length-1;if(o!==-1&&o!==c&&o!==i){let[l,a]=[r.substring(0,o).trim(),r.substring(o+1).trim()];n[t]=n[t]||{},n[t][l]=a}}return n};Py.parseIni=UX});var fb=m(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.slurpFile=void 0;var zX=require("fs"),{readFile:GX}=zX.promises,pb={},$X=(e,n)=>((!pb[e]||n?.ignoreCache)&&(pb[e]=GX(e,"utf8")),pb[e]);Ey.slurpFile=$X});var yb=m(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});xy.loadSharedConfigFiles=void 0;var HX=ub(),KX=cT(),VX=lT(),uT=mb(),mT=fb(),pT=()=>({}),WX=async(e={})=>{let{filepath:n=(0,KX.getCredentialsFilepath)(),configFilepath:t=(0,HX.getConfigFilepath)()}=e,r=await Promise.all([(0,mT.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(uT.parseIni).then(VX.getProfileData).catch(pT),(0,mT.slurpFile)(n,{ignoreCache:e.ignoreCache}).then(uT.parseIni).catch(pT)]);return{configFile:r[0],credentialsFile:r[1]}};xy.loadSharedConfigFiles=WX});var yT=m(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.getSsoSessionData=void 0;var fT=/^sso-session\s(["'])?([^\1]+)\1$/,XX=e=>Object.entries(e).filter(([n])=>fT.test(n)).reduce((n,[t,r])=>({...n,[fT.exec(t)[2]]:r}),{});wy.getSsoSessionData=XX});var gT=m(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.loadSsoSessionData=void 0;var YX=ub(),QX=yT(),JX=mb(),ZX=fb(),e9=()=>({}),t9=async(e={})=>{var n;return(0,ZX.slurpFile)((n=e.configFilepath)!==null&&n!==void 0?n:(0,YX.getConfigFilepath)()).then(JX.parseIni).then(QX.getSsoSessionData).catch(e9)};vy.loadSsoSessionData=t9});var hT=m(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.mergeConfigFiles=void 0;var n9=(...e)=>{let n={};for(let t of e)for(let[r,s]of Object.entries(t))n[r]!==void 0?Object.assign(n[r],s):n[r]=s;return n};ky.mergeConfigFiles=n9});var _T=m(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.parseKnownFiles=void 0;var r9=yb(),s9=hT(),o9=async e=>{let n=await(0,r9.loadSharedConfigFiles)(e);return(0,s9.mergeConfigFiles)(n.configFile,n.credentialsFile)};Ay.parseKnownFiles=o9});var ST=m(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0})});var sn=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var yr=(H(),z($));yr.__exportStar(jc(),rn);yr.__exportStar(iT(),rn);yr.__exportStar(lb(),rn);yr.__exportStar(aT(),rn);yr.__exportStar(yb(),rn);yr.__exportStar(gT(),rn);yr.__exportStar(_T(),rn);yr.__exportStar(ST(),rn)});var Iy=m(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.httpRequest=void 0;var gb=Re(),i9=require("buffer"),a9=require("http");function c9(e){return new Promise((n,t)=>{var r;let s=(0,a9.request)({method:"GET",...e,hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")});s.on("error",o=>{t(Object.assign(new gb.ProviderError("Unable to connect to instance metadata service"),o)),s.destroy()}),s.on("timeout",()=>{t(new gb.ProviderError("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",o=>{let{statusCode:c=400}=o;(c<200||300<=c)&&(t(Object.assign(new gb.ProviderError("Error response received from instance metadata service"),{statusCode:c})),s.destroy());let i=[];o.on("data",u=>{i.push(u)}),o.on("end",()=>{n(i9.Buffer.concat(i)),s.destroy()})}),s.end()})}Ry.httpRequest=c9});var hb=m(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.fromImdsCredentials=zs.isImdsCredentials=void 0;var d9=e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";zs.isImdsCredentials=d9;var l9=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});zs.fromImdsCredentials=l9});var Ny=m(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.providerConfigFromInit=on.DEFAULT_MAX_RETRIES=on.DEFAULT_TIMEOUT=void 0;on.DEFAULT_TIMEOUT=1e3;on.DEFAULT_MAX_RETRIES=0;var u9=({maxRetries:e=on.DEFAULT_MAX_RETRIES,timeout:n=on.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:n});on.providerConfigFromInit=u9});var _b=m(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});Oy.retry=void 0;var m9=(e,n)=>{let t=e();for(let r=0;r{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.fromContainerMetadata=Ye.ENV_CMDS_AUTH_TOKEN=Ye.ENV_CMDS_RELATIVE_URI=Ye.ENV_CMDS_FULL_URI=void 0;var Ty=Re(),p9=require("url"),f9=Iy(),bT=hb(),y9=Ny(),g9=_b();Ye.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ye.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ye.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var h9=(e={})=>{let{timeout:n,maxRetries:t}=(0,y9.providerConfigFromInit)(e);return()=>(0,g9.retry)(async()=>{let r=await P9(),s=JSON.parse(await _9(n,r));if(!(0,bT.isImdsCredentials)(s))throw new Ty.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,bT.fromImdsCredentials)(s)},t)};Ye.fromContainerMetadata=h9;var _9=async(e,n)=>(process.env[Ye.ENV_CMDS_AUTH_TOKEN]&&(n.headers={...n.headers,Authorization:process.env[Ye.ENV_CMDS_AUTH_TOKEN]}),(await(0,f9.httpRequest)({...n,timeout:e})).toString()),C9="169.254.170.2",S9={localhost:!0,"127.0.0.1":!0},b9={"http:":!0,"https:":!0},P9=async()=>{if(process.env[Ye.ENV_CMDS_RELATIVE_URI])return{hostname:C9,path:process.env[Ye.ENV_CMDS_RELATIVE_URI]};if(process.env[Ye.ENV_CMDS_FULL_URI]){let e=(0,p9.parse)(process.env[Ye.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in S9))throw new Ty.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in b9))throw new Ty.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Ty.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ye.ENV_CMDS_RELATIVE_URI} or ${Ye.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var ET=m(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.fromEnv=void 0;var E9=Re(),x9=e=>async()=>{try{let n=e(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new E9.CredentialsProviderError(n.message||`Cannot load config from environment variables with getter: ${e}`)}};qy.fromEnv=x9});var wT=m(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.fromSharedConfigFiles=void 0;var w9=Re(),xT=sn(),v9=(e,{preferredFile:n="config",...t}={})=>async()=>{let r=(0,xT.getProfileName)(t),{configFile:s,credentialsFile:o}=await(0,xT.loadSharedConfigFiles)(t),c=o[r]||{},i=s[r]||{},u=n==="config"?{...c,...i}:{...i,...c};try{let l=e(u);if(l===void 0)throw new Error;return l}catch(l){throw new w9.CredentialsProviderError(l.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}};By.fromSharedConfigFiles=v9});var vT=m(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});Dy.fromStatic=void 0;var k9=Re(),A9=e=>typeof e=="function",R9=e=>A9(e)?async()=>await e():(0,k9.fromStatic)(e);Dy.fromStatic=R9});var AT=m(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});My.loadConfig=void 0;var kT=Re(),I9=ET(),N9=wT(),O9=vT(),T9=({environmentVariableSelector:e,configFileSelector:n,default:t},r={})=>(0,kT.memoize)((0,kT.chain)((0,I9.fromEnv)(e),(0,N9.fromSharedConfigFiles)(n,r),(0,O9.fromStatic)(t)));My.loadConfig=T9});var gr=m(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0});var q9=(H(),z($));q9.__exportStar(AT(),Cb)});var RT=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.Endpoint=void 0;var B9;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(B9=Uc.Endpoint||(Uc.Endpoint={}))});var IT=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.ENDPOINT_CONFIG_OPTIONS=an.CONFIG_ENDPOINT_NAME=an.ENV_ENDPOINT_NAME=void 0;an.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";an.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";an.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[an.ENV_ENDPOINT_NAME],configFileSelector:e=>e[an.CONFIG_ENDPOINT_NAME],default:void 0}});var Sb=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.EndpointMode=void 0;var D9;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(D9=zc.EndpointMode||(zc.EndpointMode={}))});var NT=m(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.ENDPOINT_MODE_CONFIG_OPTIONS=cn.CONFIG_ENDPOINT_MODE_NAME=cn.ENV_ENDPOINT_MODE_NAME=void 0;var M9=Sb();cn.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";cn.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";cn.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[cn.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[cn.CONFIG_ENDPOINT_MODE_NAME],default:M9.EndpointMode.IPv4}});var Pb=m(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.getInstanceMetadataEndpoint=void 0;var TT=gr(),F9=Ur(),OT=RT(),L9=IT(),bb=Sb(),j9=NT(),U9=async()=>(0,F9.parseUrl)(await z9()||await G9());Fy.getInstanceMetadataEndpoint=U9;var z9=async()=>(0,TT.loadConfig)(L9.ENDPOINT_CONFIG_OPTIONS)(),G9=async()=>{let e=await(0,TT.loadConfig)(j9.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case bb.EndpointMode.IPv4:return OT.Endpoint.IPv4;case bb.EndpointMode.IPv6:return OT.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(bb.EndpointMode)}`)}}});var qT=m(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});Ly.getExtendedInstanceMetadataCredentials=void 0;var $9=5*60,H9=5*60,K9="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",V9=(e,n)=>{var t;let r=$9+Math.floor(Math.random()*H9),s=new Date(Date.now()+r*1e3);n.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+K9);let o=(t=e.originalExpiration)!==null&&t!==void 0?t:e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:s}};Ly.getExtendedInstanceMetadataCredentials=V9});var DT=m(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.staticStabilityProvider=void 0;var BT=qT(),W9=(e,n={})=>{let t=n?.logger||console,r;return async()=>{let s;try{s=await e(),s.expiration&&s.expiration.getTime(){"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.fromInstanceMetadata=void 0;var X9=Re(),Eb=Iy(),MT=hb(),Y9=Ny(),FT=_b(),Q9=Pb(),J9=DT(),LT="/latest/meta-data/iam/security-credentials/",Z9="/latest/api/token",e7=(e={})=>(0,J9.staticStabilityProvider)(t7(e),{logger:e.logger});Uy.fromInstanceMetadata=e7;var t7=e=>{let n=!1,{timeout:t,maxRetries:r}=(0,Y9.providerConfigFromInit)(e),s=async(o,c)=>{let i=(await(0,FT.retry)(async()=>{let u;try{u=await r7(c)}catch(l){throw l.statusCode===401&&(n=!1),l}return u},o)).trim();return(0,FT.retry)(async()=>{let u;try{u=await s7(i,c)}catch(l){throw l.statusCode===401&&(n=!1),l}return u},o)};return async()=>{let o=await(0,Q9.getInstanceMetadataEndpoint)();if(n)return s(r,{...o,timeout:t});{let c;try{c=(await n7({...o,timeout:t})).toString()}catch(i){if(i?.statusCode===400)throw Object.assign(i,{message:"EC2 Metadata token request returned error"});return(i.message==="TimeoutError"||[403,404,405].includes(i.statusCode))&&(n=!0),s(r,{...o,timeout:t})}return s(r,{...o,headers:{"x-aws-ec2-metadata-token":c},timeout:t})}}},n7=async e=>(0,Eb.httpRequest)({...e,path:Z9,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),r7=async e=>(await(0,Eb.httpRequest)({...e,path:LT})).toString(),s7=async(e,n)=>{let t=JSON.parse((await(0,Eb.httpRequest)({...n,path:LT+e})).toString());if(!(0,MT.isImdsCredentials)(t))throw new X9.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,MT.fromImdsCredentials)(t)}});var zT=m(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0})});var Gy=m(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.getInstanceMetadataEndpoint=dn.httpRequest=void 0;var zy=(H(),z($));zy.__exportStar(PT(),dn);zy.__exportStar(jT(),dn);zy.__exportStar(Ny(),dn);zy.__exportStar(zT(),dn);var o7=Iy();Object.defineProperty(dn,"httpRequest",{enumerable:!0,get:function(){return o7.httpRequest}});var i7=Pb();Object.defineProperty(dn,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return i7.getInstanceMetadataEndpoint}})});var $T=m($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.resolveCredentialSource=void 0;var a7=db(),GT=Gy(),c7=Re(),d7=(e,n)=>{let t={EcsContainer:GT.fromContainerMetadata,Ec2InstanceMetadata:GT.fromInstanceMetadata,Environment:a7.fromEnv};if(e in t)return t[e]();throw new c7.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};$y.resolveCredentialSource=d7});var HT=m(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.resolveAssumeRoleCredentials=Gs.isAssumeRoleProfile=void 0;var xb=Re(),l7=sn(),u7=$T(),m7=wb(),p7=e=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(f7(e)||y7(e));Gs.isAssumeRoleProfile=p7;var f7=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",y7=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",g7=async(e,n,t,r={})=>{let s=n[e];if(!t.roleAssumer)throw new xb.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:o}=s;if(o&&o in r)throw new xb.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,l7.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let c=o?(0,m7.resolveProfileData)(o,n,t,{...r,[o]:!0}):(0,u7.resolveCredentialSource)(s.credential_source,e)(),i={RoleArn:s.role_arn,RoleSessionName:s.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:s.external_id},{mfa_serial:u}=s;if(u){if(!t.mfaCodeProvider)throw new xb.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);i.SerialNumber=u,i.TokenCode=await t.mfaCodeProvider(u)}let l=await c;return t.roleAssumer(l,i)};Gs.resolveAssumeRoleCredentials=g7});var KT=m(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.getValidatedProcessCredentials=void 0;var h7=(e,n)=>{if(n.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(n.Expiration){let t=new Date;if(new Date(n.Expiration){"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.resolveProcessCredentials=void 0;var vb=Re(),_7=require("child_process"),C7=require("util"),S7=KT(),b7=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let s=(0,C7.promisify)(_7.exec);try{let{stdout:o}=await s(r),c;try{c=JSON.parse(o.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,S7.getValidatedProcessCredentials)(e,c)}catch(o){throw new vb.CredentialsProviderError(o.message)}}else throw new vb.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new vb.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Ky.resolveProcessCredentials=b7});var XT=m(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});Vy.fromProcess=void 0;var WT=sn(),P7=VT(),E7=(e={})=>async()=>{let n=await(0,WT.parseKnownFiles)(e);return(0,P7.resolveProcessCredentials)((0,WT.getProfileName)(e),n)};Vy.fromProcess=E7});var Ab=m(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0});var x7=(H(),z($));x7.__exportStar(XT(),kb)});var YT=m($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.resolveProcessCredentials=$s.isProcessProfile=void 0;var w7=Ab(),v7=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";$s.isProcessProfile=v7;var k7=async(e,n)=>(0,w7.fromProcess)({...e,profile:n})();$s.resolveProcessCredentials=k7});var Rb=m(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.isSsoProfile=void 0;var A7=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");Wy.isSsoProfile=A7});var QT=m(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});Xy.resolveClientEndpointParameters=void 0;var R7=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});Xy.resolveClientEndpointParameters=R7});var JT=m((Vke,I7)=>{I7.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.363.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.363.0","@aws-sdk/middleware-logger":"3.363.0","@aws-sdk/middleware-recursion-detection":"3.363.0","@aws-sdk/middleware-user-agent":"3.363.0","@aws-sdk/types":"3.357.0","@aws-sdk/util-endpoints":"3.357.0","@aws-sdk/util-user-agent-browser":"3.363.0","@aws-sdk/util-user-agent-node":"3.363.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.0.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-utf8":"^1.0.1",tslib:"^2.5.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var eq=m((Yy,ZT)=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.isCrtAvailable=void 0;var N7=()=>{try{return typeof require=="function"&&typeof ZT<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Yy.isCrtAvailable=N7});var Gc=m(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.defaultUserAgent=ln.UA_APP_ID_INI_NAME=ln.UA_APP_ID_ENV_NAME=void 0;var O7=gr(),tq=require("os"),Ib=require("process"),T7=eq();ln.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";ln.UA_APP_ID_INI_NAME="sdk-ua-app-id";var q7=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,tq.platform)()}`,(0,tq.release)()],["lang/js"],["md/nodejs",`${Ib.versions.node}`]],r=(0,T7.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),Ib.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${Ib.env.AWS_EXECUTION_ENV}`]);let s=(0,O7.loadConfig)({environmentVariableSelector:c=>c[ln.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[ln.UA_APP_ID_INI_NAME],default:void 0})(),o;return async()=>{if(!o){let c=await s;o=c?[...t,[`app/${c}`]]:[...t]}return o}};ln.defaultUserAgent=q7});var $c=m(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.Hash=void 0;var Nb=qr(),B7=jt(),D7=require("buffer"),nq=require("crypto"),Ob=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,B7.toUint8Array)(rq(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,nq.createHmac)(this.algorithmIdentifier,rq(this.secret)):(0,nq.createHash)(this.algorithmIdentifier)}};Qy.Hash=Ob;function rq(e,n){return D7.Buffer.isBuffer(e)?e:typeof e=="string"?(0,Nb.fromString)(e,n):ArrayBuffer.isView(e)?(0,Nb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,Nb.fromArrayBuffer)(e)}});var oq=m(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});Jy.calculateBodyLength=void 0;var sq=require("fs"),M7=e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,sq.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,sq.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};Jy.calculateBodyLength=M7});var Hc=m(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0});var F7=(H(),z($));F7.__exportStar(oq(),Tb)});var hq=m(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.ruleSet=void 0;var pq="required",Dn="fn",Mn="argv",Hs="ref",qb="PartitionResult",un="tree",Kc="error",Vc="endpoint",iq={[pq]:!1,type:"String"},aq={[pq]:!0,default:!1,type:"Boolean"},fq={[Hs]:"Endpoint"},yq={[Dn]:"booleanEquals",[Mn]:[{[Hs]:"UseFIPS"},!0]},gq={[Dn]:"booleanEquals",[Mn]:[{[Hs]:"UseDualStack"},!0]},mn={},cq={[Dn]:"booleanEquals",[Mn]:[!0,{[Dn]:"getAttr",[Mn]:[{[Hs]:qb},"supportsFIPS"]}]},dq={[Dn]:"booleanEquals",[Mn]:[!0,{[Dn]:"getAttr",[Mn]:[{[Hs]:qb},"supportsDualStack"]}]},lq=[fq],uq=[yq],mq=[gq],L7={version:"1.0",parameters:{Region:iq,UseDualStack:aq,UseFIPS:aq,Endpoint:iq},rules:[{conditions:[{[Dn]:"aws.partition",[Mn]:[{[Hs]:"Region"}],assign:qb}],type:un,rules:[{conditions:[{[Dn]:"isSet",[Mn]:lq},{[Dn]:"parseURL",[Mn]:lq,assign:"url"}],type:un,rules:[{conditions:uq,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Kc},{type:un,rules:[{conditions:mq,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Kc},{endpoint:{url:fq,properties:mn,headers:mn},type:Vc}]}]},{conditions:[yq,gq],type:un,rules:[{conditions:[cq,dq],type:un,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mn,headers:mn},type:Vc}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Kc}]},{conditions:uq,type:un,rules:[{conditions:[cq],type:un,rules:[{type:un,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:mn,headers:mn},type:Vc}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Kc}]},{conditions:mq,type:un,rules:[{conditions:[dq],type:un,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mn,headers:mn},type:Vc}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Kc}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:mn,headers:mn},type:Vc}]}]};Zy.ruleSet=L7});var _q=m(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});eg.defaultEndpointResolver=void 0;var j7=ks(),U7=hq(),z7=(e,n={})=>(0,j7.resolveEndpoint)(U7.ruleSet,{endpointParams:e,logger:n.logger});eg.defaultEndpointResolver=z7});var bq=m(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.getRuntimeConfig=void 0;var G7=v(),$7=Ur(),Cq=Os(),Sq=jt(),H7=_q(),K7=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Cq.fromBase64,base64Encoder:e?.base64Encoder??Cq.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??H7.defaultEndpointResolver,logger:e?.logger??new G7.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??$7.parseUrl,utf8Decoder:e?.utf8Decoder??Sq.fromUtf8,utf8Encoder:e?.utf8Encoder??Sq.toUtf8});tg.getRuntimeConfig=K7});var Pq=m(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.IMDS_REGION_PATH=ht.DEFAULTS_MODE_OPTIONS=ht.ENV_IMDS_DISABLED=ht.AWS_DEFAULT_REGION_ENV=ht.AWS_REGION_ENV=ht.AWS_EXECUTION_ENV=void 0;ht.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";ht.AWS_REGION_ENV="AWS_REGION";ht.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";ht.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";ht.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];ht.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var Eq=m(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var V7="AWS_DEFAULTS_MODE",W7="defaults_mode";ng.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[V7],configFileSelector:e=>e[W7],default:"legacy"}});var vq=m(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.resolveDefaultsModeConfig=void 0;var X7=Yt(),xq=Gy(),wq=gr(),Y7=Re(),hr=Pq(),Q7=Eq(),J7=({region:e=(0,wq.loadConfig)(X7.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,wq.loadConfig)(Q7.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Y7.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t?.toLowerCase()){case"auto":return Z7(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${hr.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${t}`)}});rg.resolveDefaultsModeConfig=J7;var Z7=async e=>{if(e){let n=typeof e=="function"?await e():e,t=await eY();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},eY=async()=>{var e;if(process.env[hr.AWS_EXECUTION_ENV]&&(process.env[hr.AWS_REGION_ENV]||process.env[hr.AWS_DEFAULT_REGION_ENV]))return(e=process.env[hr.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[hr.AWS_DEFAULT_REGION_ENV];if(!process.env[hr.ENV_IMDS_DISABLED])try{let n=await(0,xq.getInstanceMetadataEndpoint)();return(await(0,xq.httpRequest)({...n,path:hr.IMDS_REGION_PATH})).toString()}catch{}}});var Wc=m(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});var tY=(H(),z($));tY.__exportStar(vq(),Bb)});var Rq=m(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.getRuntimeConfig=void 0;var nY=(H(),z($)),rY=nY.__importDefault(JT()),sY=Gc(),sg=Yt(),oY=$c(),kq=On(),Xc=gr(),Aq=Bs(),iY=Hc(),aY=Ot(),cY=bq(),dY=v(),lY=Wc(),uY=v(),mY=e=>{(0,uY.emitWarningIfUnsupportedVersion)(process.version);let n=(0,lY.resolveDefaultsModeConfig)(e),t=()=>n().then(dY.loadConfigsForDefaultMode),r=(0,cY.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:e?.bodyLengthChecker??iY.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,sY.defaultUserAgent)({serviceId:r.serviceId,clientVersion:rY.default.version}),maxAttempts:e?.maxAttempts??(0,Xc.loadConfig)(kq.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,Xc.loadConfig)(sg.NODE_REGION_CONFIG_OPTIONS,sg.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new Aq.NodeHttpHandler(t),retryMode:e?.retryMode??(0,Xc.loadConfig)({...kq.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||aY.DEFAULT_RETRY_MODE}),sha256:e?.sha256??oY.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Aq.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,Xc.loadConfig)(sg.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Xc.loadConfig)(sg.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};og.getRuntimeConfig=mY});var Yc=m(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.SSOClient=Ks.__Client=void 0;var Iq=Ta(),pY=qa(),fY=Ba(),Nq=oc(),yY=Yt(),gY=dc(),hY=I(),Oq=On(),Tq=v();Object.defineProperty(Ks,"__Client",{enumerable:!0,get:function(){return Tq.Client}});var _Y=QT(),CY=Rq(),Db=class extends Tq.Client{constructor(n){let t=(0,CY.getRuntimeConfig)(n),r=(0,_Y.resolveClientEndpointParameters)(t),s=(0,yY.resolveRegionConfig)(r),o=(0,hY.resolveEndpointConfig)(s),c=(0,Oq.resolveRetryConfig)(o),i=(0,Iq.resolveHostHeaderConfig)(c),u=(0,Nq.resolveUserAgentConfig)(i);super(u),this.config=u,this.middlewareStack.use((0,Oq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,gY.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Iq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,pY.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,fY.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,Nq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ks.SSOClient=Db});var ig=m(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.SSOServiceException=Vs.__ServiceException=void 0;var qq=v();Object.defineProperty(Vs,"__ServiceException",{enumerable:!0,get:function(){return qq.ServiceException}});var Qc=class extends qq.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,Qc.prototype)}};Vs.SSOServiceException=Qc});var Jr=m(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.LogoutRequestFilterSensitiveLog=Le.ListAccountsRequestFilterSensitiveLog=Le.ListAccountRolesRequestFilterSensitiveLog=Le.GetRoleCredentialsResponseFilterSensitiveLog=Le.RoleCredentialsFilterSensitiveLog=Le.GetRoleCredentialsRequestFilterSensitiveLog=Le.UnauthorizedException=Le.TooManyRequestsException=Le.ResourceNotFoundException=Le.InvalidRequestException=void 0;var Ws=v(),ag=ig(),Jc=class extends ag.SSOServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Jc.prototype)}};Le.InvalidRequestException=Jc;var Zc=class extends ag.SSOServiceException{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Zc.prototype)}};Le.ResourceNotFoundException=Zc;var ed=class extends ag.SSOServiceException{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,ed.prototype)}};Le.TooManyRequestsException=ed;var td=class extends ag.SSOServiceException{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,td.prototype)}};Le.UnauthorizedException=td;var SY=e=>({...e,...e.accessToken&&{accessToken:Ws.SENSITIVE_STRING}});Le.GetRoleCredentialsRequestFilterSensitiveLog=SY;var bY=e=>({...e,...e.secretAccessKey&&{secretAccessKey:Ws.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:Ws.SENSITIVE_STRING}});Le.RoleCredentialsFilterSensitiveLog=bY;var PY=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,Le.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});Le.GetRoleCredentialsResponseFilterSensitiveLog=PY;var EY=e=>({...e,...e.accessToken&&{accessToken:Ws.SENSITIVE_STRING}});Le.ListAccountRolesRequestFilterSensitiveLog=EY;var xY=e=>({...e,...e.accessToken&&{accessToken:Ws.SENSITIVE_STRING}});Le.ListAccountsRequestFilterSensitiveLog=xY;var wY=e=>({...e,...e.accessToken&&{accessToken:Ws.SENSITIVE_STRING}});Le.LogoutRequestFilterSensitiveLog=wY});var nd=m(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.de_LogoutCommand=Qe.de_ListAccountsCommand=Qe.de_ListAccountRolesCommand=Qe.de_GetRoleCredentialsCommand=Qe.se_LogoutCommand=Qe.se_ListAccountsCommand=Qe.se_ListAccountRolesCommand=Qe.se_GetRoleCredentialsCommand=void 0;var cg=$e(),ae=v(),dg=Jr(),vY=ig(),kY=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,ae.map)({},fg,{"x-amz-sso_bearer_token":e.accessToken}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/federation/credentials`,u=(0,ae.map)({role_name:[,(0,ae.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,ae.expectNonNull)(e.accountId,"accountId")]}),l;return new cg.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};Qe.se_GetRoleCredentialsCommand=kY;var AY=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,ae.map)({},fg,{"x-amz-sso_bearer_token":e.accessToken}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/assignment/roles`,u=(0,ae.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,ae.expectNonNull)(e.accountId,"accountId")]}),l;return new cg.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};Qe.se_ListAccountRolesCommand=AY;var RY=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,ae.map)({},fg,{"x-amz-sso_bearer_token":e.accessToken}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/assignment/accounts`,u=(0,ae.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new cg.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};Qe.se_ListAccountsCommand=RY;var IY=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,ae.map)({},fg,{"x-amz-sso_bearer_token":e.accessToken}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/logout`,u;return new cg.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,body:u})};Qe.se_LogoutCommand=IY;var NY=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return OY(e,n);let t=(0,ae.map)({$metadata:_r(e)}),r=(0,ae.expectNonNull)((0,ae.expectObject)(await yg(e.body,n)),"body"),s=(0,ae.take)(r,{roleCredentials:ae._json});return Object.assign(t,s),t};Qe.de_GetRoleCredentialsCommand=NY;var OY=async(e,n)=>{let t={...e,body:await gg(e.body,n)},r=hg(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ug(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Mb(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mg(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pg(t,n);default:let s=t.body;return lg({output:e,parsedBody:s,errorCode:r})}},TY=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qY(e,n);let t=(0,ae.map)({$metadata:_r(e)}),r=(0,ae.expectNonNull)((0,ae.expectObject)(await yg(e.body,n)),"body"),s=(0,ae.take)(r,{nextToken:ae.expectString,roleList:ae._json});return Object.assign(t,s),t};Qe.de_ListAccountRolesCommand=TY;var qY=async(e,n)=>{let t={...e,body:await gg(e.body,n)},r=hg(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ug(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Mb(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mg(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pg(t,n);default:let s=t.body;return lg({output:e,parsedBody:s,errorCode:r})}},BY=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return DY(e,n);let t=(0,ae.map)({$metadata:_r(e)}),r=(0,ae.expectNonNull)((0,ae.expectObject)(await yg(e.body,n)),"body"),s=(0,ae.take)(r,{accountList:ae._json,nextToken:ae.expectString});return Object.assign(t,s),t};Qe.de_ListAccountsCommand=BY;var DY=async(e,n)=>{let t={...e,body:await gg(e.body,n)},r=hg(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ug(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Mb(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mg(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pg(t,n);default:let s=t.body;return lg({output:e,parsedBody:s,errorCode:r})}},MY=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return FY(e,n);let t=(0,ae.map)({$metadata:_r(e)});return await(0,ae.collectBody)(e.body,n),t};Qe.de_LogoutCommand=MY;var FY=async(e,n)=>{let t={...e,body:await gg(e.body,n)},r=hg(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await ug(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await mg(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await pg(t,n);default:let s=t.body;return lg({output:e,parsedBody:s,errorCode:r})}},lg=(0,ae.withBaseException)(vY.SSOServiceException),ug=async(e,n)=>{let t=(0,ae.map)({}),r=e.body,s=(0,ae.take)(r,{message:ae.expectString});Object.assign(t,s);let o=new dg.InvalidRequestException({$metadata:_r(e),...t});return(0,ae.decorateServiceException)(o,e.body)},Mb=async(e,n)=>{let t=(0,ae.map)({}),r=e.body,s=(0,ae.take)(r,{message:ae.expectString});Object.assign(t,s);let o=new dg.ResourceNotFoundException({$metadata:_r(e),...t});return(0,ae.decorateServiceException)(o,e.body)},mg=async(e,n)=>{let t=(0,ae.map)({}),r=e.body,s=(0,ae.take)(r,{message:ae.expectString});Object.assign(t,s);let o=new dg.TooManyRequestsException({$metadata:_r(e),...t});return(0,ae.decorateServiceException)(o,e.body)},pg=async(e,n)=>{let t=(0,ae.map)({}),r=e.body,s=(0,ae.take)(r,{message:ae.expectString});Object.assign(t,s);let o=new dg.UnauthorizedException({$metadata:_r(e),...t});return(0,ae.decorateServiceException)(o,e.body)},_r=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),LY=(e,n)=>(0,ae.collectBody)(e,n).then(t=>n.utf8Encoder(t)),fg=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),yg=(e,n)=>LY(e,n).then(t=>t.length?JSON.parse(t):{}),gg=async(e,n)=>{let t=await yg(e,n);return t.message=t.message??t.Message,t},hg=(e,n)=>{let t=(o,c)=>Object.keys(o).find(i=>i.toLowerCase()===c.toLowerCase()),r=o=>{let c=o;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},s=t(e.headers,"x-amzn-errortype");if(s!==void 0)return r(e.headers[s]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var Fb=m(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.GetRoleCredentialsCommand=Xs.$Command=void 0;var jY=I(),UY=N(),Mq=v();Object.defineProperty(Xs,"$Command",{enumerable:!0,get:function(){return Mq.Command}});var Bq=Jr(),Dq=nd(),rd=class extends Mq.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,UY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jY.getEndpointPlugin)(t,rd.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:Bq.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:Bq.GetRoleCredentialsResponseFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Dq.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,Dq.de_GetRoleCredentialsCommand)(n,t)}};Xs.GetRoleCredentialsCommand=rd});var _g=m(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.ListAccountRolesCommand=Ys.$Command=void 0;var zY=I(),GY=N(),Lq=v();Object.defineProperty(Ys,"$Command",{enumerable:!0,get:function(){return Lq.Command}});var $Y=Jr(),Fq=nd(),sd=class extends Lq.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,GY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zY.getEndpointPlugin)(t,sd.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:$Y.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Fq.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,Fq.de_ListAccountRolesCommand)(n,t)}};Ys.ListAccountRolesCommand=sd});var Cg=m(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.ListAccountsCommand=Qs.$Command=void 0;var HY=I(),KY=N(),Uq=v();Object.defineProperty(Qs,"$Command",{enumerable:!0,get:function(){return Uq.Command}});var VY=Jr(),jq=nd(),od=class extends Uq.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,KY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,HY.getEndpointPlugin)(t,od.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:VY.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,jq.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,jq.de_ListAccountsCommand)(n,t)}};Qs.ListAccountsCommand=od});var Lb=m(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.LogoutCommand=Js.$Command=void 0;var WY=I(),XY=N(),Gq=v();Object.defineProperty(Js,"$Command",{enumerable:!0,get:function(){return Gq.Command}});var YY=Jr(),zq=nd(),id=class extends Gq.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,XY.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,WY.getEndpointPlugin)(t,id.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:YY.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zq.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,zq.de_LogoutCommand)(n,t)}};Js.LogoutCommand=id});var $q=m(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.SSO=void 0;var QY=v(),JY=Fb(),ZY=_g(),eQ=Cg(),tQ=Lb(),nQ=Yc(),rQ={GetRoleCredentialsCommand:JY.GetRoleCredentialsCommand,ListAccountRolesCommand:ZY.ListAccountRolesCommand,ListAccountsCommand:eQ.ListAccountsCommand,LogoutCommand:tQ.LogoutCommand},Sg=class extends nQ.SSOClient{};bg.SSO=Sg;(0,QY.createAggregatedClient)(rQ,Sg)});var Hq=m(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Pg=(H(),z($));Pg.__exportStar(Fb(),Zs);Pg.__exportStar(_g(),Zs);Pg.__exportStar(Cg(),Zs);Pg.__exportStar(Lb(),Zs)});var Vq=m(Kq=>{"use strict";Object.defineProperty(Kq,"__esModule",{value:!0})});var Wq=m(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.paginateListAccountRoles=void 0;var sQ=_g(),oQ=Yc(),iQ=async(e,n,...t)=>await e.send(new sQ.ListAccountRolesCommand(n),...t);async function*aQ(e,n,...t){let r=e.startingToken||void 0,s=!0,o;for(;s;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof oQ.SSOClient)o=await iQ(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield o;let c=r;r=o.nextToken,s=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Eg.paginateListAccountRoles=aQ});var Xq=m(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.paginateListAccounts=void 0;var cQ=Cg(),dQ=Yc(),lQ=async(e,n,...t)=>await e.send(new cQ.ListAccountsCommand(n),...t);async function*uQ(e,n,...t){let r=e.startingToken||void 0,s=!0,o;for(;s;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof dQ.SSOClient)o=await lQ(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield o;let c=r;r=o.nextToken,s=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}xg.paginateListAccounts=uQ});var Yq=m(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var jb=(H(),z($));jb.__exportStar(Vq(),ad);jb.__exportStar(Wq(),ad);jb.__exportStar(Xq(),ad)});var Qq=m(Ub=>{"use strict";Object.defineProperty(Ub,"__esModule",{value:!0});var mQ=(H(),z($));mQ.__exportStar(Jr(),Ub)});var Jq=m(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.SSOServiceException=void 0;var cd=(H(),z($));cd.__exportStar(Yc(),Fn);cd.__exportStar($q(),Fn);cd.__exportStar(Hq(),Fn);cd.__exportStar(Yq(),Fn);cd.__exportStar(Qq(),Fn);var pQ=ig();Object.defineProperty(Fn,"SSOServiceException",{enumerable:!0,get:function(){return pQ.SSOServiceException}})});var wg=m(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.REFRESH_MESSAGE=eo.EXPIRE_WINDOW_MS=void 0;eo.EXPIRE_WINDOW_MS=5*60*1e3;eo.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var Zq=m(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});vg.resolveClientEndpointParameters=void 0;var fQ=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssooidc"});vg.resolveClientEndpointParameters=fQ});var e1=m((xAe,yQ)=>{yQ.exports={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.363.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.363.0","@aws-sdk/middleware-logger":"3.363.0","@aws-sdk/middleware-recursion-detection":"3.363.0","@aws-sdk/middleware-user-agent":"3.363.0","@aws-sdk/types":"3.357.0","@aws-sdk/util-endpoints":"3.357.0","@aws-sdk/util-user-agent-browser":"3.363.0","@aws-sdk/util-user-agent-node":"3.363.0","@smithy/config-resolver":"^1.0.1","@smithy/fetch-http-handler":"^1.0.1","@smithy/hash-node":"^1.0.1","@smithy/invalid-dependency":"^1.0.1","@smithy/middleware-content-length":"^1.0.1","@smithy/middleware-endpoint":"^1.0.1","@smithy/middleware-retry":"^1.0.2","@smithy/middleware-serde":"^1.0.1","@smithy/middleware-stack":"^1.0.1","@smithy/node-config-provider":"^1.0.1","@smithy/node-http-handler":"^1.0.2","@smithy/protocol-http":"^1.0.1","@smithy/smithy-client":"^1.0.3","@smithy/types":"^1.0.0","@smithy/url-parser":"^1.0.1","@smithy/util-base64":"^1.0.1","@smithy/util-body-length-browser":"^1.0.1","@smithy/util-body-length-node":"^1.0.1","@smithy/util-defaults-mode-browser":"^1.0.1","@smithy/util-defaults-mode-node":"^1.0.1","@smithy/util-retry":"^1.0.2","@smithy/util-utf8":"^1.0.1",tslib:"^2.5.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.310.0","@smithy/service-client-documentation-generator":"^1.0.1","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var m1=m(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});kg.ruleSet=void 0;var c1="required",Ln="fn",jn="argv",to="ref",zb="PartitionResult",pn="tree",dd="error",ld="endpoint",t1={[c1]:!1,type:"String"},n1={[c1]:!0,default:!1,type:"Boolean"},d1={[to]:"Endpoint"},l1={[Ln]:"booleanEquals",[jn]:[{[to]:"UseFIPS"},!0]},u1={[Ln]:"booleanEquals",[jn]:[{[to]:"UseDualStack"},!0]},fn={},r1={[Ln]:"booleanEquals",[jn]:[!0,{[Ln]:"getAttr",[jn]:[{[to]:zb},"supportsFIPS"]}]},s1={[Ln]:"booleanEquals",[jn]:[!0,{[Ln]:"getAttr",[jn]:[{[to]:zb},"supportsDualStack"]}]},o1=[d1],i1=[l1],a1=[u1],gQ={version:"1.0",parameters:{Region:t1,UseDualStack:n1,UseFIPS:n1,Endpoint:t1},rules:[{conditions:[{[Ln]:"aws.partition",[jn]:[{[to]:"Region"}],assign:zb}],type:pn,rules:[{conditions:[{[Ln]:"isSet",[jn]:o1},{[Ln]:"parseURL",[jn]:o1,assign:"url"}],type:pn,rules:[{conditions:i1,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:dd},{type:pn,rules:[{conditions:a1,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:dd},{endpoint:{url:d1,properties:fn,headers:fn},type:ld}]}]},{conditions:[l1,u1],type:pn,rules:[{conditions:[r1,s1],type:pn,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:fn,headers:fn},type:ld}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:dd}]},{conditions:i1,type:pn,rules:[{conditions:[r1],type:pn,rules:[{type:pn,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:fn,headers:fn},type:ld}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:dd}]},{conditions:a1,type:pn,rules:[{conditions:[s1],type:pn,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:fn,headers:fn},type:ld}]},{error:"DualStack is enabled but this partition does not support DualStack",type:dd}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:fn,headers:fn},type:ld}]}]};kg.ruleSet=gQ});var p1=m(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.defaultEndpointResolver=void 0;var hQ=ks(),_Q=m1(),CQ=(e,n={})=>(0,hQ.resolveEndpoint)(_Q.ruleSet,{endpointParams:e,logger:n.logger});Ag.defaultEndpointResolver=CQ});var g1=m(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});Rg.getRuntimeConfig=void 0;var SQ=v(),bQ=Ur(),f1=Os(),y1=jt(),PQ=p1(),EQ=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??f1.fromBase64,base64Encoder:e?.base64Encoder??f1.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??PQ.defaultEndpointResolver,logger:e?.logger??new SQ.NoOpLogger,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??bQ.parseUrl,utf8Decoder:e?.utf8Decoder??y1.fromUtf8,utf8Encoder:e?.utf8Encoder??y1.toUtf8});Rg.getRuntimeConfig=EQ});var C1=m(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.getRuntimeConfig=void 0;var xQ=(H(),z($)),wQ=xQ.__importDefault(e1()),vQ=Gc(),Ig=Yt(),kQ=$c(),h1=On(),ud=gr(),_1=Bs(),AQ=Hc(),RQ=Ot(),IQ=g1(),NQ=v(),OQ=Wc(),TQ=v(),qQ=e=>{(0,TQ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,OQ.resolveDefaultsModeConfig)(e),t=()=>n().then(NQ.loadConfigsForDefaultMode),r=(0,IQ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:e?.bodyLengthChecker??AQ.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,vQ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:wQ.default.version}),maxAttempts:e?.maxAttempts??(0,ud.loadConfig)(h1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,ud.loadConfig)(Ig.NODE_REGION_CONFIG_OPTIONS,Ig.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new _1.NodeHttpHandler(t),retryMode:e?.retryMode??(0,ud.loadConfig)({...h1.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||RQ.DEFAULT_RETRY_MODE}),sha256:e?.sha256??kQ.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??_1.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,ud.loadConfig)(Ig.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,ud.loadConfig)(Ig.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Ng.getRuntimeConfig=qQ});var $b=m(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.SSOOIDCClient=no.__Client=void 0;var S1=Ta(),BQ=qa(),DQ=Ba(),b1=oc(),MQ=Yt(),FQ=dc(),LQ=I(),P1=On(),E1=v();Object.defineProperty(no,"__Client",{enumerable:!0,get:function(){return E1.Client}});var jQ=Zq(),UQ=C1(),Gb=class extends E1.Client{constructor(n){let t=(0,UQ.getRuntimeConfig)(n),r=(0,jQ.resolveClientEndpointParameters)(t),s=(0,MQ.resolveRegionConfig)(r),o=(0,LQ.resolveEndpointConfig)(s),c=(0,P1.resolveRetryConfig)(o),i=(0,S1.resolveHostHeaderConfig)(c),u=(0,b1.resolveUserAgentConfig)(i);super(u),this.config=u,this.middlewareStack.use((0,P1.getRetryPlugin)(this.config)),this.middlewareStack.use((0,FQ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,S1.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,BQ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,DQ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,b1.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};no.SSOOIDCClient=Gb});var Og=m(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.SSOOIDCServiceException=ro.__ServiceException=void 0;var x1=v();Object.defineProperty(ro,"__ServiceException",{enumerable:!0,get:function(){return x1.ServiceException}});var md=class extends x1.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,md.prototype)}};ro.SSOOIDCServiceException=md});var Hb=m(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.InvalidClientMetadataException=Ne.UnsupportedGrantTypeException=Ne.UnauthorizedClientException=Ne.SlowDownException=Ne.InvalidScopeException=Ne.InvalidRequestException=Ne.InvalidGrantException=Ne.InvalidClientException=Ne.InternalServerException=Ne.ExpiredTokenException=Ne.AuthorizationPendingException=Ne.AccessDeniedException=void 0;var qt=Og(),pd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,pd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.AccessDeniedException=pd;var fd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,fd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.AuthorizationPendingException=fd;var yd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,yd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.ExpiredTokenException=yd;var gd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,gd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.InternalServerException=gd;var hd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,hd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.InvalidClientException=hd;var _d=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,_d.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.InvalidGrantException=_d;var Cd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Cd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.InvalidRequestException=Cd;var Sd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,Sd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.InvalidScopeException=Sd;var bd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,bd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.SlowDownException=bd;var Pd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,Pd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.UnauthorizedClientException=Pd;var Ed=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,Ed.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.UnsupportedGrantTypeException=Ed;var xd=class extends qt.SSOOIDCServiceException{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,xd.prototype),this.error=n.error,this.error_description=n.error_description}};Ne.InvalidClientMetadataException=xd});var qg=m(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.de_StartDeviceAuthorizationCommand=_t.de_RegisterClientCommand=_t.de_CreateTokenCommand=_t.se_StartDeviceAuthorizationCommand=_t.se_RegisterClientCommand=_t.se_CreateTokenCommand=void 0;var Kb=$e(),q=v(),Bt=Hb(),zQ=Og(),GQ=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={"content-type":"application/json"},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/token`,u;return u=JSON.stringify((0,q.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,q._json)(l)})),new Kb.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,body:u})};_t.se_CreateTokenCommand=GQ;var $Q=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={"content-type":"application/json"},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/client/register`,u;return u=JSON.stringify((0,q.take)(e,{clientName:[],clientType:[],scopes:l=>(0,q._json)(l)})),new Kb.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,body:u})};_t.se_RegisterClientCommand=$Q;var HQ=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={"content-type":"application/json"},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/device_authorization`,u;return u=JSON.stringify((0,q.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new Kb.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,body:u})};_t.se_StartDeviceAuthorizationCommand=HQ;var KQ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return VQ(e,n);let t=(0,q.map)({$metadata:mt(e)}),r=(0,q.expectNonNull)((0,q.expectObject)(await Tg(e.body,n)),"body"),s=(0,q.take)(r,{accessToken:q.expectString,expiresIn:q.expectInt32,idToken:q.expectString,refreshToken:q.expectString,tokenType:q.expectString});return Object.assign(t,s),t};_t.de_CreateTokenCommand=KQ;var VQ=async(e,n)=>{let t={...e,body:await Yb(e.body,n)},r=Qb(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await JQ(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await ZQ(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await eJ(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Wb(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await w1(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await nJ(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Xb(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await v1(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await k1(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await A1(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await rJ(t,n);default:let s=t.body;return Vb({output:e,parsedBody:s,errorCode:r})}},WQ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return XQ(e,n);let t=(0,q.map)({$metadata:mt(e)}),r=(0,q.expectNonNull)((0,q.expectObject)(await Tg(e.body,n)),"body"),s=(0,q.take)(r,{authorizationEndpoint:q.expectString,clientId:q.expectString,clientIdIssuedAt:q.expectLong,clientSecret:q.expectString,clientSecretExpiresAt:q.expectLong,tokenEndpoint:q.expectString});return Object.assign(t,s),t};_t.de_RegisterClientCommand=WQ;var XQ=async(e,n)=>{let t={...e,body:await Yb(e.body,n)},r=Qb(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Wb(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await tJ(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Xb(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await v1(t,n);default:let s=t.body;return Vb({output:e,parsedBody:s,errorCode:r})}},YQ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return QQ(e,n);let t=(0,q.map)({$metadata:mt(e)}),r=(0,q.expectNonNull)((0,q.expectObject)(await Tg(e.body,n)),"body"),s=(0,q.take)(r,{deviceCode:q.expectString,expiresIn:q.expectInt32,interval:q.expectInt32,userCode:q.expectString,verificationUri:q.expectString,verificationUriComplete:q.expectString});return Object.assign(t,s),t};_t.de_StartDeviceAuthorizationCommand=YQ;var QQ=async(e,n)=>{let t={...e,body:await Yb(e.body,n)},r=Qb(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Wb(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await w1(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Xb(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await k1(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await A1(t,n);default:let s=t.body;return Vb({output:e,parsedBody:s,errorCode:r})}},Vb=(0,q.withBaseException)(zQ.SSOOIDCServiceException),JQ=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.AccessDeniedException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},ZQ=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.AuthorizationPendingException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},eJ=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.ExpiredTokenException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},Wb=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.InternalServerException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},w1=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.InvalidClientException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},tJ=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.InvalidClientMetadataException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},nJ=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.InvalidGrantException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},Xb=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.InvalidRequestException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},v1=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.InvalidScopeException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},k1=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.SlowDownException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},A1=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.UnauthorizedClientException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},rJ=async(e,n)=>{let t=(0,q.map)({}),r=e.body,s=(0,q.take)(r,{error:q.expectString,error_description:q.expectString});Object.assign(t,s);let o=new Bt.UnsupportedGrantTypeException({$metadata:mt(e),...t});return(0,q.decorateServiceException)(o,e.body)},mt=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),sJ=(e,n)=>(0,q.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Tg=(e,n)=>sJ(e,n).then(t=>t.length?JSON.parse(t):{}),Yb=async(e,n)=>{let t=await Tg(e,n);return t.message=t.message??t.Message,t},Qb=(e,n)=>{let t=(o,c)=>Object.keys(o).find(i=>i.toLowerCase()===c.toLowerCase()),r=o=>{let c=o;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},s=t(e.headers,"x-amzn-errortype");if(s!==void 0)return r(e.headers[s]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var Jb=m(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.CreateTokenCommand=so.$Command=void 0;var oJ=I(),iJ=N(),I1=v();Object.defineProperty(so,"$Command",{enumerable:!0,get:function(){return I1.Command}});var R1=qg(),wd=class extends I1.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,iJ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,oJ.getEndpointPlugin)(t,wd.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,R1.se_CreateTokenCommand)(n,t)}deserialize(n,t){return(0,R1.de_CreateTokenCommand)(n,t)}};so.CreateTokenCommand=wd});var Zb=m(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.RegisterClientCommand=oo.$Command=void 0;var aJ=I(),cJ=N(),O1=v();Object.defineProperty(oo,"$Command",{enumerable:!0,get:function(){return O1.Command}});var N1=qg(),vd=class extends O1.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cJ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,aJ.getEndpointPlugin)(t,vd.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,N1.se_RegisterClientCommand)(n,t)}deserialize(n,t){return(0,N1.de_RegisterClientCommand)(n,t)}};oo.RegisterClientCommand=vd});var e0=m(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.StartDeviceAuthorizationCommand=io.$Command=void 0;var dJ=I(),lJ=N(),q1=v();Object.defineProperty(io,"$Command",{enumerable:!0,get:function(){return q1.Command}});var T1=qg(),kd=class extends q1.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,lJ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,dJ.getEndpointPlugin)(t,kd.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,T1.se_StartDeviceAuthorizationCommand)(n,t)}deserialize(n,t){return(0,T1.de_StartDeviceAuthorizationCommand)(n,t)}};io.StartDeviceAuthorizationCommand=kd});var B1=m(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.SSOOIDC=void 0;var uJ=v(),mJ=Jb(),pJ=Zb(),fJ=e0(),yJ=$b(),gJ={CreateTokenCommand:mJ.CreateTokenCommand,RegisterClientCommand:pJ.RegisterClientCommand,StartDeviceAuthorizationCommand:fJ.StartDeviceAuthorizationCommand},Bg=class extends yJ.SSOOIDCClient{};Dg.SSOOIDC=Bg;(0,uJ.createAggregatedClient)(gJ,Bg)});var D1=m(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var t0=(H(),z($));t0.__exportStar(Jb(),Ad);t0.__exportStar(Zb(),Ad);t0.__exportStar(e0(),Ad)});var M1=m(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});var hJ=(H(),z($));hJ.__exportStar(Hb(),n0)});var r0=m(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.SSOOIDCServiceException=void 0;var Mg=(H(),z($));Mg.__exportStar($b(),Cr);Mg.__exportStar(B1(),Cr);Mg.__exportStar(D1(),Cr);Mg.__exportStar(M1(),Cr);var _J=Og();Object.defineProperty(Cr,"SSOOIDCServiceException",{enumerable:!0,get:function(){return _J.SSOOIDCServiceException}})});var F1=m(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.getSsoOidcClient=void 0;var CJ=r0(),s0={},SJ=e=>{if(s0[e])return s0[e];let n=new CJ.SSOOIDCClient({region:e});return s0[e]=n,n};Fg.getSsoOidcClient=SJ});var L1=m(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});Lg.getNewSsoOidcToken=void 0;var bJ=r0(),PJ=F1(),EJ=(e,n)=>(0,PJ.getSsoOidcClient)(n).send(new bJ.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));Lg.getNewSsoOidcToken=EJ});var j1=m(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});jg.validateTokenExpiry=void 0;var xJ=Re(),wJ=wg(),vJ=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});Ug.validateTokenKey=void 0;var kJ=Re(),AJ=wg(),RJ=(e,n,t=!1)=>{if(typeof n>"u")throw new kJ.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${AJ.REFRESH_MESSAGE}`,!1)};Ug.validateTokenKey=RJ});var z1=m(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.writeSSOTokenToFile=void 0;var IJ=sn(),NJ=require("fs"),{writeFile:OJ}=NJ.promises,TJ=(e,n)=>{let t=(0,IJ.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return OJ(t,r)};zg.writeSSOTokenToFile=TJ});var o0=m($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.fromSso=void 0;var Rd=Re(),Gg=sn(),G1=wg(),qJ=L1(),$1=j1(),Zr=U1(),BJ=z1(),H1=new Date(0),DJ=(e={})=>async()=>{let n=await(0,Gg.parseKnownFiles)(e),t=(0,Gg.getProfileName)(e),r=n[t];if(r){if(!r.sso_session)throw new Rd.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`)}else throw new Rd.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);let s=r.sso_session,c=(await(0,Gg.loadSsoSessionData)(e))[s];if(!c)throw new Rd.TokenProviderError(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let w of["sso_start_url","sso_region"])if(!c[w])throw new Rd.TokenProviderError(`Sso session '${s}' is missing required property '${w}'.`,!1);let i=c.sso_start_url,u=c.sso_region,l;try{l=await(0,Gg.getSSOTokenFromFile)(s)}catch{throw new Rd.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${G1.REFRESH_MESSAGE}`,!1)}(0,Zr.validateTokenKey)("accessToken",l.accessToken),(0,Zr.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:a,expiresAt:g}=l,C={token:a,expiration:new Date(g)};if(C.expiration.getTime()-Date.now()>G1.EXPIRE_WINDOW_MS)return C;if(Date.now()-H1.getTime()<30*1e3)return(0,$1.validateTokenExpiry)(C),C;(0,Zr.validateTokenKey)("clientId",l.clientId,!0),(0,Zr.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,Zr.validateTokenKey)("refreshToken",l.refreshToken,!0);try{H1.setTime(Date.now());let w=await(0,qJ.getNewSsoOidcToken)(l,u);(0,Zr.validateTokenKey)("accessToken",w.accessToken),(0,Zr.validateTokenKey)("expiresIn",w.expiresIn);let R=new Date(Date.now()+w.expiresIn*1e3);try{await(0,BJ.writeSSOTokenToFile)(s,{...l,accessToken:w.accessToken,expiresAt:R.toISOString(),refreshToken:w.refreshToken})}catch{}return{token:w.accessToken,expiration:R}}catch{return(0,$1.validateTokenExpiry)(C),C}};$g.fromSso=DJ});var K1=m(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});Hg.fromStatic=void 0;var MJ=Re(),FJ=({token:e})=>async()=>{if(!e||!e.token)throw new MJ.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};Hg.fromStatic=FJ});var V1=m(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.nodeProvider=void 0;var i0=Re(),LJ=o0(),jJ=(e={})=>(0,i0.memoize)((0,i0.chain)((0,LJ.fromSso)(e),async()=>{throw new i0.TokenProviderError("Could not load token from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);Kg.nodeProvider=jJ});var W1=m(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});var a0=(H(),z($));a0.__exportStar(o0(),Id);a0.__exportStar(K1(),Id);a0.__exportStar(V1(),Id)});var Y1=m(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.resolveSSOCredentials=void 0;var X1=Jq(),UJ=W1(),Nd=Re(),zJ=sn(),GJ=15*60*1e3,Od=!1,$J=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:s,ssoClient:o,profile:c})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let G=await(0,UJ.fromSso)({profile:c})();i={accessToken:G.token,expiresAt:new Date(G.expiration).toISOString()}}catch(G){throw new Nd.CredentialsProviderError(G.message,Od)}else try{i=await(0,zJ.getSSOTokenFromFile)(e)}catch{throw new Nd.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,Od)}if(new Date(i.expiresAt).getTime()-Date.now()<=GJ)throw new Nd.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,Od);let{accessToken:l}=i,a=o||new X1.SSOClient({region:r}),g;try{g=await a.send(new X1.GetRoleCredentialsCommand({accountId:t,roleName:s,accessToken:l}))}catch(G){throw Nd.CredentialsProviderError.from(G,Od)}let{roleCredentials:{accessKeyId:C,secretAccessKey:w,sessionToken:R,expiration:O}={}}=g;if(!C||!w||!R||!O)throw new Nd.CredentialsProviderError("SSO returns an invalid temporary credential.",Od);return{accessKeyId:C,secretAccessKey:w,sessionToken:R,expiration:new Date(O)}};Vg.resolveSSOCredentials=$J});var c0=m(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.validateSsoProfile=void 0;var HJ=Re(),KJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_region:r,sso_role_name:s}=e;if(!n||!t||!r||!s)throw new HJ.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Wg.validateSsoProfile=KJ});var J1=m(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.fromSSO=void 0;var Td=Re(),d0=sn(),VJ=Rb(),Q1=Y1(),WJ=c0(),XJ=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:s,ssoClient:o,ssoSession:c}=e,i=(0,d0.getProfileName)(e);if(!n&&!t&&!r&&!s&&!c){let l=(await(0,d0.parseKnownFiles)(e))[i];if(!l)throw new Td.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,VJ.isSsoProfile)(l))throw new Td.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l?.sso_session){let G=(await(0,d0.loadSsoSessionData)(e))[l.sso_session],fe=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==G.sso_region)throw new Td.CredentialsProviderError("Conflicting SSO region"+fe,!1);if(n&&n!==G.sso_start_url)throw new Td.CredentialsProviderError("Conflicting SSO start_url"+fe,!1);l.sso_region=G.sso_region,l.sso_start_url=G.sso_start_url}let{sso_start_url:a,sso_account_id:g,sso_region:C,sso_role_name:w,sso_session:R}=(0,WJ.validateSsoProfile)(l);return(0,Q1.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:R,ssoAccountId:g,ssoRegion:C,ssoRoleName:w,ssoClient:o,profile:i})}else{if(!n||!t||!r||!s)throw new Td.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,Q1.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:s,ssoClient:o,profile:i})}};Xg.fromSSO=XJ});var eB=m(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0})});var Qg=m(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Yg=(H(),z($));Yg.__exportStar(J1(),ao);Yg.__exportStar(Rb(),ao);Yg.__exportStar(eB(),ao);Yg.__exportStar(c0(),ao)});var nB=m(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.resolveSsoCredentials=co.isSsoProfile=void 0;var tB=Qg(),YJ=Qg();Object.defineProperty(co,"isSsoProfile",{enumerable:!0,get:function(){return YJ.isSsoProfile}});var QJ=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:s,sso_role_name:o}=(0,tB.validateSsoProfile)(e);return(0,tB.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:s,ssoRoleName:o})()};co.resolveSsoCredentials=QJ});var rB=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.resolveStaticCredentials=lo.isStaticCredsProfile=void 0;var JJ=e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;lo.isStaticCredsProfile=JJ;var ZJ=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});lo.resolveStaticCredentials=ZJ});var l0=m(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.fromWebToken=void 0;var eZ=Re(),tZ=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:s,policyArns:o,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new eZ.CredentialsProviderError(`Role Arn '${n}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return u({RoleArn:n,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:o,Policy:c,DurationSeconds:i})};Jg.fromWebToken=tZ});var sB=m(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.fromTokenFile=void 0;var nZ=Re(),rZ=require("fs"),sZ=l0(),oZ="AWS_WEB_IDENTITY_TOKEN_FILE",iZ="AWS_ROLE_ARN",aZ="AWS_ROLE_SESSION_NAME",cZ=(e={})=>async()=>{var n,t,r;let s=(n=e?.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[oZ],o=(t=e?.roleArn)!==null&&t!==void 0?t:process.env[iZ],c=(r=e?.roleSessionName)!==null&&r!==void 0?r:process.env[aZ];if(!s||!o)throw new nZ.CredentialsProviderError("Web identity configuration not specified");return(0,sZ.fromWebToken)({...e,webIdentityToken:(0,rZ.readFileSync)(s,{encoding:"ascii"}),roleArn:o,roleSessionName:c})()};Zg.fromTokenFile=cZ});var u0=m(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var oB=(H(),z($));oB.__exportStar(sB(),eh);oB.__exportStar(l0(),eh)});var iB=m(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.resolveWebIdentityCredentials=uo.isWebIdentityProfile=void 0;var dZ=u0(),lZ=e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;uo.isWebIdentityProfile=lZ;var uZ=async(e,n)=>(0,dZ.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();uo.resolveWebIdentityCredentials=uZ});var wb=m(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.resolveProfileData=void 0;var mZ=Re(),aB=HT(),cB=YT(),dB=nB(),th=rB(),lB=iB(),pZ=async(e,n,t,r={})=>{let s=n[e];if(Object.keys(r).length>0&&(0,th.isStaticCredsProfile)(s))return(0,th.resolveStaticCredentials)(s);if((0,aB.isAssumeRoleProfile)(s))return(0,aB.resolveAssumeRoleCredentials)(e,n,t,r);if((0,th.isStaticCredsProfile)(s))return(0,th.resolveStaticCredentials)(s);if((0,lB.isWebIdentityProfile)(s))return(0,lB.resolveWebIdentityCredentials)(s,t);if((0,cB.isProcessProfile)(s))return(0,cB.resolveProcessCredentials)(t,e);if((0,dB.isSsoProfile)(s))return(0,dB.resolveSsoCredentials)(s);throw new mZ.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};nh.resolveProfileData=pZ});var mB=m(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.fromIni=void 0;var uB=sn(),fZ=wb(),yZ=(e={})=>async()=>{let n=await(0,uB.parseKnownFiles)(e);return(0,fZ.resolveProfileData)((0,uB.getProfileName)(e),n,e)};rh.fromIni=yZ});var pB=m(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});var gZ=(H(),z($));gZ.__exportStar(mB(),m0)});var fB=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.remoteProvider=es.ENV_IMDS_DISABLED=void 0;var sh=Gy(),hZ=Re();es.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var _Z=e=>process.env[sh.ENV_CMDS_RELATIVE_URI]||process.env[sh.ENV_CMDS_FULL_URI]?(0,sh.fromContainerMetadata)(e):process.env[es.ENV_IMDS_DISABLED]?async()=>{throw new hZ.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,sh.fromInstanceMetadata)(e);es.remoteProvider=_Z});var yB=m(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.defaultProvider=void 0;var CZ=db(),SZ=pB(),bZ=Ab(),PZ=Qg(),EZ=u0(),p0=Re(),xZ=sn(),wZ=fB(),vZ=(e={})=>(0,p0.memoize)((0,p0.chain)(...e.profile||process.env[xZ.ENV_PROFILE]?[]:[(0,CZ.fromEnv)()],(0,PZ.fromSSO)(e),(0,SZ.fromIni)(e),(0,bZ.fromProcess)(e),(0,EZ.fromTokenFile)(e),(0,wZ.remoteProvider)(e),async()=>{throw new p0.CredentialsProviderError("Could not load credentials from any providers",!1)}),n=>n.expiration!==void 0&&n.expiration.getTime()-Date.now()<3e5,n=>n.expiration!==void 0);oh.defaultProvider=vZ});var y0=m(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});var kZ=(H(),z($));kZ.__exportStar(yB(),f0)});var MB=m(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.ruleSet=void 0;var kB="required",ce="type",Pe="fn",Ee="argv",Sr="ref",gB=!1,AZ=!0,ts="booleanEquals",at="tree",tt="stringEquals",AB="sigv4",RB="sts",IB="us-east-1",De="endpoint",hB="https://sts.{Region}.{PartitionResult#dnsSuffix}",mo="error",h0="getAttr",_B={[kB]:!1,[ce]:"String"},g0={[kB]:!0,default:!1,[ce]:"Boolean"},NB={[Sr]:"Endpoint"},CB={[Pe]:"isSet",[Ee]:[{[Sr]:"Region"}]},nt={[Sr]:"Region"},SB={[Pe]:"aws.partition",[Ee]:[nt],assign:"PartitionResult"},OB={[Sr]:"UseFIPS"},TB={[Sr]:"UseDualStack"},ct={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:AB,signingName:RB,signingRegion:IB}]},headers:{}},xt={},bB={conditions:[{[Pe]:tt,[Ee]:[nt,"aws-global"]}],[De]:ct,[ce]:De},qB={[Pe]:ts,[Ee]:[OB,!0]},BB={[Pe]:ts,[Ee]:[TB,!0]},PB={[Pe]:ts,[Ee]:[!0,{[Pe]:h0,[Ee]:[{[Sr]:"PartitionResult"},"supportsFIPS"]}]},DB={[Sr]:"PartitionResult"},EB={[Pe]:ts,[Ee]:[!0,{[Pe]:h0,[Ee]:[DB,"supportsDualStack"]}]},xB=[{[Pe]:"isSet",[Ee]:[NB]}],wB=[qB],vB=[BB],RZ={version:"1.0",parameters:{Region:_B,UseDualStack:g0,UseFIPS:g0,Endpoint:_B,UseGlobalEndpoint:g0},rules:[{conditions:[{[Pe]:ts,[Ee]:[{[Sr]:"UseGlobalEndpoint"},AZ]},{[Pe]:"not",[Ee]:xB},CB,SB,{[Pe]:ts,[Ee]:[OB,gB]},{[Pe]:ts,[Ee]:[TB,gB]}],[ce]:at,rules:[{conditions:[{[Pe]:tt,[Ee]:[nt,"ap-northeast-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"ap-south-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"ap-southeast-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"ap-southeast-2"]}],endpoint:ct,[ce]:De},bB,{conditions:[{[Pe]:tt,[Ee]:[nt,"ca-central-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"eu-central-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"eu-north-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"eu-west-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"eu-west-2"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"eu-west-3"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"sa-east-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,IB]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"us-east-2"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"us-west-1"]}],endpoint:ct,[ce]:De},{conditions:[{[Pe]:tt,[Ee]:[nt,"us-west-2"]}],endpoint:ct,[ce]:De},{endpoint:{url:hB,properties:{authSchemes:[{name:AB,signingName:RB,signingRegion:"{Region}"}]},headers:xt},[ce]:De}]},{conditions:xB,[ce]:at,rules:[{conditions:wB,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[ce]:mo},{[ce]:at,rules:[{conditions:vB,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[ce]:mo},{endpoint:{url:NB,properties:xt,headers:xt},[ce]:De}]}]},{[ce]:at,rules:[{conditions:[CB],[ce]:at,rules:[{conditions:[SB],[ce]:at,rules:[{conditions:[qB,BB],[ce]:at,rules:[{conditions:[PB,EB],[ce]:at,rules:[{[ce]:at,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xt,headers:xt},[ce]:De}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[ce]:mo}]},{conditions:wB,[ce]:at,rules:[{conditions:[PB],[ce]:at,rules:[{[ce]:at,rules:[{conditions:[{[Pe]:tt,[Ee]:["aws-us-gov",{[Pe]:h0,[Ee]:[DB,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:xt,headers:xt},[ce]:De},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:xt,headers:xt},[ce]:De}]}]},{error:"FIPS is enabled but this partition does not support FIPS",[ce]:mo}]},{conditions:vB,[ce]:at,rules:[{conditions:[EB],[ce]:at,rules:[{[ce]:at,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xt,headers:xt},[ce]:De}]}]},{error:"DualStack is enabled but this partition does not support DualStack",[ce]:mo}]},{[ce]:at,rules:[bB,{endpoint:{url:hB,properties:xt,headers:xt},[ce]:De}]}]}]},{error:"Invalid Configuration: Missing Region",[ce]:mo}]}]};ih.ruleSet=RZ});var FB=m(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.defaultEndpointResolver=void 0;var IZ=ks(),NZ=MB(),OZ=(e,n={})=>(0,IZ.resolveEndpoint)(NZ.ruleSet,{endpointParams:e,logger:n.logger});ah.defaultEndpointResolver=OZ});var UB=m(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.getRuntimeConfig=void 0;var TZ=v(),qZ=Ur(),LB=Os(),jB=jt(),BZ=FB(),DZ=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??LB.fromBase64,base64Encoder:e?.base64Encoder??LB.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??BZ.defaultEndpointResolver,logger:e?.logger??new TZ.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??qZ.parseUrl,utf8Decoder:e?.utf8Decoder??jB.fromUtf8,utf8Encoder:e?.utf8Encoder??jB.toUtf8});ch.getRuntimeConfig=DZ});var $B=m(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.getRuntimeConfig=void 0;var MZ=(H(),z($)),FZ=MZ.__importDefault(hO()),LZ=ab(),jZ=y0(),UZ=Gc(),dh=Yt(),zZ=$c(),zB=On(),qd=gr(),GB=Bs(),GZ=Hc(),$Z=Ot(),HZ=UB(),KZ=v(),VZ=Wc(),WZ=v(),XZ=e=>{(0,WZ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,VZ.resolveDefaultsModeConfig)(e),t=()=>n().then(KZ.loadConfigsForDefaultMode),r=(0,HZ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:e?.bodyLengthChecker??GZ.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,LZ.decorateDefaultCredentialProvider)(jZ.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,UZ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:FZ.default.version}),maxAttempts:e?.maxAttempts??(0,qd.loadConfig)(zB.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,qd.loadConfig)(dh.NODE_REGION_CONFIG_OPTIONS,dh.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new GB.NodeHttpHandler(t),retryMode:e?.retryMode??(0,qd.loadConfig)({...zB.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||$Z.DEFAULT_RETRY_MODE}),sha256:e?.sha256??zZ.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??GB.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,qd.loadConfig)(dh.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,qd.loadConfig)(dh.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};lh.getRuntimeConfig=XZ});var uh=m(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.STSClient=po.__Client=void 0;var HB=Ta(),YZ=qa(),QZ=Ba(),JZ=yO(),KB=oc(),ZZ=Yt(),eee=dc(),tee=I(),VB=On(),WB=v();Object.defineProperty(po,"__Client",{enumerable:!0,get:function(){return WB.Client}});var nee=gO(),ree=$B(),Bd=class extends WB.Client{constructor(n){let t=(0,ree.getRuntimeConfig)(n),r=(0,nee.resolveClientEndpointParameters)(t),s=(0,ZZ.resolveRegionConfig)(r),o=(0,tee.resolveEndpointConfig)(s),c=(0,VB.resolveRetryConfig)(o),i=(0,HB.resolveHostHeaderConfig)(c),u=(0,JZ.resolveStsAuthConfig)(i,{stsClientCtor:Bd}),l=(0,KB.resolveUserAgentConfig)(u);super(l),this.config=l,this.middlewareStack.use((0,VB.getRetryPlugin)(this.config)),this.middlewareStack.use((0,eee.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,HB.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,YZ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,QZ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,KB.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};po.STSClient=Bd});var _0=m(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.AssumeRoleWithSAMLCommand=fo.$Command=void 0;var see=I(),oee=N(),QB=v();Object.defineProperty(fo,"$Command",{enumerable:!0,get:function(){return QB.Command}});var XB=ir(),YB=Bn(),Dd=class extends QB.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,oee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,see.getEndpointPlugin)(t,Dd.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:XB.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:XB.AssumeRoleWithSAMLResponseFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YB.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,YB.de_AssumeRoleWithSAMLCommand)(n,t)}};fo.AssumeRoleWithSAMLCommand=Dd});var C0=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.DecodeAuthorizationMessageCommand=yo.$Command=void 0;var iee=kn(),aee=I(),cee=N(),ZB=v();Object.defineProperty(yo,"$Command",{enumerable:!0,get:function(){return ZB.Command}});var JB=Bn(),Md=class extends ZB.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,cee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,aee.getEndpointPlugin)(t,Md.getEndpointParameterInstructions())),this.middlewareStack.use((0,iee.getAwsAuthPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JB.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,JB.de_DecodeAuthorizationMessageCommand)(n,t)}};yo.DecodeAuthorizationMessageCommand=Md});var S0=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.GetAccessKeyInfoCommand=go.$Command=void 0;var dee=kn(),lee=I(),uee=N(),tD=v();Object.defineProperty(go,"$Command",{enumerable:!0,get:function(){return tD.Command}});var eD=Bn(),Fd=class extends tD.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,uee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lee.getEndpointPlugin)(t,Fd.getEndpointParameterInstructions())),this.middlewareStack.use((0,dee.getAwsAuthPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,eD.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,eD.de_GetAccessKeyInfoCommand)(n,t)}};go.GetAccessKeyInfoCommand=Fd});var b0=m(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.GetCallerIdentityCommand=ho.$Command=void 0;var mee=kn(),pee=I(),fee=N(),rD=v();Object.defineProperty(ho,"$Command",{enumerable:!0,get:function(){return rD.Command}});var nD=Bn(),Ld=class extends rD.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,fee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,pee.getEndpointPlugin)(t,Ld.getEndpointParameterInstructions())),this.middlewareStack.use((0,mee.getAwsAuthPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nD.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,nD.de_GetCallerIdentityCommand)(n,t)}};ho.GetCallerIdentityCommand=Ld});var P0=m(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.GetFederationTokenCommand=_o.$Command=void 0;var yee=kn(),gee=I(),hee=N(),oD=v();Object.defineProperty(_o,"$Command",{enumerable:!0,get:function(){return oD.Command}});var _ee=ir(),sD=Bn(),jd=class extends oD.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,hee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,gee.getEndpointPlugin)(t,jd.getEndpointParameterInstructions())),this.middlewareStack.use((0,yee.getAwsAuthPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:_ee.GetFederationTokenResponseFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,sD.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,sD.de_GetFederationTokenCommand)(n,t)}};_o.GetFederationTokenCommand=jd});var E0=m(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.GetSessionTokenCommand=Co.$Command=void 0;var Cee=kn(),See=I(),bee=N(),aD=v();Object.defineProperty(Co,"$Command",{enumerable:!0,get:function(){return aD.Command}});var Pee=ir(),iD=Bn(),Ud=class extends aD.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,See.getEndpointPlugin)(t,Ud.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cee.getAwsAuthPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Pee.GetSessionTokenResponseFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,iD.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,iD.de_GetSessionTokenCommand)(n,t)}};Co.GetSessionTokenCommand=Ud});var cD=m(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.STS=void 0;var Eee=v(),xee=gy(),wee=_0(),vee=hy(),kee=C0(),Aee=S0(),Ree=b0(),Iee=P0(),Nee=E0(),Oee=uh(),Tee={AssumeRoleCommand:xee.AssumeRoleCommand,AssumeRoleWithSAMLCommand:wee.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:vee.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:kee.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:Aee.GetAccessKeyInfoCommand,GetCallerIdentityCommand:Ree.GetCallerIdentityCommand,GetFederationTokenCommand:Iee.GetFederationTokenCommand,GetSessionTokenCommand:Nee.GetSessionTokenCommand},mh=class extends Oee.STSClient{};ph.STS=mh;(0,Eee.createAggregatedClient)(Tee,mh)});var dD=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});var br=(H(),z($));br.__exportStar(gy(),yn);br.__exportStar(_0(),yn);br.__exportStar(hy(),yn);br.__exportStar(C0(),yn);br.__exportStar(S0(),yn);br.__exportStar(b0(),yn);br.__exportStar(P0(),yn);br.__exportStar(E0(),yn)});var lD=m(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});var qee=(H(),z($));qee.__exportStar(ir(),x0)});var fD=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.decorateDefaultCredentialProvider=gn.getDefaultRoleAssumerWithWebIdentity=gn.getDefaultRoleAssumer=void 0;var uD=ab(),mD=uh(),pD=(e,n)=>n?class extends e{constructor(r){super(r);for(let s of n)this.middlewareStack.use(s)}}:e,Bee=(e={},n)=>(0,uD.getDefaultRoleAssumer)(e,pD(mD.STSClient,n));gn.getDefaultRoleAssumer=Bee;var Dee=(e={},n)=>(0,uD.getDefaultRoleAssumerWithWebIdentity)(e,pD(mD.STSClient,n));gn.getDefaultRoleAssumerWithWebIdentity=Dee;var Mee=e=>n=>e({roleAssumer:(0,gn.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,gn.getDefaultRoleAssumerWithWebIdentity)(n),...n});gn.decorateDefaultCredentialProvider=Mee});var yD=m(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.STSServiceException=void 0;var zd=(H(),z($));zd.__exportStar(uh(),Un);zd.__exportStar(cD(),Un);zd.__exportStar(dD(),Un);zd.__exportStar(lD(),Un);zd.__exportStar(fD(),Un);var Fee=uy();Object.defineProperty(Un,"STSServiceException",{enumerable:!0,get:function(){return Fee.STSServiceException}})});var gD=m(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.isArrayBuffer=void 0;var Lee=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";fh.isArrayBuffer=Lee});var v0=m(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.fromString=So.fromArrayBuffer=void 0;var jee=gD(),w0=require("buffer"),Uee=(e,n=0,t=e.byteLength-n)=>{if(!(0,jee.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return w0.Buffer.from(e,n,t)};So.fromArrayBuffer=Uee;var zee=(e,n)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return n?w0.Buffer.from(e,n):w0.Buffer.from(e)};So.fromString=zee});var k0=m(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.fromUtf8=void 0;var Gee=v0(),$ee=e=>{let n=(0,Gee.fromString)(e,"utf8");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT)};yh.fromUtf8=$ee});var hD=m(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.toUint8Array=void 0;var Hee=k0(),Kee=e=>typeof e=="string"?(0,Hee.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e);gh.toUint8Array=Kee});var _D=m(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.toUtf8=void 0;var Vee=v0(),Wee=e=>(0,Vee.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");hh.toUtf8=Wee});var CD=m(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});var A0=(H(),z($));A0.__exportStar(k0(),Gd);A0.__exportStar(hD(),Gd);A0.__exportStar(_D(),Gd)});var I0=m(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.HashCalculator=void 0;var Xee=CD(),Yee=require("stream"),R0=class extends Yee.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,Xee.toUint8Array)(n))}catch(s){return r(s)}r()}};_h.HashCalculator=R0});var SD=m(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.fileStreamHasher=void 0;var Qee=require("fs"),Jee=I0(),Zee=(e,n)=>new Promise((t,r)=>{if(!ete(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,Qee.createReadStream)(n.path,{start:n.start,end:n.end}),o=new e,c=new Jee.HashCalculator(o);s.pipe(c),s.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){o.digest().then(t).catch(r)})});Ch.fileStreamHasher=Zee;var ete=e=>typeof e.path=="string"});var bD=m(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.readableStreamHasher=void 0;var tte=I0(),nte=(e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new tte.HashCalculator(t);return n.pipe(r),new Promise((s,o)=>{n.on("error",c=>{r.end(),o(c)}),r.on("error",o),r.on("finish",()=>{t.digest().then(s).catch(o)})})};Sh.readableStreamHasher=nte});var ED=m(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var PD=(H(),z($));PD.__exportStar(SD(),bh);PD.__exportStar(bD(),bh)});var xD=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var Ph=ic();hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ph.booleanSelector)(e,hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,Ph.SelectorType.ENV),configFileSelector:e=>(0,Ph.booleanSelector)(e,hn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,Ph.SelectorType.CONFIG),default:!1}});var wD=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.NODE_USE_ARN_REGION_CONFIG_OPTIONS=_n.NODE_USE_ARN_REGION_INI_NAME=_n.NODE_USE_ARN_REGION_ENV_NAME=void 0;var Eh=ic();_n.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";_n.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";_n.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Eh.booleanSelector)(e,_n.NODE_USE_ARN_REGION_ENV_NAME,Eh.SelectorType.ENV),configFileSelector:e=>(0,Eh.booleanSelector)(e,_n.NODE_USE_ARN_REGION_INI_NAME,Eh.SelectorType.CONFIG),default:!1}});var T0=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.validateMrapAlias=me.validateNoFIPS=me.validateNoDualstack=me.getArnResources=me.validateCustomEndpoint=me.validateDNSHostLabel=me.validateAccountId=me.validateRegionalClient=me.validateRegion=me.validatePartition=me.validateOutpostService=me.validateS3Service=me.validateService=me.validateArnEndpointOptions=me.getSuffixForArnEndpoint=me.getSuffix=me.isDnsCompatibleBucketName=me.isBucketNameOptions=me.S3_HOSTNAME_PATTERN=me.DOT_PATTERN=void 0;var rte=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ste=/(\d+\.){3}\d+/,ote=/\.\./;me.DOT_PATTERN=/\./;me.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var vD=/^s3(-external-1)?\.amazonaws\.com$/,O0="amazonaws.com",ite=e=>typeof e.bucketName=="string";me.isBucketNameOptions=ite;var ate=e=>rte.test(e)&&!ste.test(e)&&!ote.test(e);me.isDnsCompatibleBucketName=ate;var kD=e=>{let n=e.match(me.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},cte=e=>vD.test(e)?["us-east-1",O0]:kD(e);me.getSuffix=cte;var dte=e=>vD.test(e)?[e.replace(`.${O0}`,""),O0]:kD(e);me.getSuffixForArnEndpoint=dte;var lte=e=>{if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")};me.validateArnEndpointOptions=lte;var ute=e=>{if(e!=="s3"&&e!=="s3-outposts"&&e!=="s3-object-lambda")throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component")};me.validateService=ute;var mte=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};me.validateS3Service=mte;var pte=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};me.validateOutpostService=pte;var fte=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};me.validatePartition=fte;var yte=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!N0(e,n.clientRegion))throw new Error(`Client FIPS region ${n.clientRegion} doesn't match region ${e} in ARN`)}else throw new Error("FIPS region is not supported");if(!n.useArnRegion&&!N0(e,n.clientRegion||"")&&!N0(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};me.validateRegion=yte;var gte=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};me.validateRegionalClient=gte;var N0=(e,n)=>e===n,hte=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};me.validateAccountId=hte;var _te=(e,n={tlsCompatible:!0})=>{if(e.length>=64||!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||n?.tlsCompatible&&me.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};me.validateDNSHostLabel=_te;var Cte=e=>{if(e.isCustomEndpoint){if(e.dualstackEndpoint)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported with custom endpoint")}};me.validateCustomEndpoint=Cte;var Ste=e=>{let n=e.includes(":")?":":"/",[t,...r]=e.split(n);if(t==="accesspoint"){if(r.length!==1||r[0]==="")throw new Error(`Access Point ARN should have one resource accesspoint${n}{accesspointname}`);return{accesspointName:r[0]}}else if(t==="outpost"){if(!r[0]||r[1]!=="accesspoint"||!r[2]||r.length!==3)throw new Error(`Outpost ARN should have resource outpost${n}{outpostId}${n}accesspoint${n}{accesspointName}`);let[s,o,c]=r;return{outpostId:s,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};me.getArnResources=Ste;var bte=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};me.validateNoDualstack=bte;var Pte=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};me.validateNoFIPS=Pte;var Ete=e=>{try{e.split(".").forEach(n=>{(0,me.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};me.validateMrapAlias=Ete});var q0=m(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.bucketHostname=void 0;var ke=T0(),xte=e=>((0,ke.validateCustomEndpoint)(e),(0,ke.isBucketNameOptions)(e)?wte(e):vte(e));xh.bucketHostname=xte;var wte=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:s=!1,fipsEndpoint:o=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,ke.getSuffix)(t);return c||!(0,ke.isDnsCompatibleBucketName)(r)||i&&ke.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:s?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${s?".dualstack":""}.${a}`:s&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},vte=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,s=n?t:(0,ke.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:o,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,ke.validateArnEndpointOptions)({pathStyleEndpoint:o,accelerateEndpoint:c,tlsCompatible:u});let{service:g,partition:C,accountId:w,region:R,resource:O}=l;(0,ke.validateService)(g),(0,ke.validatePartition)(C,{clientPartition:a}),(0,ke.validateAccountId)(w);let{accesspointName:G,outpostId:fe}=(0,ke.getArnResources)(O);return g==="s3-object-lambda"?kte({...e,tlsCompatible:u,bucketName:l,accesspointName:G,hostnameSuffix:s}):R===""?Ate({...e,clientRegion:r,mrapAlias:G,hostnameSuffix:s}):fe?Rte({...e,clientRegion:r,outpostId:fe,accesspointName:G,hostnameSuffix:s}):Ite({...e,clientRegion:r,accesspointName:G,hostnameSuffix:s})},kte=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:s,clientSigningRegion:o=s,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:g}=i;(0,ke.validateRegionalClient)(s),(0,ke.validateRegion)(a,{useArnRegion:r,clientRegion:s,clientSigningRegion:o,allowFipsRegion:!0,useFipsEndpoint:n}),(0,ke.validateNoDualstack)(e);let C=`${c}-${l}`;(0,ke.validateDNSHostLabel)(C,{tlsCompatible:t});let w=r?a:s,R=r?a:o;return{bucketEndpoint:!0,hostname:`${C}.${g}${n?"-fips":""}.${w}.${u}`,signingRegion:R,signingService:g}},Ate=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:s})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,ke.validateMrapAlias)(r),(0,ke.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${s}`,signingRegion:"*"}},Rte=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:s,dualstackEndpoint:o=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,ke.validateRegionalClient)(n),(0,ke.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let g=`${u}-${r.accountId}`;(0,ke.validateDNSHostLabel)(g,{tlsCompatible:i});let C=e?r.region:n,w=e?r.region:t;return(0,ke.validateOutpostService)(r.service),(0,ke.validateDNSHostLabel)(s,{tlsCompatible:i}),(0,ke.validateNoDualstack)(o),(0,ke.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${g}.${s}`}${l?"":`.s3-outposts.${C}`}.${a}`,signingRegion:w,signingService:"s3-outposts"}},Ite=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:s=!1,fipsEndpoint:o=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,ke.validateRegionalClient)(n),(0,ke.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:o});let a=`${i}-${r.accountId}`;(0,ke.validateDNSHostLabel)(a,{tlsCompatible:c});let g=e?r.region:n,C=e?r.region:t;return(0,ke.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${o?"-fips":""}${s?".dualstack":""}.${g}`}.${l}`,signingRegion:C}}});var ID=m(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.getBucketEndpointPlugin=Cn.bucketEndpointMiddlewareOptions=Cn.bucketEndpointMiddleware=void 0;var AD=M_(),Nte=$e(),RD=q0(),Ote=e=>(n,t)=>async r=>{let{Bucket:s}=r.input,o=e.bucketEndpoint,c=r.request;if(Nte.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=s;else if((0,AD.validate)(s)){let i=(0,AD.parse)(s),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:g,signingRegion:C=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},w=await e.useArnRegion(),{hostname:R,bucketEndpoint:O,signingRegion:G,signingService:fe}=(0,RD.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:w,clientPartition:g,clientSigningRegion:C,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});G&&G!==C&&(t.signing_region=G),fe&&fe!=="s3"&&(t.signing_service=fe),c.hostname=R,o=O}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:g}=(0,RD.bucketHostname)({bucketName:s,clientRegion:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:u,fipsEndpoint:l,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",isCustomEndpoint:e.isCustomEndpoint});c.hostname=a,o=g}o&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};Cn.bucketEndpointMiddleware=Ote;Cn.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var Tte=e=>({applyToStack:n=>{n.addRelativeTo((0,Cn.bucketEndpointMiddleware)(e),Cn.bucketEndpointMiddlewareOptions)}});Cn.getBucketEndpointPlugin=Tte});var ND=m(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.resolveBucketEndpointConfig=void 0;function qte(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:s=!1,disableMultiregionAccessPoints:o=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof s=="function"?s:()=>Promise.resolve(s),disableMultiregionAccessPoints:typeof o=="function"?o:()=>Promise.resolve(o)}}wh.resolveBucketEndpointConfig=qte});var OD=m(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.validateNoFIPS=Te.validateNoDualstack=Te.validateDNSHostLabel=Te.validateRegion=Te.validateAccountId=Te.validatePartition=Te.validateOutpostService=Te.getSuffixForArnEndpoint=Te.getArnResources=void 0;var $d=(H(),z($));$d.__exportStar(xD(),Te);$d.__exportStar(wD(),Te);$d.__exportStar(ID(),Te);$d.__exportStar(q0(),Te);$d.__exportStar(ND(),Te);var zn=T0();Object.defineProperty(Te,"getArnResources",{enumerable:!0,get:function(){return zn.getArnResources}});Object.defineProperty(Te,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return zn.getSuffixForArnEndpoint}});Object.defineProperty(Te,"validateOutpostService",{enumerable:!0,get:function(){return zn.validateOutpostService}});Object.defineProperty(Te,"validatePartition",{enumerable:!0,get:function(){return zn.validatePartition}});Object.defineProperty(Te,"validateAccountId",{enumerable:!0,get:function(){return zn.validateAccountId}});Object.defineProperty(Te,"validateRegion",{enumerable:!0,get:function(){return zn.validateRegion}});Object.defineProperty(Te,"validateDNSHostLabel",{enumerable:!0,get:function(){return zn.validateDNSHostLabel}});Object.defineProperty(Te,"validateNoDualstack",{enumerable:!0,get:function(){return zn.validateNoDualstack}});Object.defineProperty(Te,"validateNoFIPS",{enumerable:!0,get:function(){return zn.validateNoFIPS}})});var TD=m(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.getChunkedStream=void 0;function Bte(e){let n=0,t=0,r=null,s=null,o=i=>{if(typeof i!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+i);n=i,t=4,r=new Uint8Array(i),new DataView(r.buffer).setUint32(0,i,!1)},c=async function*(){let i=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await i.next();if(l){if(n)if(n===t)yield r;else throw new Error("Truncated event message received.");else return;return}let a=u.length,g=0;for(;g{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.getMessageUnmarshaller=bo.getUnmarshalledStream=void 0;function Dte(e,n){let t=qD(n.deserializer,n.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let r of e){let s=n.eventStreamCodec.decode(r),o=await t(s);o!==void 0&&(yield o)}}}}bo.getUnmarshalledStream=Dte;function qD(e,n){return async function(t){let{value:r}=t.headers[":message-type"];if(r==="error"){let s=new Error(t.headers[":error-message"].value||"UnknownError");throw s.name=t.headers[":error-code"].value,s}else if(r==="exception"){let s=t.headers[":exception-type"].value,o={[s]:t},c=await e(o);if(c.$unknown){let i=new Error(n(t.body));throw i.name=s,i}throw c[s]}else if(r==="event"){let s={[t.headers[":event-type"].value]:t},o=await e(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`)}}bo.getMessageUnmarshaller=qD});var D0=m(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.EventStreamMarshaller=void 0;var Hd=eC(),Mte=TD(),Fte=BD(),B0=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.eventStreamCodec=new Hd.EventStreamCodec(n,t),this.utfEncoder=n}deserialize(n,t){let r=(0,Mte.getChunkedStream)(n);return new Hd.SmithyMessageDecoderStream({messageStream:new Hd.MessageDecoderStream({inputStream:r,decoder:this.eventStreamCodec}),deserializer:(0,Fte.getMessageUnmarshaller)(t,this.utfEncoder)})}serialize(n,t){return new Hd.MessageEncoderStream({messageStream:new Hd.SmithyMessageEncoderStream({inputStream:n,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};kh.EventStreamMarshaller=B0});var DD=m(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.eventStreamSerdeProvider=void 0;var Lte=D0(),jte=e=>new Lte.EventStreamMarshaller(e);Ah.eventStreamSerdeProvider=jte});var FD=m(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var MD=(H(),z($));MD.__exportStar(D0(),Rh);MD.__exportStar(DD(),Rh)});var LD=m(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.readabletoIterable=void 0;async function*Ute(e){let n=!1,t=!1,r=new Array;for(e.on("error",s=>{if(n||(n=!0),s)throw s}),e.on("data",s=>{r.push(s)}),e.on("end",()=>{n=!0});!t;){let s=await new Promise(o=>setTimeout(()=>o(r.shift()),0));s&&(yield s),t=n&&r.length===0}}Ih.readabletoIterable=Ute});var F0=m(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.EventStreamMarshaller=void 0;var zte=FD(),Gte=require("stream"),$te=LD(),M0=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new zte.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:(0,$te.readabletoIterable)(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return Gte.Readable.from(this.universalMarshaller.serialize(n,t))}};Nh.EventStreamMarshaller=M0});var jD=m(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.eventStreamSerdeProvider=void 0;var Hte=F0(),Kte=e=>new Hte.EventStreamMarshaller(e);Oh.eventStreamSerdeProvider=Kte});var zD=m(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var UD=(H(),z($));UD.__exportStar(F0(),Th);UD.__exportStar(jD(),Th)});var GD=m(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});qh.SignatureV4MultiRegion=void 0;var Vte=_C(),L0=class{constructor(n){this.sigv4Signer=new Vte.SignatureV4(n),this.signerOptions=n}async sign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().sign(n,t)}return this.sigv4Signer.sign(n,t)}async presign(n,t={}){if(t.signingRegion==="*"){if(this.signerOptions.runtime!=="node")throw new Error("This request requires signing with SigV4Asymmetric algorithm. It's only available in Node.js");return this.getSigv4aSigner().presign(n,t)}return this.sigv4Signer.presign(n,t)}getSigv4aSigner(){if(!this.sigv4aSigner){let n;try{if(n=typeof require=="function"&&require("@aws-sdk/signature-v4-crt").CrtSignerV4,typeof n!="function")throw new Error}catch(t){throw t.message=`${t.message} -Please check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. -For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,t}this.sigv4aSigner=new n({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}};qh.SignatureV4MultiRegion=L0});var $D=m(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var Wte=(H(),z($));Wte.__exportStar(GD(),j0)});var uF=m(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.ruleSet=void 0;var cP="required",f="type",P="rules",b="conditions",h="fn",_="argv",x="ref",Je="assign",W="url",X="properties",re="authSchemes",se="disableDoubleEncoding",oe="signingName",ie="signingRegion",Y="headers",HD=!1,Sn=!0,E="tree",wt="isSet",Kd="substring",JM="hardwareType",ZM="regionPrefix",KD="abbaSuffix",iP="outpostId",Qd="aws.partition",J="stringEquals",ss="isValidHostLabel",je="not",Q="error",eF="parseURL",dP="s3-outposts",k="endpoint",V="booleanEquals",tF="aws.parseArn",de="s3",VD="aws.isVirtualHostableS3Bucket",Me="getAttr",ee="name",U0="Host override cannot be combined with Dualstack, FIPS, or S3 Accelerate",nF="https://{Bucket}.s3.{partitionResult#dnsSuffix}",rF="bucketArn",sF="arnType",jh="",lP="s3-object-lambda",oF="accesspoint",uP="accessPointName",WD="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",XD="mrapPartition",YD="outpostType",QD="arnPrefix",os="{url#scheme}://{url#authority}{url#path}",iF="https://s3.{partitionResult#dnsSuffix}",z0={[cP]:!1,[f]:"String"},Vd={[cP]:!0,default:!1,[f]:"Boolean"},Bh={[cP]:!1,[f]:"Boolean"},aF={[h]:wt,[_]:[{[x]:"Bucket"}]},bn={[x]:"Bucket"},JD={[x]:JM},ZD={[b]:[{[h]:je,[_]:[{[h]:wt,[_]:[{[x]:"Endpoint"}]}]}],[Q]:"Expected a endpoint to be specified but no endpoint was found",[f]:Q},le={[h]:je,[_]:[{[h]:wt,[_]:[{[x]:"Endpoint"}]}]},ye={[h]:wt,[_]:[{[x]:"Endpoint"}]},ve={[h]:eF,[_]:[{[x]:"Endpoint"}],[Je]:"url"},Dh={[re]:[{[se]:!0,[ee]:"sigv4",[oe]:dP,[ie]:"{Region}"}]},Ve={},eM={[x]:"ForcePathStyle"},tM={[b]:[{[h]:"uriEncode",[_]:[bn],[Je]:"uri_encoded_bucket"}],[f]:E,[P]:[{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},ye],[Q]:"Cannot set dual-stack in combination with a custom endpoint.",[f]:Q},{[f]:E,[P]:[{[b]:[{[h]:Qd,[_]:[{[x]:"Region"}],[Je]:"partitionResult"}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:V,[_]:[{[x]:"Accelerate"},!1]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]}],[f]:E,[P]:[{[k]:{[W]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]}],[k]:{[W]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]}],[f]:E,[P]:[{[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]}],[f]:E,[P]:[{[k]:{[W]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!0]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]}],[k]:{[W]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]}],[f]:E,[P]:[{[k]:{[W]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!0]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]}],[k]:{[W]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]}],[f]:E,[P]:[{[b]:[{[h]:J,[_]:[{[x]:"Region"},"us-east-1"]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},ye,ve,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]}],[f]:E,[P]:[{[b]:[{[h]:J,[_]:[{[x]:"Region"},"us-east-1"]}],[k]:{[W]:"https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k},{[k]:{[W]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]},{[b]:[{[h]:V,[_]:[{[x]:"UseDualStack"},!1]},le,{[h]:V,[_]:[{[x]:"UseFIPS"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},{[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]}],[k]:{[W]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},[Y]:{}},[f]:k}]}]},{[Q]:"Path-style addressing cannot be used with S3 Accelerate",[f]:Q}]}]},{[Q]:"A valid partition could not be determined",[f]:Q}]}]},Ie={[h]:V,[_]:[{[x]:"UseDualStack"},!0]},We={[h]:V,[_]:[{[x]:"Accelerate"},!1]},qe={[h]:V,[_]:[{[x]:"UseFIPS"},!0]},Se={[h]:je,[_]:[{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}]},dt={[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!0]},ut={[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{Region}"}]},lt={[h]:V,[_]:[{[x]:"UseGlobalEndpoint"},!1]},xe={[h]:V,[_]:[{[x]:"UseDualStack"},!1]},he={[h]:V,[_]:[{[x]:"UseFIPS"},!1]},ns={[Q]:"A valid partition could not be determined",[f]:Q},G0={[b]:[qe,{[h]:J,[_]:[{[h]:Me,[_]:[{[x]:"partitionResult"},ee]},"aws-cn"]}],[Q]:"Partition does not support FIPS",[f]:Q},Xte={[h]:J,[_]:[{[h]:Me,[_]:[{[x]:"partitionResult"},ee]},"aws-cn"]},zt={[h]:V,[_]:[{[x]:"Accelerate"},!0]},nM={[b]:[Ie,qe,We,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},rM={[W]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},sM={[b]:[xe,qe,We,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},oM={[W]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},iM={[b]:[Ie,he,zt,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},aM={[W]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},cM={[b]:[Ie,he,We,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},dM={[W]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},lM={[b]:[xe,he,We,ye,ve,{[h]:V,[_]:[{[h]:Me,[_]:[{[x]:"url"},"isIp"]},!0]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},uM={[h]:V,[_]:[{[h]:Me,[_]:[{[x]:"url"},"isIp"]},!0]},mP={[x]:"url"},mM={[b]:[xe,he,We,ye,ve,{[h]:V,[_]:[{[h]:Me,[_]:[mP,"isIp"]},!1]},{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},pM={[h]:V,[_]:[{[h]:Me,[_]:[mP,"isIp"]},!1]},$0={[W]:"{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",[X]:ut,[Y]:{}},aP={[W]:"{url#scheme}://{Bucket}.{url#authority}{url#path}",[X]:ut,[Y]:{}},fM={[k]:aP,[f]:k},yM={[b]:[xe,he,zt,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},H0={[W]:"https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},gM={[b]:[xe,he,We,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:nF,[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},hM={[W]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},Mh={[Q]:"Invalid region: region was not a valid DNS name.",[f]:Q},Ct={[x]:rF},cF={[x]:sF},K0={[h]:Me,[_]:[Ct,"service"]},pP={[x]:uP},_M={[b]:[Ie],[Q]:"S3 Object Lambda does not support Dual-stack",[f]:Q},CM={[b]:[zt],[Q]:"S3 Object Lambda does not support S3 Accelerate",[f]:Q},SM={[b]:[{[h]:wt,[_]:[{[x]:"DisableAccessPoints"}]},{[h]:V,[_]:[{[x]:"DisableAccessPoints"},!0]}],[Q]:"Access points are not supported for this operation",[f]:Q},V0={[b]:[{[h]:wt,[_]:[{[x]:"UseArnRegion"}]},{[h]:V,[_]:[{[x]:"UseArnRegion"},!1]},{[h]:je,[_]:[{[h]:J,[_]:[{[h]:Me,[_]:[Ct,"region"]},"{Region}"]}]}],[Q]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[f]:Q},fP={[h]:Me,[_]:[{[x]:"bucketPartition"},ee]},dF={[h]:Me,[_]:[Ct,"accountId"]},bM={[b]:[qe,{[h]:J,[_]:[fP,"aws-cn"]}],[Q]:"Partition does not support FIPS",[f]:Q},W0={[re]:[{[se]:!0,[ee]:"sigv4",[oe]:lP,[ie]:"{bucketArn#region}"}]},PM={[Q]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[f]:Q},X0={[Q]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[f]:Q},Y0={[Q]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[f]:Q},Q0={[Q]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[f]:Q},EM={[Q]:"Could not load partition for ARN region `{bucketArn#region}`",[f]:Q},xM={[Q]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[f]:Q},wM={[Q]:"Invalid ARN: bucket ARN is missing a region",[f]:Q},vM={[Q]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[f]:Q},Wd={[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"{bucketArn#region}"}]},kM={[re]:[{[se]:!0,[ee]:"sigv4",[oe]:dP,[ie]:"{bucketArn#region}"}]},AM={[x]:"UseObjectLambdaEndpoint"},J0={[re]:[{[se]:!0,[ee]:"sigv4",[oe]:lP,[ie]:"{Region}"}]},RM={[b]:[qe,Ie,ye,ve,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:os,[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},lF={[k]:{[W]:os,[X]:ut,[Y]:{}},[f]:k},Xd={[W]:os,[X]:ut,[Y]:{}},IM={[b]:[qe,Ie,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},NM={[W]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},OM={[b]:[qe,xe,ye,ve,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:os,[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},TM={[b]:[qe,xe,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},qM={[W]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},BM={[b]:[he,Ie,ye,ve,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:os,[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},DM={[b]:[he,Ie,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},MM={[W]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},FM={[b]:[he,xe,ye,ve,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:os,[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},LM={[b]:[he,xe,le,{[h]:J,[_]:[{[x]:"Region"},"aws-global"]}],[k]:{[W]:iF,[X]:{[re]:[{[se]:!0,[ee]:"sigv4",[oe]:de,[ie]:"us-east-1"}]},[Y]:{}},[f]:k},jM={[W]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[X]:ut,[Y]:{}},Lh=[{[x]:"Region"}],Yte=[bn],UM=[{[h]:ss,[_]:[{[x]:iP},!1]}],zM=[{[h]:J,[_]:[{[x]:ZM},"beta"]}],Qte=[{[x]:"Endpoint"}],Yd=[ye,ve],GM=[aF],$M=[{[h]:tF,[_]:[bn]}],Jte=[Ie,ye],rs=[{[h]:Qd,[_]:Lh,[Je]:"partitionResult"}],Po=[{[h]:J,[_]:[{[x]:"Region"},"us-east-1"]}],HM=[{[h]:ss,[_]:[{[x]:"Region"},!1]}],Z0=[{[h]:J,[_]:[cF,oF]}],KM=[{[h]:Me,[_]:[Ct,"resourceId[1]"],[Je]:uP},{[h]:je,[_]:[{[h]:J,[_]:[pP,jh]}]}],Zte=[Ct,"resourceId[1]"],VM=[Ie],eP=[zt],tP=[{[h]:je,[_]:[{[h]:J,[_]:[{[h]:Me,[_]:[Ct,"region"]},jh]}]}],WM=[{[h]:je,[_]:[{[h]:wt,[_]:[{[h]:Me,[_]:[Ct,"resourceId[2]"]}]}]}],ene=[Ct,"resourceId[2]"],nP=[{[h]:Qd,[_]:[{[h]:Me,[_]:[Ct,"region"]}],[Je]:"bucketPartition"}],XM=[{[h]:J,[_]:[fP,{[h]:Me,[_]:[{[x]:"partitionResult"},ee]}]}],rP=[{[h]:ss,[_]:[{[h]:Me,[_]:[Ct,"region"]},!0]}],sP=[{[h]:ss,[_]:[dF,!1]}],YM=[{[h]:ss,[_]:[pP,!1]}],Fh=[qe],QM=[{[h]:ss,[_]:[{[x]:"Region"},!0]}],oP=[lF],tne={version:"1.0",parameters:{Bucket:z0,Region:z0,UseFIPS:Vd,UseDualStack:Vd,Endpoint:z0,ForcePathStyle:Bh,Accelerate:Vd,UseGlobalEndpoint:Vd,UseObjectLambdaEndpoint:Bh,DisableAccessPoints:Bh,DisableMultiRegionAccessPoints:Vd,UseArnRegion:Bh},[P]:[{[f]:E,[P]:[{[b]:[{[h]:wt,[_]:Lh}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[aF,{[h]:Kd,[_]:[bn,49,50,Sn],[Je]:JM},{[h]:Kd,[_]:[bn,8,12,Sn],[Je]:ZM},{[h]:Kd,[_]:[bn,0,7,Sn],[Je]:KD},{[h]:Kd,[_]:[bn,32,49,Sn],[Je]:iP},{[h]:Qd,[_]:Lh,[Je]:"regionPartition"},{[h]:J,[_]:[{[x]:KD},"--op-s3"]}],[f]:E,[P]:[{[b]:UM,[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[JD,"e"]}],[f]:E,[P]:[{[b]:zM,[f]:E,[P]:[ZD,{[b]:Yd,endpoint:{[W]:"https://{Bucket}.ec2.{url#authority}",[X]:Dh,[Y]:Ve},[f]:k}]},{endpoint:{[W]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[X]:Dh,[Y]:Ve},[f]:k}]},{[b]:[{[h]:J,[_]:[JD,"o"]}],[f]:E,[P]:[{[b]:zM,[f]:E,[P]:[ZD,{[b]:Yd,endpoint:{[W]:"https://{Bucket}.op-{outpostId}.{url#authority}",[X]:Dh,[Y]:Ve},[f]:k}]},{endpoint:{[W]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[X]:Dh,[Y]:Ve},[f]:k}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[f]:Q}]}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[f]:Q}]},{[b]:GM,[f]:E,[P]:[{[b]:[ye,{[h]:je,[_]:[{[h]:wt,[_]:[{[h]:eF,[_]:Qte}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[f]:Q},{[f]:E,[P]:[{[b]:[{[h]:wt,[_]:[eM]},{[h]:V,[_]:[eM,Sn]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:$M,error:"Path-style addressing cannot be used with ARN buckets",[f]:Q},tM]}]},{[b]:[{[h]:VD,[_]:[bn,HD]}],[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:HM,[f]:E,[P]:[{[f]:E,[P]:[G0,{[f]:E,[P]:[{[b]:[zt,qe],error:"Accelerate cannot be used with FIPS",[f]:Q},{[f]:E,[P]:[{[b]:[zt,Xte],error:"S3 Accelerate cannot be used in this region",[f]:Q},{[f]:E,[P]:[{[b]:[ye,Ie],error:U0,[f]:Q},{[f]:E,[P]:[{[b]:[ye,qe],error:U0,[f]:Q},{[f]:E,[P]:[{[b]:[ye,zt],error:U0,[f]:Q},{[f]:E,[P]:[nM,nM,{[b]:[Ie,qe,We,le,Se,dt],[f]:E,[P]:[{endpoint:rM,[f]:k}]},{[b]:[Ie,qe,We,le,Se,lt],endpoint:rM,[f]:k},sM,sM,{[b]:[xe,qe,We,le,Se,dt],[f]:E,[P]:[{endpoint:oM,[f]:k}]},{[b]:[xe,qe,We,le,Se,lt],endpoint:oM,[f]:k},iM,iM,{[b]:[Ie,he,zt,le,Se,dt],[f]:E,[P]:[{endpoint:aM,[f]:k}]},{[b]:[Ie,he,zt,le,Se,lt],endpoint:aM,[f]:k},cM,cM,{[b]:[Ie,he,We,le,Se,dt],[f]:E,[P]:[{endpoint:dM,[f]:k}]},{[b]:[Ie,he,We,le,Se,lt],endpoint:dM,[f]:k},lM,mM,lM,mM,{[b]:[xe,he,We,ye,ve,uM,Se,dt],[f]:E,[P]:[{[b]:Po,endpoint:$0,[f]:k},{endpoint:$0,[f]:k}]},{[b]:[xe,he,We,ye,ve,pM,Se,dt],[f]:E,[P]:[{[b]:Po,endpoint:aP,[f]:k},fM]},{[b]:[xe,he,We,ye,ve,uM,Se,lt],endpoint:$0,[f]:k},{[b]:[xe,he,We,ye,ve,pM,Se,lt],endpoint:aP,[f]:k},yM,yM,{[b]:[xe,he,zt,le,Se,dt],[f]:E,[P]:[{[b]:Po,endpoint:H0,[f]:k},{endpoint:H0,[f]:k}]},{[b]:[xe,he,zt,le,Se,lt],endpoint:H0,[f]:k},gM,gM,{[b]:[xe,he,We,le,Se,dt],[f]:E,[P]:[{[b]:Po,endpoint:{[W]:nF,[X]:ut,[Y]:Ve},[f]:k},{endpoint:hM,[f]:k}]},{[b]:[xe,he,We,le,Se,lt],endpoint:hM,[f]:k}]}]}]}]}]}]}]}]},Mh]}]},ns]},{[b]:[ye,ve,{[h]:J,[_]:[{[h]:Me,[_]:[mP,"scheme"]},"http"]},{[h]:VD,[_]:[bn,Sn]},he,xe,We],[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:HM,[f]:E,[P]:[fM]},Mh]}]},ns]},{[b]:[{[h]:tF,[_]:Yte,[Je]:rF}],[f]:E,[P]:[{[b]:[{[h]:Me,[_]:[Ct,"resourceId[0]"],[Je]:sF},{[h]:je,[_]:[{[h]:J,[_]:[cF,jh]}]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[K0,lP]}],[f]:E,[P]:[{[b]:Z0,[f]:E,[P]:[{[f]:E,[P]:[{[b]:KM,[f]:E,[P]:[{[f]:E,[P]:[_M,{[f]:E,[P]:[CM,{[f]:E,[P]:[{[b]:tP,[f]:E,[P]:[{[f]:E,[P]:[SM,{[f]:E,[P]:[{[b]:WM,[f]:E,[P]:[{[f]:E,[P]:[V0,{[f]:E,[P]:[{[b]:nP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:XM,[f]:E,[P]:[{[f]:E,[P]:[{[b]:rP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[dF,jh]}],error:"Invalid ARN: Missing account id",[f]:Q},{[f]:E,[P]:[{[b]:sP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:YM,[f]:E,[P]:[{[f]:E,[P]:[bM,{[f]:E,[P]:[{[b]:Yd,endpoint:{[W]:WD,[X]:W0,[Y]:Ve},[f]:k},{[b]:Fh,endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:W0,[Y]:Ve},[f]:k},{endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:W0,[Y]:Ve},[f]:k}]}]}]},PM]}]},X0]}]}]},Y0]}]},Q0]}]},ns]}]},EM]}]}]},xM]}]}]},wM]}]}]}]},vM]}]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[f]:Q}]},{[b]:Z0,[f]:E,[P]:[{[b]:KM,[f]:E,[P]:[{[f]:E,[P]:[{[b]:tP,[f]:E,[P]:[{[b]:Z0,[f]:E,[P]:[{[b]:tP,[f]:E,[P]:[{[f]:E,[P]:[SM,{[f]:E,[P]:[{[b]:WM,[f]:E,[P]:[{[f]:E,[P]:[V0,{[f]:E,[P]:[{[b]:nP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[fP,"{partitionResult#name}"]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:rP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[K0,de]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:sP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:YM,[f]:E,[P]:[{[f]:E,[P]:[{[b]:eP,error:"Access Points do not support S3 Accelerate",[f]:Q},{[f]:E,[P]:[bM,{[f]:E,[P]:[{[b]:Jte,error:"DualStack cannot be combined with a Host override (PrivateLink)",[f]:Q},{[f]:E,[P]:[{[b]:[qe,Ie],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:Wd,[Y]:Ve},[f]:k},{[b]:[qe,xe],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:Wd,[Y]:Ve},[f]:k},{[b]:[he,Ie],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:Wd,[Y]:Ve},[f]:k},{[b]:[he,xe,ye,ve],endpoint:{[W]:WD,[X]:Wd,[Y]:Ve},[f]:k},{[b]:[he,xe],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:Wd,[Y]:Ve},[f]:k}]}]}]}]}]},PM]}]},X0]}]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[f]:Q}]}]},Y0]}]},Q0]}]},ns]}]},EM]}]}]},xM]}]}]},wM]}]},{[f]:E,[P]:[{[b]:[{[h]:ss,[_]:[pP,Sn]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:VM,error:"S3 MRAP does not support dual-stack",[f]:Q},{[f]:E,[P]:[{[b]:Fh,error:"S3 MRAP does not support FIPS",[f]:Q},{[f]:E,[P]:[{[b]:eP,error:"S3 MRAP does not support S3 Accelerate",[f]:Q},{[f]:E,[P]:[{[b]:[{[h]:V,[_]:[{[x]:"DisableMultiRegionAccessPoints"},Sn]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[f]:Q},{[f]:E,[P]:[{[b]:[{[h]:Qd,[_]:Lh,[Je]:XD}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[{[h]:Me,[_]:[{[x]:XD},ee]},{[h]:Me,[_]:[Ct,"partition"]}]}],[f]:E,[P]:[{endpoint:{[W]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[X]:{[re]:[{[se]:Sn,name:"sigv4a",[oe]:de,signingRegionSet:["*"]}]},[Y]:Ve},[f]:k}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[f]:Q}]}]},{error:"{Region} was not a valid region",[f]:Q}]}]}]}]}]}]},{error:"Invalid Access Point Name",[f]:Q}]}]}]},vM]},{[b]:[{[h]:J,[_]:[K0,dP]}],[f]:E,[P]:[{[b]:VM,error:"S3 Outposts does not support Dual-stack",[f]:Q},{[f]:E,[P]:[{[b]:Fh,error:"S3 Outposts does not support FIPS",[f]:Q},{[f]:E,[P]:[{[b]:eP,error:"S3 Outposts does not support S3 Accelerate",[f]:Q},{[f]:E,[P]:[{[b]:[{[h]:wt,[_]:[{[h]:Me,[_]:[Ct,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[f]:Q},{[f]:E,[P]:[{[b]:[{[h]:Me,[_]:Zte,[Je]:iP}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:UM,[f]:E,[P]:[{[f]:E,[P]:[V0,{[f]:E,[P]:[{[b]:nP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:XM,[f]:E,[P]:[{[f]:E,[P]:[{[b]:rP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:sP,[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:Me,[_]:ene,[Je]:YD}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:Me,[_]:[Ct,"resourceId[3]"],[Je]:uP}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:[{[h]:J,[_]:[{[x]:YD},oF]}],[f]:E,[P]:[{[f]:E,[P]:[{[b]:Yd,endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[X]:kM,[Y]:Ve},[f]:k},{endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[X]:kM,[Y]:Ve},[f]:k}]}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[f]:Q}]}]},{error:"Invalid ARN: expected an access point name",[f]:Q}]}]},{error:"Invalid ARN: Expected a 4-component resource",[f]:Q}]}]},X0]}]},Y0]}]},Q0]}]},ns]}]},{error:"Could not load partition for ARN region {bucketArn#region}",[f]:Q}]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[f]:Q}]}]},{error:"Invalid ARN: The Outpost Id was not set",[f]:Q}]}]}]}]}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[f]:Q}]}]},{error:"Invalid ARN: No ARN type specified",[f]:Q}]},{[b]:[{[h]:Kd,[_]:[bn,0,4,HD],[Je]:QD},{[h]:J,[_]:[{[x]:QD},"arn:"]},{[h]:je,[_]:[{[h]:wt,[_]:$M}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[f]:Q},tM]}]},{[b]:[{[h]:wt,[_]:[AM]},{[h]:V,[_]:[AM,Sn]}],[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:QM,[f]:E,[P]:[{[f]:E,[P]:[_M,{[f]:E,[P]:[CM,{[f]:E,[P]:[G0,{[f]:E,[P]:[{[b]:Yd,endpoint:{[W]:os,[X]:J0,[Y]:Ve},[f]:k},{[b]:Fh,endpoint:{[W]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[X]:J0,[Y]:Ve},[f]:k},{endpoint:{[W]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[X]:J0,[Y]:Ve},[f]:k}]}]}]}]}]},Mh]}]},ns]},{[b]:[{[h]:je,[_]:GM}],[f]:E,[P]:[{[b]:rs,[f]:E,[P]:[{[f]:E,[P]:[{[b]:QM,[f]:E,[P]:[{[f]:E,[P]:[G0,{[f]:E,[P]:[RM,RM,{[b]:[qe,Ie,ye,ve,Se,dt],[f]:E,[P]:oP},{[b]:[qe,Ie,ye,ve,Se,lt],endpoint:Xd,[f]:k},IM,IM,{[b]:[qe,Ie,le,Se,dt],[f]:E,[P]:[{endpoint:NM,[f]:k}]},{[b]:[qe,Ie,le,Se,lt],endpoint:NM,[f]:k},OM,OM,{[b]:[qe,xe,ye,ve,Se,dt],[f]:E,[P]:oP},{[b]:[qe,xe,ye,ve,Se,lt],endpoint:Xd,[f]:k},TM,TM,{[b]:[qe,xe,le,Se,dt],[f]:E,[P]:[{endpoint:qM,[f]:k}]},{[b]:[qe,xe,le,Se,lt],endpoint:qM,[f]:k},BM,BM,{[b]:[he,Ie,ye,ve,Se,dt],[f]:E,[P]:oP},{[b]:[he,Ie,ye,ve,Se,lt],endpoint:Xd,[f]:k},DM,DM,{[b]:[he,Ie,le,Se,dt],[f]:E,[P]:[{endpoint:MM,[f]:k}]},{[b]:[he,Ie,le,Se,lt],endpoint:MM,[f]:k},FM,FM,{[b]:[he,xe,ye,ve,Se,dt],[f]:E,[P]:[{[b]:Po,endpoint:Xd,[f]:k},lF]},{[b]:[he,xe,ye,ve,Se,lt],endpoint:Xd,[f]:k},LM,LM,{[b]:[he,xe,le,Se,dt],[f]:E,[P]:[{[b]:Po,endpoint:{[W]:iF,[X]:ut,[Y]:Ve},[f]:k},{endpoint:jM,[f]:k}]},{[b]:[he,xe,le,Se,lt],endpoint:jM,[f]:k}]}]}]},Mh]}]},ns]}]}]},{error:"A region must be set when sending requests to S3.",[f]:Q}]}]};Uh.ruleSet=tne});var mF=m(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.defaultEndpointResolver=void 0;var nne=ks(),rne=uF(),sne=(e,n={})=>(0,nne.resolveEndpoint)(rne.ruleSet,{endpointParams:e,logger:n.logger});zh.defaultEndpointResolver=sne});var gF=m(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.getRuntimeConfig=void 0;var one=$D(),ine=v(),ane=Ur(),pF=Os(),fF=LS(),yF=jt(),cne=mF(),dne=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??pF.fromBase64,base64Encoder:e?.base64Encoder??pF.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??cne.defaultEndpointResolver,getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??fF.getAwsChunkedEncodingStream,logger:e?.logger??new ine.NoOpLogger,sdkStreamMixin:e?.sdkStreamMixin??fF.sdkStreamMixin,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??one.SignatureV4MultiRegion,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??ane.parseUrl,useArnRegion:e?.useArnRegion??!1,utf8Decoder:e?.utf8Decoder??yF.fromUtf8,utf8Encoder:e?.utf8Encoder??yF.toUtf8});Gh.getRuntimeConfig=dne});var CF=m(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});Hh.getRuntimeConfig=void 0;var lne=(H(),z($)),une=lne.__importDefault(fO()),mne=yD(),pne=y0(),fne=ED(),yne=OD(),gne=Gc(),$h=Yt(),hne=zD(),yP=$c(),hF=On(),Eo=gr(),_F=Bs(),_ne=Hc(),Cne=Ot(),Sne=gF(),bne=v(),Pne=Wc(),Ene=v(),xne=e=>{(0,Ene.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Pne.resolveDefaultsModeConfig)(e),t=()=>n().then(bne.loadConfigsForDefaultMode),r=(0,Sne.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:e?.bodyLengthChecker??_ne.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,mne.decorateDefaultCredentialProvider)(pne.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,gne.defaultUserAgent)({serviceId:r.serviceId,clientVersion:une.default.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??hne.eventStreamSerdeProvider,maxAttempts:e?.maxAttempts??(0,Eo.loadConfig)(hF.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:e?.md5??yP.Hash.bind(null,"md5"),region:e?.region??(0,Eo.loadConfig)($h.NODE_REGION_CONFIG_OPTIONS,$h.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new _F.NodeHttpHandler(t),retryMode:e?.retryMode??(0,Eo.loadConfig)({...hF.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Cne.DEFAULT_RETRY_MODE}),sha1:e?.sha1??yP.Hash.bind(null,"sha1"),sha256:e?.sha256??yP.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??_F.streamCollector,streamHasher:e?.streamHasher??fne.readableStreamHasher,useArnRegion:e?.useArnRegion??(0,Eo.loadConfig)(yne.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:e?.useDualstackEndpoint??(0,Eo.loadConfig)($h.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,Eo.loadConfig)($h.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Hh.getRuntimeConfig=xne});var Jd=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.S3Client=xo.__Client=void 0;var wne=yv(),SF=Ta(),vne=qa(),kne=Ba(),bF=fs(),PF=kn(),EF=oc(),Ane=Yt(),Rne=fI(),Ine=dc(),Nne=I(),xF=On(),wF=v();Object.defineProperty(xo,"__Client",{enumerable:!0,get:function(){return wF.Client}});var One=pO(),Tne=CF(),gP=class extends wF.Client{constructor(n){let t=(0,Tne.getRuntimeConfig)(n),r=(0,One.resolveClientEndpointParameters)(t),s=(0,Ane.resolveRegionConfig)(r),o=(0,Nne.resolveEndpointConfig)(s),c=(0,xF.resolveRetryConfig)(o),i=(0,SF.resolveHostHeaderConfig)(c),u=(0,PF.resolveAwsAuthConfig)(i),l=(0,bF.resolveS3Config)(u),a=(0,EF.resolveUserAgentConfig)(l),g=(0,Rne.resolveEventStreamSerdeConfig)(a);super(g),this.config=g,this.middlewareStack.use((0,xF.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Ine.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,SF.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,vne.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,kne.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,PF.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,bF.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,wne.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,EF.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};xo.S3Client=gP});var vF=m(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.escapeAttribute=void 0;function qne(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}Kh.escapeAttribute=qne});var kF=m(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.escapeElement=void 0;function Bne(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}Vh.escapeElement=Bne});var _P=m(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.XmlText=void 0;var Dne=kF(),hP=class{constructor(n){this.value=n}toString(){return(0,Dne.escapeElement)(""+this.value)}};Wh.XmlText=hP});var AF=m(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.XmlNode=void 0;var Mne=vF(),Fne=_P(),Zd=class{static of(n,t,r){let s=new Zd(n);return t!==void 0&&s.addChildNode(new Fne.XmlText(t)),r!==void 0&&s.withName(r),s}constructor(n,t=[]){this.name=n,this.children=t,this.attributes={}}withName(n){return this.name=n,this}addAttribute(n,t){return this.attributes[n]=t,this}addChildNode(n){return this.children.push(n),this}removeAttribute(n){return delete this.attributes[n],this}toString(){let n=!!this.children.length,t=`<${this.name}`,r=this.attributes;for(let s of Object.keys(r)){let o=r[s];typeof o<"u"&&o!==null&&(t+=` ${s}="${(0,Mne.escapeAttribute)(""+o)}"`)}return t+=n?`>${this.children.map(s=>s.toString()).join("")}`:"/>"}};Xh.XmlNode=Zd});var IF=m(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var RF=(H(),z($));RF.__exportStar(AF(),Yh);RF.__exportStar(_P(),Yh)});var tl=m(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.S3ServiceException=wo.__ServiceException=void 0;var NF=v();Object.defineProperty(wo,"__ServiceException",{enumerable:!0,get:function(){return NF.ServiceException}});var el=class extends NF.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,el.prototype)}};wo.S3ServiceException=el});var rt=m(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.ReplicationStatus=S.Protocol=S.BucketVersioningStatus=S.MFADeleteStatus=S.Payer=S.ReplicationRuleStatus=S.SseKmsEncryptedObjectsStatus=S.ReplicaModificationsStatus=S.ReplicationRuleFilter=S.ExistingObjectReplicationStatus=S.ReplicationTimeStatus=S.MetricsStatus=S.DeleteMarkerReplicationStatus=S.FilterRuleName=S.Event=S.MetricsFilter=S.BucketLogsPermission=S.ExpirationStatus=S.TransitionStorageClass=S.LifecycleRuleFilter=S.InventoryFrequency=S.InventoryOptionalField=S.InventoryIncludedObjectVersions=S.InventoryFormat=S.IntelligentTieringAccessTier=S.IntelligentTieringStatus=S.StorageClassAnalysisSchemaVersion=S.AnalyticsS3ExportFileFormat=S.AnalyticsFilter=S.ObjectOwnership=S.BucketLocationConstraint=S.BucketCannedACL=S.BucketAlreadyOwnedByYou=S.BucketAlreadyExists=S.ObjectNotInActiveTierError=S.TaggingDirective=S.StorageClass=S.ObjectLockMode=S.ObjectLockLegalHoldStatus=S.MetadataDirective=S.ChecksumAlgorithm=S.ObjectCannedACL=S.ServerSideEncryption=S.OwnerOverride=S.Permission=S.Type=S.BucketAccelerateStatus=S.NoSuchUpload=S.RequestPayer=S.RequestCharged=void 0;S.PutObjectRequestFilterSensitiveLog=S.PutObjectOutputFilterSensitiveLog=S.PutBucketInventoryConfigurationRequestFilterSensitiveLog=S.PutBucketEncryptionRequestFilterSensitiveLog=S.ListPartsRequestFilterSensitiveLog=S.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=S.HeadObjectRequestFilterSensitiveLog=S.HeadObjectOutputFilterSensitiveLog=S.GetObjectTorrentOutputFilterSensitiveLog=S.GetObjectAttributesRequestFilterSensitiveLog=S.GetObjectRequestFilterSensitiveLog=S.GetObjectOutputFilterSensitiveLog=S.GetBucketInventoryConfigurationOutputFilterSensitiveLog=S.InventoryConfigurationFilterSensitiveLog=S.InventoryDestinationFilterSensitiveLog=S.InventoryS3BucketDestinationFilterSensitiveLog=S.InventoryEncryptionFilterSensitiveLog=S.SSEKMSFilterSensitiveLog=S.GetBucketEncryptionOutputFilterSensitiveLog=S.ServerSideEncryptionConfigurationFilterSensitiveLog=S.ServerSideEncryptionRuleFilterSensitiveLog=S.ServerSideEncryptionByDefaultFilterSensitiveLog=S.CreateMultipartUploadRequestFilterSensitiveLog=S.CreateMultipartUploadOutputFilterSensitiveLog=S.CopyObjectRequestFilterSensitiveLog=S.CopyObjectOutputFilterSensitiveLog=S.CompleteMultipartUploadRequestFilterSensitiveLog=S.CompleteMultipartUploadOutputFilterSensitiveLog=S.MFADelete=S.ObjectVersionStorageClass=S.NoSuchBucket=S.OptionalObjectAttributes=S.ObjectStorageClass=S.EncodingType=S.ArchiveStatus=S.NotFound=S.ObjectLockRetentionMode=S.ObjectLockEnabled=S.ObjectAttributes=S.NoSuchKey=S.InvalidObjectState=S.ChecksumMode=void 0;var Oe=v(),Pr=tl();S.RequestCharged={requester:"requester"};S.RequestPayer={requester:"requester"};var nl=class extends Pr.S3ServiceException{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,nl.prototype)}};S.NoSuchUpload=nl;S.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};S.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};S.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};S.OwnerOverride={Destination:"Destination"};S.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};S.ObjectCannedACL={authenticated_read:"authenticated-read",aws_exec_read:"aws-exec-read",bucket_owner_full_control:"bucket-owner-full-control",bucket_owner_read:"bucket-owner-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};S.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};S.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};S.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};S.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};S.StorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};S.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var rl=class extends Pr.S3ServiceException{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,rl.prototype)}};S.ObjectNotInActiveTierError=rl;var sl=class extends Pr.S3ServiceException{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,sl.prototype)}};S.BucketAlreadyExists=sl;var ol=class extends Pr.S3ServiceException{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,ol.prototype)}};S.BucketAlreadyOwnedByYou=ol;S.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};S.BucketLocationConstraint={EU:"EU",af_south_1:"af-south-1",ap_east_1:"ap-east-1",ap_northeast_1:"ap-northeast-1",ap_northeast_2:"ap-northeast-2",ap_northeast_3:"ap-northeast-3",ap_south_1:"ap-south-1",ap_southeast_1:"ap-southeast-1",ap_southeast_2:"ap-southeast-2",ap_southeast_3:"ap-southeast-3",ca_central_1:"ca-central-1",cn_north_1:"cn-north-1",cn_northwest_1:"cn-northwest-1",eu_central_1:"eu-central-1",eu_north_1:"eu-north-1",eu_south_1:"eu-south-1",eu_west_1:"eu-west-1",eu_west_2:"eu-west-2",eu_west_3:"eu-west-3",me_south_1:"me-south-1",sa_east_1:"sa-east-1",us_east_2:"us-east-2",us_gov_east_1:"us-gov-east-1",us_gov_west_1:"us-gov-west-1",us_west_1:"us-west-1",us_west_2:"us-west-2"};S.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var Lne;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(Lne=S.AnalyticsFilter||(S.AnalyticsFilter={}));S.AnalyticsS3ExportFileFormat={CSV:"CSV"};S.StorageClassAnalysisSchemaVersion={V_1:"V_1"};S.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};S.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};S.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};S.InventoryIncludedObjectVersions={All:"All",Current:"Current"};S.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};S.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var jne;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.ObjectSizeGreaterThan!==void 0?t.ObjectSizeGreaterThan(n.ObjectSizeGreaterThan):n.ObjectSizeLessThan!==void 0?t.ObjectSizeLessThan(n.ObjectSizeLessThan):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(jne=S.LifecycleRuleFilter||(S.LifecycleRuleFilter={}));S.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};S.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};S.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var Une;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.AccessPointArn!==void 0?t.AccessPointArn(n.AccessPointArn):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(Une=S.MetricsFilter||(S.MetricsFilter={}));S.Event={s3_IntelligentTiering:"s3:IntelligentTiering",s3_LifecycleExpiration_:"s3:LifecycleExpiration:*",s3_LifecycleExpiration_Delete:"s3:LifecycleExpiration:Delete",s3_LifecycleExpiration_DeleteMarkerCreated:"s3:LifecycleExpiration:DeleteMarkerCreated",s3_LifecycleTransition:"s3:LifecycleTransition",s3_ObjectAcl_Put:"s3:ObjectAcl:Put",s3_ObjectCreated_:"s3:ObjectCreated:*",s3_ObjectCreated_CompleteMultipartUpload:"s3:ObjectCreated:CompleteMultipartUpload",s3_ObjectCreated_Copy:"s3:ObjectCreated:Copy",s3_ObjectCreated_Post:"s3:ObjectCreated:Post",s3_ObjectCreated_Put:"s3:ObjectCreated:Put",s3_ObjectRemoved_:"s3:ObjectRemoved:*",s3_ObjectRemoved_Delete:"s3:ObjectRemoved:Delete",s3_ObjectRemoved_DeleteMarkerCreated:"s3:ObjectRemoved:DeleteMarkerCreated",s3_ObjectRestore_:"s3:ObjectRestore:*",s3_ObjectRestore_Completed:"s3:ObjectRestore:Completed",s3_ObjectRestore_Delete:"s3:ObjectRestore:Delete",s3_ObjectRestore_Post:"s3:ObjectRestore:Post",s3_ObjectTagging_:"s3:ObjectTagging:*",s3_ObjectTagging_Delete:"s3:ObjectTagging:Delete",s3_ObjectTagging_Put:"s3:ObjectTagging:Put",s3_ReducedRedundancyLostObject:"s3:ReducedRedundancyLostObject",s3_Replication_:"s3:Replication:*",s3_Replication_OperationFailedReplication:"s3:Replication:OperationFailedReplication",s3_Replication_OperationMissedThreshold:"s3:Replication:OperationMissedThreshold",s3_Replication_OperationNotTracked:"s3:Replication:OperationNotTracked",s3_Replication_OperationReplicatedAfterThreshold:"s3:Replication:OperationReplicatedAfterThreshold"};S.FilterRuleName={prefix:"prefix",suffix:"suffix"};S.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};S.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};S.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};S.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var zne;(function(e){e.visit=(n,t)=>n.Prefix!==void 0?t.Prefix(n.Prefix):n.Tag!==void 0?t.Tag(n.Tag):n.And!==void 0?t.And(n.And):t._(n.$unknown[0],n.$unknown[1])})(zne=S.ReplicationRuleFilter||(S.ReplicationRuleFilter={}));S.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};S.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};S.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};S.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};S.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};S.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};S.Protocol={http:"http",https:"https"};S.ReplicationStatus={COMPLETE:"COMPLETE",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};S.ChecksumMode={ENABLED:"ENABLED"};var il=class extends Pr.S3ServiceException{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,il.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}};S.InvalidObjectState=il;var al=class extends Pr.S3ServiceException{constructor(n){super({name:"NoSuchKey",$fault:"client",...n}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,al.prototype)}};S.NoSuchKey=al;S.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};S.ObjectLockEnabled={Enabled:"Enabled"};S.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var cl=class extends Pr.S3ServiceException{constructor(n){super({name:"NotFound",$fault:"client",...n}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,cl.prototype)}};S.NotFound=cl;S.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};S.EncodingType={url:"url"};S.ObjectStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",OUTPOSTS:"OUTPOSTS",REDUCED_REDUNDANCY:"REDUCED_REDUNDANCY",SNOW:"SNOW",STANDARD:"STANDARD",STANDARD_IA:"STANDARD_IA"};S.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var dl=class extends Pr.S3ServiceException{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,dl.prototype)}};S.NoSuchBucket=dl;S.ObjectVersionStorageClass={STANDARD:"STANDARD"};S.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var Gne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING}});S.CompleteMultipartUploadOutputFilterSensitiveLog=Gne;var $ne=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING}});S.CompleteMultipartUploadRequestFilterSensitiveLog=$ne;var Hne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Oe.SENSITIVE_STRING}});S.CopyObjectOutputFilterSensitiveLog=Hne;var Kne=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Oe.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Oe.SENSITIVE_STRING}});S.CopyObjectRequestFilterSensitiveLog=Kne;var Vne=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Oe.SENSITIVE_STRING}});S.CreateMultipartUploadOutputFilterSensitiveLog=Vne;var Wne=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Oe.SENSITIVE_STRING}});S.CreateMultipartUploadRequestFilterSensitiveLog=Wne;var Xne=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Oe.SENSITIVE_STRING}});S.ServerSideEncryptionByDefaultFilterSensitiveLog=Xne;var Yne=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,S.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});S.ServerSideEncryptionRuleFilterSensitiveLog=Yne;var Qne=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,S.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});S.ServerSideEncryptionConfigurationFilterSensitiveLog=Qne;var Jne=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,S.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});S.GetBucketEncryptionOutputFilterSensitiveLog=Jne;var Zne=e=>({...e,...e.KeyId&&{KeyId:Oe.SENSITIVE_STRING}});S.SSEKMSFilterSensitiveLog=Zne;var ere=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,S.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});S.InventoryEncryptionFilterSensitiveLog=ere;var tre=e=>({...e,...e.Encryption&&{Encryption:(0,S.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});S.InventoryS3BucketDestinationFilterSensitiveLog=tre;var nre=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,S.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});S.InventoryDestinationFilterSensitiveLog=nre;var rre=e=>({...e,...e.Destination&&{Destination:(0,S.InventoryDestinationFilterSensitiveLog)(e.Destination)}});S.InventoryConfigurationFilterSensitiveLog=rre;var sre=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,S.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});S.GetBucketInventoryConfigurationOutputFilterSensitiveLog=sre;var ore=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING}});S.GetObjectOutputFilterSensitiveLog=ore;var ire=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING}});S.GetObjectRequestFilterSensitiveLog=ire;var are=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING}});S.GetObjectAttributesRequestFilterSensitiveLog=are;var cre=e=>({...e});S.GetObjectTorrentOutputFilterSensitiveLog=cre;var dre=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING}});S.HeadObjectOutputFilterSensitiveLog=dre;var lre=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING}});S.HeadObjectRequestFilterSensitiveLog=lre;var ure=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,S.InventoryConfigurationFilterSensitiveLog)(n))}});S.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=ure;var mre=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING}});S.ListPartsRequestFilterSensitiveLog=mre;var pre=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,S.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});S.PutBucketEncryptionRequestFilterSensitiveLog=pre;var fre=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,S.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});S.PutBucketInventoryConfigurationRequestFilterSensitiveLog=fre;var yre=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Oe.SENSITIVE_STRING}});S.PutObjectOutputFilterSensitiveLog=yre;var gre=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Oe.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Oe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Oe.SENSITIVE_STRING}});S.PutObjectRequestFilterSensitiveLog=gre});var xr=m(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.WriteGetObjectResponseRequestFilterSensitiveLog=te.UploadPartCopyRequestFilterSensitiveLog=te.UploadPartCopyOutputFilterSensitiveLog=te.UploadPartRequestFilterSensitiveLog=te.UploadPartOutputFilterSensitiveLog=te.SelectObjectContentRequestFilterSensitiveLog=te.SelectObjectContentOutputFilterSensitiveLog=te.SelectObjectContentEventStreamFilterSensitiveLog=te.RestoreObjectRequestFilterSensitiveLog=te.RestoreRequestFilterSensitiveLog=te.OutputLocationFilterSensitiveLog=te.S3LocationFilterSensitiveLog=te.EncryptionFilterSensitiveLog=te.SelectObjectContentEventStream=te.RestoreRequestType=te.QuoteFields=te.JSONType=te.FileHeaderInfo=te.CompressionType=te.ExpressionType=te.Tier=te.ObjectAlreadyInActiveTierError=void 0;var Er=v(),hre=tl(),ll=class extends hre.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,ll.prototype)}};te.ObjectAlreadyInActiveTierError=ll;te.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};te.ExpressionType={SQL:"SQL"};te.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};te.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};te.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};te.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};te.RestoreRequestType={SELECT:"SELECT"};var _re;(function(e){e.visit=(n,t)=>n.Records!==void 0?t.Records(n.Records):n.Stats!==void 0?t.Stats(n.Stats):n.Progress!==void 0?t.Progress(n.Progress):n.Cont!==void 0?t.Cont(n.Cont):n.End!==void 0?t.End(n.End):t._(n.$unknown[0],n.$unknown[1])})(_re=te.SelectObjectContentEventStream||(te.SelectObjectContentEventStream={}));var Cre=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Er.SENSITIVE_STRING}});te.EncryptionFilterSensitiveLog=Cre;var Sre=e=>({...e,...e.Encryption&&{Encryption:(0,te.EncryptionFilterSensitiveLog)(e.Encryption)}});te.S3LocationFilterSensitiveLog=Sre;var bre=e=>({...e,...e.S3&&{S3:(0,te.S3LocationFilterSensitiveLog)(e.S3)}});te.OutputLocationFilterSensitiveLog=bre;var Pre=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,te.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});te.RestoreRequestFilterSensitiveLog=Pre;var Ere=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,te.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});te.RestoreObjectRequestFilterSensitiveLog=Ere;var xre=e=>{if(e.Records!==void 0)return{Records:e.Records};if(e.Stats!==void 0)return{Stats:e.Stats};if(e.Progress!==void 0)return{Progress:e.Progress};if(e.Cont!==void 0)return{Cont:e.Cont};if(e.End!==void 0)return{End:e.End};if(e.$unknown!==void 0)return{[e.$unknown[0]]:"UNKNOWN"}};te.SelectObjectContentEventStreamFilterSensitiveLog=xre;var wre=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});te.SelectObjectContentOutputFilterSensitiveLog=wre;var vre=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Er.SENSITIVE_STRING}});te.SelectObjectContentRequestFilterSensitiveLog=vre;var kre=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Er.SENSITIVE_STRING}});te.UploadPartOutputFilterSensitiveLog=kre;var Are=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Er.SENSITIVE_STRING}});te.UploadPartRequestFilterSensitiveLog=Are;var Rre=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Er.SENSITIVE_STRING}});te.UploadPartCopyOutputFilterSensitiveLog=Rre;var Ire=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Er.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Er.SENSITIVE_STRING}});te.UploadPartCopyRequestFilterSensitiveLog=Ire;var Nre=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Er.SENSITIVE_STRING}});te.WriteGetObjectResponseRequestFilterSensitiveLog=Nre});var M=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.se_GetObjectTorrentCommand=p.se_GetObjectTaggingCommand=p.se_GetObjectRetentionCommand=p.se_GetObjectLockConfigurationCommand=p.se_GetObjectLegalHoldCommand=p.se_GetObjectAttributesCommand=p.se_GetObjectAclCommand=p.se_GetObjectCommand=p.se_GetBucketWebsiteCommand=p.se_GetBucketVersioningCommand=p.se_GetBucketTaggingCommand=p.se_GetBucketRequestPaymentCommand=p.se_GetBucketReplicationCommand=p.se_GetBucketPolicyStatusCommand=p.se_GetBucketPolicyCommand=p.se_GetBucketOwnershipControlsCommand=p.se_GetBucketNotificationConfigurationCommand=p.se_GetBucketMetricsConfigurationCommand=p.se_GetBucketLoggingCommand=p.se_GetBucketLocationCommand=p.se_GetBucketLifecycleConfigurationCommand=p.se_GetBucketInventoryConfigurationCommand=p.se_GetBucketIntelligentTieringConfigurationCommand=p.se_GetBucketEncryptionCommand=p.se_GetBucketCorsCommand=p.se_GetBucketAnalyticsConfigurationCommand=p.se_GetBucketAclCommand=p.se_GetBucketAccelerateConfigurationCommand=p.se_DeletePublicAccessBlockCommand=p.se_DeleteObjectTaggingCommand=p.se_DeleteObjectsCommand=p.se_DeleteObjectCommand=p.se_DeleteBucketWebsiteCommand=p.se_DeleteBucketTaggingCommand=p.se_DeleteBucketReplicationCommand=p.se_DeleteBucketPolicyCommand=p.se_DeleteBucketOwnershipControlsCommand=p.se_DeleteBucketMetricsConfigurationCommand=p.se_DeleteBucketLifecycleCommand=p.se_DeleteBucketInventoryConfigurationCommand=p.se_DeleteBucketIntelligentTieringConfigurationCommand=p.se_DeleteBucketEncryptionCommand=p.se_DeleteBucketCorsCommand=p.se_DeleteBucketAnalyticsConfigurationCommand=p.se_DeleteBucketCommand=p.se_CreateMultipartUploadCommand=p.se_CreateBucketCommand=p.se_CopyObjectCommand=p.se_CompleteMultipartUploadCommand=p.se_AbortMultipartUploadCommand=void 0;p.de_DeleteBucketAnalyticsConfigurationCommand=p.de_DeleteBucketCommand=p.de_CreateMultipartUploadCommand=p.de_CreateBucketCommand=p.de_CopyObjectCommand=p.de_CompleteMultipartUploadCommand=p.de_AbortMultipartUploadCommand=p.se_WriteGetObjectResponseCommand=p.se_UploadPartCopyCommand=p.se_UploadPartCommand=p.se_SelectObjectContentCommand=p.se_RestoreObjectCommand=p.se_PutPublicAccessBlockCommand=p.se_PutObjectTaggingCommand=p.se_PutObjectRetentionCommand=p.se_PutObjectLockConfigurationCommand=p.se_PutObjectLegalHoldCommand=p.se_PutObjectAclCommand=p.se_PutObjectCommand=p.se_PutBucketWebsiteCommand=p.se_PutBucketVersioningCommand=p.se_PutBucketTaggingCommand=p.se_PutBucketRequestPaymentCommand=p.se_PutBucketReplicationCommand=p.se_PutBucketPolicyCommand=p.se_PutBucketOwnershipControlsCommand=p.se_PutBucketNotificationConfigurationCommand=p.se_PutBucketMetricsConfigurationCommand=p.se_PutBucketLoggingCommand=p.se_PutBucketLifecycleConfigurationCommand=p.se_PutBucketInventoryConfigurationCommand=p.se_PutBucketIntelligentTieringConfigurationCommand=p.se_PutBucketEncryptionCommand=p.se_PutBucketCorsCommand=p.se_PutBucketAnalyticsConfigurationCommand=p.se_PutBucketAclCommand=p.se_PutBucketAccelerateConfigurationCommand=p.se_ListPartsCommand=p.se_ListObjectVersionsCommand=p.se_ListObjectsV2Command=p.se_ListObjectsCommand=p.se_ListMultipartUploadsCommand=p.se_ListBucketsCommand=p.se_ListBucketMetricsConfigurationsCommand=p.se_ListBucketInventoryConfigurationsCommand=p.se_ListBucketIntelligentTieringConfigurationsCommand=p.se_ListBucketAnalyticsConfigurationsCommand=p.se_HeadObjectCommand=p.se_HeadBucketCommand=p.se_GetPublicAccessBlockCommand=void 0;p.de_ListBucketMetricsConfigurationsCommand=p.de_ListBucketInventoryConfigurationsCommand=p.de_ListBucketIntelligentTieringConfigurationsCommand=p.de_ListBucketAnalyticsConfigurationsCommand=p.de_HeadObjectCommand=p.de_HeadBucketCommand=p.de_GetPublicAccessBlockCommand=p.de_GetObjectTorrentCommand=p.de_GetObjectTaggingCommand=p.de_GetObjectRetentionCommand=p.de_GetObjectLockConfigurationCommand=p.de_GetObjectLegalHoldCommand=p.de_GetObjectAttributesCommand=p.de_GetObjectAclCommand=p.de_GetObjectCommand=p.de_GetBucketWebsiteCommand=p.de_GetBucketVersioningCommand=p.de_GetBucketTaggingCommand=p.de_GetBucketRequestPaymentCommand=p.de_GetBucketReplicationCommand=p.de_GetBucketPolicyStatusCommand=p.de_GetBucketPolicyCommand=p.de_GetBucketOwnershipControlsCommand=p.de_GetBucketNotificationConfigurationCommand=p.de_GetBucketMetricsConfigurationCommand=p.de_GetBucketLoggingCommand=p.de_GetBucketLocationCommand=p.de_GetBucketLifecycleConfigurationCommand=p.de_GetBucketInventoryConfigurationCommand=p.de_GetBucketIntelligentTieringConfigurationCommand=p.de_GetBucketEncryptionCommand=p.de_GetBucketCorsCommand=p.de_GetBucketAnalyticsConfigurationCommand=p.de_GetBucketAclCommand=p.de_GetBucketAccelerateConfigurationCommand=p.de_DeletePublicAccessBlockCommand=p.de_DeleteObjectTaggingCommand=p.de_DeleteObjectsCommand=p.de_DeleteObjectCommand=p.de_DeleteBucketWebsiteCommand=p.de_DeleteBucketTaggingCommand=p.de_DeleteBucketReplicationCommand=p.de_DeleteBucketPolicyCommand=p.de_DeleteBucketOwnershipControlsCommand=p.de_DeleteBucketMetricsConfigurationCommand=p.de_DeleteBucketLifecycleCommand=p.de_DeleteBucketInventoryConfigurationCommand=p.de_DeleteBucketIntelligentTieringConfigurationCommand=p.de_DeleteBucketEncryptionCommand=p.de_DeleteBucketCorsCommand=void 0;p.de_WriteGetObjectResponseCommand=p.de_UploadPartCopyCommand=p.de_UploadPartCommand=p.de_SelectObjectContentCommand=p.de_RestoreObjectCommand=p.de_PutPublicAccessBlockCommand=p.de_PutObjectTaggingCommand=p.de_PutObjectRetentionCommand=p.de_PutObjectLockConfigurationCommand=p.de_PutObjectLegalHoldCommand=p.de_PutObjectAclCommand=p.de_PutObjectCommand=p.de_PutBucketWebsiteCommand=p.de_PutBucketVersioningCommand=p.de_PutBucketTaggingCommand=p.de_PutBucketRequestPaymentCommand=p.de_PutBucketReplicationCommand=p.de_PutBucketPolicyCommand=p.de_PutBucketOwnershipControlsCommand=p.de_PutBucketNotificationConfigurationCommand=p.de_PutBucketMetricsConfigurationCommand=p.de_PutBucketLoggingCommand=p.de_PutBucketLifecycleConfigurationCommand=p.de_PutBucketInventoryConfigurationCommand=p.de_PutBucketIntelligentTieringConfigurationCommand=p.de_PutBucketEncryptionCommand=p.de_PutBucketCorsCommand=p.de_PutBucketAnalyticsConfigurationCommand=p.de_PutBucketAclCommand=p.de_PutBucketAccelerateConfigurationCommand=p.de_ListPartsCommand=p.de_ListObjectVersionsCommand=p.de_ListObjectsV2Command=p.de_ListObjectsCommand=p.de_ListMultipartUploadsCommand=p.de_ListBucketsCommand=void 0;var y=IF(),D=$e(),d=v(),Ore=sb(),Dt=rt(),Tre=xr(),qre=tl(),Bre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"AbortMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=Bre;var Dre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CompleteMultipartUpload"],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.MultipartUpload!==void 0&&(l=DF(e.MultipartUpload,n));let a;return e.MultipartUpload!==void 0&&(a=DF(e.MultipartUpload,n),a=a.withName("CompleteMultipartUpload"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=Dre;var Mre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>A(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>A(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>A(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-metadata-directive":e.MetadataDirective,"x-amz-tagging-directive":e.TaggingDirective,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>A(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>A(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,g)=>(a[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],a),{})}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"CopyObject"]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_CopyObjectCommand=Mre;var Fre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-acl":e.ACL,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-bucket-object-lock-enabled":[()=>A(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=FF(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=FF(e.CreateBucketConfiguration,n),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,body:u})};p.se_CreateBucketCommand=Fre;var Lre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-type":e.ContentType,expires:[()=>A(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>A(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>A(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-algorithm":e.ChecksumAlgorithm,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,g)=>(a[`x-amz-meta-${g.toLowerCase()}`]=e.Metadata[g],a),{})}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({uploads:[,""],"x-id":[,"CreateMultipartUpload"]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=Lre;var jre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,body:u})};p.se_DeleteBucketCommand=jre;var Ure=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=Ure;var zre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=zre;var Gre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=Gre;var $re=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=$re;var Hre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=Hre;var Kre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=Kre;var Vre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=Vre;var Wre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=Wre;var Xre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=Xre;var Yre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=Yre;var Qre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=Qre;var Jre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=Jre;var Zre=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>A(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"DeleteObject"],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectCommand=Zre;var ese=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>A(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delete:[,""],"x-id":[,"DeleteObjects"]}),l;e.Delete!==void 0&&(l=LF(e.Delete,n));let a;return e.Delete!==void 0&&(a=LF(e.Delete,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=ese;var tse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=tse;var nse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=nse;var rse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=rse;var sse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAclCommand=sse;var ose=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"GetBucketAnalyticsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=ose;var ise=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=ise;var ase=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=ase;var cse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"GetBucketIntelligentTieringConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=cse;var dse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"GetBucketInventoryConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=dse;var lse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=lse;var use=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=use;var mse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=mse;var pse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"GetBucketMetricsConfiguration"],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=pse;var fse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=fse;var yse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=yse;var gse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=gse;var hse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=hse;var _se=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=_se;var Cse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=Cse;var Sse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Sse;var bse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=bse;var Pse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=Pse;var Ese=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"if-match":e.IfMatch,"if-modified-since":[()=>A(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>A(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"GetObject"],"response-cache-control":[,e.ResponseCacheControl],"response-content-disposition":[,e.ResponseContentDisposition],"response-content-encoding":[,e.ResponseContentEncoding],"response-content-language":[,e.ResponseContentLanguage],"response-content-type":[,e.ResponseContentType],"response-expires":[()=>e.ResponseExpires!==void 0,()=>(0,d.dateToUtcString)(e.ResponseExpires).toString()],versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectCommand=Ese;var xse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAclCommand=xse;var wse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-max-parts":[()=>A(e.MaxParts),()=>e.MaxParts.toString()],"x-amz-part-number-marker":e.PartNumberMarker,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-object-attributes":[()=>A(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({attributes:[,""],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=wse;var vse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=vse;var kse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=kse;var Ase=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Ase;var Rse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=Rse;var Ise=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({torrent:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Ise;var Nse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=Nse;var Ose=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"HEAD",headers:c,path:i,body:u})};p.se_HeadBucketCommand=Ose;var Tse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"if-match":e.IfMatch,"if-modified-since":[()=>A(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>A(e.IfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.IfUnmodifiedSince).toString()],range:e.Range,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-checksum-mode":e.ChecksumMode}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({versionId:[,e.VersionId],partNumber:[()=>e.PartNumber!==void 0,()=>e.PartNumber.toString()]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"HEAD",headers:c,path:i,query:u,body:l})};p.se_HeadObjectCommand=Tse;var qse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],"x-id":[,"ListBucketAnalyticsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=qse;var Bse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],"x-id":[,"ListBucketIntelligentTieringConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=Bse;var Dse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],"x-id":[,"ListBucketInventoryConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=Dse;var Mse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],"x-id":[,"ListBucketMetricsConfigurations"],"continuation-token":[,e.ContinuationToken]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=Mse;var Fse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={"content-type":"application/xml"},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`,u;return u="",new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,body:u})};p.se_ListBucketsCommand=Fse;var Lse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({uploads:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-uploads":[()=>e.MaxUploads!==void 0,()=>e.MaxUploads.toString()],prefix:[,e.Prefix],"upload-id-marker":[,e.UploadIdMarker]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=Lse;var jse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>A(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],marker:[,e.Marker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsCommand=jse;var Use=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>A(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"list-type":[,"2"],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"continuation-token":[,e.ContinuationToken],"fetch-owner":[()=>e.FetchOwner!==void 0,()=>e.FetchOwner.toString()],"start-after":[,e.StartAfter]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsV2Command=Use;var zse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>A(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versions:[,""],delimiter:[,e.Delimiter],"encoding-type":[,e.EncodingType],"key-marker":[,e.KeyMarker],"max-keys":[()=>e.MaxKeys!==void 0,()=>e.MaxKeys.toString()],prefix:[,e.Prefix],"version-id-marker":[,e.VersionIdMarker]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=zse;var Gse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"ListParts"],"max-parts":[()=>e.MaxParts!==void 0,()=>e.MaxParts.toString()],"part-number-marker":[,e.PartNumberMarker],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListPartsCommand=Gse;var $se=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=OF(e.AccelerateConfiguration,n));let a;return e.AccelerateConfiguration!==void 0&&(a=OF(e.AccelerateConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=$se;var Hse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=Qh(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=Qh(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAclCommand=Hse;var Kse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({analytics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.AnalyticsConfiguration!==void 0&&(l=TF(e.AnalyticsConfiguration,n));let a;return e.AnalyticsConfiguration!==void 0&&(a=TF(e.AnalyticsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=Kse;var Vse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=MF(e.CORSConfiguration,n));let a;return e.CORSConfiguration!==void 0&&(a=MF(e.CORSConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=Vse;var Wse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=JF(e.ServerSideEncryptionConfiguration,n));let a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=JF(e.ServerSideEncryptionConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=Wse;var Xse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c={"content-type":"application/xml"},i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"intelligent-tiering":[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.IntelligentTieringConfiguration!==void 0&&(l=jF(e.IntelligentTieringConfiguration,n));let a;return e.IntelligentTieringConfiguration!==void 0&&(a=jF(e.IntelligentTieringConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=Xse;var Yse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({inventory:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.InventoryConfiguration!==void 0&&(l=UF(e.InventoryConfiguration,n));let a;return e.InventoryConfiguration!==void 0&&(a=UF(e.InventoryConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=Yse;var Qse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=qF(e.LifecycleConfiguration,n));let a;return e.LifecycleConfiguration!==void 0&&(a=qF(e.LifecycleConfiguration,n),a=a.withName("LifecycleConfiguration"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=Qse;var Jse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=BF(e.BucketLoggingStatus,n));let a;return e.BucketLoggingStatus!==void 0&&(a=BF(e.BucketLoggingStatus,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=Jse;var Zse=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({metrics:[,""],id:[,(0,d.expectNonNull)(e.Id,"Id")]}),l;e.MetricsConfiguration!==void 0&&(l=zF(e.MetricsConfiguration,n));let a;return e.MetricsConfiguration!==void 0&&(a=zF(e.MetricsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=Zse;var eoe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>A(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=GF(e.NotificationConfiguration,n));let a;return e.NotificationConfiguration!==void 0&&(a=GF(e.NotificationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=eoe;var toe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=VF(e.OwnershipControls,n));let a;return e.OwnershipControls!==void 0&&(a=VF(e.OwnershipControls,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=toe;var noe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>A(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;e.Policy!==void 0&&(l=e.Policy);let a;return e.Policy!==void 0&&(a=e.Policy,l=a),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=noe;var roe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-bucket-object-lock-token":e.Token,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=XF(e.ReplicationConfiguration,n));let a;return e.ReplicationConfiguration!==void 0&&(a=XF(e.ReplicationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=roe;var soe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=YF(e.RequestPaymentConfiguration,n));let a;return e.RequestPaymentConfiguration!==void 0&&(a=YF(e.RequestPaymentConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=soe;var ooe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=ul(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=ul(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=ooe;var ioe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-mfa":e.MFA,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=ZF(e.VersioningConfiguration,n));let a;return e.VersioningConfiguration!==void 0&&(a=ZF(e.VersioningConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=ioe;var aoe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=eL(e.WebsiteConfiguration,n));let a;return e.WebsiteConfiguration!==void 0&&(a=eL(e.WebsiteConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=aoe;var coe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":e.ContentType||"application/octet-stream","x-amz-acl":e.ACL,"cache-control":e.CacheControl,"content-disposition":e.ContentDisposition,"content-encoding":e.ContentEncoding,"content-language":e.ContentLanguage,"content-length":[()=>A(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,expires:[()=>A(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-storage-class":e.StorageClass,"x-amz-website-redirect-location":e.WebsiteRedirectLocation,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext,"x-amz-server-side-encryption-bucket-key-enabled":[()=>A(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],"x-amz-request-payer":e.RequestPayer,"x-amz-tagging":e.Tagging,"x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-object-lock-retain-until-date":[()=>A(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((g,C)=>(g[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],g),{})}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"PutObject"]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectCommand=coe;var doe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-acl":e.ACL,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-grant-full-control":e.GrantFullControl,"x-amz-grant-read":e.GrantRead,"x-amz-grant-read-acp":e.GrantReadACP,"x-amz-grant-write":e.GrantWrite,"x-amz-grant-write-acp":e.GrantWriteACP,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({acl:[,""],versionId:[,e.VersionId]}),l;e.AccessControlPolicy!==void 0&&(l=Qh(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=Qh(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectAclCommand=doe;var loe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"legal-hold":[,""],versionId:[,e.VersionId]}),l;e.LegalHold!==void 0&&(l=HF(e.LegalHold,n));let a;return e.LegalHold!==void 0&&(a=HF(e.LegalHold,n),a=a.withName("LegalHold"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=loe;var uoe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bucket-object-lock-token":e.Token,"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=$F(e.ObjectLockConfiguration,n));let a;return e.ObjectLockConfiguration!==void 0&&(a=$F(e.ObjectLockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=uoe;var moe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>A(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({retention:[,""],versionId:[,e.VersionId]}),l;e.Retention!==void 0&&(l=KF(e.Retention,n));let a;return e.Retention!==void 0&&(a=KF(e.Retention,n),a=a.withName("Retention"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=moe;var poe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({tagging:[,""],versionId:[,e.VersionId]}),l;e.Tagging!==void 0&&(l=ul(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=ul(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=poe;var foe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=WF(e.PublicAccessBlockConfiguration,n));let a;return e.PublicAccessBlockConfiguration!==void 0&&(a=WF(e.PublicAccessBlockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=foe;var yoe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({restore:[,""],"x-id":[,"RestoreObject"],versionId:[,e.VersionId]}),l;e.RestoreRequest!==void 0&&(l=QF(e.RestoreRequest,n));let a;return e.RestoreRequest!==void 0&&(a=QF(e.RestoreRequest,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,query:u,body:l})};p.se_RestoreObjectCommand=yoe;var goe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/xml","x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({select:[,""],"select-type":[,"2"],"x-id":[,"SelectObjectContent"]}),l;l='';let a=new y.XmlNode("SelectObjectContentRequest");if(a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let g=y.XmlNode.of("Expression",e.Expression).withName("Expression");a.addChildNode(g)}if(e.ExpressionType!==void 0){let g=y.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");a.addChildNode(g)}if(e.InputSerialization!==void 0){let g=oL(e.InputSerialization,n).withName("InputSerialization");a.addChildNode(g)}if(e.OutputSerialization!==void 0){let g=iL(e.OutputSerialization,n).withName("OutputSerialization");a.addChildNode(g)}if(e.RequestProgress!==void 0){let g=ble(e.RequestProgress,n).withName("RequestProgress");a.addChildNode(g)}if(e.ScanRange!==void 0){let g=vle(e.ScanRange,n).withName("ScanRange");a.addChildNode(g)}return l+=a.toString(),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"POST",headers:c,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=goe;var hoe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"content-type":"application/octet-stream","content-length":[()=>A(e.ContentLength),()=>e.ContentLength.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPart"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;e.Body!==void 0&&(l=e.Body);let a;return e.Body!==void 0&&(a=e.Body,l=a),new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCommand=hoe;var _oe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>A(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>A(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],"x-amz-copy-source-range":e.CopySourceRange,"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-server-side-encryption-customer-key":e.SSECustomerKey,"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm,"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey,"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5,"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/{Key+}`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1),i=(0,d.resolvedPath)(i,e,"Key",()=>e.Key,"{Key+}",!0);let u=(0,d.map)({"x-id":[,"UploadPartCopy"],partNumber:[(0,d.expectNonNull)(e.PartNumber,"PartNumber")!=null,()=>e.PartNumber.toString()],uploadId:[,(0,d.expectNonNull)(e.UploadId,"UploadId")]}),l;return new D.HttpRequest({protocol:r,hostname:t,port:s,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=_oe;var Coe=async(e,n)=>{let{hostname:t,protocol:r="https",port:s,path:o}=await n.endpoint(),c=(0,d.map)({},A,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD","content-type":"application/octet-stream","x-amz-request-route":e.RequestRoute,"x-amz-request-token":e.RequestToken,"x-amz-fwd-status":[()=>A(e.StatusCode),()=>e.StatusCode.toString()],"x-amz-fwd-error-code":e.ErrorCode,"x-amz-fwd-error-message":e.ErrorMessage,"x-amz-fwd-header-accept-ranges":e.AcceptRanges,"x-amz-fwd-header-cache-control":e.CacheControl,"x-amz-fwd-header-content-disposition":e.ContentDisposition,"x-amz-fwd-header-content-encoding":e.ContentEncoding,"x-amz-fwd-header-content-language":e.ContentLanguage,"content-length":[()=>A(e.ContentLength),()=>e.ContentLength.toString()],"x-amz-fwd-header-content-range":e.ContentRange,"x-amz-fwd-header-content-type":e.ContentType,"x-amz-fwd-header-x-amz-checksum-crc32":e.ChecksumCRC32,"x-amz-fwd-header-x-amz-checksum-crc32c":e.ChecksumCRC32C,"x-amz-fwd-header-x-amz-checksum-sha1":e.ChecksumSHA1,"x-amz-fwd-header-x-amz-checksum-sha256":e.ChecksumSHA256,"x-amz-fwd-header-x-amz-delete-marker":[()=>A(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>A(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>A(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>A(e.MissingMeta),()=>e.MissingMeta.toString()],"x-amz-fwd-header-x-amz-object-lock-mode":e.ObjectLockMode,"x-amz-fwd-header-x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus,"x-amz-fwd-header-x-amz-object-lock-retain-until-date":[()=>A(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>A(e.PartsCount),()=>e.PartsCount.toString()],"x-amz-fwd-header-x-amz-replication-status":e.ReplicationStatus,"x-amz-fwd-header-x-amz-request-charged":e.RequestCharged,"x-amz-fwd-header-x-amz-restore":e.Restore,"x-amz-fwd-header-x-amz-server-side-encryption":e.ServerSideEncryption,"x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm,"x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId,"x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5,"x-amz-fwd-header-x-amz-storage-class":e.StorageClass,"x-amz-fwd-header-x-amz-tagging-count":[()=>A(e.TagCount),()=>e.TagCount.toString()],"x-amz-fwd-header-x-amz-version-id":e.VersionId,"x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled":[()=>A(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((C,w)=>(C[`x-amz-meta-${w.toLowerCase()}`]=e.Metadata[w],C),{})}),i=`${o?.endsWith("/")?o.slice(0,-1):o||""}/WriteGetObjectResponse`,u=(0,d.map)({"x-id":[,"WriteGetObjectResponse"]}),l;e.Body!==void 0&&(l=e.Body);let a;e.Body!==void 0&&(a=e.Body,l=a);let{hostname:g}=await n.endpoint();if(n.disableHostPrefix!==!0){if(g="{RequestRoute}."+g,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(g=g.replace("{RequestRoute}",e.RequestRoute),!(0,D.isValidHostname)(g))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new D.HttpRequest({protocol:r,hostname:g,port:s,method:"POST",headers:c,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=Coe;var Soe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return boe(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_AbortMultipartUploadCommand=Soe;var boe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await Vce(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},Poe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Eoe(e,n);let t=(0,d.map)({$metadata:T(e),Expiration:[,e.headers["x-amz-expiration"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(r.ChecksumCRC32)),r.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(r.ChecksumCRC32C)),r.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(r.ChecksumSHA1)),r.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(r.ChecksumSHA256)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.Location!==void 0&&(t.Location=(0,d.expectString)(r.Location)),t};p.de_CompleteMultipartUploadCommand=Poe;var Eoe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},xoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return woe(e,n);let t=(0,d.map)({$metadata:T(e),Expiration:[,e.headers["x-amz-expiration"]],CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],VersionId:[,e.headers["x-amz-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await ue(e.body,n));return t.CopyObjectResult=cue(r,n),t};p.de_CopyObjectCommand=xoe;var woe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await Xce(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},voe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return koe(e,n);let t=(0,d.map)({$metadata:T(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,n),t};p.de_CreateBucketCommand=voe;var koe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await $ce(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await Hce(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},Aoe=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Roe(e,n);let t=(0,d.map)({$metadata:T(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]],ChecksumAlgorithm:[,e.headers["x-amz-checksum-algorithm"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_CreateMultipartUploadCommand=Aoe;var Roe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Ioe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Noe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Ioe;var Noe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Ooe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Toe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Ooe;var Toe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},qoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Boe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=qoe;var Boe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Doe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Moe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=Doe;var Moe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Foe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Loe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=Foe;var Loe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},joe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Uoe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=joe;var Uoe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},zoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Goe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=zoe;var Goe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},$oe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Hoe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=$oe;var Hoe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Koe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Voe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=Koe;var Voe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Woe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Xoe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=Woe;var Xoe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Yoe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Qoe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=Yoe;var Qoe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Joe=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Zoe(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=Joe;var Zoe=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},eie=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return tie(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketWebsiteCommand=eie;var tie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},nie=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return rie(e,n);let t=(0,d.map)({$metadata:T(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectCommand=nie;var rie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},sie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return oie(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=fue((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=Eue((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=sie;var oie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},iie=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return aie(e,n);let t=(0,d.map)({$metadata:T(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectTaggingCommand=iie;var aie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},cie=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return die(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeletePublicAccessBlockCommand=cie;var die=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},lie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uie(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=lie;var uie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},mie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=uL((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=wr(r.Owner,n)),t};p.de_GetBucketAclCommand=mie;var pie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.AnalyticsConfiguration=cL(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=fie;var yie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},gie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=uue((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=gie;var hie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},_ie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.ServerSideEncryptionConfiguration=Mme(r,n),t};p.de_GetBucketEncryptionCommand=_ie;var Cie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Sie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.IntelligentTieringConfiguration=pL(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Sie;var bie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Pie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Eie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.InventoryConfiguration=fL(r,n),t};p.de_GetBucketInventoryConfigurationCommand=Pie;var Eie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},xie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=Wue((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=xie;var wie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},vie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=vie;var kie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Aie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=Xue(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Aie;var Rie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Iie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Nie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.MetricsConfiguration=yL(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Iie;var Nie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Oie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=xue(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=Gue((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=Eme((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=Jme((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Oie;var Tie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},qie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Bie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.OwnershipControls=pme(r,n),t};p.de_GetBucketOwnershipControlsCommand=qie;var Bie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Die=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=await CL(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=Die;var Mie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Fie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.PolicyStatus=Cme(r,n),t};p.de_GetBucketPolicyStatusCommand=Fie;var Lie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},jie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.ReplicationConfiguration=kme(r,n),t};p.de_GetBucketReplicationCommand=jie;var Uie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},zie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=zie;var Gie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},$ie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=is((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetBucketTaggingCommand=$ie;var Hie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Kie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.MfaDelete!==void 0&&(t.MFADelete=(0,d.expectString)(r.MfaDelete)),r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketVersioningCommand=Kie;var Vie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Wie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xie(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=Pue(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=Nue(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=wme(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=qme((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=Wie;var Xie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Yie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Qie(e,n);let t=(0,d.map)({$metadata:T(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentRange:[,e.headers["content-range"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],TagCount:[()=>e.headers["x-amz-tagging-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-tagging-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(s=>s.startsWith("x-amz-meta-")).reduce((s,o)=>(s[o.substring(11)]=e.headers[o],s),{})]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectCommand=Yie;var Qie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await Kce(t,n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await Jh(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},Jie=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zie(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=uL((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=wr(r.Owner,n)),t};p.de_GetObjectAclCommand=Jie;var Zie=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await Jh(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},eae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tae(e,n);let t=(0,d.map)({$metadata:T(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],VersionId:[,e.headers["x-amz-version-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=sue(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=Rue(r.ObjectParts,n)),r.ObjectSize!==void 0&&(t.ObjectSize=(0,d.strictParseLong)(r.ObjectSize)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),t};p.de_GetObjectAttributesCommand=eae;var tae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await Jh(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},nae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.LegalHold=ame(r,n),t};p.de_GetObjectLegalHoldCommand=nae;var rae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},sae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return oae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.ObjectLockConfiguration=ime(r,n),t};p.de_GetObjectLockConfigurationCommand=sae;var oae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},iae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return aae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.Retention=cme(r,n),t};p.de_GetObjectRetentionCommand=iae;var aae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},cae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return dae(e,n);let t=(0,d.map)({$metadata:T(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=is((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetObjectTaggingCommand=cae;var dae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},lae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uae(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectTorrentCommand=lae;var uae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},mae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectObject)(await ue(e.body,n));return t.PublicAccessBlockConfiguration=bme(r,n),t};p.de_GetPublicAccessBlockCommand=mae;var pae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},fae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=fae;var yae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await nL(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},gae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hae(e,n);let t=(0,d.map)({$metadata:T(e),DeleteMarker:[()=>e.headers["x-amz-delete-marker"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-delete-marker"])],AcceptRanges:[,e.headers["accept-ranges"]],Expiration:[,e.headers["x-amz-expiration"]],Restore:[,e.headers["x-amz-restore"]],ArchiveStatus:[,e.headers["x-amz-archive-status"]],LastModified:[()=>e.headers["last-modified"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["last-modified"]))],ContentLength:[()=>e.headers["content-length"]!==void 0,()=>(0,d.strictParseLong)(e.headers["content-length"])],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ETag:[,e.headers.etag],MissingMeta:[()=>e.headers["x-amz-missing-meta"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-missing-meta"])],VersionId:[,e.headers["x-amz-version-id"]],CacheControl:[,e.headers["cache-control"]],ContentDisposition:[,e.headers["content-disposition"]],ContentEncoding:[,e.headers["content-encoding"]],ContentLanguage:[,e.headers["content-language"]],ContentType:[,e.headers["content-type"]],Expires:[()=>e.headers.expires!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers.expires))],WebsiteRedirectLocation:[,e.headers["x-amz-website-redirect-location"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],StorageClass:[,e.headers["x-amz-storage-class"]],RequestCharged:[,e.headers["x-amz-request-charged"]],ReplicationStatus:[,e.headers["x-amz-replication-status"]],PartsCount:[()=>e.headers["x-amz-mp-parts-count"]!==void 0,()=>(0,d.strictParseInt32)(e.headers["x-amz-mp-parts-count"])],ObjectLockMode:[,e.headers["x-amz-object-lock-mode"]],ObjectLockRetainUntilDate:[()=>e.headers["x-amz-object-lock-retain-until-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.headers["x-amz-object-lock-retain-until-date"]))],ObjectLockLegalHoldStatus:[,e.headers["x-amz-object-lock-legal-hold"]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,s)=>(r[s.substring(11)]=e.headers[s],r),{})]});return await(0,d.collectBody)(e.body,n),t};p.de_HeadObjectCommand=gae;var hae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await nL(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},_ae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=Jle((0,d.getArrayIfSingleItem)(r.AnalyticsConfiguration),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketAnalyticsConfigurationsCommand=_ae;var Cae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Sae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IntelligentTieringConfiguration===""?t.IntelligentTieringConfigurationList=[]:r.IntelligentTieringConfiguration!==void 0&&(t.IntelligentTieringConfigurationList=Tue((0,d.getArrayIfSingleItem)(r.IntelligentTieringConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketIntelligentTieringConfigurationsCommand=Sae;var bae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Pae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Eae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.InventoryConfiguration===""?t.InventoryConfigurationList=[]:r.InventoryConfiguration!==void 0&&(t.InventoryConfigurationList=Bue((0,d.getArrayIfSingleItem)(r.InventoryConfiguration),n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketInventoryConfigurationsCommand=Pae;var Eae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},xae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.MetricsConfiguration===""?t.MetricsConfigurationList=[]:r.MetricsConfiguration!==void 0&&(t.MetricsConfigurationList=Jue((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=xae;var wae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},vae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kae(e,n);let t=(0,d.map)({$metadata:T(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=rue((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=wr(r.Owner,n)),t};p.de_ListBucketsCommand=vae;var kae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Aae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rae(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=Zh((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxUploads!==void 0&&(t.MaxUploads=(0,d.strictParseInt32)(r.MaxUploads)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextUploadIdMarker!==void 0&&(t.NextUploadIdMarker=(0,d.expectString)(r.NextUploadIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.UploadIdMarker!==void 0&&(t.UploadIdMarker=(0,d.expectString)(r.UploadIdMarker)),r.Upload===""?t.Uploads=[]:r.Upload!==void 0&&(t.Uploads=tme((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Aae;var Rae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Iae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Nae(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=Zh((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=gL((0,d.getArrayIfSingleItem)(r.Contents),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Marker!==void 0&&(t.Marker=(0,d.expectString)(r.Marker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextMarker!==void 0&&(t.NextMarker=(0,d.expectString)(r.NextMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),t};p.de_ListObjectsCommand=Iae;var Nae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await tL(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},Oae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tae(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=Zh((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=gL((0,d.getArrayIfSingleItem)(r.Contents),n)),r.ContinuationToken!==void 0&&(t.ContinuationToken=(0,d.expectString)(r.ContinuationToken)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyCount!==void 0&&(t.KeyCount=(0,d.strictParseInt32)(r.KeyCount)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.StartAfter!==void 0&&(t.StartAfter=(0,d.expectString)(r.StartAfter)),t};p.de_ListObjectsV2Command=Oae;var Tae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await tL(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},qae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Bae(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=Zh((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.DeleteMarker===""?t.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(t.DeleteMarkers=hue((0,d.getArrayIfSingleItem)(r.DeleteMarker),n)),r.Delimiter!==void 0&&(t.Delimiter=(0,d.expectString)(r.Delimiter)),r.EncodingType!==void 0&&(t.EncodingType=(0,d.expectString)(r.EncodingType)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.KeyMarker!==void 0&&(t.KeyMarker=(0,d.expectString)(r.KeyMarker)),r.MaxKeys!==void 0&&(t.MaxKeys=(0,d.strictParseInt32)(r.MaxKeys)),r.Name!==void 0&&(t.Name=(0,d.expectString)(r.Name)),r.NextKeyMarker!==void 0&&(t.NextKeyMarker=(0,d.expectString)(r.NextKeyMarker)),r.NextVersionIdMarker!==void 0&&(t.NextVersionIdMarker=(0,d.expectString)(r.NextVersionIdMarker)),r.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(r.Prefix)),r.VersionIdMarker!==void 0&&(t.VersionIdMarker=(0,d.expectString)(r.VersionIdMarker)),r.Version===""?t.Versions=[]:r.Version!==void 0&&(t.Versions=mme((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=qae;var Bae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Dae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mae(e,n);let t=(0,d.map)({$metadata:T(e),AbortDate:[()=>e.headers["x-amz-abort-date"]!==void 0,()=>(0,d.expectNonNull)((0,d.parseRfc7231DateTime)(e.headers["x-amz-abort-date"]))],AbortRuleId:[,e.headers["x-amz-abort-rule-id"]],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ue(e.body,n)),"body");return r.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(r.Bucket)),r.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(r.ChecksumAlgorithm)),r.Initiator!==void 0&&(t.Initiator=mL(r.Initiator,n)),r.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(r.IsTruncated)),r.Key!==void 0&&(t.Key=(0,d.expectString)(r.Key)),r.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(r.MaxParts)),r.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(r.NextPartNumberMarker)),r.Owner!==void 0&&(t.Owner=wr(r.Owner,n)),r.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?t.Parts=[]:r.Part!==void 0&&(t.Parts=hme((0,d.getArrayIfSingleItem)(r.Part),n)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass)),r.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(r.UploadId)),t};p.de_ListPartsCommand=Dae;var Mae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Fae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=Fae;var Lae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},jae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAclCommand=jae;var Uae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},zae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAnalyticsConfigurationCommand=zae;var Gae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},$ae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=$ae;var Hae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Kae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=Kae;var Vae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Wae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=Wae;var Xae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Yae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Qae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=Yae;var Qae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Jae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zae(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=Jae;var Zae=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},ece=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return tce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLoggingCommand=ece;var tce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},nce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return rce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=nce;var rce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},sce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return oce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketNotificationConfigurationCommand=sce;var oce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},ice=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ace(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=ice;var ace=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},cce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return dce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=cce;var dce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},lce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return uce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=lce;var uce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},mce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return pce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=mce;var pce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},fce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketTaggingCommand=fce;var yce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},gce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketVersioningCommand=gce;var hce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},_ce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Cce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=_ce;var Cce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Sce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bce(e,n);let t=(0,d.map)({$metadata:T(e),Expiration:[,e.headers["x-amz-expiration"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],VersionId:[,e.headers["x-amz-version-id"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],SSEKMSEncryptionContext:[,e.headers["x-amz-server-side-encryption-context"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectCommand=Sce;var bce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Pce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ece(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectAclCommand=Pce;var Ece=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await Jh(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},xce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wce(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLegalHoldCommand=xce;var wce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},vce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return kce(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLockConfigurationCommand=vce;var kce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Ace=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rce(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectRetentionCommand=Ace;var Rce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Ice=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Nce(e,n);let t=(0,d.map)({$metadata:T(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectTaggingCommand=Ice;var Nce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Oce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutPublicAccessBlockCommand=Oce;var Tce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},qce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Bce(e,n);let t=(0,d.map)({$metadata:T(e),RequestCharged:[,e.headers["x-amz-request-charged"]],RestoreOutputPath:[,e.headers["x-amz-restore-output-path"]]});return await(0,d.collectBody)(e.body,n),t};p.de_RestoreObjectCommand=qce;var Bce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await Wce(t,n);default:let s=t.body;return F({output:e,parsedBody:s,errorCode:r})}},Dce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Mce(e,n);let t=(0,d.map)({$metadata:T(e)}),r=e.body;return t.Payload=Yce(r,n),t};p.de_SelectObjectContentCommand=Dce;var Mce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},Fce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Lce(e,n);let t=(0,d.map)({$metadata:T(e),ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],ETag:[,e.headers.etag],ChecksumCRC32:[,e.headers["x-amz-checksum-crc32"]],ChecksumCRC32C:[,e.headers["x-amz-checksum-crc32c"]],ChecksumSHA1:[,e.headers["x-amz-checksum-sha1"]],ChecksumSHA256:[,e.headers["x-amz-checksum-sha256"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_UploadPartCommand=Fce;var Lce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},jce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uce(e,n);let t=(0,d.map)({$metadata:T(e),CopySourceVersionId:[,e.headers["x-amz-copy-source-version-id"]],ServerSideEncryption:[,e.headers["x-amz-server-side-encryption"]],SSECustomerAlgorithm:[,e.headers["x-amz-server-side-encryption-customer-algorithm"]],SSECustomerKeyMD5:[,e.headers["x-amz-server-side-encryption-customer-key-md5"]],SSEKMSKeyId:[,e.headers["x-amz-server-side-encryption-aws-kms-key-id"]],BucketKeyEnabled:[()=>e.headers["x-amz-server-side-encryption-bucket-key-enabled"]!==void 0,()=>(0,d.parseBoolean)(e.headers["x-amz-server-side-encryption-bucket-key-enabled"])],RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectObject)(await ue(e.body,n));return t.CopyPartResult=due(r,n),t};p.de_UploadPartCopyCommand=jce;var Uce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},zce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gce(e,n);let t=(0,d.map)({$metadata:T(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=zce;var Gce=async(e,n)=>{let t={...e,body:await L(e.body,n)},r=j(e,t.body),s=t.body;return F({output:e,parsedBody:s,errorCode:r})},F=(0,d.withBaseException)(qre.S3ServiceException),$ce=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.BucketAlreadyExists({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Hce=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.BucketAlreadyOwnedByYou({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Kce=async(e,n)=>{let t=(0,d.map)({}),r=e.body;r.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(r.AccessTier)),r.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(r.StorageClass));let s=new Dt.InvalidObjectState({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},tL=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.NoSuchBucket({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Jh=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.NoSuchKey({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Vce=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.NoSuchUpload({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},nL=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.NotFound({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Wce=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Tre.ObjectAlreadyInActiveTierError({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Xce=async(e,n)=>{let t=(0,d.map)({}),r=e.body,s=new Dt.ObjectNotInActiveTierError({$metadata:T(e),...t});return(0,d.decorateServiceException)(s,e.body)},Yce=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await ede(t.Records,n)}:t.Stats!=null?{Stats:await tde(t.Stats,n)}:t.Progress!=null?{Progress:await Zce(t.Progress,n)}:t.Cont!=null?{Cont:await Qce(t.Cont,n)}:t.End!=null?{End:await Jce(t.End,n)}:{$unknown:e}),Qce=async(e,n)=>{let t={},r=await ue(e.body,n);return Object.assign(t,aue(r,n)),t},Jce=async(e,n)=>{let t={},r=await ue(e.body,n);return Object.assign(t,Sue(r,n)),t},Zce=async(e,n)=>{let t={},r=await ue(e.body,n);return t.Details=Sme(r,n),t},ede=async(e,n)=>{let t={};return t.Payload=e.body,t},tde=async(e,n)=>{let t={},r=await ue(e.body,n);return t.Details=$me(r,n),t},nde=(e,n)=>{let t=new y.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=y.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");t.addChildNode(r)}return t},OF=(e,n)=>{let t=new y.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=y.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Qh=(e,n)=>{let t=new y.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=sL(e.Grants,n),s=new y.XmlNode("AccessControlList");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}if(e.Owner!=null){let r=ale(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},rde=(e,n)=>{let t=new y.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=y.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");t.addChildNode(r)}return t},sde=(e,n)=>e.filter(t=>t!=null).map(t=>y.XmlNode.of("AllowedHeader",t).withName("member")),ode=(e,n)=>e.filter(t=>t!=null).map(t=>y.XmlNode.of("AllowedMethod",t).withName("member")),ide=(e,n)=>e.filter(t=>t!=null).map(t=>y.XmlNode.of("AllowedOrigin",t).withName("member")),ade=(e,n)=>{let t=new y.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&ko(e.Tags,n).map(s=>{s=s.withName("Tag"),t.addChildNode(s)}),t},TF=(e,n)=>{let t=new y.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=y.XmlNode.of("AnalyticsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=dde(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=Ble(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},cde=(e,n)=>{let t=new y.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=lde(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},dde=(e,n)=>{let t=new y.XmlNode("AnalyticsFilter");return Dt.AnalyticsFilter.visit(e,{Prefix:r=>{let s=y.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(s)},Tag:r=>{let s=vo(r,n).withName("Tag");t.addChildNode(s)},And:r=>{let s=ade(r,n).withName("And");t.addChildNode(s)},_:(r,s)=>{if(!(s instanceof y.XmlNode||s instanceof y.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new y.XmlNode(r).addChildNode(s))}}),t},lde=(e,n)=>{let t=new y.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=y.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.BucketAccountId!=null){let r=y.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=y.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},qF=(e,n)=>{let t=new y.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&Wde(e.Rules,n).map(s=>{s=s.withName("Rule"),t.addChildNode(s)}),t},BF=(e,n)=>{let t=new y.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=Xde(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},DF=(e,n)=>{let t=new y.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&mde(e.Parts,n).map(s=>{s=s.withName("Part"),t.addChildNode(s)}),t},ude=(e,n)=>{let t=new y.XmlNode("CompletedPart");if(e.ETag!=null){let r=y.XmlNode.of("ETag",e.ETag).withName("ETag");t.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=y.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");t.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=y.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");t.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=y.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");t.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=y.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");t.addChildNode(r)}if(e.PartNumber!=null){let r=y.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");t.addChildNode(r)}return t},mde=(e,n)=>e.filter(t=>t!=null).map(t=>ude(t,n).withName("member")),pde=(e,n)=>{let t=new y.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=y.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");t.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=y.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");t.addChildNode(r)}return t},MF=(e,n)=>{let t=new y.XmlNode("CORSConfiguration");return e.CORSRules!=null&&yde(e.CORSRules,n).map(s=>{s=s.withName("CORSRule"),t.addChildNode(s)}),t},fde=(e,n)=>{let t=new y.XmlNode("CORSRule");if(e.ID!=null){let r=y.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.AllowedHeaders!=null&&sde(e.AllowedHeaders,n).map(s=>{s=s.withName("AllowedHeader"),t.addChildNode(s)}),e.AllowedMethods!=null&&ode(e.AllowedMethods,n).map(s=>{s=s.withName("AllowedMethod"),t.addChildNode(s)}),e.AllowedOrigins!=null&&ide(e.AllowedOrigins,n).map(s=>{s=s.withName("AllowedOrigin"),t.addChildNode(s)}),e.ExposeHeaders!=null&&vde(e.ExposeHeaders,n).map(s=>{s=s.withName("ExposeHeader"),t.addChildNode(s)}),e.MaxAgeSeconds!=null){let r=y.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");t.addChildNode(r)}return t},yde=(e,n)=>e.filter(t=>t!=null).map(t=>fde(t,n).withName("member")),FF=(e,n)=>{let t=new y.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=y.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");t.addChildNode(r)}return t},gde=(e,n)=>{let t=new y.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=y.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");t.addChildNode(r)}if(e.Comments!=null){let r=y.XmlNode.of("Comments",e.Comments).withName("Comments");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=y.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=y.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=y.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=y.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=y.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");t.addChildNode(r)}return t},hde=(e,n)=>{let t=new y.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=y.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=y.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=y.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=y.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=y.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}return t},_de=(e,n)=>{let t=new y.XmlNode("DefaultRetention");if(e.Mode!=null){let r=y.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.Days!=null){let r=y.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.Years!=null){let r=y.XmlNode.of("Years",String(e.Years)).withName("Years");t.addChildNode(r)}return t},LF=(e,n)=>{let t=new y.XmlNode("Delete");if(e.Objects!=null&&sle(e.Objects,n).map(s=>{s=s.withName("Object"),t.addChildNode(s)}),e.Quiet!=null){let r=y.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");t.addChildNode(r)}return t},Cde=(e,n)=>{let t=new y.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=y.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Sde=(e,n)=>{let t=new y.XmlNode("Destination");if(e.Bucket!=null){let r=y.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Account!=null){let r=y.XmlNode.of("AccountId",e.Account).withName("Account");t.addChildNode(r)}if(e.StorageClass!=null){let r=y.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=rde(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=Pde(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Sle(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=Qde(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},bde=(e,n)=>{let t=new y.XmlNode("Encryption");if(e.EncryptionType!=null){let r=y.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");t.addChildNode(r)}if(e.KMSKeyId!=null){let r=y.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");t.addChildNode(r)}if(e.KMSContext!=null){let r=y.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");t.addChildNode(r)}return t},Pde=(e,n)=>{let t=new y.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=y.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");t.addChildNode(r)}return t},Ede=(e,n)=>{let t=new y.XmlNode("ErrorDocument");if(e.Key!=null){let r=y.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}return t},xde=(e,n)=>new y.XmlNode("EventBridgeConfiguration"),CP=(e,n)=>e.filter(t=>t!=null).map(t=>y.XmlNode.of("Event",t).withName("member")),wde=(e,n)=>{let t=new y.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=y.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},vde=(e,n)=>e.filter(t=>t!=null).map(t=>y.XmlNode.of("ExposeHeader",t).withName("member")),kde=(e,n)=>{let t=new y.XmlNode("FilterRule");if(e.Name!=null){let r=y.XmlNode.of("FilterRuleName",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=y.XmlNode.of("FilterRuleValue",e.Value).withName("Value");t.addChildNode(r)}return t},Ade=(e,n)=>e.filter(t=>t!=null).map(t=>kde(t,n).withName("member")),Rde=(e,n)=>{let t=new y.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=y.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}return t},Ide=(e,n)=>{let t=new y.XmlNode("Grant");if(e.Grantee!=null){let r=rL(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=y.XmlNode.of("Permission",e.Permission).withName("Permission");t.addChildNode(r)}return t},rL=(e,n)=>{let t=new y.XmlNode("Grantee");if(e.DisplayName!=null){let r=y.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.EmailAddress!=null){let r=y.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");t.addChildNode(r)}if(e.ID!=null){let r=y.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.URI!=null){let r=y.XmlNode.of("URI",e.URI).withName("URI");t.addChildNode(r)}return e.Type!=null&&t.addAttribute("xsi:type",e.Type),t},sL=(e,n)=>e.filter(t=>t!=null).map(t=>Ide(t,n).withName("Grant")),Nde=(e,n)=>{let t=new y.XmlNode("IndexDocument");if(e.Suffix!=null){let r=y.XmlNode.of("Suffix",e.Suffix).withName("Suffix");t.addChildNode(r)}return t},oL=(e,n)=>{let t=new y.XmlNode("InputSerialization");if(e.CSV!=null){let r=gde(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.CompressionType!=null){let r=y.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");t.addChildNode(r)}if(e.JSON!=null){let r=jde(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=lle(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Ode=(e,n)=>{let t=new y.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&ko(e.Tags,n).map(s=>{s=s.withName("Tag"),t.addChildNode(s)}),t},jF=(e,n)=>{let t=new y.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=y.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Tde(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=y.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");t.addChildNode(r)}return e.Tierings!=null&&jle(e.Tierings,n).map(s=>{s=s.withName("Tiering"),t.addChildNode(s)}),t},Tde=(e,n)=>{let t=new y.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tag!=null){let r=vo(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Ode(e.And,n).withName("And");t.addChildNode(r)}return t},UF=(e,n)=>{let t=new y.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=qde(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.IsEnabled!=null){let r=y.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");t.addChildNode(r)}if(e.Filter!=null){let r=Dde(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Id!=null){let r=y.XmlNode.of("InventoryId",e.Id).withName("Id");t.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=y.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");t.addChildNode(r)}if(e.OptionalFields!=null){let r=Mde(e.OptionalFields,n),s=new y.XmlNode("OptionalFields");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}if(e.Schedule!=null){let r=Lde(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},qde=(e,n)=>{let t=new y.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=Fde(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Bde=(e,n)=>{let t=new y.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=qle(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Ole(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},Dde=(e,n)=>{let t=new y.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},Mde=(e,n)=>e.filter(t=>t!=null).map(t=>y.XmlNode.of("InventoryOptionalField",t).withName("Field")),Fde=(e,n)=>{let t=new y.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=y.XmlNode.of("AccountId",e.AccountId).withName("AccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=y.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Format!=null){let r=y.XmlNode.of("InventoryFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Bde(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},Lde=(e,n)=>{let t=new y.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=y.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");t.addChildNode(r)}return t},jde=(e,n)=>{let t=new y.XmlNode("JSONInput");if(e.Type!=null){let r=y.XmlNode.of("JSONType",e.Type).withName("Type");t.addChildNode(r)}return t},Ude=(e,n)=>{let t=new y.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=y.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}return t},zde=(e,n)=>{let t=new y.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=y.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=y.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");t.addChildNode(r)}if(e.Events!=null&&CP(e.Events,n).map(s=>{s=s.withName("Event"),t.addChildNode(s)}),e.Filter!=null){let r=SP(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},Gde=(e,n)=>e.filter(t=>t!=null).map(t=>zde(t,n).withName("member")),$de=(e,n)=>{let t=new y.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=y.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=y.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=y.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");t.addChildNode(r)}return t},Hde=(e,n)=>{let t=new y.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=$de(e.Expiration,n).withName("Expiration");t.addChildNode(r)}if(e.ID!=null){let r=y.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Vde(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=y.XmlNode.of("ExpirationStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Transitions!=null&&$le(e.Transitions,n).map(s=>{s=s.withName("Transition"),t.addChildNode(s)}),e.NoncurrentVersionTransitions!=null&&nle(e.NoncurrentVersionTransitions,n).map(s=>{s=s.withName("NoncurrentVersionTransition"),t.addChildNode(s)}),e.NoncurrentVersionExpiration!=null){let r=ele(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=nde(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},Kde=(e,n)=>{let t=new y.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&ko(e.Tags,n).map(s=>{s=s.withName("Tag"),t.addChildNode(s)}),e.ObjectSizeGreaterThan!=null){let r=y.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");t.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=y.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");t.addChildNode(r)}return t},Vde=(e,n)=>{let t=new y.XmlNode("LifecycleRuleFilter");return Dt.LifecycleRuleFilter.visit(e,{Prefix:r=>{let s=y.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(s)},Tag:r=>{let s=vo(r,n).withName("Tag");t.addChildNode(s)},ObjectSizeGreaterThan:r=>{let s=y.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");t.addChildNode(s)},ObjectSizeLessThan:r=>{let s=y.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");t.addChildNode(s)},And:r=>{let s=Kde(r,n).withName("And");t.addChildNode(s)},_:(r,s)=>{if(!(s instanceof y.XmlNode||s instanceof y.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new y.XmlNode(r).addChildNode(s))}}),t},Wde=(e,n)=>e.filter(t=>t!=null).map(t=>Hde(t,n).withName("member")),Xde=(e,n)=>{let t=new y.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=y.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");t.addChildNode(r)}if(e.TargetGrants!=null){let r=Fle(e.TargetGrants,n),s=new y.XmlNode("TargetGrants");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}if(e.TargetPrefix!=null){let r=y.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");t.addChildNode(r)}return t},Yde=(e,n)=>{let t=new y.XmlNode("MetadataEntry");if(e.Name!=null){let r=y.XmlNode.of("MetadataKey",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=y.XmlNode.of("MetadataValue",e.Value).withName("Value");t.addChildNode(r)}return t},Qde=(e,n)=>{let t=new y.XmlNode("Metrics");if(e.Status!=null){let r=y.XmlNode.of("MetricsStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.EventThreshold!=null){let r=aL(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},Jde=(e,n)=>{let t=new y.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&ko(e.Tags,n).map(s=>{s=s.withName("Tag"),t.addChildNode(s)}),e.AccessPointArn!=null){let r=y.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");t.addChildNode(r)}return t},zF=(e,n)=>{let t=new y.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=y.XmlNode.of("MetricsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Zde(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},Zde=(e,n)=>{let t=new y.XmlNode("MetricsFilter");return Dt.MetricsFilter.visit(e,{Prefix:r=>{let s=y.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(s)},Tag:r=>{let s=vo(r,n).withName("Tag");t.addChildNode(s)},AccessPointArn:r=>{let s=y.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");t.addChildNode(s)},And:r=>{let s=Jde(r,n).withName("And");t.addChildNode(s)},_:(r,s)=>{if(!(s instanceof y.XmlNode||s instanceof y.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new y.XmlNode(r).addChildNode(s))}}),t},ele=(e,n)=>{let t=new y.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=y.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=y.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},tle=(e,n)=>{let t=new y.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=y.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.StorageClass!=null){let r=y.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=y.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},nle=(e,n)=>e.filter(t=>t!=null).map(t=>tle(t,n).withName("member")),GF=(e,n)=>{let t=new y.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&zle(e.TopicConfigurations,n).map(s=>{s=s.withName("TopicConfiguration"),t.addChildNode(s)}),e.QueueConfigurations!=null&&mle(e.QueueConfigurations,n).map(s=>{s=s.withName("QueueConfiguration"),t.addChildNode(s)}),e.LambdaFunctionConfigurations!=null&&Gde(e.LambdaFunctionConfigurations,n).map(s=>{s=s.withName("CloudFunctionConfiguration"),t.addChildNode(s)}),e.EventBridgeConfiguration!=null){let r=xde(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},SP=(e,n)=>{let t=new y.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=xle(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},rle=(e,n)=>{let t=new y.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=y.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.VersionId!=null){let r=y.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");t.addChildNode(r)}return t},sle=(e,n)=>e.filter(t=>t!=null).map(t=>rle(t,n).withName("member")),$F=(e,n)=>{let t=new y.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=y.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");t.addChildNode(r)}if(e.Rule!=null){let r=ole(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},HF=(e,n)=>{let t=new y.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=y.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");t.addChildNode(r)}return t},KF=(e,n)=>{let t=new y.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=y.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.RetainUntilDate!=null){let r=y.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");t.addChildNode(r)}return t},ole=(e,n)=>{let t=new y.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=_de(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},ile=(e,n)=>{let t=new y.XmlNode("OutputLocation");if(e.S3!=null){let r=wle(e.S3,n).withName("S3");t.addChildNode(r)}return t},iL=(e,n)=>{let t=new y.XmlNode("OutputSerialization");if(e.CSV!=null){let r=hde(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=Ude(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},ale=(e,n)=>{let t=new y.XmlNode("Owner");if(e.DisplayName!=null){let r=y.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.ID!=null){let r=y.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}return t},VF=(e,n)=>{let t=new y.XmlNode("OwnershipControls");return e.Rules!=null&&dle(e.Rules,n).map(s=>{s=s.withName("Rule"),t.addChildNode(s)}),t},cle=(e,n)=>{let t=new y.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=y.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");t.addChildNode(r)}return t},dle=(e,n)=>e.filter(t=>t!=null).map(t=>cle(t,n).withName("member")),lle=(e,n)=>new y.XmlNode("ParquetInput"),WF=(e,n)=>{let t=new y.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=y.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");t.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=y.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");t.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=y.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");t.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=y.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");t.addChildNode(r)}return t},ule=(e,n)=>{let t=new y.XmlNode("QueueConfiguration");if(e.Id!=null){let r=y.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.QueueArn!=null){let r=y.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");t.addChildNode(r)}if(e.Events!=null&&CP(e.Events,n).map(s=>{s=s.withName("Event"),t.addChildNode(s)}),e.Filter!=null){let r=SP(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},mle=(e,n)=>e.filter(t=>t!=null).map(t=>ule(t,n).withName("member")),ple=(e,n)=>{let t=new y.XmlNode("Redirect");if(e.HostName!=null){let r=y.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=y.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");t.addChildNode(r)}if(e.Protocol!=null){let r=y.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=y.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");t.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=y.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");t.addChildNode(r)}return t},fle=(e,n)=>{let t=new y.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=y.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.Protocol!=null){let r=y.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}return t},yle=(e,n)=>{let t=new y.XmlNode("ReplicaModifications");if(e.Status!=null){let r=y.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},XF=(e,n)=>{let t=new y.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=y.XmlNode.of("Role",e.Role).withName("Role");t.addChildNode(r)}return e.Rules!=null&&Cle(e.Rules,n).map(s=>{s=s.withName("Rule"),t.addChildNode(s)}),t},gle=(e,n)=>{let t=new y.XmlNode("ReplicationRule");if(e.ID!=null){let r=y.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Priority!=null){let r=y.XmlNode.of("Priority",String(e.Priority)).withName("Priority");t.addChildNode(r)}if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=_le(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=y.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=Nle(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=wde(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Sde(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=Cde(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},hle=(e,n)=>{let t=new y.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=y.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&ko(e.Tags,n).map(s=>{s=s.withName("Tag"),t.addChildNode(s)}),t},_le=(e,n)=>{let t=new y.XmlNode("ReplicationRuleFilter");return Dt.ReplicationRuleFilter.visit(e,{Prefix:r=>{let s=y.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(s)},Tag:r=>{let s=vo(r,n).withName("Tag");t.addChildNode(s)},And:r=>{let s=hle(r,n).withName("And");t.addChildNode(s)},_:(r,s)=>{if(!(s instanceof y.XmlNode||s instanceof y.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new y.XmlNode(r).addChildNode(s))}}),t},Cle=(e,n)=>e.filter(t=>t!=null).map(t=>gle(t,n).withName("member")),Sle=(e,n)=>{let t=new y.XmlNode("ReplicationTime");if(e.Status!=null){let r=y.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Time!=null){let r=aL(e.Time,n).withName("Time");t.addChildNode(r)}return t},aL=(e,n)=>{let t=new y.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=y.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");t.addChildNode(r)}return t},YF=(e,n)=>{let t=new y.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=y.XmlNode.of("Payer",e.Payer).withName("Payer");t.addChildNode(r)}return t},ble=(e,n)=>{let t=new y.XmlNode("RequestProgress");if(e.Enabled!=null){let r=y.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");t.addChildNode(r)}return t},QF=(e,n)=>{let t=new y.XmlNode("RestoreRequest");if(e.Days!=null){let r=y.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=Rde(e.GlacierJobParameters,n).withName("GlacierJobParameters");t.addChildNode(r)}if(e.Type!=null){let r=y.XmlNode.of("RestoreRequestType",e.Type).withName("Type");t.addChildNode(r)}if(e.Tier!=null){let r=y.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}if(e.Description!=null){let r=y.XmlNode.of("Description",e.Description).withName("Description");t.addChildNode(r)}if(e.SelectParameters!=null){let r=kle(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=ile(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},Ple=(e,n)=>{let t=new y.XmlNode("RoutingRule");if(e.Condition!=null){let r=pde(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=ple(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},Ele=(e,n)=>e.filter(t=>t!=null).map(t=>Ple(t,n).withName("RoutingRule")),xle=(e,n)=>{let t=new y.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Ade(e.FilterRules,n).map(s=>{s=s.withName("FilterRule"),t.addChildNode(s)}),t},wle=(e,n)=>{let t=new y.XmlNode("S3Location");if(e.BucketName!=null){let r=y.XmlNode.of("BucketName",e.BucketName).withName("BucketName");t.addChildNode(r)}if(e.Prefix!=null){let r=y.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=bde(e.Encryption,n).withName("Encryption");t.addChildNode(r)}if(e.CannedACL!=null){let r=y.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");t.addChildNode(r)}if(e.AccessControlList!=null){let r=sL(e.AccessControlList,n),s=new y.XmlNode("AccessControlList");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}if(e.Tagging!=null){let r=ul(e.Tagging,n).withName("Tagging");t.addChildNode(r)}if(e.UserMetadata!=null){let r=Hle(e.UserMetadata,n),s=new y.XmlNode("UserMetadata");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}if(e.StorageClass!=null){let r=y.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},vle=(e,n)=>{let t=new y.XmlNode("ScanRange");if(e.Start!=null){let r=y.XmlNode.of("Start",String(e.Start)).withName("Start");t.addChildNode(r)}if(e.End!=null){let r=y.XmlNode.of("End",String(e.End)).withName("End");t.addChildNode(r)}return t},kle=(e,n)=>{let t=new y.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=oL(e.InputSerialization,n).withName("InputSerialization");t.addChildNode(r)}if(e.ExpressionType!=null){let r=y.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");t.addChildNode(r)}if(e.Expression!=null){let r=y.XmlNode.of("Expression",e.Expression).withName("Expression");t.addChildNode(r)}if(e.OutputSerialization!=null){let r=iL(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Ale=(e,n)=>{let t=new y.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=y.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");t.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=y.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");t.addChildNode(r)}return t},JF=(e,n)=>{let t=new y.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Ile(e.Rules,n).map(s=>{s=s.withName("Rule"),t.addChildNode(s)}),t},Rle=(e,n)=>{let t=new y.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Ale(e.ApplyServerSideEncryptionByDefault,n).withName("ApplyServerSideEncryptionByDefault");t.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=y.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");t.addChildNode(r)}return t},Ile=(e,n)=>e.filter(t=>t!=null).map(t=>Rle(t,n).withName("member")),Nle=(e,n)=>{let t=new y.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Tle(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=yle(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Ole=(e,n)=>{let t=new y.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=y.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");t.addChildNode(r)}return t},Tle=(e,n)=>{let t=new y.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=y.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},qle=(e,n)=>new y.XmlNode("SSE-S3"),Ble=(e,n)=>{let t=new y.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=Dle(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},Dle=(e,n)=>{let t=new y.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=y.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");t.addChildNode(r)}if(e.Destination!=null){let r=cde(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},vo=(e,n)=>{let t=new y.XmlNode("Tag");if(e.Key!=null){let r=y.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.Value!=null){let r=y.XmlNode.of("Value",e.Value).withName("Value");t.addChildNode(r)}return t},ul=(e,n)=>{let t=new y.XmlNode("Tagging");if(e.TagSet!=null){let r=ko(e.TagSet,n),s=new y.XmlNode("TagSet");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}return t},ko=(e,n)=>e.filter(t=>t!=null).map(t=>vo(t,n).withName("Tag")),Mle=(e,n)=>{let t=new y.XmlNode("TargetGrant");if(e.Grantee!=null){let r=rL(e.Grantee,n).withName("Grantee");r.addAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),t.addChildNode(r)}if(e.Permission!=null){let r=y.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Fle=(e,n)=>e.filter(t=>t!=null).map(t=>Mle(t,n).withName("Grant")),Lle=(e,n)=>{let t=new y.XmlNode("Tiering");if(e.Days!=null){let r=y.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.AccessTier!=null){let r=y.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");t.addChildNode(r)}return t},jle=(e,n)=>e.filter(t=>t!=null).map(t=>Lle(t,n).withName("member")),Ule=(e,n)=>{let t=new y.XmlNode("TopicConfiguration");if(e.Id!=null){let r=y.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.TopicArn!=null){let r=y.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");t.addChildNode(r)}if(e.Events!=null&&CP(e.Events,n).map(s=>{s=s.withName("Event"),t.addChildNode(s)}),e.Filter!=null){let r=SP(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},zle=(e,n)=>e.filter(t=>t!=null).map(t=>Ule(t,n).withName("member")),Gle=(e,n)=>{let t=new y.XmlNode("Transition");if(e.Date!=null){let r=y.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=y.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.StorageClass!=null){let r=y.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},$le=(e,n)=>e.filter(t=>t!=null).map(t=>Gle(t,n).withName("member")),Hle=(e,n)=>e.filter(t=>t!=null).map(t=>Yde(t,n).withName("MetadataEntry")),ZF=(e,n)=>{let t=new y.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=y.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");t.addChildNode(r)}if(e.Status!=null){let r=y.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");t.addChildNode(r)}return t},eL=(e,n)=>{let t=new y.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=Ede(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=Nde(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=fle(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=Ele(e.RoutingRules,n),s=new y.XmlNode("RoutingRules");r.map(o=>{s.addChildNode(o)}),t.addChildNode(s)}return t},Kle=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},Vle=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},Wle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Xle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Yle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Qle=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=is((0,d.getArrayIfSingleItem)(e.Tag),n)),t},cL=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=eue((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=Hme(e.StorageClassAnalysis,n)),t},Jle=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>cL(t,n)),Zle=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=tue(e.S3BucketDestination,n)),t},eue=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ao(e.Tag,n)}:e.And!==void 0?{And:Qle(e.And,n)}:{$unknown:Object.entries(e)[0]},tue=(e,n)=>{let t={};return e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.BucketAccountId!==void 0&&(t.BucketAccountId=(0,d.expectString)(e.BucketAccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},nue=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.CreationDate!==void 0&&(t.CreationDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.CreationDate))),t},rue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>nue(t,n)),sue=(e,n)=>{let t={};return e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},dL=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),oue=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},Zh=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>oue(t,n)),iue=(e,n)=>{let t={};return e.HttpErrorCodeReturnedEquals!==void 0&&(t.HttpErrorCodeReturnedEquals=(0,d.expectString)(e.HttpErrorCodeReturnedEquals)),e.KeyPrefixEquals!==void 0&&(t.KeyPrefixEquals=(0,d.expectString)(e.KeyPrefixEquals)),t},aue=(e,n)=>({}),cue=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},due=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},lue=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.AllowedHeader===""?t.AllowedHeaders=[]:e.AllowedHeader!==void 0&&(t.AllowedHeaders=Wle((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=Xle((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=Yle((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=vue((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},uue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>lue(t,n)),mue=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.Years!==void 0&&(t.Years=(0,d.strictParseInt32)(e.Years)),t},pue=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.DeleteMarker!==void 0&&(t.DeleteMarker=(0,d.parseBoolean)(e.DeleteMarker)),e.DeleteMarkerVersionId!==void 0&&(t.DeleteMarkerVersionId=(0,d.expectString)(e.DeleteMarkerVersionId)),t},fue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pue(t,n)),yue=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=wr(e.Owner,n)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),t},gue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},hue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>yue(t,n)),_ue=(e,n)=>{let t={};return e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Account!==void 0&&(t.Account=(0,d.expectString)(e.Account)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.AccessControlTranslation!==void 0&&(t.AccessControlTranslation=Vle(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=Cue(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Ome(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=Yue(e.Metrics,n)),t},Cue=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Sue=(e,n)=>({}),bue=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.Code!==void 0&&(t.Code=(0,d.expectString)(e.Code)),e.Message!==void 0&&(t.Message=(0,d.expectString)(e.Message)),t},Pue=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},Eue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>bue(t,n)),xue=(e,n)=>({}),bP=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),wue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},vue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),kue=(e,n)=>{let t={};return e.Name!==void 0&&(t.Name=(0,d.expectString)(e.Name)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},Aue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>kue(t,n)),Rue=(e,n)=>{let t={};return e.PartsCount!==void 0&&(t.TotalPartsCount=(0,d.strictParseInt32)(e.PartsCount)),e.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(e.PartNumberMarker)),e.NextPartNumberMarker!==void 0&&(t.NextPartNumberMarker=(0,d.expectString)(e.NextPartNumberMarker)),e.MaxParts!==void 0&&(t.MaxParts=(0,d.strictParseInt32)(e.MaxParts)),e.IsTruncated!==void 0&&(t.IsTruncated=(0,d.parseBoolean)(e.IsTruncated)),e.Part===""?t.Parts=[]:e.Part!==void 0&&(t.Parts=_me((0,d.getArrayIfSingleItem)(e.Part),n)),t},Iue=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=lL(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},lL=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.EmailAddress!==void 0&&(t.EmailAddress=(0,d.expectString)(e.EmailAddress)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.URI!==void 0&&(t.URI=(0,d.expectString)(e.URI)),e["xsi:type"]!==void 0&&(t.Type=(0,d.expectString)(e["xsi:type"])),t},uL=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Iue(t,n)),Nue=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},mL=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),t},Oue=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=is((0,d.getArrayIfSingleItem)(e.Tag),n)),t},pL=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=que(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=Yme((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Tue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pL(t,n)),que=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=Ao(e.Tag,n)),e.And!==void 0&&(t.And=Oue(e.And,n)),t},fL=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=Due(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=Fue(e.Filter,n)),e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.IncludedObjectVersions!==void 0&&(t.IncludedObjectVersions=(0,d.expectString)(e.IncludedObjectVersions)),e.OptionalFields===""?t.OptionalFields=[]:e.OptionalFields!==void 0&&e.OptionalFields.Field!==void 0&&(t.OptionalFields=Lue((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=Uue(e.Schedule,n)),t},Bue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>fL(t,n)),Due=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=jue(e.S3BucketDestination,n)),t},Mue=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=Gme(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=Ume(e["SSE-KMS"],n)),t},Fue=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},Lue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),jue=(e,n)=>{let t={};return e.AccountId!==void 0&&(t.AccountId=(0,d.expectString)(e.AccountId)),e.Bucket!==void 0&&(t.Bucket=(0,d.expectString)(e.Bucket)),e.Format!==void 0&&(t.Format=(0,d.expectString)(e.Format)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Encryption!==void 0&&(t.Encryption=Mue(e.Encryption,n)),t},Uue=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},zue=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.CloudFunction!==void 0&&(t.LambdaFunctionArn=(0,d.expectString)(e.CloudFunction)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=bP((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=PP(e.Filter,n)),t},Gue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>zue(t,n)),$ue=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.ExpiredObjectDeleteMarker!==void 0&&(t.ExpiredObjectDeleteMarker=(0,d.parseBoolean)(e.ExpiredObjectDeleteMarker)),t},Hue=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=$ue(e.Expiration,n)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Vue((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Transition===""?t.Transitions=[]:e.Transition!==void 0&&(t.Transitions=epe((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=sme((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=nme(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=Kle(e.AbortIncompleteMultipartUpload,n)),t},Kue=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=is((0,d.getArrayIfSingleItem)(e.Tag),n)),e.ObjectSizeGreaterThan!==void 0&&(t.ObjectSizeGreaterThan=(0,d.strictParseLong)(e.ObjectSizeGreaterThan)),e.ObjectSizeLessThan!==void 0&&(t.ObjectSizeLessThan=(0,d.strictParseLong)(e.ObjectSizeLessThan)),t},Vue=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ao(e.Tag,n)}:e.ObjectSizeGreaterThan!==void 0?{ObjectSizeGreaterThan:(0,d.strictParseLong)(e.ObjectSizeGreaterThan)}:e.ObjectSizeLessThan!==void 0?{ObjectSizeLessThan:(0,d.strictParseLong)(e.ObjectSizeLessThan)}:e.And!==void 0?{And:Kue(e.And,n)}:{$unknown:Object.entries(e)[0]},Wue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Hue(t,n)),Xue=(e,n)=>{let t={};return e.TargetBucket!==void 0&&(t.TargetBucket=(0,d.expectString)(e.TargetBucket)),e.TargetGrants===""?t.TargetGrants=[]:e.TargetGrants!==void 0&&e.TargetGrants.Grant!==void 0&&(t.TargetGrants=Wme((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},Yue=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=hL(e.EventThreshold,n)),t},Que=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=is((0,d.getArrayIfSingleItem)(e.Tag),n)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},yL=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Zue((0,d.expectUnion)(e.Filter),n)),t},Jue=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>yL(t,n)),Zue=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ao(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:Que(e.And,n)}:{$unknown:Object.entries(e)[0]},eme=(e,n)=>{let t={};return e.UploadId!==void 0&&(t.UploadId=(0,d.expectString)(e.UploadId)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Initiated!==void 0&&(t.Initiated=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Initiated))),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=wr(e.Owner,n)),e.Initiator!==void 0&&(t.Initiator=mL(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},tme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>eme(t,n)),nme=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},rme=(e,n)=>{let t={};return e.NoncurrentDays!==void 0&&(t.NoncurrentDays=(0,d.strictParseInt32)(e.NoncurrentDays)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.NewerNoncurrentVersions!==void 0&&(t.NewerNoncurrentVersions=(0,d.strictParseInt32)(e.NewerNoncurrentVersions)),t},sme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>rme(t,n)),PP=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=Bme(e.S3Key,n)),t},ome=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=dL((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Owner!==void 0&&(t.Owner=wr(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=_L(e.RestoreStatus,n)),t},gL=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ome(t,n)),ime=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=dme(e.Rule,n)),t},ame=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},cme=(e,n)=>{let t={};return e.Mode!==void 0&&(t.Mode=(0,d.expectString)(e.Mode)),e.RetainUntilDate!==void 0&&(t.RetainUntilDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RetainUntilDate))),t},dme=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=mue(e.DefaultRetention,n)),t},lme=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},ume=(e,n)=>{let t={};return e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.ChecksumAlgorithm===""?t.ChecksumAlgorithm=[]:e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=dL((0,d.getArrayIfSingleItem)(e.ChecksumAlgorithm),n)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.VersionId!==void 0&&(t.VersionId=(0,d.expectString)(e.VersionId)),e.IsLatest!==void 0&&(t.IsLatest=(0,d.parseBoolean)(e.IsLatest)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.Owner!==void 0&&(t.Owner=wr(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=_L(e.RestoreStatus,n)),t},mme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ume(t,n)),wr=(e,n)=>{let t={};return e.DisplayName!==void 0&&(t.DisplayName=(0,d.expectString)(e.DisplayName)),e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),t},pme=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=yme((0,d.getArrayIfSingleItem)(e.Rule),n)),t},fme=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},yme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>fme(t,n)),gme=(e,n)=>{let t={};return e.PartNumber!==void 0&&(t.PartNumber=(0,d.strictParseInt32)(e.PartNumber)),e.LastModified!==void 0&&(t.LastModified=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.LastModified))),e.ETag!==void 0&&(t.ETag=(0,d.expectString)(e.ETag)),e.Size!==void 0&&(t.Size=(0,d.strictParseLong)(e.Size)),e.ChecksumCRC32!==void 0&&(t.ChecksumCRC32=(0,d.expectString)(e.ChecksumCRC32)),e.ChecksumCRC32C!==void 0&&(t.ChecksumCRC32C=(0,d.expectString)(e.ChecksumCRC32C)),e.ChecksumSHA1!==void 0&&(t.ChecksumSHA1=(0,d.expectString)(e.ChecksumSHA1)),e.ChecksumSHA256!==void 0&&(t.ChecksumSHA256=(0,d.expectString)(e.ChecksumSHA256)),t},hme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gme(t,n)),_me=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>lme(t,n)),Cme=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Sme=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},bme=(e,n)=>{let t={};return e.BlockPublicAcls!==void 0&&(t.BlockPublicAcls=(0,d.parseBoolean)(e.BlockPublicAcls)),e.IgnorePublicAcls!==void 0&&(t.IgnorePublicAcls=(0,d.parseBoolean)(e.IgnorePublicAcls)),e.BlockPublicPolicy!==void 0&&(t.BlockPublicPolicy=(0,d.parseBoolean)(e.BlockPublicPolicy)),e.RestrictPublicBuckets!==void 0&&(t.RestrictPublicBuckets=(0,d.parseBoolean)(e.RestrictPublicBuckets)),t},Pme=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Queue!==void 0&&(t.QueueArn=(0,d.expectString)(e.Queue)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=bP((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=PP(e.Filter,n)),t},Eme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Pme(t,n)),xme=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.HttpRedirectCode!==void 0&&(t.HttpRedirectCode=(0,d.expectString)(e.HttpRedirectCode)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),e.ReplaceKeyPrefixWith!==void 0&&(t.ReplaceKeyPrefixWith=(0,d.expectString)(e.ReplaceKeyPrefixWith)),e.ReplaceKeyWith!==void 0&&(t.ReplaceKeyWith=(0,d.expectString)(e.ReplaceKeyWith)),t},wme=(e,n)=>{let t={};return e.HostName!==void 0&&(t.HostName=(0,d.expectString)(e.HostName)),e.Protocol!==void 0&&(t.Protocol=(0,d.expectString)(e.Protocol)),t},vme=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},kme=(e,n)=>{let t={};return e.Role!==void 0&&(t.Role=(0,d.expectString)(e.Role)),e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Nme((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Ame=(e,n)=>{let t={};return e.ID!==void 0&&(t.ID=(0,d.expectString)(e.ID)),e.Priority!==void 0&&(t.Priority=(0,d.strictParseInt32)(e.Priority)),e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Filter===""||e.Filter!==void 0&&(t.Filter=Ime((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=jme(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=wue(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=_ue(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=gue(e.DeleteMarkerReplication,n)),t},Rme=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag===""?t.Tags=[]:e.Tag!==void 0&&(t.Tags=is((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Ime=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Ao(e.Tag,n)}:e.And!==void 0?{And:Rme(e.And,n)}:{$unknown:Object.entries(e)[0]},Nme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ame(t,n)),Ome=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=hL(e.Time,n)),t},hL=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},_L=(e,n)=>{let t={};return e.IsRestoreInProgress!==void 0&&(t.IsRestoreInProgress=(0,d.parseBoolean)(e.IsRestoreInProgress)),e.RestoreExpiryDate!==void 0&&(t.RestoreExpiryDate=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.RestoreExpiryDate))),t},Tme=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=iue(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=xme(e.Redirect,n)),t},qme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Tme(t,n)),Bme=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Aue((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},Dme=(e,n)=>{let t={};return e.SSEAlgorithm!==void 0&&(t.SSEAlgorithm=(0,d.expectString)(e.SSEAlgorithm)),e.KMSMasterKeyID!==void 0&&(t.KMSMasterKeyID=(0,d.expectString)(e.KMSMasterKeyID)),t},Mme=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=Lme((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Fme=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=Dme(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},Lme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Fme(t,n)),jme=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=zme(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=vme(e.ReplicaModifications,n)),t},Ume=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},zme=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Gme=(e,n)=>({}),$me=(e,n)=>{let t={};return e.BytesScanned!==void 0&&(t.BytesScanned=(0,d.strictParseLong)(e.BytesScanned)),e.BytesProcessed!==void 0&&(t.BytesProcessed=(0,d.strictParseLong)(e.BytesProcessed)),e.BytesReturned!==void 0&&(t.BytesReturned=(0,d.strictParseLong)(e.BytesReturned)),t},Hme=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=Kme(e.DataExport,n)),t},Kme=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=Zle(e.Destination,n)),t},Ao=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),e.Value!==void 0&&(t.Value=(0,d.expectString)(e.Value)),t},is=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ao(t,n)),Vme=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=lL(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Wme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Vme(t,n)),Xme=(e,n)=>{let t={};return e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.AccessTier!==void 0&&(t.AccessTier=(0,d.expectString)(e.AccessTier)),t},Yme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Xme(t,n)),Qme=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Topic!==void 0&&(t.TopicArn=(0,d.expectString)(e.Topic)),e.Event===""?t.Events=[]:e.Event!==void 0&&(t.Events=bP((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=PP(e.Filter,n)),t},Jme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Qme(t,n)),Zme=(e,n)=>{let t={};return e.Date!==void 0&&(t.Date=(0,d.expectNonNull)((0,d.parseRfc3339DateTimeWithOffset)(e.Date))),e.Days!==void 0&&(t.Days=(0,d.strictParseInt32)(e.Days)),e.StorageClass!==void 0&&(t.StorageClass=(0,d.expectString)(e.StorageClass)),t},epe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Zme(t,n)),T=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),CL=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),A=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ue=(e,n)=>CL(e,n).then(t=>{if(t.length){let r=new Ore.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(u,l)=>l.trim()===""&&l.includes(` -`)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",` -`);let s=r.parse(t),o="#text",c=Object.keys(s)[0],i=s[c];return i[o]&&(i[c]=i[o],delete i[o]),(0,d.getValueFromTextNode)(i)}return{}}),L=async(e,n)=>{let t=await ue(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},j=(e,n)=>{if(n?.Code!==void 0)return n.Code;if(e.statusCode==404)return"NotFound"}});var EP=m(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.AbortMultipartUploadCommand=Ro.$Command=void 0;var tpe=I(),npe=N(),bL=v();Object.defineProperty(Ro,"$Command",{enumerable:!0,get:function(){return bL.Command}});var SL=M(),ml=class extends bL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,npe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,tpe.getEndpointPlugin)(t,ml.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SL.se_AbortMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,SL.de_AbortMultipartUploadCommand)(n,t)}};Ro.AbortMultipartUploadCommand=ml});var Mt=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.getSsecPlugin=Gn.ssecMiddlewareOptions=Gn.ssecMiddleware=void 0;function PL(e){return n=>async t=>{let r={...t.input},s=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(let o of s){let c=r[o.target];if(c){let i=ArrayBuffer.isView(c)?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):typeof c=="string"?e.utf8Decoder(c):new Uint8Array(c),u=e.base64Encoder(i),l=new e.md5;l.update(i),r={...r,[o.target]:u,[o.hash]:e.base64Encoder(await l.digest())}}}return n({...t,input:r})}}Gn.ssecMiddleware=PL;Gn.ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0};var rpe=e=>({applyToStack:n=>{n.add(PL(e),Gn.ssecMiddlewareOptions)}});Gn.getSsecPlugin=rpe});var xP=m(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.CompleteMultipartUploadCommand=Io.$Command=void 0;var spe=fs(),ope=Mt(),ipe=I(),ape=N(),wL=v();Object.defineProperty(Io,"$Command",{enumerable:!0,get:function(){return wL.Command}});var EL=rt(),xL=M(),pl=class extends wL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ape.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ipe.getEndpointPlugin)(t,pl.getEndpointParameterInstructions())),this.middlewareStack.use((0,spe.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,ope.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:EL.CompleteMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:EL.CompleteMultipartUploadOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,xL.se_CompleteMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,xL.de_CompleteMultipartUploadCommand)(n,t)}};Io.CompleteMultipartUploadCommand=pl});var wP=m(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.CopyObjectCommand=No.$Command=void 0;var cpe=fs(),dpe=Mt(),lpe=I(),upe=N(),AL=v();Object.defineProperty(No,"$Command",{enumerable:!0,get:function(){return AL.Command}});var vL=rt(),kL=M(),fl=class extends AL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,upe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lpe.getEndpointPlugin)(t,fl.getEndpointParameterInstructions())),this.middlewareStack.use((0,cpe.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,dpe.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:vL.CopyObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:vL.CopyObjectOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,kL.se_CopyObjectCommand)(n,t)}deserialize(n,t){return(0,kL.de_CopyObjectCommand)(n,t)}};No.CopyObjectCommand=fl});var IL=m($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.getLocationConstraintPlugin=$n.locationConstraintMiddlewareOptions=$n.locationConstraintMiddleware=void 0;function RL(e){return n=>async t=>{let{CreateBucketConfiguration:r}=t.input,s=await e.region();return(!r||!r.LocationConstraint)&&(t={...t,input:{...t.input,CreateBucketConfiguration:s==="us-east-1"?void 0:{LocationConstraint:s}}}),n(t)}}$n.locationConstraintMiddleware=RL;$n.locationConstraintMiddlewareOptions={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0};var mpe=e=>({applyToStack:n=>{n.add(RL(e),$n.locationConstraintMiddlewareOptions)}});$n.getLocationConstraintPlugin=mpe});var vP=m(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.CreateBucketCommand=Oo.$Command=void 0;var ppe=IL(),fpe=I(),ype=N(),OL=v();Object.defineProperty(Oo,"$Command",{enumerable:!0,get:function(){return OL.Command}});var NL=M(),yl=class extends OL.Command{static getEndpointParameterInstructions(){return{DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ype.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,fpe.getEndpointPlugin)(t,yl.getEndpointParameterInstructions())),this.middlewareStack.use((0,ppe.getLocationConstraintPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"CreateBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,NL.se_CreateBucketCommand)(n,t)}deserialize(n,t){return(0,NL.de_CreateBucketCommand)(n,t)}};Oo.CreateBucketCommand=yl});var kP=m(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.CreateMultipartUploadCommand=To.$Command=void 0;var gpe=Mt(),hpe=I(),_pe=N(),BL=v();Object.defineProperty(To,"$Command",{enumerable:!0,get:function(){return BL.Command}});var TL=rt(),qL=M(),gl=class extends BL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_pe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hpe.getEndpointPlugin)(t,gl.getEndpointParameterInstructions())),this.middlewareStack.use((0,gpe.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:TL.CreateMultipartUploadRequestFilterSensitiveLog,outputFilterSensitiveLog:TL.CreateMultipartUploadOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qL.se_CreateMultipartUploadCommand)(n,t)}deserialize(n,t){return(0,qL.de_CreateMultipartUploadCommand)(n,t)}};To.CreateMultipartUploadCommand=gl});var AP=m(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.DeleteBucketAnalyticsConfigurationCommand=qo.$Command=void 0;var Cpe=I(),Spe=N(),ML=v();Object.defineProperty(qo,"$Command",{enumerable:!0,get:function(){return ML.Command}});var DL=M(),hl=class extends ML.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Spe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cpe.getEndpointPlugin)(t,hl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,DL.se_DeleteBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,DL.de_DeleteBucketAnalyticsConfigurationCommand)(n,t)}};qo.DeleteBucketAnalyticsConfigurationCommand=hl});var RP=m(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.DeleteBucketCommand=Bo.$Command=void 0;var bpe=I(),Ppe=N(),LL=v();Object.defineProperty(Bo,"$Command",{enumerable:!0,get:function(){return LL.Command}});var FL=M(),_l=class extends LL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ppe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,bpe.getEndpointPlugin)(t,_l.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,FL.se_DeleteBucketCommand)(n,t)}deserialize(n,t){return(0,FL.de_DeleteBucketCommand)(n,t)}};Bo.DeleteBucketCommand=_l});var IP=m(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.DeleteBucketCorsCommand=Do.$Command=void 0;var Epe=I(),xpe=N(),UL=v();Object.defineProperty(Do,"$Command",{enumerable:!0,get:function(){return UL.Command}});var jL=M(),Cl=class extends UL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,xpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Epe.getEndpointPlugin)(t,Cl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,jL.se_DeleteBucketCorsCommand)(n,t)}deserialize(n,t){return(0,jL.de_DeleteBucketCorsCommand)(n,t)}};Do.DeleteBucketCorsCommand=Cl});var NP=m(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DeleteBucketEncryptionCommand=Mo.$Command=void 0;var wpe=I(),vpe=N(),GL=v();Object.defineProperty(Mo,"$Command",{enumerable:!0,get:function(){return GL.Command}});var zL=M(),Sl=class extends GL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,wpe.getEndpointPlugin)(t,Sl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,zL.se_DeleteBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,zL.de_DeleteBucketEncryptionCommand)(n,t)}};Mo.DeleteBucketEncryptionCommand=Sl});var OP=m(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.DeleteBucketIntelligentTieringConfigurationCommand=Fo.$Command=void 0;var kpe=I(),Ape=N(),HL=v();Object.defineProperty(Fo,"$Command",{enumerable:!0,get:function(){return HL.Command}});var $L=M(),bl=class extends HL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ape.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,kpe.getEndpointPlugin)(t,bl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$L.se_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,$L.de_DeleteBucketIntelligentTieringConfigurationCommand)(n,t)}};Fo.DeleteBucketIntelligentTieringConfigurationCommand=bl});var TP=m(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DeleteBucketInventoryConfigurationCommand=Lo.$Command=void 0;var Rpe=I(),Ipe=N(),VL=v();Object.defineProperty(Lo,"$Command",{enumerable:!0,get:function(){return VL.Command}});var KL=M(),Pl=class extends VL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ipe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rpe.getEndpointPlugin)(t,Pl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,KL.se_DeleteBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,KL.de_DeleteBucketInventoryConfigurationCommand)(n,t)}};Lo.DeleteBucketInventoryConfigurationCommand=Pl});var qP=m(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.DeleteBucketLifecycleCommand=jo.$Command=void 0;var Npe=I(),Ope=N(),XL=v();Object.defineProperty(jo,"$Command",{enumerable:!0,get:function(){return XL.Command}});var WL=M(),El=class extends XL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ope.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Npe.getEndpointPlugin)(t,El.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketLifecycleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,WL.se_DeleteBucketLifecycleCommand)(n,t)}deserialize(n,t){return(0,WL.de_DeleteBucketLifecycleCommand)(n,t)}};jo.DeleteBucketLifecycleCommand=El});var BP=m(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.DeleteBucketMetricsConfigurationCommand=Uo.$Command=void 0;var Tpe=I(),qpe=N(),QL=v();Object.defineProperty(Uo,"$Command",{enumerable:!0,get:function(){return QL.Command}});var YL=M(),xl=class extends QL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,qpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tpe.getEndpointPlugin)(t,xl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,YL.se_DeleteBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,YL.de_DeleteBucketMetricsConfigurationCommand)(n,t)}};Uo.DeleteBucketMetricsConfigurationCommand=xl});var DP=m(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.DeleteBucketOwnershipControlsCommand=zo.$Command=void 0;var Bpe=I(),Dpe=N(),ZL=v();Object.defineProperty(zo,"$Command",{enumerable:!0,get:function(){return ZL.Command}});var JL=M(),wl=class extends ZL.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Bpe.getEndpointPlugin)(t,wl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,JL.se_DeleteBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,JL.de_DeleteBucketOwnershipControlsCommand)(n,t)}};zo.DeleteBucketOwnershipControlsCommand=wl});var MP=m(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.DeleteBucketPolicyCommand=Go.$Command=void 0;var Mpe=I(),Fpe=N(),tj=v();Object.defineProperty(Go,"$Command",{enumerable:!0,get:function(){return tj.Command}});var ej=M(),vl=class extends tj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mpe.getEndpointPlugin)(t,vl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ej.se_DeleteBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,ej.de_DeleteBucketPolicyCommand)(n,t)}};Go.DeleteBucketPolicyCommand=vl});var FP=m($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.DeleteBucketReplicationCommand=$o.$Command=void 0;var Lpe=I(),jpe=N(),rj=v();Object.defineProperty($o,"$Command",{enumerable:!0,get:function(){return rj.Command}});var nj=M(),kl=class extends rj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lpe.getEndpointPlugin)(t,kl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nj.se_DeleteBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,nj.de_DeleteBucketReplicationCommand)(n,t)}};$o.DeleteBucketReplicationCommand=kl});var LP=m(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DeleteBucketTaggingCommand=Ho.$Command=void 0;var Upe=I(),zpe=N(),oj=v();Object.defineProperty(Ho,"$Command",{enumerable:!0,get:function(){return oj.Command}});var sj=M(),Al=class extends oj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,zpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Upe.getEndpointPlugin)(t,Al.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,sj.se_DeleteBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,sj.de_DeleteBucketTaggingCommand)(n,t)}};Ho.DeleteBucketTaggingCommand=Al});var jP=m(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.DeleteBucketWebsiteCommand=Ko.$Command=void 0;var Gpe=I(),$pe=N(),aj=v();Object.defineProperty(Ko,"$Command",{enumerable:!0,get:function(){return aj.Command}});var ij=M(),Rl=class extends aj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$pe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gpe.getEndpointPlugin)(t,Rl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ij.se_DeleteBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,ij.de_DeleteBucketWebsiteCommand)(n,t)}};Ko.DeleteBucketWebsiteCommand=Rl});var UP=m(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.DeleteObjectCommand=Vo.$Command=void 0;var Hpe=I(),Kpe=N(),dj=v();Object.defineProperty(Vo,"$Command",{enumerable:!0,get:function(){return dj.Command}});var cj=M(),Il=class extends dj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Kpe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Hpe.getEndpointPlugin)(t,Il.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cj.se_DeleteObjectCommand)(n,t)}deserialize(n,t){return(0,cj.de_DeleteObjectCommand)(n,t)}};Vo.DeleteObjectCommand=Il});var Wo=m(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.ChecksumLocation=vr.ChecksumAlgorithm=void 0;var Vpe;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.SHA1="SHA1",e.SHA256="SHA256"})(Vpe=vr.ChecksumAlgorithm||(vr.ChecksumAlgorithm={}));var Wpe;(function(e){e.HEADER="header",e.TRAILER="trailer"})(Wpe=vr.ChecksumLocation||(vr.ChecksumLocation={}))});var zP=m(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.PRIORITY_ORDER_ALGORITHMS=Xo.CLIENT_SUPPORTED_ALGORITHMS=void 0;var kr=Wo();Xo.CLIENT_SUPPORTED_ALGORITHMS=[kr.ChecksumAlgorithm.CRC32,kr.ChecksumAlgorithm.CRC32C,kr.ChecksumAlgorithm.SHA1,kr.ChecksumAlgorithm.SHA256];Xo.PRIORITY_ORDER_ALGORITHMS=[kr.ChecksumAlgorithm.CRC32,kr.ChecksumAlgorithm.CRC32C,kr.ChecksumAlgorithm.SHA1,kr.ChecksumAlgorithm.SHA256]});var uj=m(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.getChecksumAlgorithmForRequest=void 0;var Xpe=Wo(),lj=zP(),Ype=(e,{requestChecksumRequired:n,requestAlgorithmMember:t})=>{if(!t||!e[t])return n?Xpe.ChecksumAlgorithm.MD5:void 0;let r=e[t];if(!lj.CLIENT_SUPPORTED_ALGORITHMS.includes(r))throw new Error(`The checksum algorithm "${r}" is not supported by the client. Select one of ${lj.CLIENT_SUPPORTED_ALGORITHMS}.`);return r};e_.getChecksumAlgorithmForRequest=Ype});var GP=m(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.getChecksumLocationName=void 0;var Qpe=Wo(),Jpe=e=>e===Qpe.ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`;t_.getChecksumLocationName=Jpe});var mj=m(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.hasHeader=void 0;var Zpe=(e,n)=>{let t=e.toLowerCase();for(let r of Object.keys(n))if(t===r.toLowerCase())return!0;return!1};n_.hasHeader=Zpe});var $P=m(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.isStreaming=void 0;var efe=Lm(),tfe=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!(0,efe.isArrayBuffer)(e);r_.isStreaming=tfe});var WP={};wa(WP,{__assign:()=>KP,__asyncDelegator:()=>ffe,__asyncGenerator:()=>pfe,__asyncValues:()=>yfe,__await:()=>Nl,__awaiter:()=>afe,__classPrivateFieldGet:()=>Cfe,__classPrivateFieldSet:()=>Sfe,__createBinding:()=>dfe,__decorate:()=>sfe,__exportStar:()=>lfe,__extends:()=>nfe,__generator:()=>cfe,__importDefault:()=>_fe,__importStar:()=>hfe,__makeTemplateObject:()=>gfe,__metadata:()=>ife,__param:()=>ofe,__read:()=>pj,__rest:()=>rfe,__spread:()=>ufe,__spreadArrays:()=>mfe,__values:()=>VP});function nfe(e,n){HP(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function rfe(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s=0;i--)(c=e[i])&&(o=(s<3?c(o):s>3?c(n,t,o):c(n,t))||o);return s>3&&o&&Object.defineProperty(n,t,o),o}function ofe(e,n){return function(t,r){n(t,r,e)}}function ife(e,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,n)}function afe(e,n,t,r){function s(o){return o instanceof t?o:new t(function(c){c(o)})}return new(t||(t=Promise))(function(o,c){function i(a){try{l(r.next(a))}catch(g){c(g)}}function u(a){try{l(r.throw(a))}catch(g){c(g)}}function l(a){a.done?o(a.value):s(a.value).then(i,u)}l((r=r.apply(e,n||[])).next())})}function cfe(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,c;return c={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function i(l){return function(a){return u([l,a])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,s&&(o=l[0]&2?s.return:l[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,l[1])).done)return o;switch(s=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,s=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function pj(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(i){c={error:i}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(c)throw c.error}}return o}function ufe(){for(var e=[],n=0;n1||i(C,w)})})}function i(C,w){try{u(r[C](w))}catch(R){g(o[0][3],R)}}function u(C){C.value instanceof Nl?Promise.resolve(C.value.v).then(l,a):g(o[0][2],C)}function l(C){i("next",C)}function a(C){i("throw",C)}function g(C,w){C(w),o.shift(),o.length&&i(o[0][0],o[0][1])}}function ffe(e){var n,t;return n={},r("next"),r("throw",function(s){throw s}),r("return"),n[Symbol.iterator]=function(){return this},n;function r(s,o){n[s]=e[s]?function(c){return(t=!t)?{value:Nl(e[s](c)),done:s==="return"}:o?o(c):c}:o}}function yfe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof VP=="function"?VP(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(c){return new Promise(function(i,u){c=e[o](c),s(i,u,c.done,c.value)})}}function s(o,c,i,u){Promise.resolve(u).then(function(l){o({value:l,done:i})},c)}}function gfe(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}function hfe(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function _fe(e){return e&&e.__esModule?e:{default:e}}function Cfe(e,n){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return n.get(e)}function Sfe(e,n,t){if(!n.has(e))throw new TypeError("attempted to set private field on non-instance");return n.set(e,t),t}var HP,KP,XP=Xe(()=>{HP=function(e,n){return HP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])},HP(e,n)};KP=function(){return KP=Object.assign||function(n){for(var t,r=1,s=arguments.length;r{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.AwsCrc32c=void 0;var fj=(XP(),z(WP)),YP=Ua(),yj=QP(),bfe=function(){function e(){this.crc32c=new yj.Crc32c}return e.prototype.update=function(n){(0,YP.isEmptyData)(n)||this.crc32c.update((0,YP.convertToBuffer)(n))},e.prototype.digest=function(){return fj.__awaiter(this,void 0,void 0,function(){return fj.__generator(this,function(n){return[2,(0,YP.numToUint8)(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new yj.Crc32c},e}();s_.AwsCrc32c=bfe});var QP=m(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.AwsCrc32c=Ar.Crc32c=Ar.crc32c=void 0;var Pfe=(XP(),z(WP)),Efe=Ua();function xfe(e){return new hj().update(e).digest()}Ar.crc32c=xfe;var hj=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(n){var t,r;try{for(var s=Pfe.__values(n),o=s.next();!o.done;o=s.next()){var c=o.value;this.checksum=this.checksum>>>8^vfe[(this.checksum^c)&255]}}catch(i){t={error:i}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}();Ar.Crc32c=hj;var wfe=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],vfe=(0,Efe.uint32ArrayFrom)(wfe),kfe=gj();Object.defineProperty(Ar,"AwsCrc32c",{enumerable:!0,get:function(){return kfe.AwsCrc32c}})});var JP=m(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.selectChecksumAlgorithmFunction=void 0;var Afe=za(),Rfe=QP(),Ol=Wo(),Ife=(e,n)=>({[Ol.ChecksumAlgorithm.MD5]:n.md5,[Ol.ChecksumAlgorithm.CRC32]:Afe.AwsCrc32,[Ol.ChecksumAlgorithm.CRC32C]:Rfe.AwsCrc32c,[Ol.ChecksumAlgorithm.SHA1]:n.sha1,[Ol.ChecksumAlgorithm.SHA256]:n.sha256})[e];o_.selectChecksumAlgorithmFunction=Ife});var ZP=m(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.stringHasher=void 0;var Nfe=jt(),Ofe=(e,n)=>{let t=new e;return t.update((0,Nfe.toUint8Array)(n||"")),t.digest()};i_.stringHasher=Ofe});var _j=m(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.getChecksum=void 0;var Tfe=$P(),qfe=ZP(),Bfe=async(e,{streamHasher:n,checksumAlgorithmFn:t,base64Encoder:r})=>{let s=(0,Tfe.isStreaming)(e)?n(t,e):(0,qfe.stringHasher)(t,e);return r(await s)};a_.getChecksum=Bfe});var Sj=m(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.getChecksumAlgorithmListForResponse=void 0;var Cj=zP(),Dfe=(e=[])=>{let n=[];for(let t of Cj.PRIORITY_ORDER_ALGORITHMS)!e.includes(t)||!Cj.CLIENT_SUPPORTED_ALGORITHMS.includes(t)||n.push(t);return n};c_.getChecksumAlgorithmListForResponse=Dfe});var bj=m(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.validateChecksumFromResponse=void 0;var Mfe=_j(),Ffe=Sj(),Lfe=GP(),jfe=JP(),Ufe=async(e,{config:n,responseAlgorithms:t})=>{let r=(0,Ffe.getChecksumAlgorithmListForResponse)(t),{body:s,headers:o}=e;for(let c of r){let i=(0,Lfe.getChecksumLocationName)(c),u=o[i];if(u){let l=(0,jfe.selectChecksumAlgorithmFunction)(c,n),{streamHasher:a,base64Encoder:g}=n,C=await(0,Mfe.getChecksum)(s,{streamHasher:a,checksumAlgorithmFn:l,base64Encoder:g});if(C===u)break;throw new Error(`Checksum mismatch: expected "${C}" but received "${u}" in response header "${i}".`)}}};d_.validateChecksumFromResponse=Ufe});var eE=m(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.flexibleChecksumsMiddleware=void 0;var zfe=$e(),Gfe=uj(),$fe=GP(),Hfe=mj(),Kfe=$P(),Vfe=JP(),Wfe=ZP(),Xfe=bj(),Yfe=(e,n)=>t=>async r=>{if(!zfe.HttpRequest.isInstance(r.request))return t(r);let{request:s}=r,{body:o,headers:c}=s,{base64Encoder:i,streamHasher:u}=e,{input:l,requestChecksumRequired:a,requestAlgorithmMember:g}=n,C=(0,Gfe.getChecksumAlgorithmForRequest)(l,{requestChecksumRequired:a,requestAlgorithmMember:g}),w=o,R=c;if(C){let Ce=(0,$fe.getChecksumLocationName)(C),Ft=(0,Vfe.selectChecksumAlgorithmFunction)(C,e);if((0,Kfe.isStreaming)(o)){let{getAwsChunkedEncodingStream:ds,bodyLengthChecker:A_}=e;w=ds(o,{base64Encoder:i,bodyLengthChecker:A_,checksumLocationName:Ce,checksumAlgorithmFn:Ft,streamHasher:u}),R={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":Ce},delete R["content-length"]}else if(!(0,Hfe.hasHeader)(Ce,c)){let ds=await(0,Wfe.stringHasher)(Ft,o);R={...c,[Ce]:i(ds)}}}let O=await t({...r,request:{...s,headers:R,body:w}}),{requestValidationModeMember:G,responseAlgorithms:fe}=n;return G&&l[G]==="ENABLED"&&(0,Xfe.validateChecksumFromResponse)(O.response,{config:e,responseAlgorithms:fe}),O};l_.flexibleChecksumsMiddleware=Yfe});var Pj=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.getFlexibleChecksumsPlugin=as.flexibleChecksumsMiddlewareOptions=void 0;var Qfe=eE();as.flexibleChecksumsMiddlewareOptions={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0};var Jfe=(e,n)=>({applyToStack:t=>{t.add((0,Qfe.flexibleChecksumsMiddleware)(e,n),as.flexibleChecksumsMiddlewareOptions)}});as.getFlexibleChecksumsPlugin=Jfe});var Be=m(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var tE=(H(),z($));tE.__exportStar(Wo(),Tl);tE.__exportStar(eE(),Tl);tE.__exportStar(Pj(),Tl)});var nE=m(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.DeleteObjectsCommand=Yo.$Command=void 0;var Zfe=Be(),eye=I(),tye=N(),xj=v();Object.defineProperty(Yo,"$Command",{enumerable:!0,get:function(){return xj.Command}});var Ej=M(),ql=class extends xj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,tye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,eye.getEndpointPlugin)(t,ql.getEndpointParameterInstructions())),this.middlewareStack.use((0,Zfe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Ej.se_DeleteObjectsCommand)(n,t)}deserialize(n,t){return(0,Ej.de_DeleteObjectsCommand)(n,t)}};Yo.DeleteObjectsCommand=ql});var rE=m(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.DeleteObjectTaggingCommand=Qo.$Command=void 0;var nye=I(),rye=N(),vj=v();Object.defineProperty(Qo,"$Command",{enumerable:!0,get:function(){return vj.Command}});var wj=M(),Bl=class extends vj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nye.getEndpointPlugin)(t,Bl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeleteObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,wj.se_DeleteObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,wj.de_DeleteObjectTaggingCommand)(n,t)}};Qo.DeleteObjectTaggingCommand=Bl});var sE=m(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DeletePublicAccessBlockCommand=Jo.$Command=void 0;var sye=I(),oye=N(),Aj=v();Object.defineProperty(Jo,"$Command",{enumerable:!0,get:function(){return Aj.Command}});var kj=M(),Dl=class extends Aj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,oye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sye.getEndpointPlugin)(t,Dl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"DeletePublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,kj.se_DeletePublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,kj.de_DeletePublicAccessBlockCommand)(n,t)}};Jo.DeletePublicAccessBlockCommand=Dl});var oE=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.GetBucketAccelerateConfigurationCommand=Zo.$Command=void 0;var iye=I(),aye=N(),Ij=v();Object.defineProperty(Zo,"$Command",{enumerable:!0,get:function(){return Ij.Command}});var Rj=M(),Ml=class extends Ij.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,aye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,iye.getEndpointPlugin)(t,Ml.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Rj.se_GetBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,Rj.de_GetBucketAccelerateConfigurationCommand)(n,t)}};Zo.GetBucketAccelerateConfigurationCommand=Ml});var iE=m(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.GetBucketAclCommand=ei.$Command=void 0;var cye=I(),dye=N(),Oj=v();Object.defineProperty(ei,"$Command",{enumerable:!0,get:function(){return Oj.Command}});var Nj=M(),Fl=class extends Oj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cye.getEndpointPlugin)(t,Fl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Nj.se_GetBucketAclCommand)(n,t)}deserialize(n,t){return(0,Nj.de_GetBucketAclCommand)(n,t)}};ei.GetBucketAclCommand=Fl});var aE=m(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.GetBucketAnalyticsConfigurationCommand=ti.$Command=void 0;var lye=I(),uye=N(),qj=v();Object.defineProperty(ti,"$Command",{enumerable:!0,get:function(){return qj.Command}});var Tj=M(),Ll=class extends qj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,uye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lye.getEndpointPlugin)(t,Ll.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Tj.se_GetBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,Tj.de_GetBucketAnalyticsConfigurationCommand)(n,t)}};ti.GetBucketAnalyticsConfigurationCommand=Ll});var cE=m(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.GetBucketCorsCommand=ni.$Command=void 0;var mye=I(),pye=N(),Dj=v();Object.defineProperty(ni,"$Command",{enumerable:!0,get:function(){return Dj.Command}});var Bj=M(),jl=class extends Dj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,pye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mye.getEndpointPlugin)(t,jl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Bj.se_GetBucketCorsCommand)(n,t)}deserialize(n,t){return(0,Bj.de_GetBucketCorsCommand)(n,t)}};ni.GetBucketCorsCommand=jl});var dE=m(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.GetBucketEncryptionCommand=ri.$Command=void 0;var fye=I(),yye=N(),Fj=v();Object.defineProperty(ri,"$Command",{enumerable:!0,get:function(){return Fj.Command}});var gye=rt(),Mj=M(),Ul=class extends Fj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,yye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,fye.getEndpointPlugin)(t,Ul.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketEncryptionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:gye.GetBucketEncryptionOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Mj.se_GetBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,Mj.de_GetBucketEncryptionCommand)(n,t)}};ri.GetBucketEncryptionCommand=Ul});var lE=m(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.GetBucketIntelligentTieringConfigurationCommand=si.$Command=void 0;var hye=I(),_ye=N(),jj=v();Object.defineProperty(si,"$Command",{enumerable:!0,get:function(){return jj.Command}});var Lj=M(),zl=class extends jj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hye.getEndpointPlugin)(t,zl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Lj.se_GetBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,Lj.de_GetBucketIntelligentTieringConfigurationCommand)(n,t)}};si.GetBucketIntelligentTieringConfigurationCommand=zl});var uE=m(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.GetBucketInventoryConfigurationCommand=oi.$Command=void 0;var Cye=I(),Sye=N(),zj=v();Object.defineProperty(oi,"$Command",{enumerable:!0,get:function(){return zj.Command}});var bye=rt(),Uj=M(),Gl=class extends zj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Sye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Cye.getEndpointPlugin)(t,Gl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketInventoryConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:bye.GetBucketInventoryConfigurationOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Uj.se_GetBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,Uj.de_GetBucketInventoryConfigurationCommand)(n,t)}};oi.GetBucketInventoryConfigurationCommand=Gl});var mE=m(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.GetBucketLifecycleConfigurationCommand=ii.$Command=void 0;var Pye=I(),Eye=N(),$j=v();Object.defineProperty(ii,"$Command",{enumerable:!0,get:function(){return $j.Command}});var Gj=M(),$l=class extends $j.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Eye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pye.getEndpointPlugin)(t,$l.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Gj.se_GetBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,Gj.de_GetBucketLifecycleConfigurationCommand)(n,t)}};ii.GetBucketLifecycleConfigurationCommand=$l});var pE=m(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.GetBucketLocationCommand=ai.$Command=void 0;var xye=I(),wye=N(),Kj=v();Object.defineProperty(ai,"$Command",{enumerable:!0,get:function(){return Kj.Command}});var Hj=M(),Hl=class extends Kj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,wye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xye.getEndpointPlugin)(t,Hl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketLocationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Hj.se_GetBucketLocationCommand)(n,t)}deserialize(n,t){return(0,Hj.de_GetBucketLocationCommand)(n,t)}};ai.GetBucketLocationCommand=Hl});var fE=m(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.GetBucketLoggingCommand=ci.$Command=void 0;var vye=I(),kye=N(),Wj=v();Object.defineProperty(ci,"$Command",{enumerable:!0,get:function(){return Wj.Command}});var Vj=M(),Kl=class extends Wj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vye.getEndpointPlugin)(t,Kl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Vj.se_GetBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,Vj.de_GetBucketLoggingCommand)(n,t)}};ci.GetBucketLoggingCommand=Kl});var yE=m(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.GetBucketMetricsConfigurationCommand=di.$Command=void 0;var Aye=I(),Rye=N(),Yj=v();Object.defineProperty(di,"$Command",{enumerable:!0,get:function(){return Yj.Command}});var Xj=M(),Vl=class extends Yj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Aye.getEndpointPlugin)(t,Vl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Xj.se_GetBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,Xj.de_GetBucketMetricsConfigurationCommand)(n,t)}};di.GetBucketMetricsConfigurationCommand=Vl});var gE=m(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.GetBucketNotificationConfigurationCommand=li.$Command=void 0;var Iye=I(),Nye=N(),Jj=v();Object.defineProperty(li,"$Command",{enumerable:!0,get:function(){return Jj.Command}});var Qj=M(),Wl=class extends Jj.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Nye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Iye.getEndpointPlugin)(t,Wl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Qj.se_GetBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,Qj.de_GetBucketNotificationConfigurationCommand)(n,t)}};li.GetBucketNotificationConfigurationCommand=Wl});var hE=m(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.GetBucketOwnershipControlsCommand=ui.$Command=void 0;var Oye=I(),Tye=N(),eU=v();Object.defineProperty(ui,"$Command",{enumerable:!0,get:function(){return eU.Command}});var Zj=M(),Xl=class extends eU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Tye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Oye.getEndpointPlugin)(t,Xl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Zj.se_GetBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,Zj.de_GetBucketOwnershipControlsCommand)(n,t)}};ui.GetBucketOwnershipControlsCommand=Xl});var _E=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.GetBucketPolicyCommand=mi.$Command=void 0;var qye=I(),Bye=N(),nU=v();Object.defineProperty(mi,"$Command",{enumerable:!0,get:function(){return nU.Command}});var tU=M(),Yl=class extends nU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qye.getEndpointPlugin)(t,Yl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,tU.se_GetBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,tU.de_GetBucketPolicyCommand)(n,t)}};mi.GetBucketPolicyCommand=Yl});var CE=m(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.GetBucketPolicyStatusCommand=pi.$Command=void 0;var Dye=I(),Mye=N(),sU=v();Object.defineProperty(pi,"$Command",{enumerable:!0,get:function(){return sU.Command}});var rU=M(),Ql=class extends sU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Mye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Dye.getEndpointPlugin)(t,Ql.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketPolicyStatusCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,rU.se_GetBucketPolicyStatusCommand)(n,t)}deserialize(n,t){return(0,rU.de_GetBucketPolicyStatusCommand)(n,t)}};pi.GetBucketPolicyStatusCommand=Ql});var SE=m(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.GetBucketReplicationCommand=fi.$Command=void 0;var Fye=I(),Lye=N(),iU=v();Object.defineProperty(fi,"$Command",{enumerable:!0,get:function(){return iU.Command}});var oU=M(),Jl=class extends iU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Lye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Fye.getEndpointPlugin)(t,Jl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oU.se_GetBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,oU.de_GetBucketReplicationCommand)(n,t)}};fi.GetBucketReplicationCommand=Jl});var bE=m(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.GetBucketRequestPaymentCommand=yi.$Command=void 0;var jye=I(),Uye=N(),cU=v();Object.defineProperty(yi,"$Command",{enumerable:!0,get:function(){return cU.Command}});var aU=M(),Zl=class extends cU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jye.getEndpointPlugin)(t,Zl.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,aU.se_GetBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,aU.de_GetBucketRequestPaymentCommand)(n,t)}};yi.GetBucketRequestPaymentCommand=Zl});var PE=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.GetBucketTaggingCommand=gi.$Command=void 0;var zye=I(),Gye=N(),lU=v();Object.defineProperty(gi,"$Command",{enumerable:!0,get:function(){return lU.Command}});var dU=M(),eu=class extends lU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zye.getEndpointPlugin)(t,eu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,dU.se_GetBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,dU.de_GetBucketTaggingCommand)(n,t)}};gi.GetBucketTaggingCommand=eu});var EE=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.GetBucketVersioningCommand=hi.$Command=void 0;var $ye=I(),Hye=N(),mU=v();Object.defineProperty(hi,"$Command",{enumerable:!0,get:function(){return mU.Command}});var uU=M(),tu=class extends mU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Hye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$ye.getEndpointPlugin)(t,tu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uU.se_GetBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,uU.de_GetBucketVersioningCommand)(n,t)}};hi.GetBucketVersioningCommand=tu});var xE=m(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.GetBucketWebsiteCommand=_i.$Command=void 0;var Kye=I(),Vye=N(),fU=v();Object.defineProperty(_i,"$Command",{enumerable:!0,get:function(){return fU.Command}});var pU=M(),nu=class extends fU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kye.getEndpointPlugin)(t,nu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,pU.se_GetBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,pU.de_GetBucketWebsiteCommand)(n,t)}};_i.GetBucketWebsiteCommand=nu});var wE=m(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.GetObjectAclCommand=Ci.$Command=void 0;var Wye=I(),Xye=N(),gU=v();Object.defineProperty(Ci,"$Command",{enumerable:!0,get:function(){return gU.Command}});var yU=M(),ru=class extends gU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Wye.getEndpointPlugin)(t,ru.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yU.se_GetObjectAclCommand)(n,t)}deserialize(n,t){return(0,yU.de_GetObjectAclCommand)(n,t)}};Ci.GetObjectAclCommand=ru});var vE=m(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.GetObjectAttributesCommand=Si.$Command=void 0;var Yye=Mt(),Qye=I(),Jye=N(),_U=v();Object.defineProperty(Si,"$Command",{enumerable:!0,get:function(){return _U.Command}});var Zye=rt(),hU=M(),su=class extends _U.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jye.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qye.getEndpointPlugin)(t,su.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yye.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectAttributesCommand",inputFilterSensitiveLog:Zye.GetObjectAttributesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hU.se_GetObjectAttributesCommand)(n,t)}deserialize(n,t){return(0,hU.de_GetObjectAttributesCommand)(n,t)}};Si.GetObjectAttributesCommand=su});var kE=m(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.GetObjectCommand=bi.$Command=void 0;var ege=Be(),tge=Mt(),nge=I(),rge=N(),bU=v();Object.defineProperty(bi,"$Command",{enumerable:!0,get:function(){return bU.Command}});var CU=rt(),SU=M(),ou=class extends bU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,rge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,nge.getEndpointPlugin)(t,ou.getEndpointParameterInstructions())),this.middlewareStack.use((0,tge.getSsecPlugin)(t)),this.middlewareStack.use((0,ege.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC32","CRC32C","SHA256","SHA1"]}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:CU.GetObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:CU.GetObjectOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SU.se_GetObjectCommand)(n,t)}deserialize(n,t){return(0,SU.de_GetObjectCommand)(n,t)}};bi.GetObjectCommand=ou});var AE=m(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.GetObjectLegalHoldCommand=Pi.$Command=void 0;var sge=I(),oge=N(),EU=v();Object.defineProperty(Pi,"$Command",{enumerable:!0,get:function(){return EU.Command}});var PU=M(),iu=class extends EU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,oge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,sge.getEndpointPlugin)(t,iu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,PU.se_GetObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,PU.de_GetObjectLegalHoldCommand)(n,t)}};Pi.GetObjectLegalHoldCommand=iu});var RE=m(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.GetObjectLockConfigurationCommand=Ei.$Command=void 0;var ige=I(),age=N(),wU=v();Object.defineProperty(Ei,"$Command",{enumerable:!0,get:function(){return wU.Command}});var xU=M(),au=class extends wU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,age.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ige.getEndpointPlugin)(t,au.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,xU.se_GetObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,xU.de_GetObjectLockConfigurationCommand)(n,t)}};Ei.GetObjectLockConfigurationCommand=au});var IE=m(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.GetObjectRetentionCommand=xi.$Command=void 0;var cge=I(),dge=N(),kU=v();Object.defineProperty(xi,"$Command",{enumerable:!0,get:function(){return kU.Command}});var vU=M(),cu=class extends kU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cge.getEndpointPlugin)(t,cu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vU.se_GetObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,vU.de_GetObjectRetentionCommand)(n,t)}};xi.GetObjectRetentionCommand=cu});var NE=m(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.GetObjectTaggingCommand=wi.$Command=void 0;var lge=I(),uge=N(),RU=v();Object.defineProperty(wi,"$Command",{enumerable:!0,get:function(){return RU.Command}});var AU=M(),du=class extends RU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,uge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,lge.getEndpointPlugin)(t,du.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,AU.se_GetObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,AU.de_GetObjectTaggingCommand)(n,t)}};wi.GetObjectTaggingCommand=du});var OE=m(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.GetObjectTorrentCommand=vi.$Command=void 0;var mge=I(),pge=N(),NU=v();Object.defineProperty(vi,"$Command",{enumerable:!0,get:function(){return NU.Command}});var fge=rt(),IU=M(),lu=class extends NU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,pge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mge.getEndpointPlugin)(t,lu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetObjectTorrentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:fge.GetObjectTorrentOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,IU.se_GetObjectTorrentCommand)(n,t)}deserialize(n,t){return(0,IU.de_GetObjectTorrentCommand)(n,t)}};vi.GetObjectTorrentCommand=lu});var TE=m(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.GetPublicAccessBlockCommand=ki.$Command=void 0;var yge=I(),gge=N(),TU=v();Object.defineProperty(ki,"$Command",{enumerable:!0,get:function(){return TU.Command}});var OU=M(),uu=class extends TU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yge.getEndpointPlugin)(t,uu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"GetPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,OU.se_GetPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,OU.de_GetPublicAccessBlockCommand)(n,t)}};ki.GetPublicAccessBlockCommand=uu});var pu=m(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.HeadBucketCommand=Ai.$Command=void 0;var hge=I(),_ge=N(),BU=v();Object.defineProperty(Ai,"$Command",{enumerable:!0,get:function(){return BU.Command}});var qU=M(),mu=class extends BU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_ge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hge.getEndpointPlugin)(t,mu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"HeadBucketCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,qU.se_HeadBucketCommand)(n,t)}deserialize(n,t){return(0,qU.de_HeadBucketCommand)(n,t)}};Ai.HeadBucketCommand=mu});var yu=m(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.HeadObjectCommand=Ri.$Command=void 0;var Cge=Mt(),Sge=I(),bge=N(),FU=v();Object.defineProperty(Ri,"$Command",{enumerable:!0,get:function(){return FU.Command}});var DU=rt(),MU=M(),fu=class extends FU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,bge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sge.getEndpointPlugin)(t,fu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cge.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"HeadObjectCommand",inputFilterSensitiveLog:DU.HeadObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:DU.HeadObjectOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,MU.se_HeadObjectCommand)(n,t)}deserialize(n,t){return(0,MU.de_HeadObjectCommand)(n,t)}};Ri.HeadObjectCommand=fu});var qE=m(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.ListBucketAnalyticsConfigurationsCommand=Ii.$Command=void 0;var Pge=I(),Ege=N(),jU=v();Object.defineProperty(Ii,"$Command",{enumerable:!0,get:function(){return jU.Command}});var LU=M(),gu=class extends jU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ege.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Pge.getEndpointPlugin)(t,gu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListBucketAnalyticsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,LU.se_ListBucketAnalyticsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,LU.de_ListBucketAnalyticsConfigurationsCommand)(n,t)}};Ii.ListBucketAnalyticsConfigurationsCommand=gu});var BE=m(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ListBucketIntelligentTieringConfigurationsCommand=Ni.$Command=void 0;var xge=I(),wge=N(),zU=v();Object.defineProperty(Ni,"$Command",{enumerable:!0,get:function(){return zU.Command}});var UU=M(),hu=class extends zU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,wge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,xge.getEndpointPlugin)(t,hu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListBucketIntelligentTieringConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,UU.se_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}deserialize(n,t){return(0,UU.de_ListBucketIntelligentTieringConfigurationsCommand)(n,t)}};Ni.ListBucketIntelligentTieringConfigurationsCommand=hu});var DE=m(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.ListBucketInventoryConfigurationsCommand=Oi.$Command=void 0;var vge=I(),kge=N(),$U=v();Object.defineProperty(Oi,"$Command",{enumerable:!0,get:function(){return $U.Command}});var Age=rt(),GU=M(),_u=class extends $U.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,kge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vge.getEndpointPlugin)(t,_u.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListBucketInventoryConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Age.ListBucketInventoryConfigurationsOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,GU.se_ListBucketInventoryConfigurationsCommand)(n,t)}deserialize(n,t){return(0,GU.de_ListBucketInventoryConfigurationsCommand)(n,t)}};Oi.ListBucketInventoryConfigurationsCommand=_u});var ME=m(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.ListBucketMetricsConfigurationsCommand=Ti.$Command=void 0;var Rge=I(),Ige=N(),KU=v();Object.defineProperty(Ti,"$Command",{enumerable:!0,get:function(){return KU.Command}});var HU=M(),Cu=class extends KU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ige.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Rge.getEndpointPlugin)(t,Cu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListBucketMetricsConfigurationsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,HU.se_ListBucketMetricsConfigurationsCommand)(n,t)}deserialize(n,t){return(0,HU.de_ListBucketMetricsConfigurationsCommand)(n,t)}};Ti.ListBucketMetricsConfigurationsCommand=Cu});var FE=m(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.ListBucketsCommand=qi.$Command=void 0;var Nge=I(),Oge=N(),WU=v();Object.defineProperty(qi,"$Command",{enumerable:!0,get:function(){return WU.Command}});var VU=M(),Su=class extends WU.Command{static getEndpointParameterInstructions(){return{ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Oge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nge.getEndpointPlugin)(t,Su.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListBucketsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,VU.se_ListBucketsCommand)(n,t)}deserialize(n,t){return(0,VU.de_ListBucketsCommand)(n,t)}};qi.ListBucketsCommand=Su});var LE=m(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.ListMultipartUploadsCommand=Bi.$Command=void 0;var Tge=I(),qge=N(),YU=v();Object.defineProperty(Bi,"$Command",{enumerable:!0,get:function(){return YU.Command}});var XU=M(),bu=class extends YU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,qge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Tge.getEndpointPlugin)(t,bu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListMultipartUploadsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,XU.se_ListMultipartUploadsCommand)(n,t)}deserialize(n,t){return(0,XU.de_ListMultipartUploadsCommand)(n,t)}};Bi.ListMultipartUploadsCommand=bu});var jE=m(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ListObjectsCommand=Di.$Command=void 0;var Bge=I(),Dge=N(),JU=v();Object.defineProperty(Di,"$Command",{enumerable:!0,get:function(){return JU.Command}});var QU=M(),Pu=class extends JU.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Dge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Bge.getEndpointPlugin)(t,Pu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,QU.se_ListObjectsCommand)(n,t)}deserialize(n,t){return(0,QU.de_ListObjectsCommand)(n,t)}};Di.ListObjectsCommand=Pu});var u_=m(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.ListObjectsV2Command=Mi.$Command=void 0;var Mge=I(),Fge=N(),e3=v();Object.defineProperty(Mi,"$Command",{enumerable:!0,get:function(){return e3.Command}});var ZU=M(),Eu=class extends e3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mge.getEndpointPlugin)(t,Eu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListObjectsV2Command",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ZU.se_ListObjectsV2Command)(n,t)}deserialize(n,t){return(0,ZU.de_ListObjectsV2Command)(n,t)}};Mi.ListObjectsV2Command=Eu});var UE=m(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.ListObjectVersionsCommand=Fi.$Command=void 0;var Lge=I(),jge=N(),n3=v();Object.defineProperty(Fi,"$Command",{enumerable:!0,get:function(){return n3.Command}});var t3=M(),xu=class extends n3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,jge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Lge.getEndpointPlugin)(t,xu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListObjectVersionsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,t3.se_ListObjectVersionsCommand)(n,t)}deserialize(n,t){return(0,t3.de_ListObjectVersionsCommand)(n,t)}};Fi.ListObjectVersionsCommand=xu});var m_=m(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.ListPartsCommand=Li.$Command=void 0;var Uge=Mt(),zge=I(),Gge=N(),s3=v();Object.defineProperty(Li,"$Command",{enumerable:!0,get:function(){return s3.Command}});var $ge=rt(),r3=M(),wu=class extends s3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Gge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zge.getEndpointPlugin)(t,wu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Uge.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:$ge.ListPartsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,r3.se_ListPartsCommand)(n,t)}deserialize(n,t){return(0,r3.de_ListPartsCommand)(n,t)}};Li.ListPartsCommand=wu});var zE=m(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.PutBucketAccelerateConfigurationCommand=ji.$Command=void 0;var Hge=Be(),Kge=I(),Vge=N(),i3=v();Object.defineProperty(ji,"$Command",{enumerable:!0,get:function(){return i3.Command}});var o3=M(),vu=class extends i3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Vge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kge.getEndpointPlugin)(t,vu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Hge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketAccelerateConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,o3.se_PutBucketAccelerateConfigurationCommand)(n,t)}deserialize(n,t){return(0,o3.de_PutBucketAccelerateConfigurationCommand)(n,t)}};ji.PutBucketAccelerateConfigurationCommand=vu});var GE=m(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.PutBucketAclCommand=Ui.$Command=void 0;var Wge=Be(),Xge=I(),Yge=N(),c3=v();Object.defineProperty(Ui,"$Command",{enumerable:!0,get:function(){return c3.Command}});var a3=M(),ku=class extends c3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Yge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xge.getEndpointPlugin)(t,ku.getEndpointParameterInstructions())),this.middlewareStack.use((0,Wge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,a3.se_PutBucketAclCommand)(n,t)}deserialize(n,t){return(0,a3.de_PutBucketAclCommand)(n,t)}};Ui.PutBucketAclCommand=ku});var $E=m(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.PutBucketAnalyticsConfigurationCommand=zi.$Command=void 0;var Qge=I(),Jge=N(),l3=v();Object.defineProperty(zi,"$Command",{enumerable:!0,get:function(){return l3.Command}});var d3=M(),Au=class extends l3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jge.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qge.getEndpointPlugin)(t,Au.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketAnalyticsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,d3.se_PutBucketAnalyticsConfigurationCommand)(n,t)}deserialize(n,t){return(0,d3.de_PutBucketAnalyticsConfigurationCommand)(n,t)}};zi.PutBucketAnalyticsConfigurationCommand=Au});var HE=m(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.PutBucketCorsCommand=Gi.$Command=void 0;var Zge=Be(),ehe=I(),the=N(),m3=v();Object.defineProperty(Gi,"$Command",{enumerable:!0,get:function(){return m3.Command}});var u3=M(),Ru=class extends m3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,the.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ehe.getEndpointPlugin)(t,Ru.getEndpointParameterInstructions())),this.middlewareStack.use((0,Zge.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketCorsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,u3.se_PutBucketCorsCommand)(n,t)}deserialize(n,t){return(0,u3.de_PutBucketCorsCommand)(n,t)}};Gi.PutBucketCorsCommand=Ru});var KE=m($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.PutBucketEncryptionCommand=$i.$Command=void 0;var nhe=Be(),rhe=I(),she=N(),f3=v();Object.defineProperty($i,"$Command",{enumerable:!0,get:function(){return f3.Command}});var ohe=rt(),p3=M(),Iu=class extends f3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,she.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,rhe.getEndpointPlugin)(t,Iu.getEndpointParameterInstructions())),this.middlewareStack.use((0,nhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketEncryptionCommand",inputFilterSensitiveLog:ohe.PutBucketEncryptionRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,p3.se_PutBucketEncryptionCommand)(n,t)}deserialize(n,t){return(0,p3.de_PutBucketEncryptionCommand)(n,t)}};$i.PutBucketEncryptionCommand=Iu});var VE=m(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.PutBucketIntelligentTieringConfigurationCommand=Hi.$Command=void 0;var ihe=I(),ahe=N(),g3=v();Object.defineProperty(Hi,"$Command",{enumerable:!0,get:function(){return g3.Command}});var y3=M(),Nu=class extends g3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ahe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ihe.getEndpointPlugin)(t,Nu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketIntelligentTieringConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,y3.se_PutBucketIntelligentTieringConfigurationCommand)(n,t)}deserialize(n,t){return(0,y3.de_PutBucketIntelligentTieringConfigurationCommand)(n,t)}};Hi.PutBucketIntelligentTieringConfigurationCommand=Nu});var WE=m(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.PutBucketInventoryConfigurationCommand=Ki.$Command=void 0;var che=I(),dhe=N(),_3=v();Object.defineProperty(Ki,"$Command",{enumerable:!0,get:function(){return _3.Command}});var lhe=rt(),h3=M(),Ou=class extends _3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,dhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,che.getEndpointPlugin)(t,Ou.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketInventoryConfigurationCommand",inputFilterSensitiveLog:lhe.PutBucketInventoryConfigurationRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,h3.se_PutBucketInventoryConfigurationCommand)(n,t)}deserialize(n,t){return(0,h3.de_PutBucketInventoryConfigurationCommand)(n,t)}};Ki.PutBucketInventoryConfigurationCommand=Ou});var XE=m(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.PutBucketLifecycleConfigurationCommand=Vi.$Command=void 0;var uhe=Be(),mhe=I(),phe=N(),S3=v();Object.defineProperty(Vi,"$Command",{enumerable:!0,get:function(){return S3.Command}});var C3=M(),Tu=class extends S3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,phe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mhe.getEndpointPlugin)(t,Tu.getEndpointParameterInstructions())),this.middlewareStack.use((0,uhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketLifecycleConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,C3.se_PutBucketLifecycleConfigurationCommand)(n,t)}deserialize(n,t){return(0,C3.de_PutBucketLifecycleConfigurationCommand)(n,t)}};Vi.PutBucketLifecycleConfigurationCommand=Tu});var YE=m(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.PutBucketLoggingCommand=Wi.$Command=void 0;var fhe=Be(),yhe=I(),ghe=N(),P3=v();Object.defineProperty(Wi,"$Command",{enumerable:!0,get:function(){return P3.Command}});var b3=M(),qu=class extends P3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,ghe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yhe.getEndpointPlugin)(t,qu.getEndpointParameterInstructions())),this.middlewareStack.use((0,fhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketLoggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,b3.se_PutBucketLoggingCommand)(n,t)}deserialize(n,t){return(0,b3.de_PutBucketLoggingCommand)(n,t)}};Wi.PutBucketLoggingCommand=qu});var QE=m(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.PutBucketMetricsConfigurationCommand=Xi.$Command=void 0;var hhe=I(),_he=N(),x3=v();Object.defineProperty(Xi,"$Command",{enumerable:!0,get:function(){return x3.Command}});var E3=M(),Bu=class extends x3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,_he.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,hhe.getEndpointPlugin)(t,Bu.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketMetricsConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,E3.se_PutBucketMetricsConfigurationCommand)(n,t)}deserialize(n,t){return(0,E3.de_PutBucketMetricsConfigurationCommand)(n,t)}};Xi.PutBucketMetricsConfigurationCommand=Bu});var JE=m(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.PutBucketNotificationConfigurationCommand=Yi.$Command=void 0;var Che=I(),She=N(),v3=v();Object.defineProperty(Yi,"$Command",{enumerable:!0,get:function(){return v3.Command}});var w3=M(),Du=class extends v3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,She.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Che.getEndpointPlugin)(t,Du.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketNotificationConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,w3.se_PutBucketNotificationConfigurationCommand)(n,t)}deserialize(n,t){return(0,w3.de_PutBucketNotificationConfigurationCommand)(n,t)}};Yi.PutBucketNotificationConfigurationCommand=Du});var ZE=m(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.PutBucketOwnershipControlsCommand=Qi.$Command=void 0;var bhe=Be(),Phe=I(),Ehe=N(),A3=v();Object.defineProperty(Qi,"$Command",{enumerable:!0,get:function(){return A3.Command}});var k3=M(),Mu=class extends A3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ehe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Phe.getEndpointPlugin)(t,Mu.getEndpointParameterInstructions())),this.middlewareStack.use((0,bhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketOwnershipControlsCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,k3.se_PutBucketOwnershipControlsCommand)(n,t)}deserialize(n,t){return(0,k3.de_PutBucketOwnershipControlsCommand)(n,t)}};Qi.PutBucketOwnershipControlsCommand=Mu});var ex=m(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.PutBucketPolicyCommand=Ji.$Command=void 0;var xhe=Be(),whe=I(),vhe=N(),I3=v();Object.defineProperty(Ji,"$Command",{enumerable:!0,get:function(){return I3.Command}});var R3=M(),Fu=class extends I3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,vhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,whe.getEndpointPlugin)(t,Fu.getEndpointParameterInstructions())),this.middlewareStack.use((0,xhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketPolicyCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,R3.se_PutBucketPolicyCommand)(n,t)}deserialize(n,t){return(0,R3.de_PutBucketPolicyCommand)(n,t)}};Ji.PutBucketPolicyCommand=Fu});var tx=m(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.PutBucketReplicationCommand=Zi.$Command=void 0;var khe=Be(),Ahe=I(),Rhe=N(),O3=v();Object.defineProperty(Zi,"$Command",{enumerable:!0,get:function(){return O3.Command}});var N3=M(),Lu=class extends O3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Rhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ahe.getEndpointPlugin)(t,Lu.getEndpointParameterInstructions())),this.middlewareStack.use((0,khe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketReplicationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,N3.se_PutBucketReplicationCommand)(n,t)}deserialize(n,t){return(0,N3.de_PutBucketReplicationCommand)(n,t)}};Zi.PutBucketReplicationCommand=Lu});var nx=m(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.PutBucketRequestPaymentCommand=ea.$Command=void 0;var Ihe=Be(),Nhe=I(),Ohe=N(),q3=v();Object.defineProperty(ea,"$Command",{enumerable:!0,get:function(){return q3.Command}});var T3=M(),ju=class extends q3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Ohe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Nhe.getEndpointPlugin)(t,ju.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ihe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketRequestPaymentCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,T3.se_PutBucketRequestPaymentCommand)(n,t)}deserialize(n,t){return(0,T3.de_PutBucketRequestPaymentCommand)(n,t)}};ea.PutBucketRequestPaymentCommand=ju});var rx=m(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.PutBucketTaggingCommand=ta.$Command=void 0;var The=Be(),qhe=I(),Bhe=N(),D3=v();Object.defineProperty(ta,"$Command",{enumerable:!0,get:function(){return D3.Command}});var B3=M(),Uu=class extends D3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Bhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,qhe.getEndpointPlugin)(t,Uu.getEndpointParameterInstructions())),this.middlewareStack.use((0,The.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,B3.se_PutBucketTaggingCommand)(n,t)}deserialize(n,t){return(0,B3.de_PutBucketTaggingCommand)(n,t)}};ta.PutBucketTaggingCommand=Uu});var sx=m(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PutBucketVersioningCommand=na.$Command=void 0;var Dhe=Be(),Mhe=I(),Fhe=N(),F3=v();Object.defineProperty(na,"$Command",{enumerable:!0,get:function(){return F3.Command}});var M3=M(),zu=class extends F3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Fhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Mhe.getEndpointPlugin)(t,zu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Dhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketVersioningCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,M3.se_PutBucketVersioningCommand)(n,t)}deserialize(n,t){return(0,M3.de_PutBucketVersioningCommand)(n,t)}};na.PutBucketVersioningCommand=zu});var ox=m(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.PutBucketWebsiteCommand=ra.$Command=void 0;var Lhe=Be(),jhe=I(),Uhe=N(),j3=v();Object.defineProperty(ra,"$Command",{enumerable:!0,get:function(){return j3.Command}});var L3=M(),Gu=class extends j3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Uhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,jhe.getEndpointPlugin)(t,Gu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Lhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutBucketWebsiteCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,L3.se_PutBucketWebsiteCommand)(n,t)}deserialize(n,t){return(0,L3.de_PutBucketWebsiteCommand)(n,t)}};ra.PutBucketWebsiteCommand=Gu});var ix=m(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.PutObjectAclCommand=sa.$Command=void 0;var zhe=Be(),Ghe=I(),$he=N(),z3=v();Object.defineProperty(sa,"$Command",{enumerable:!0,get:function(){return z3.Command}});var U3=M(),$u=class extends z3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$he.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ghe.getEndpointPlugin)(t,$u.getEndpointParameterInstructions())),this.middlewareStack.use((0,zhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutObjectAclCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,U3.se_PutObjectAclCommand)(n,t)}deserialize(n,t){return(0,U3.de_PutObjectAclCommand)(n,t)}};sa.PutObjectAclCommand=$u});var ax=m(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.PutObjectCommand=oa.$Command=void 0;var Hhe=Be(),Khe=fs(),Vhe=Mt(),Whe=I(),Xhe=N(),H3=v();Object.defineProperty(oa,"$Command",{enumerable:!0,get:function(){return H3.Command}});var G3=rt(),$3=M(),Hu=class extends H3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Xhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Whe.getEndpointPlugin)(t,Hu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Khe.getCheckContentLengthHeaderPlugin)(t)),this.middlewareStack.use((0,Vhe.getSsecPlugin)(t)),this.middlewareStack.use((0,Hhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:G3.PutObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:G3.PutObjectOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$3.se_PutObjectCommand)(n,t)}deserialize(n,t){return(0,$3.de_PutObjectCommand)(n,t)}};oa.PutObjectCommand=Hu});var cx=m(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.PutObjectLegalHoldCommand=ia.$Command=void 0;var Yhe=Be(),Qhe=I(),Jhe=N(),V3=v();Object.defineProperty(ia,"$Command",{enumerable:!0,get:function(){return V3.Command}});var K3=M(),Ku=class extends V3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,Jhe.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Qhe.getEndpointPlugin)(t,Ku.getEndpointParameterInstructions())),this.middlewareStack.use((0,Yhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutObjectLegalHoldCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,K3.se_PutObjectLegalHoldCommand)(n,t)}deserialize(n,t){return(0,K3.de_PutObjectLegalHoldCommand)(n,t)}};ia.PutObjectLegalHoldCommand=Ku});var dx=m(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PutObjectLockConfigurationCommand=aa.$Command=void 0;var Zhe=Be(),e_e=I(),t_e=N(),X3=v();Object.defineProperty(aa,"$Command",{enumerable:!0,get:function(){return X3.Command}});var W3=M(),Vu=class extends X3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,t_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,e_e.getEndpointPlugin)(t,Vu.getEndpointParameterInstructions())),this.middlewareStack.use((0,Zhe.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutObjectLockConfigurationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,W3.se_PutObjectLockConfigurationCommand)(n,t)}deserialize(n,t){return(0,W3.de_PutObjectLockConfigurationCommand)(n,t)}};aa.PutObjectLockConfigurationCommand=Vu});var lx=m(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.PutObjectRetentionCommand=ca.$Command=void 0;var n_e=Be(),r_e=I(),s_e=N(),Q3=v();Object.defineProperty(ca,"$Command",{enumerable:!0,get:function(){return Q3.Command}});var Y3=M(),Wu=class extends Q3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,s_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,r_e.getEndpointPlugin)(t,Wu.getEndpointParameterInstructions())),this.middlewareStack.use((0,n_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutObjectRetentionCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,Y3.se_PutObjectRetentionCommand)(n,t)}deserialize(n,t){return(0,Y3.de_PutObjectRetentionCommand)(n,t)}};ca.PutObjectRetentionCommand=Wu});var ux=m(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.PutObjectTaggingCommand=da.$Command=void 0;var o_e=Be(),i_e=I(),a_e=N(),Z3=v();Object.defineProperty(da,"$Command",{enumerable:!0,get:function(){return Z3.Command}});var J3=M(),Xu=class extends Z3.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,a_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,i_e.getEndpointPlugin)(t,Xu.getEndpointParameterInstructions())),this.middlewareStack.use((0,o_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutObjectTaggingCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,J3.se_PutObjectTaggingCommand)(n,t)}deserialize(n,t){return(0,J3.de_PutObjectTaggingCommand)(n,t)}};da.PutObjectTaggingCommand=Xu});var mx=m(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.PutPublicAccessBlockCommand=la.$Command=void 0;var c_e=Be(),d_e=I(),l_e=N(),tz=v();Object.defineProperty(la,"$Command",{enumerable:!0,get:function(){return tz.Command}});var ez=M(),Yu=class extends tz.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,l_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,d_e.getEndpointPlugin)(t,Yu.getEndpointParameterInstructions())),this.middlewareStack.use((0,c_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!0}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"PutPublicAccessBlockCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,ez.se_PutPublicAccessBlockCommand)(n,t)}deserialize(n,t){return(0,ez.de_PutPublicAccessBlockCommand)(n,t)}};la.PutPublicAccessBlockCommand=Yu});var px=m(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.RestoreObjectCommand=ua.$Command=void 0;var u_e=Be(),m_e=I(),p_e=N(),rz=v();Object.defineProperty(ua,"$Command",{enumerable:!0,get:function(){return rz.Command}});var f_e=xr(),nz=M(),Qu=class extends rz.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,p_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,m_e.getEndpointPlugin)(t,Qu.getEndpointParameterInstructions())),this.middlewareStack.use((0,u_e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"RestoreObjectCommand",inputFilterSensitiveLog:f_e.RestoreObjectRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,nz.se_RestoreObjectCommand)(n,t)}deserialize(n,t){return(0,nz.de_RestoreObjectCommand)(n,t)}};ua.RestoreObjectCommand=Qu});var fx=m(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.SelectObjectContentCommand=ma.$Command=void 0;var y_e=Mt(),g_e=I(),h_e=N(),iz=v();Object.defineProperty(ma,"$Command",{enumerable:!0,get:function(){return iz.Command}});var sz=xr(),oz=M(),Ju=class extends iz.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,h_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,g_e.getEndpointPlugin)(t,Ju.getEndpointParameterInstructions())),this.middlewareStack.use((0,y_e.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"SelectObjectContentCommand",inputFilterSensitiveLog:sz.SelectObjectContentRequestFilterSensitiveLog,outputFilterSensitiveLog:sz.SelectObjectContentOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,oz.se_SelectObjectContentCommand)(n,t)}deserialize(n,t){return(0,oz.de_SelectObjectContentCommand)(n,t)}};ma.SelectObjectContentCommand=Ju});var yx=m(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.UploadPartCommand=pa.$Command=void 0;var __e=Be(),C_e=Mt(),S_e=I(),b_e=N(),dz=v();Object.defineProperty(pa,"$Command",{enumerable:!0,get:function(){return dz.Command}});var az=xr(),cz=M(),Zu=class extends dz.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,b_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,S_e.getEndpointPlugin)(t,Zu.getEndpointParameterInstructions())),this.middlewareStack.use((0,C_e.getSsecPlugin)(t)),this.middlewareStack.use((0,__e.getFlexibleChecksumsPlugin)(t,{input:this.input,requestAlgorithmMember:"ChecksumAlgorithm",requestChecksumRequired:!1}));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:az.UploadPartRequestFilterSensitiveLog,outputFilterSensitiveLog:az.UploadPartOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cz.se_UploadPartCommand)(n,t)}deserialize(n,t){return(0,cz.de_UploadPartCommand)(n,t)}};pa.UploadPartCommand=Zu});var gx=m(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.UploadPartCopyCommand=fa.$Command=void 0;var P_e=fs(),E_e=Mt(),x_e=I(),w_e=N(),mz=v();Object.defineProperty(fa,"$Command",{enumerable:!0,get:function(){return mz.Command}});var lz=xr(),uz=M(),em=class extends mz.Command{static getEndpointParameterInstructions(){return{Bucket:{type:"contextParams",name:"Bucket"},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,w_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,x_e.getEndpointPlugin)(t,em.getEndpointParameterInstructions())),this.middlewareStack.use((0,P_e.getThrow200ExceptionsPlugin)(t)),this.middlewareStack.use((0,E_e.getSsecPlugin)(t));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"UploadPartCopyCommand",inputFilterSensitiveLog:lz.UploadPartCopyRequestFilterSensitiveLog,outputFilterSensitiveLog:lz.UploadPartCopyOutputFilterSensitiveLog},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,uz.se_UploadPartCopyCommand)(n,t)}deserialize(n,t){return(0,uz.de_UploadPartCopyCommand)(n,t)}};fa.UploadPartCopyCommand=em});var hx=m(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.WriteGetObjectResponseCommand=ya.$Command=void 0;var v_e=I(),k_e=N(),fz=v();Object.defineProperty(ya,"$Command",{enumerable:!0,get:function(){return fz.Command}});var A_e=xr(),pz=M(),tm=class extends fz.Command{static getEndpointParameterInstructions(){return{UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0},ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(n){super(),this.input=n}resolveMiddleware(n,t,r){this.middlewareStack.use((0,k_e.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,v_e.getEndpointPlugin)(t,tm.getEndpointParameterInstructions()));let s=n.concat(this.middlewareStack),{logger:o}=t,u={logger:o,clientName:"S3Client",commandName:"WriteGetObjectResponseCommand",inputFilterSensitiveLog:A_e.WriteGetObjectResponseRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return s.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,pz.se_WriteGetObjectResponseCommand)(n,t)}deserialize(n,t){return(0,pz.de_WriteGetObjectResponseCommand)(n,t)}};ya.WriteGetObjectResponseCommand=tm});var yz=m(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.S3=void 0;var R_e=v(),I_e=EP(),N_e=xP(),O_e=wP(),T_e=vP(),q_e=kP(),B_e=AP(),D_e=RP(),M_e=IP(),F_e=NP(),L_e=OP(),j_e=TP(),U_e=qP(),z_e=BP(),G_e=DP(),$_e=MP(),H_e=FP(),K_e=LP(),V_e=jP(),W_e=UP(),X_e=nE(),Y_e=rE(),Q_e=sE(),J_e=oE(),Z_e=iE(),eCe=aE(),tCe=cE(),nCe=dE(),rCe=lE(),sCe=uE(),oCe=mE(),iCe=pE(),aCe=fE(),cCe=yE(),dCe=gE(),lCe=hE(),uCe=_E(),mCe=CE(),pCe=SE(),fCe=bE(),yCe=PE(),gCe=EE(),hCe=xE(),_Ce=wE(),CCe=vE(),SCe=kE(),bCe=AE(),PCe=RE(),ECe=IE(),xCe=NE(),wCe=OE(),vCe=TE(),kCe=pu(),ACe=yu(),RCe=qE(),ICe=BE(),NCe=DE(),OCe=ME(),TCe=FE(),qCe=LE(),BCe=jE(),DCe=u_(),MCe=UE(),FCe=m_(),LCe=zE(),jCe=GE(),UCe=$E(),zCe=HE(),GCe=KE(),$Ce=VE(),HCe=WE(),KCe=XE(),VCe=YE(),WCe=QE(),XCe=JE(),YCe=ZE(),QCe=ex(),JCe=tx(),ZCe=nx(),eSe=rx(),tSe=sx(),nSe=ox(),rSe=ix(),sSe=ax(),oSe=cx(),iSe=dx(),aSe=lx(),cSe=ux(),dSe=mx(),lSe=px(),uSe=fx(),mSe=yx(),pSe=gx(),fSe=hx(),ySe=Jd(),gSe={AbortMultipartUploadCommand:I_e.AbortMultipartUploadCommand,CompleteMultipartUploadCommand:N_e.CompleteMultipartUploadCommand,CopyObjectCommand:O_e.CopyObjectCommand,CreateBucketCommand:T_e.CreateBucketCommand,CreateMultipartUploadCommand:q_e.CreateMultipartUploadCommand,DeleteBucketCommand:D_e.DeleteBucketCommand,DeleteBucketAnalyticsConfigurationCommand:B_e.DeleteBucketAnalyticsConfigurationCommand,DeleteBucketCorsCommand:M_e.DeleteBucketCorsCommand,DeleteBucketEncryptionCommand:F_e.DeleteBucketEncryptionCommand,DeleteBucketIntelligentTieringConfigurationCommand:L_e.DeleteBucketIntelligentTieringConfigurationCommand,DeleteBucketInventoryConfigurationCommand:j_e.DeleteBucketInventoryConfigurationCommand,DeleteBucketLifecycleCommand:U_e.DeleteBucketLifecycleCommand,DeleteBucketMetricsConfigurationCommand:z_e.DeleteBucketMetricsConfigurationCommand,DeleteBucketOwnershipControlsCommand:G_e.DeleteBucketOwnershipControlsCommand,DeleteBucketPolicyCommand:$_e.DeleteBucketPolicyCommand,DeleteBucketReplicationCommand:H_e.DeleteBucketReplicationCommand,DeleteBucketTaggingCommand:K_e.DeleteBucketTaggingCommand,DeleteBucketWebsiteCommand:V_e.DeleteBucketWebsiteCommand,DeleteObjectCommand:W_e.DeleteObjectCommand,DeleteObjectsCommand:X_e.DeleteObjectsCommand,DeleteObjectTaggingCommand:Y_e.DeleteObjectTaggingCommand,DeletePublicAccessBlockCommand:Q_e.DeletePublicAccessBlockCommand,GetBucketAccelerateConfigurationCommand:J_e.GetBucketAccelerateConfigurationCommand,GetBucketAclCommand:Z_e.GetBucketAclCommand,GetBucketAnalyticsConfigurationCommand:eCe.GetBucketAnalyticsConfigurationCommand,GetBucketCorsCommand:tCe.GetBucketCorsCommand,GetBucketEncryptionCommand:nCe.GetBucketEncryptionCommand,GetBucketIntelligentTieringConfigurationCommand:rCe.GetBucketIntelligentTieringConfigurationCommand,GetBucketInventoryConfigurationCommand:sCe.GetBucketInventoryConfigurationCommand,GetBucketLifecycleConfigurationCommand:oCe.GetBucketLifecycleConfigurationCommand,GetBucketLocationCommand:iCe.GetBucketLocationCommand,GetBucketLoggingCommand:aCe.GetBucketLoggingCommand,GetBucketMetricsConfigurationCommand:cCe.GetBucketMetricsConfigurationCommand,GetBucketNotificationConfigurationCommand:dCe.GetBucketNotificationConfigurationCommand,GetBucketOwnershipControlsCommand:lCe.GetBucketOwnershipControlsCommand,GetBucketPolicyCommand:uCe.GetBucketPolicyCommand,GetBucketPolicyStatusCommand:mCe.GetBucketPolicyStatusCommand,GetBucketReplicationCommand:pCe.GetBucketReplicationCommand,GetBucketRequestPaymentCommand:fCe.GetBucketRequestPaymentCommand,GetBucketTaggingCommand:yCe.GetBucketTaggingCommand,GetBucketVersioningCommand:gCe.GetBucketVersioningCommand,GetBucketWebsiteCommand:hCe.GetBucketWebsiteCommand,GetObjectCommand:SCe.GetObjectCommand,GetObjectAclCommand:_Ce.GetObjectAclCommand,GetObjectAttributesCommand:CCe.GetObjectAttributesCommand,GetObjectLegalHoldCommand:bCe.GetObjectLegalHoldCommand,GetObjectLockConfigurationCommand:PCe.GetObjectLockConfigurationCommand,GetObjectRetentionCommand:ECe.GetObjectRetentionCommand,GetObjectTaggingCommand:xCe.GetObjectTaggingCommand,GetObjectTorrentCommand:wCe.GetObjectTorrentCommand,GetPublicAccessBlockCommand:vCe.GetPublicAccessBlockCommand,HeadBucketCommand:kCe.HeadBucketCommand,HeadObjectCommand:ACe.HeadObjectCommand,ListBucketAnalyticsConfigurationsCommand:RCe.ListBucketAnalyticsConfigurationsCommand,ListBucketIntelligentTieringConfigurationsCommand:ICe.ListBucketIntelligentTieringConfigurationsCommand,ListBucketInventoryConfigurationsCommand:NCe.ListBucketInventoryConfigurationsCommand,ListBucketMetricsConfigurationsCommand:OCe.ListBucketMetricsConfigurationsCommand,ListBucketsCommand:TCe.ListBucketsCommand,ListMultipartUploadsCommand:qCe.ListMultipartUploadsCommand,ListObjectsCommand:BCe.ListObjectsCommand,ListObjectsV2Command:DCe.ListObjectsV2Command,ListObjectVersionsCommand:MCe.ListObjectVersionsCommand,ListPartsCommand:FCe.ListPartsCommand,PutBucketAccelerateConfigurationCommand:LCe.PutBucketAccelerateConfigurationCommand,PutBucketAclCommand:jCe.PutBucketAclCommand,PutBucketAnalyticsConfigurationCommand:UCe.PutBucketAnalyticsConfigurationCommand,PutBucketCorsCommand:zCe.PutBucketCorsCommand,PutBucketEncryptionCommand:GCe.PutBucketEncryptionCommand,PutBucketIntelligentTieringConfigurationCommand:$Ce.PutBucketIntelligentTieringConfigurationCommand,PutBucketInventoryConfigurationCommand:HCe.PutBucketInventoryConfigurationCommand,PutBucketLifecycleConfigurationCommand:KCe.PutBucketLifecycleConfigurationCommand,PutBucketLoggingCommand:VCe.PutBucketLoggingCommand,PutBucketMetricsConfigurationCommand:WCe.PutBucketMetricsConfigurationCommand,PutBucketNotificationConfigurationCommand:XCe.PutBucketNotificationConfigurationCommand,PutBucketOwnershipControlsCommand:YCe.PutBucketOwnershipControlsCommand,PutBucketPolicyCommand:QCe.PutBucketPolicyCommand,PutBucketReplicationCommand:JCe.PutBucketReplicationCommand,PutBucketRequestPaymentCommand:ZCe.PutBucketRequestPaymentCommand,PutBucketTaggingCommand:eSe.PutBucketTaggingCommand,PutBucketVersioningCommand:tSe.PutBucketVersioningCommand,PutBucketWebsiteCommand:nSe.PutBucketWebsiteCommand,PutObjectCommand:sSe.PutObjectCommand,PutObjectAclCommand:rSe.PutObjectAclCommand,PutObjectLegalHoldCommand:oSe.PutObjectLegalHoldCommand,PutObjectLockConfigurationCommand:iSe.PutObjectLockConfigurationCommand,PutObjectRetentionCommand:aSe.PutObjectRetentionCommand,PutObjectTaggingCommand:cSe.PutObjectTaggingCommand,PutPublicAccessBlockCommand:dSe.PutPublicAccessBlockCommand,RestoreObjectCommand:lSe.RestoreObjectCommand,SelectObjectContentCommand:uSe.SelectObjectContentCommand,UploadPartCommand:mSe.UploadPartCommand,UploadPartCopyCommand:pSe.UploadPartCopyCommand,WriteGetObjectResponseCommand:fSe.WriteGetObjectResponseCommand},p_=class extends ySe.S3Client{};f_.S3=p_;(0,R_e.createAggregatedClient)(gSe,p_)});var gz=m(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});var U=(H(),z($));U.__exportStar(EP(),B);U.__exportStar(xP(),B);U.__exportStar(wP(),B);U.__exportStar(vP(),B);U.__exportStar(kP(),B);U.__exportStar(AP(),B);U.__exportStar(RP(),B);U.__exportStar(IP(),B);U.__exportStar(NP(),B);U.__exportStar(OP(),B);U.__exportStar(TP(),B);U.__exportStar(qP(),B);U.__exportStar(BP(),B);U.__exportStar(DP(),B);U.__exportStar(MP(),B);U.__exportStar(FP(),B);U.__exportStar(LP(),B);U.__exportStar(jP(),B);U.__exportStar(UP(),B);U.__exportStar(rE(),B);U.__exportStar(nE(),B);U.__exportStar(sE(),B);U.__exportStar(oE(),B);U.__exportStar(iE(),B);U.__exportStar(aE(),B);U.__exportStar(cE(),B);U.__exportStar(dE(),B);U.__exportStar(lE(),B);U.__exportStar(uE(),B);U.__exportStar(mE(),B);U.__exportStar(pE(),B);U.__exportStar(fE(),B);U.__exportStar(yE(),B);U.__exportStar(gE(),B);U.__exportStar(hE(),B);U.__exportStar(_E(),B);U.__exportStar(CE(),B);U.__exportStar(SE(),B);U.__exportStar(bE(),B);U.__exportStar(PE(),B);U.__exportStar(EE(),B);U.__exportStar(xE(),B);U.__exportStar(wE(),B);U.__exportStar(vE(),B);U.__exportStar(kE(),B);U.__exportStar(AE(),B);U.__exportStar(RE(),B);U.__exportStar(IE(),B);U.__exportStar(NE(),B);U.__exportStar(OE(),B);U.__exportStar(TE(),B);U.__exportStar(pu(),B);U.__exportStar(yu(),B);U.__exportStar(qE(),B);U.__exportStar(BE(),B);U.__exportStar(DE(),B);U.__exportStar(ME(),B);U.__exportStar(FE(),B);U.__exportStar(LE(),B);U.__exportStar(UE(),B);U.__exportStar(jE(),B);U.__exportStar(u_(),B);U.__exportStar(m_(),B);U.__exportStar(zE(),B);U.__exportStar(GE(),B);U.__exportStar($E(),B);U.__exportStar(HE(),B);U.__exportStar(KE(),B);U.__exportStar(VE(),B);U.__exportStar(WE(),B);U.__exportStar(XE(),B);U.__exportStar(YE(),B);U.__exportStar(QE(),B);U.__exportStar(JE(),B);U.__exportStar(ZE(),B);U.__exportStar(ex(),B);U.__exportStar(tx(),B);U.__exportStar(nx(),B);U.__exportStar(rx(),B);U.__exportStar(sx(),B);U.__exportStar(ox(),B);U.__exportStar(ix(),B);U.__exportStar(ax(),B);U.__exportStar(cx(),B);U.__exportStar(dx(),B);U.__exportStar(lx(),B);U.__exportStar(ux(),B);U.__exportStar(mx(),B);U.__exportStar(px(),B);U.__exportStar(fx(),B);U.__exportStar(yx(),B);U.__exportStar(gx(),B);U.__exportStar(hx(),B)});var _z=m(hz=>{"use strict";Object.defineProperty(hz,"__esModule",{value:!0})});var Cz=m(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.paginateListObjectsV2=void 0;var hSe=u_(),_Se=Jd(),CSe=async(e,n,...t)=>await e.send(new hSe.ListObjectsV2Command(n),...t);async function*SSe(e,n,...t){let r=e.startingToken||void 0,s=!0,o;for(;s;){if(n.ContinuationToken=r,n.MaxKeys=e.pageSize,e.client instanceof _Se.S3Client)o=await CSe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield o;let c=r;r=o.NextContinuationToken,s=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}y_.paginateListObjectsV2=SSe});var Sz=m(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.paginateListParts=void 0;var bSe=m_(),PSe=Jd(),ESe=async(e,n,...t)=>await e.send(new bSe.ListPartsCommand(n),...t);async function*xSe(e,n,...t){let r=e.startingToken||void 0,s=!0,o;for(;s;){if(n.PartNumberMarker=r,n.MaxParts=e.pageSize,e.client instanceof PSe.S3Client)o=await ESe(e.client,n,...t);else throw new Error("Invalid client, expected S3 | S3Client");yield o;let c=r;r=o.NextPartNumberMarker,s=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}g_.paginateListParts=xSe});var bz=m(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});var _x=(H(),z($));_x.__exportStar(_z(),nm);_x.__exportStar(Cz(),nm);_x.__exportStar(Sz(),nm)});var Cx=m(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.sleep=void 0;var wSe=e=>new Promise(n=>setTimeout(n,e*1e3));h_.sleep=wSe});var C_=m(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.checkExceptions=Hn.WaiterState=Hn.waiterServiceDefaults=void 0;Hn.waiterServiceDefaults={minDelay:2,maxDelay:120};var __;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(__=Hn.WaiterState||(Hn.WaiterState={}));var vSe=e=>{if(e.state===__.ABORTED){let n=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw n.name="AbortError",n}else if(e.state===__.TIMEOUT){let n=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw n.name="TimeoutError",n}else if(e.state!==__.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};Hn.checkExceptions=vSe});var Pz=m(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});b_.runPolling=void 0;var kSe=Cx(),S_=C_(),ASe=(e,n,t,r)=>{if(r>t)return n;let s=e*2**(r-1);return RSe(e,s)},RSe=(e,n)=>e+Math.random()*(n-e),ISe=async({minDelay:e,maxDelay:n,maxWaitTime:t,abortController:r,client:s,abortSignal:o},c,i)=>{var u;let{state:l,reason:a}=await i(s,c);if(l!==S_.WaiterState.RETRY)return{state:l,reason:a};let g=1,C=Date.now()+t*1e3,w=Math.log(n/e)/Math.log(2)+1;for(;;){if(!((u=r?.signal)===null||u===void 0)&&u.aborted||o?.aborted)return{state:S_.WaiterState.ABORTED};let R=ASe(e,n,w,g);if(Date.now()+R*1e3>C)return{state:S_.WaiterState.TIMEOUT};await(0,kSe.sleep)(R);let{state:O,reason:G}=await i(s,c);if(O!==S_.WaiterState.RETRY)return{state:O,reason:G};g+=1}};b_.runPolling=ISe});var Ez=m(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.validateWaiterOptions=void 0;var NSe=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});var xz=(H(),z($));xz.__exportStar(Cx(),E_);xz.__exportStar(Ez(),E_)});var Az=m(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.createWaiter=void 0;var OSe=Pz(),TSe=wz(),kz=C_(),vz=async e=>new Promise(n=>{e.onabort=()=>n({state:kz.WaiterState.ABORTED})}),qSe=async(e,n,t)=>{let r={...kz.waiterServiceDefaults,...e};(0,TSe.validateWaiterOptions)(r);let s=[(0,OSe.runPolling)(r,n,t)];return e.abortController&&s.push(vz(e.abortController.signal)),e.abortSignal&&s.push(vz(e.abortSignal)),Promise.race(s)};x_.createWaiter=qSe});var rm=m(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});var Rz=(H(),z($));Rz.__exportStar(Az(),w_);Rz.__exportStar(C_(),w_)});var Nz=m(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.waitUntilBucketExists=ha.waitForBucketExists=void 0;var ga=rm(),BSe=pu(),Iz=async(e,n)=>{let t;try{return t=await e.send(new BSe.HeadBucketCommand(n)),{state:ga.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:ga.WaiterState.RETRY,reason:t}}return{state:ga.WaiterState.RETRY,reason:t}},DSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,ga.createWaiter)({...t,...e},n,Iz)};ha.waitForBucketExists=DSe;var MSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,ga.createWaiter)({...t,...e},n,Iz);return(0,ga.checkExceptions)(r)};ha.waitUntilBucketExists=MSe});var Tz=m(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.waitUntilBucketNotExists=_a.waitForBucketNotExists=void 0;var sm=rm(),FSe=pu(),Oz=async(e,n)=>{let t;try{t=await e.send(new FSe.HeadBucketCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:sm.WaiterState.SUCCESS,reason:t}}return{state:sm.WaiterState.RETRY,reason:t}},LSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,sm.createWaiter)({...t,...e},n,Oz)};_a.waitForBucketNotExists=LSe;var jSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,sm.createWaiter)({...t,...e},n,Oz);return(0,sm.checkExceptions)(r)};_a.waitUntilBucketNotExists=jSe});var Bz=m(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.waitUntilObjectExists=Sa.waitForObjectExists=void 0;var Ca=rm(),USe=yu(),qz=async(e,n)=>{let t;try{return t=await e.send(new USe.HeadObjectCommand(n)),{state:Ca.WaiterState.SUCCESS,reason:t}}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:Ca.WaiterState.RETRY,reason:t}}return{state:Ca.WaiterState.RETRY,reason:t}},zSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,Ca.createWaiter)({...t,...e},n,qz)};Sa.waitForObjectExists=zSe;var GSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,Ca.createWaiter)({...t,...e},n,qz);return(0,Ca.checkExceptions)(r)};Sa.waitUntilObjectExists=GSe});var Mz=m(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.waitUntilObjectNotExists=ba.waitForObjectNotExists=void 0;var om=rm(),$Se=yu(),Dz=async(e,n)=>{let t;try{t=await e.send(new $Se.HeadObjectCommand(n))}catch(r){if(t=r,r.name&&r.name=="NotFound")return{state:om.WaiterState.SUCCESS,reason:t}}return{state:om.WaiterState.RETRY,reason:t}},HSe=async(e,n)=>{let t={minDelay:5,maxDelay:120};return(0,om.createWaiter)({...t,...e},n,Dz)};ba.waitForObjectNotExists=HSe;var KSe=async(e,n)=>{let t={minDelay:5,maxDelay:120},r=await(0,om.createWaiter)({...t,...e},n,Dz);return(0,om.checkExceptions)(r)};ba.waitUntilObjectNotExists=KSe});var Fz=m(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var v_=(H(),z($));v_.__exportStar(Nz(),Pa);v_.__exportStar(Tz(),Pa);v_.__exportStar(Bz(),Pa);v_.__exportStar(Mz(),Pa)});var jz=m(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});var Lz=(H(),z($));Lz.__exportStar(rt(),k_);Lz.__exportStar(xr(),k_)});var Uz=m(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.S3ServiceException=void 0;var Ea=(H(),z($));Ea.__exportStar(Jd(),Pn);Ea.__exportStar(yz(),Pn);Ea.__exportStar(gz(),Pn);Ea.__exportStar(bz(),Pn);Ea.__exportStar(Fz(),Pn);Ea.__exportStar(jz(),Pn);var VSe=tl();Object.defineProperty(Pn,"S3ServiceException",{enumerable:!0,get:function(){return VSe.S3ServiceException}})});var rbe={};wa(rbe,{autoDeleteHandler:()=>Wz,handler:()=>ebe});module.exports=z(rbe);var Kz=us(Uz());var Gz=us(require("https")),$z=us(require("url")),cs={sendHttpRequest:YSe,log:QSe,includeStackTraces:!0,userHandlerIndex:"./index"},zz="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",WSe="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function Hz(e){return async(n,t)=>{let r={...n,ResponseURL:"..."};if(cs.log(JSON.stringify(r,void 0,2)),n.RequestType==="Delete"&&n.PhysicalResourceId===zz){cs.log("ignoring DELETE event caused by a failed CREATE event"),await Sx("SUCCESS",n);return}try{let s=await e(r,t),o=XSe(n,s);await Sx("SUCCESS",o)}catch(s){let o={...n,Reason:cs.includeStackTraces?s.stack:s.message};o.PhysicalResourceId||(n.RequestType==="Create"?(cs.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),o.PhysicalResourceId=zz):cs.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(n)}`)),await Sx("FAILED",o)}}}function XSe(e,n={}){let t=n.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&t!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${n.PhysicalResourceId}" during deletion`);return{...e,...n,PhysicalResourceId:t}}async function Sx(e,n){let t={Status:e,Reason:n.Reason??e,StackId:n.StackId,RequestId:n.RequestId,PhysicalResourceId:n.PhysicalResourceId||WSe,LogicalResourceId:n.LogicalResourceId,NoEcho:n.NoEcho,Data:n.Data};cs.log("submit response to cloudformation",t);let r=JSON.stringify(t),s=$z.parse(n.ResponseURL),o={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await JSe({attempts:5,sleep:1e3},cs.sendHttpRequest)(o,r)}async function YSe(e,n){return new Promise((t,r)=>{try{let s=Gz.request(e,o=>t());s.on("error",r),s.write(n),s.end()}catch(s){r(s)}})}function QSe(e,...n){console.log(e,...n)}function JSe(e,n){return async(...t)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await n(...t)}catch(o){if(r--<=0)throw o;await ZSe(Math.floor(Math.random()*s)),s*=2}}}async function ZSe(e){return new Promise(n=>setTimeout(n,e))}var Vz="aws-cdk:auto-delete-objects",bx=new Kz.S3({}),ebe=Hz(Wz);async function Wz(e){switch(e.RequestType){case"Create":return;case"Update":return tbe(e);case"Delete":return Yz(e.ResourceProperties?.BucketName)}}async function tbe(e){let n=e,t=n.OldResourceProperties?.BucketName,r=n.ResourceProperties?.BucketName;if(r!=null&&t!=null&&r!==t)return Yz(t)}async function Xz(e){let n=await bx.listObjectVersions({Bucket:e}),t=[...n.Versions??[],...n.DeleteMarkers??[]];if(t.length===0)return;let r=t.map(s=>({Key:s.Key,VersionId:s.VersionId}));await bx.deleteObjects({Bucket:e,Delete:{Objects:r}}),n?.IsTruncated&&await Xz(e)}async function Yz(e){if(!e)throw new Error("No BucketName was provided.");if(!await nbe(e)){process.stdout.write(`Bucket does not have '${Vz}' tag, skipping cleaning. -`);return}try{await Xz(e)}catch(n){if(n.code!=="NoSuchBucket")throw n}}async function nbe(e){return(await bx.getBucketTagging({Bucket:e})).TagSet?.some(t=>t.Key===Vz&&t.Value==="true")}0&&(module.exports={autoDeleteHandler,handler}); -/*! Bundled license information: - -tslib/tslib.es6.js: - (*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** *) - -tslib/tslib.es6.js: - (*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** *) -*/ diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c/index.js b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c/index.js new file mode 100644 index 0000000000000..b9e3b71c939ea --- /dev/null +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c/index.js @@ -0,0 +1,2 @@ +"use strict";var C=Object.create;var c=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var L=(t,e)=>{for(var s in e)c(t,s,{get:e[s],enumerable:!0})},d=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of w(e))!P.call(t,o)&&o!==s&&c(t,o,{get:()=>e[o],enumerable:!(r=f(e,o))||r.enumerable});return t};var l=(t,e,s)=>(s=t!=null?C(A(t)):{},d(e||!t||!t.__esModule?c(s,"default",{value:t,enumerable:!0}):s,t)),k=t=>d(c({},"__esModule",{value:!0}),t);var _={};L(_,{autoDeleteHandler:()=>g,handler:()=>O});module.exports=k(_);var h=require("@aws-sdk/client-s3");var m=l(require("https")),R=l(require("url")),a={sendHttpRequest:T,log:B,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",D="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function y(t){return async(e,s)=>{let r={...e,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),e.RequestType==="Delete"&&e.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await i("SUCCESS",e);return}try{let o=await t(r,s),n=b(e,o);await i("SUCCESS",n)}catch(o){let n={...e,Reason:a.includeStackTraces?o.stack:o.message};n.PhysicalResourceId||(e.RequestType==="Create"?(a.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),n.PhysicalResourceId=p):a.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(e)}`)),await i("FAILED",n)}}}function b(t,e={}){let s=e.PhysicalResourceId??t.PhysicalResourceId??t.RequestId;if(t.RequestType==="Delete"&&s!==t.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${t.PhysicalResourceId}" to "${e.PhysicalResourceId}" during deletion`);return{...t,...e,PhysicalResourceId:s}}async function i(t,e){let s={Status:t,Reason:e.Reason??t,StackId:e.StackId,RequestId:e.RequestId,PhysicalResourceId:e.PhysicalResourceId||D,LogicalResourceId:e.LogicalResourceId,NoEcho:e.NoEcho,Data:e.Data};a.log("submit response to cloudformation",s);let r=JSON.stringify(s),o=R.parse(e.ResponseURL),n={hostname:o.hostname,path:o.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await x({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(t,e){return new Promise((s,r)=>{try{let o=m.request(t,n=>s());o.on("error",r),o.write(e),o.end()}catch(o){r(o)}})}function B(t,...e){console.log(t,...e)}function x(t,e){return async(...s)=>{let r=t.attempts,o=t.sleep;for(;;)try{return await e(...s)}catch(n){if(r--<=0)throw n;await H(Math.floor(Math.random()*o)),o*=2}}}async function H(t){return new Promise(e=>setTimeout(e,t))}var E="aws-cdk:auto-delete-objects",u=new h.S3({}),O=y(g);async function g(t){switch(t.RequestType){case"Create":return;case"Update":return F(t);case"Delete":return S(t.ResourceProperties?.BucketName)}}async function F(t){let e=t,s=e.OldResourceProperties?.BucketName,r=e.ResourceProperties?.BucketName;if(r!=null&&s!=null&&r!==s)return S(s)}async function I(t){let e=await u.listObjectVersions({Bucket:t}),s=[...e.Versions??[],...e.DeleteMarkers??[]];if(s.length===0)return;let r=s.map(o=>({Key:o.Key,VersionId:o.VersionId}));await u.deleteObjects({Bucket:t,Delete:{Objects:r}}),e?.IsTruncated&&await I(t)}async function S(t){if(!t)throw new Error("No BucketName was provided.");if(!await N(t)){process.stdout.write(`Bucket does not have '${E}' tag, skipping cleaning. +`);return}try{await I(t)}catch(e){if(e.code!=="NoSuchBucket")throw e}}async function N(t){return(await u.getBucketTagging({Bucket:t})).TagSet?.some(s=>s.Key===E&&s.Value==="true")}0&&(module.exports={autoDeleteHandler,handler}); diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.bundle/index.js b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.bundle/index.js similarity index 92% rename from packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.bundle/index.js rename to packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.bundle/index.js index 8555fb712a126..eca0e9130c5a5 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.86e6ecbc86f6febc745cde7ce633979efa869d6d493b12f2c9d8641d70caa7c2.bundle/index.js +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/asset.fe2373df587bda7e4bf68910b7be30b2042493413a6f6f2c43efab4f184d3bad.bundle/index.js @@ -1304,385 +1304,440 @@ var init_tslib_es6 = __esm({ } }); -// ../../../node_modules/@smithy/types/dist-cjs/abort.js -var require_abort = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/abort.js"(exports) { +// ../../../node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js +var require_booleanSelector = __commonJS({ + "../../../node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.booleanSelector = exports.SelectorType = void 0; + var SelectorType; + (function(SelectorType2) { + SelectorType2["ENV"] = "env"; + SelectorType2["CONFIG"] = "shared config entry"; + })(SelectorType = exports.SelectorType || (exports.SelectorType = {})); + var booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return void 0; + if (obj[key] === "true") + return true; + if (obj[key] === "false") + return false; + throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); + }; + exports.booleanSelector = booleanSelector; } }); -// ../../../node_modules/@smithy/types/dist-cjs/auth.js -var require_auth = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/auth.js"(exports) { +// ../../../node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js +var require_dist_cjs = __commonJS({ + "../../../node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpAuthLocation = void 0; - var HttpAuthLocation; - (function(HttpAuthLocation2) { - HttpAuthLocation2["HEADER"] = "header"; - HttpAuthLocation2["QUERY"] = "query"; - })(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_booleanSelector(), exports); } }); -// ../../../node_modules/@smithy/types/dist-cjs/checksum.js -var require_checksum = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/checksum.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs(); + exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; + exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; + exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; + exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; } }); -// ../../../node_modules/@smithy/types/dist-cjs/client.js -var require_client = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/client.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +var require_NodeUseFipsEndpointConfigOptions = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs(); + exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; + exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; + exports.DEFAULT_USE_FIPS_ENDPOINT = false; + exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; } }); -// ../../../node_modules/@smithy/types/dist-cjs/command.js -var require_command = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/command.js"(exports) { +// ../../../node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js +var require_normalizeProvider = __commonJS({ + "../../../node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.normalizeProvider = void 0; + var normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; + }; + exports.normalizeProvider = normalizeProvider; } }); -// ../../../node_modules/@smithy/types/dist-cjs/connection/config.js -var require_config = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/config.js"(exports) { +// ../../../node_modules/@aws-sdk/util-middleware/dist-cjs/index.js +var require_dist_cjs2 = __commonJS({ + "../../../node_modules/@aws-sdk/util-middleware/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_normalizeProvider(), exports); } }); -// ../../../node_modules/@smithy/types/dist-cjs/connection/manager.js -var require_manager = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/manager.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +var require_resolveCustomEndpointsConfig = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveCustomEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var resolveCustomEndpointsConfig = (input) => { + var _a, _b; + const { endpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), + isCustomEndpoint: true, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false) + }; + }; + exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; } }); -// ../../../node_modules/@smithy/types/dist-cjs/connection/pool.js -var require_pool = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/pool.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +var require_getEndpointFromRegion = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointFromRegion = void 0; + var getEndpointFromRegion = async (input) => { + var _a; + const { tls = true } = input; + const region = await input.region(); + const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!dnsHostRegex.test(region)) { + throw new Error("Invalid region in client config"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; + if (!hostname) { + throw new Error("Cannot resolve hostname from client config"); + } + return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); + }; + exports.getEndpointFromRegion = getEndpointFromRegion; } }); -// ../../../node_modules/@smithy/types/dist-cjs/connection/index.js -var require_connection = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/connection/index.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +var require_resolveEndpointsConfig = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config(), exports); - tslib_1.__exportStar(require_manager(), exports); - tslib_1.__exportStar(require_pool(), exports); + exports.resolveEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var getEndpointFromRegion_1 = require_getEndpointFromRegion(); + var resolveEndpointsConfig = (input) => { + var _a, _b; + const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)((_a = input.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false); + const { endpoint, useFipsEndpoint, urlParser } = input; + return { + ...input, + tls: (_b = input.tls) !== null && _b !== void 0 ? _b : true, + endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: !!endpoint, + useDualstackEndpoint + }; + }; + exports.resolveEndpointsConfig = resolveEndpointsConfig; } }); -// ../../../node_modules/@smithy/types/dist-cjs/crypto.js -var require_crypto = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/crypto.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js +var require_endpointsConfig = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports); + tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports); + tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports); + tslib_1.__exportStar(require_resolveEndpointsConfig(), exports); } }); -// ../../../node_modules/@smithy/types/dist-cjs/encode.js -var require_encode = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/encode.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js +var require_config = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; + exports.REGION_ENV_NAME = "AWS_REGION"; + exports.REGION_INI_NAME = "region"; + exports.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports.REGION_INI_NAME], + default: () => { + throw new Error("Region is missing"); + } + }; + exports.NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: "credentials" + }; } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoint.js -var require_endpoint = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoint.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +var require_isFipsRegion = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointURLScheme = void 0; - var EndpointURLScheme; - (function(EndpointURLScheme2) { - EndpointURLScheme2["HTTP"] = "http"; - EndpointURLScheme2["HTTPS"] = "https"; - })(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {})); + exports.isFipsRegion = void 0; + var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); + exports.isFipsRegion = isFipsRegion; } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js -var require_EndpointRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js +var require_getRealRegion = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRealRegion = void 0; + var isFipsRegion_1 = require_isFipsRegion(); + var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region; + exports.getRealRegion = getRealRegion; } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js -var require_ErrorRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +var require_resolveRegionConfig = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveRegionConfig = void 0; + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); + var resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error("Region is missing"); + } + return { + ...input, + region: async () => { + if (typeof region === "string") { + return (0, getRealRegion_1.getRealRegion)(region); + } + const providedRegion = await region(); + return (0, getRealRegion_1.getRealRegion)(providedRegion); + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === "string" ? region : await region(); + if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + return true; + } + return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); + } + }; + }; + exports.resolveRegionConfig = resolveRegionConfig; } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js -var require_RuleSetObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js +var require_regionConfig = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_config(), exports); + tslib_1.__exportStar(require_resolveRegionConfig(), exports); } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/shared.js -var require_shared = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/shared.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js +var require_PartitionHash = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js -var require_TreeRuleObject = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js +var require_RegionHash = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/types/dist-cjs/endpoints/index.js -var require_endpoints = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/endpoints/index.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +var require_getHostnameFromVariants = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EndpointRuleObject(), exports); - tslib_1.__exportStar(require_ErrorRuleObject(), exports); - tslib_1.__exportStar(require_RuleSetObject(), exports); - tslib_1.__exportStar(require_shared(), exports); - tslib_1.__exportStar(require_TreeRuleObject(), exports); + exports.getHostnameFromVariants = void 0; + var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; + }; + exports.getHostnameFromVariants = getHostnameFromVariants; } }); -// ../../../node_modules/@smithy/types/dist-cjs/eventStream.js -var require_eventStream = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/eventStream.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +var require_getResolvedHostname = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedHostname = void 0; + var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0; + exports.getResolvedHostname = getResolvedHostname; } }); -// ../../../node_modules/@smithy/types/dist-cjs/http.js -var require_http = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/http.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +var require_getResolvedPartition = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.FieldPosition = void 0; - var FieldPosition; - (function(FieldPosition2) { - FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER"; - FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER"; - })(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {})); + exports.getResolvedPartition = void 0; + var getResolvedPartition = (region, { partitionHash }) => { + var _a; + return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; + }; + exports.getResolvedPartition = getResolvedPartition; } }); -// ../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js -var require_awsCredentialIdentity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +var require_getResolvedSigningRegion = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getResolvedSigningRegion = void 0; + var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } + }; + exports.getResolvedSigningRegion = getResolvedSigningRegion; } }); -// ../../../node_modules/@smithy/types/dist-cjs/identity/identity.js -var require_identity = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/identity.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +var require_getRegionInfo = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRegionInfo = void 0; + var getHostnameFromVariants_1 = require_getHostnameFromVariants(); + var getResolvedHostname_1 = require_getResolvedHostname(); + var getResolvedPartition_1 = require_getResolvedPartition(); + var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); + var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e, _f; + const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; + const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); + const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); + const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); + if (hostname === void 0) { + throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); + } + const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { + signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint + }); + return { + partition, + signingService, + hostname, + ...signingRegion && { signingRegion }, + ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + signingService: regionHash[resolvedRegion].signingService + } + }; + }; + exports.getRegionInfo = getRegionInfo; } }); -// ../../../node_modules/@smithy/types/dist-cjs/identity/index.js -var require_identity2 = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/identity/index.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js +var require_regionInfo = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_awsCredentialIdentity(), exports); - tslib_1.__exportStar(require_identity(), exports); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/logger.js -var require_logger = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/logger.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/middleware.js -var require_middleware = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/middleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/pagination.js -var require_pagination = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/pagination.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/profile.js -var require_profile = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/profile.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/response.js -var require_response = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/response.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/retry.js -var require_retry = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/retry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/serde.js -var require_serde = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/serde.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/shapes.js -var require_shapes = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/shapes.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/signature.js -var require_signature = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/signature.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/stream.js -var require_stream = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/stream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/transfer.js -var require_transfer = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/transfer.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.RequestHandlerProtocol = void 0; - var RequestHandlerProtocol; - (function(RequestHandlerProtocol2) { - RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; - RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; - RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; - })(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {})); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/uri.js -var require_uri = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/uri.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/types/dist-cjs/util.js -var require_util = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/util.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + tslib_1.__exportStar(require_PartitionHash(), exports); + tslib_1.__exportStar(require_RegionHash(), exports); + tslib_1.__exportStar(require_getRegionInfo(), exports); } }); -// ../../../node_modules/@smithy/types/dist-cjs/waiter.js -var require_waiter = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/waiter.js"(exports) { +// ../../../node_modules/@aws-sdk/config-resolver/dist-cjs/index.js +var require_dist_cjs3 = __commonJS({ + "../../../node_modules/@aws-sdk/config-resolver/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_endpointsConfig(), exports); + tslib_1.__exportStar(require_regionConfig(), exports); + tslib_1.__exportStar(require_regionInfo(), exports); } }); -// ../../../node_modules/@smithy/types/dist-cjs/index.js -var require_dist_cjs = __commonJS({ - "../../../node_modules/@smithy/types/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/FieldPosition.js +var require_FieldPosition = __commonJS({ + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/FieldPosition.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_abort(), exports); - tslib_1.__exportStar(require_auth(), exports); - tslib_1.__exportStar(require_checksum(), exports); - tslib_1.__exportStar(require_client(), exports); - tslib_1.__exportStar(require_command(), exports); - tslib_1.__exportStar(require_connection(), exports); - tslib_1.__exportStar(require_crypto(), exports); - tslib_1.__exportStar(require_encode(), exports); - tslib_1.__exportStar(require_endpoint(), exports); - tslib_1.__exportStar(require_endpoints(), exports); - tslib_1.__exportStar(require_eventStream(), exports); - tslib_1.__exportStar(require_http(), exports); - tslib_1.__exportStar(require_identity2(), exports); - tslib_1.__exportStar(require_logger(), exports); - tslib_1.__exportStar(require_middleware(), exports); - tslib_1.__exportStar(require_pagination(), exports); - tslib_1.__exportStar(require_profile(), exports); - tslib_1.__exportStar(require_response(), exports); - tslib_1.__exportStar(require_retry(), exports); - tslib_1.__exportStar(require_serde(), exports); - tslib_1.__exportStar(require_shapes(), exports); - tslib_1.__exportStar(require_signature(), exports); - tslib_1.__exportStar(require_stream(), exports); - tslib_1.__exportStar(require_transfer(), exports); - tslib_1.__exportStar(require_uri(), exports); - tslib_1.__exportStar(require_util(), exports); - tslib_1.__exportStar(require_waiter(), exports); + exports.FieldPosition = void 0; + var FieldPosition; + (function(FieldPosition2) { + FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER"; + FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER"; + })(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {})); } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/Field.js var require_Field = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js"(exports) { + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/Field.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Field = void 0; - var types_1 = require_dist_cjs(); + var FieldPosition_1 = require_FieldPosition(); var Field = class { - constructor({ name, kind = types_1.FieldPosition.HEADER, values = [] }) { + constructor({ name, kind = FieldPosition_1.FieldPosition.HEADER, values = [] }) { this.name = name; this.kind = kind; this.values = values; @@ -1707,9 +1762,9 @@ var require_Field = __commonJS({ } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/Fields.js var require_Fields = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js"(exports) { + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/Fields.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Fields = void 0; @@ -1736,17 +1791,17 @@ var require_Fields = __commonJS({ } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js var require_httpHandler = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js"(exports) { + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js var require_httpRequest = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js"(exports) { + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpRequest = void 0; @@ -1793,9 +1848,9 @@ var require_httpRequest = __commonJS({ } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js var require_httpResponse = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js"(exports) { + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpResponse = void 0; @@ -1817,9 +1872,9 @@ var require_httpResponse = __commonJS({ } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js var require_isValidHostname = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js"(exports) { + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidHostname = void 0; @@ -1831,6358 +1886,5919 @@ var require_isValidHostname = __commonJS({ } }); -// ../../../node_modules/@smithy/protocol-http/dist-cjs/types.js -var require_types = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/protocol-http/dist-cjs/index.js -var require_dist_cjs2 = __commonJS({ - "../../../node_modules/@smithy/protocol-http/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/protocol-http/dist-cjs/index.js +var require_dist_cjs4 = __commonJS({ + "../../../node_modules/@aws-sdk/protocol-http/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); tslib_1.__exportStar(require_Field(), exports); + tslib_1.__exportStar(require_FieldPosition(), exports); tslib_1.__exportStar(require_Fields(), exports); tslib_1.__exportStar(require_httpHandler(), exports); tslib_1.__exportStar(require_httpRequest(), exports); tslib_1.__exportStar(require_httpResponse(), exports); tslib_1.__exportStar(require_isValidHostname(), exports); - tslib_1.__exportStar(require_types(), exports); } }); -// ../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js -var require_dist_cjs3 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js +var require_dist_cjs5 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; - var protocol_http_1 = require_dist_cjs2(); - function resolveHostHeaderConfig(input) { - return input; + exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var CONTENT_LENGTH_HEADER = "content-length"; + function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request2 = args.request; + if (protocol_http_1.HttpRequest.isInstance(request2)) { + const { body, headers } = request2; + if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request2.headers = { + ...request2.headers, + [CONTENT_LENGTH_HEADER]: String(length) + }; + } catch (error) { + } + } + } + return next({ + ...args, + request: request2 + }); + }; } - exports.resolveHostHeaderConfig = resolveHostHeaderConfig; - var hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const { request: request2 } = args; - const { handlerProtocol = "" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf("h2") >= 0 && !request2.headers[":authority"]) { - delete request2.headers["host"]; - request2.headers[":authority"] = ""; - } else if (!request2.headers["host"]) { - let host = request2.hostname; - if (request2.port != null) - host += `:${request2.port}`; - request2.headers["host"] = host; - } - return next(args); - }; - exports.hostHeaderMiddleware = hostHeaderMiddleware; - exports.hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", + exports.contentLengthMiddleware = contentLengthMiddleware; + exports.contentLengthMiddlewareOptions = { step: "build", - priority: "low", - tags: ["HOST"], + tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], + name: "contentLengthMiddleware", override: true }; - var getHostHeaderPlugin = (options) => ({ + var getContentLengthPlugin = (options) => ({ applyToStack: (clientStack) => { - clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); } }); - exports.getHostHeaderPlugin = getHostHeaderPlugin; + exports.getContentLengthPlugin = getContentLengthPlugin; } }); -// ../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js -var require_loggerMiddleware = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/service-customizations/s3.js +var require_s3 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/service-customizations/s3.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; - var loggerMiddleware = () => (next, context) => async (args) => { - var _a, _b; - try { - const response = await next(args); - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog !== null && overrideInputFilterSensitiveLog !== void 0 ? overrideInputFilterSensitiveLog : context.inputFilterSensitiveLog; - const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog !== null && overrideOutputFilterSensitiveLog !== void 0 ? overrideOutputFilterSensitiveLog : context.outputFilterSensitiveLog; - const { $metadata, ...outputWithoutMetadata } = response.output; - (_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, { - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata - }); - return response; - } catch (error) { - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog !== null && overrideInputFilterSensitiveLog !== void 0 ? overrideInputFilterSensitiveLog : context.inputFilterSensitiveLog; - (_b = logger === null || logger === void 0 ? void 0 : logger.error) === null || _b === void 0 ? void 0 : _b.call(logger, { - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - error, - metadata: error.$metadata - }); - throw error; + exports.isArnBucketName = exports.isDnsCompatibleBucketName = exports.S3_HOSTNAME_PATTERN = exports.DOT_PATTERN = exports.resolveParamsForS3 = void 0; + var resolveParamsForS3 = async (endpointParams) => { + const bucket = (endpointParams === null || endpointParams === void 0 ? void 0 : endpointParams.Bucket) || ""; + if (typeof endpointParams.Bucket === "string") { + endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); } + if ((0, exports.isArnBucketName)(bucket)) { + if (endpointParams.ForcePathStyle === true) { + throw new Error("Path-style addressing cannot be used with ARN buckets"); + } + } else if (!(0, exports.isDnsCompatibleBucketName)(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) { + endpointParams.ForcePathStyle = true; + } + if (endpointParams.DisableMultiRegionAccessPoints) { + endpointParams.disableMultiRegionAccessPoints = true; + endpointParams.DisableMRAP = true; + } + return endpointParams; }; - exports.loggerMiddleware = loggerMiddleware; - exports.loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true - }; - var getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); + exports.resolveParamsForS3 = resolveParamsForS3; + var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; + var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; + var DOTS_PATTERN = /\.\./; + exports.DOT_PATTERN = /\./; + exports.S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./; + var isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); + exports.isDnsCompatibleBucketName = isDnsCompatibleBucketName; + var isArnBucketName = (bucketName) => { + const [arn, partition, service, region, account, typeOrId] = bucketName.split(":"); + const isArn = arn === "arn" && bucketName.split(":").length >= 6; + const isValidArn = [arn, partition, service, account, typeOrId].filter(Boolean).length === 5; + if (isArn && !isValidArn) { + throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); } - }); - exports.getLoggerPlugin = getLoggerPlugin; + return arn === "arn" && !!partition && !!service && !!account && !!typeOrId; + }; + exports.isArnBucketName = isArnBucketName; } }); -// ../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js -var require_dist_cjs4 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/service-customizations/index.js +var require_service_customizations = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/service-customizations/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_loggerMiddleware(), exports); - } -}); - -// ../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js -var require_dist_cjs5 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; - var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; - var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; - var recursionDetectionMiddleware = (options) => (next) => async (args) => { - const { request: request2 } = args; - if (!protocol_http_1.HttpRequest.isInstance(request2) || options.runtime !== "node" || request2.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { - return next(args); - } - const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - const traceId = process.env[ENV_TRACE_ID]; - const nonEmptyString = (str) => typeof str === "string" && str.length > 0; - if (nonEmptyString(functionName) && nonEmptyString(traceId)) { - request2.headers[TRACE_ID_HEADER_NAME] = traceId; - } - return next({ - ...args, - request: request2 - }); - }; - exports.recursionDetectionMiddleware = recursionDetectionMiddleware; - exports.addRecursionDetectionMiddlewareOptions = { - step: "build", - tags: ["RECURSION_DETECTION"], - name: "recursionDetectionMiddleware", - override: true, - priority: "low" - }; - var getRecursionDetectionPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); - } - }); - exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + tslib_1.__exportStar(require_s3(), exports); } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/ProviderError.js -var require_ProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/ProviderError.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +var require_createConfigValueProvider = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.ProviderError = void 0; - var ProviderError = class extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = "ProviderError"; - Object.setPrototypeOf(this, ProviderError.prototype); - } - static from(error, tryNextLink = true) { - return Object.assign(new this(error.message, tryNextLink), error); + exports.createConfigValueProvider = void 0; + var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { + const configProvider = async () => { + var _a; + const configValue = (_a = config[configKey]) !== null && _a !== void 0 ? _a : config[canonicalEndpointParamKey]; + if (typeof configValue === "function") { + return configValue(); + } + return configValue; + }; + if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { + return async () => { + const endpoint = await configProvider(); + if (endpoint && typeof endpoint === "object") { + if ("url" in endpoint) { + return endpoint.url.href; + } + if ("hostname" in endpoint) { + const { protocol, hostname, port, path } = endpoint; + return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; + } + } + return endpoint; + }; } + return configProvider; }; - exports.ProviderError = ProviderError; + exports.createConfigValueProvider = createConfigValueProvider; } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js -var require_CredentialsProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +var require_getEndpointFromInstructions = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.CredentialsProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var CredentialsProviderError = class extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, CredentialsProviderError.prototype); + exports.resolveParams = exports.getEndpointFromInstructions = void 0; + var service_customizations_1 = require_service_customizations(); + var createConfigValueProvider_1 = require_createConfigValueProvider(); + var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => { + const endpointParams = await (0, exports.resolveParams)(commandInput, instructionsSupplier, clientConfig); + if (typeof clientConfig.endpointProvider !== "function") { + throw new Error("config.endpointProvider is not set."); } + const endpoint = clientConfig.endpointProvider(endpointParams, context); + return endpoint; }; - exports.CredentialsProviderError = CredentialsProviderError; - } -}); - -// ../../../node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js -var require_TokenProviderError = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.TokenProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var TokenProviderError = class extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "TokenProviderError"; - Object.setPrototypeOf(this, TokenProviderError.prototype); + exports.getEndpointFromInstructions = getEndpointFromInstructions; + var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { + var _a; + const endpointParams = {}; + const instructions = ((_a = instructionsSupplier === null || instructionsSupplier === void 0 ? void 0 : instructionsSupplier.getEndpointParameterInstructions) === null || _a === void 0 ? void 0 : _a.call(instructionsSupplier)) || {}; + for (const [name, instruction] of Object.entries(instructions)) { + switch (instruction.type) { + case "staticContextParams": + endpointParams[name] = instruction.value; + break; + case "contextParams": + endpointParams[name] = commandInput[instruction.name]; + break; + case "clientContextParams": + case "builtInParams": + endpointParams[name] = await (0, createConfigValueProvider_1.createConfigValueProvider)(instruction.name, name, clientConfig)(); + break; + default: + throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); + } + } + if (Object.keys(instructions).length === 0) { + Object.assign(endpointParams, clientConfig); + } + if (String(clientConfig.serviceId).toLowerCase() === "s3") { + await (0, service_customizations_1.resolveParamsForS3)(endpointParams); } + return endpointParams; }; - exports.TokenProviderError = TokenProviderError; + exports.resolveParams = resolveParams; } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/chain.js -var require_chain = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/chain.js"(exports) { +// ../../../node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js +var require_dist_cjs6 = __commonJS({ + "../../../node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.chain = void 0; - var ProviderError_1 = require_ProviderError(); - function chain(...providers) { - return () => { - let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); - for (const provider of providers) { - promise = promise.catch((err) => { - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { - return provider(); - } - throw err; - }); + exports.parseQueryString = void 0; + function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } else if (Array.isArray(query[key])) { + query[key].push(value); + } else { + query[key] = [query[key], value]; + } } - return promise; - }; + } + return query; } - exports.chain = chain; + exports.parseQueryString = parseQueryString; } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/fromStatic.js -var require_fromStatic = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/fromStatic.js"(exports) { +// ../../../node_modules/@aws-sdk/url-parser/dist-cjs/index.js +var require_dist_cjs7 = __commonJS({ + "../../../node_modules/@aws-sdk/url-parser/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromStatic = void 0; - var fromStatic = (staticValue) => () => Promise.resolve(staticValue); - exports.fromStatic = fromStatic; + exports.parseUrl = void 0; + var querystring_parser_1 = require_dist_cjs6(); + var parseUrl = (url2) => { + if (typeof url2 === "string") { + return (0, exports.parseUrl)(new URL(url2)); + } + const { hostname, pathname, port, protocol, search } = url2; + let query; + if (search) { + query = (0, querystring_parser_1.parseQueryString)(search); + } + return { + hostname, + port: port ? parseInt(port) : void 0, + protocol, + path: pathname, + query + }; + }; + exports.parseUrl = parseUrl; } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/memoize.js -var require_memoize = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/memoize.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +var require_toEndpointV1 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.memoize = void 0; - var memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - let isConstant = false; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - isConstant = false; - } finally { - pending = void 0; + exports.toEndpointV1 = void 0; + var url_parser_1 = require_dist_cjs7(); + var toEndpointV1 = (endpoint) => { + if (typeof endpoint === "object") { + if ("url" in endpoint) { + return (0, url_parser_1.parseUrl)(endpoint.url); } - return resolved; - }; - if (isExpired === void 0) { - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - return resolved; - }; + return endpoint; } - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; + return (0, url_parser_1.parseUrl)(endpoint); }; - exports.memoize = memoize; + exports.toEndpointV1 = toEndpointV1; } }); -// ../../../node_modules/@smithy/property-provider/dist-cjs/index.js -var require_dist_cjs6 = __commonJS({ - "../../../node_modules/@smithy/property-provider/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/index.js +var require_adaptors = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/adaptors/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_CredentialsProviderError(), exports); - tslib_1.__exportStar(require_ProviderError(), exports); - tslib_1.__exportStar(require_TokenProviderError(), exports); - tslib_1.__exportStar(require_chain(), exports); - tslib_1.__exportStar(require_fromStatic(), exports); - tslib_1.__exportStar(require_memoize(), exports); + tslib_1.__exportStar(require_getEndpointFromInstructions(), exports); + tslib_1.__exportStar(require_toEndpointV1(), exports); } }); -// ../../../node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js -var tslib_es6_exports2 = {}; -__export(tslib_es6_exports2, { - __assign: () => __assign2, - __asyncDelegator: () => __asyncDelegator2, - __asyncGenerator: () => __asyncGenerator2, - __asyncValues: () => __asyncValues2, - __await: () => __await2, - __awaiter: () => __awaiter2, - __classPrivateFieldGet: () => __classPrivateFieldGet2, - __classPrivateFieldSet: () => __classPrivateFieldSet2, - __createBinding: () => __createBinding2, - __decorate: () => __decorate2, - __exportStar: () => __exportStar2, - __extends: () => __extends2, - __generator: () => __generator2, - __importDefault: () => __importDefault2, - __importStar: () => __importStar2, - __makeTemplateObject: () => __makeTemplateObject2, - __metadata: () => __metadata2, - __param: () => __param2, - __read: () => __read2, - __rest: () => __rest2, - __spread: () => __spread2, - __spreadArrays: () => __spreadArrays2, - __values: () => __values2 +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/endpointMiddleware.js +var require_endpointMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/endpointMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.endpointMiddleware = void 0; + var getEndpointFromInstructions_1 = require_getEndpointFromInstructions(); + var endpointMiddleware = ({ config, instructions }) => { + return (next, context) => async (args) => { + var _a, _b; + const endpoint = await (0, getEndpointFromInstructions_1.getEndpointFromInstructions)(args.input, { + getEndpointParameterInstructions() { + return instructions; + } + }, { ...config }, context); + context.endpointV2 = endpoint; + context.authSchemes = (_a = endpoint.properties) === null || _a === void 0 ? void 0 : _a.authSchemes; + const authScheme = (_b = context.authSchemes) === null || _b === void 0 ? void 0 : _b[0]; + if (authScheme) { + context["signing_region"] = authScheme.signingRegion; + context["signing_service"] = authScheme.signingName; + } + return next({ + ...args + }); + }; + }; + exports.endpointMiddleware = endpointMiddleware; + } }); -function __extends2(d, b) { - extendStatics2(d, b); - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} -function __rest2(s, e) { - var t = {}; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} -function __decorate2(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} -function __param2(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; -} -function __metadata2(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") - return Reflect.metadata(metadataKey, metadataValue); -} -function __awaiter2(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator["throw"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} -function __generator2(thisArg, body) { - var _ = { label: 0, sent: function() { - if (t[0] & 1) - throw t[1]; - return t[1]; - }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { - return this; - }), g; - function verb(n) { - return function(v) { - return step([n, v]); - }; - } - function step(op) { - if (f) - throw new TypeError("Generator is already executing."); - while (_) - try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) - return t; - if (y = 0, t) - op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) - _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) - throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } -} -function __createBinding2(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; -} -function __exportStar2(m, exports) { - for (var p in m) - if (p !== "default" && !exports.hasOwnProperty(p)) - exports[p] = m[p]; -} -function __values2(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) - return m.call(o); - if (o && typeof o.length === "number") - return { - next: function() { - if (o && i >= o.length) - o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} -function __read2(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) - return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) - ar.push(r.value); - } catch (error) { - e = { error }; - } finally { - try { - if (r && !r.done && (m = i["return"])) - m.call(i); - } finally { - if (e) - throw e.error; - } - } - return ar; -} -function __spread2() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read2(arguments[i])); - return ar; -} -function __spreadArrays2() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) - s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} -function __await2(v) { - return this instanceof __await2 ? (this.v = v, this) : new __await2(v); -} -function __asyncGenerator2(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function verb(n) { - if (g[n]) - i[n] = function(v) { - return new Promise(function(a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } - } - function step(r) { - r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - function fulfill(value) { - resume("next", value); - } - function reject(value) { - resume("throw", value); - } - function settle(f, v) { - if (f(v), q.shift(), q.length) - resume(q[0][0], q[0][1]); - } -} -function __asyncDelegator2(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function(e) { - throw e; - }), verb("return"), i[Symbol.iterator] = function() { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function(v) { - return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v; - } : f; - } -} -function __asyncValues2(o) { - if (!Symbol.asyncIterator) - throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function(v) { - return new Promise(function(resolve, reject) { - v = o[n](v), settle(resolve, reject, v.done, v.value); - }); - }; - } - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v2) { - resolve({ value: v2, done: d }); - }, reject); - } -} -function __makeTemplateObject2(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, "raw", { value: raw }); - } else { - cooked.raw = raw; - } - return cooked; -} -function __importStar2(mod) { - if (mod && mod.__esModule) - return mod; - var result = {}; - if (mod != null) { - for (var k in mod) - if (Object.hasOwnProperty.call(mod, k)) - result[k] = mod[k]; - } - result.default = mod; - return result; -} -function __importDefault2(mod) { - return mod && mod.__esModule ? mod : { default: mod }; -} -function __classPrivateFieldGet2(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} -function __classPrivateFieldSet2(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} -var extendStatics2, __assign2; -var init_tslib_es62 = __esm({ - "../../../node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js"() { - extendStatics2 = function(d, b) { - extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { - d2.__proto__ = b2; - } || function(d2, b2) { - for (var p in b2) - if (b2.hasOwnProperty(p)) - d2[p] = b2[p]; - }; - return extendStatics2(d, b); - }; - __assign2 = function() { - __assign2 = Object.assign || function __assign3(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign2.apply(this, arguments); - }; - } -}); - -// ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js -var require_pureJs = __commonJS({ - "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = exports.fromUtf8 = void 0; - var fromUtf8 = (input) => { - const bytes = []; - for (let i = 0, len = input.length; i < len; i++) { - const value = input.charCodeAt(i); - if (value < 128) { - bytes.push(value); - } else if (value < 2048) { - bytes.push(value >> 6 | 192, value & 63 | 128); - } else if (i + 1 < input.length && (value & 64512) === 55296 && (input.charCodeAt(i + 1) & 64512) === 56320) { - const surrogatePair = 65536 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023); - bytes.push(surrogatePair >> 18 | 240, surrogatePair >> 12 & 63 | 128, surrogatePair >> 6 & 63 | 128, surrogatePair & 63 | 128); - } else { - bytes.push(value >> 12 | 224, value >> 6 & 63 | 128, value & 63 | 128); - } - } - return Uint8Array.from(bytes); - }; - exports.fromUtf8 = fromUtf8; - var toUtf8 = (input) => { - let decoded = ""; - for (let i = 0, len = input.length; i < len; i++) { - const byte = input[i]; - if (byte < 128) { - decoded += String.fromCharCode(byte); - } else if (192 <= byte && byte < 224) { - const nextByte = input[++i]; - decoded += String.fromCharCode((byte & 31) << 6 | nextByte & 63); - } else if (240 <= byte && byte < 365) { - const surrogatePair = [byte, input[++i], input[++i], input[++i]]; - const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%"); - decoded += decodeURIComponent(encoded); - } else { - decoded += String.fromCharCode((byte & 15) << 12 | (input[++i] & 63) << 6 | input[++i] & 63); - } - } - return decoded; - }; - exports.toUtf8 = toUtf8; - } -}); - -// ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js -var require_whatwgEncodingApi = __commonJS({ - "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = exports.fromUtf8 = void 0; - function fromUtf8(input) { - return new TextEncoder().encode(input); - } - exports.fromUtf8 = fromUtf8; - function toUtf8(input) { - return new TextDecoder("utf-8").decode(input); - } - exports.toUtf8 = toUtf8; - } -}); - -// ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js -var require_dist_cjs7 = __commonJS({ - "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = exports.fromUtf8 = void 0; - var pureJs_1 = require_pureJs(); - var whatwgEncodingApi_1 = require_whatwgEncodingApi(); - var fromUtf8 = (input) => typeof TextEncoder === "function" ? (0, whatwgEncodingApi_1.fromUtf8)(input) : (0, pureJs_1.fromUtf8)(input); - exports.fromUtf8 = fromUtf8; - var toUtf8 = (input) => typeof TextDecoder === "function" ? (0, whatwgEncodingApi_1.toUtf8)(input) : (0, pureJs_1.toUtf8)(input); - exports.toUtf8 = toUtf8; - } -}); - -// ../../../node_modules/@aws-crypto/util/build/convertToBuffer.js -var require_convertToBuffer = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/convertToBuffer.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.convertToBuffer = void 0; - var util_utf8_browser_1 = require_dist_cjs7(); - var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { - return Buffer.from(input, "utf8"); - } : util_utf8_browser_1.fromUtf8; - function convertToBuffer(data) { - if (data instanceof Uint8Array) - return data; - if (typeof data === "string") { - return fromUtf8(data); - } - if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); - } - return new Uint8Array(data); - } - exports.convertToBuffer = convertToBuffer; - } -}); - -// ../../../node_modules/@aws-crypto/util/build/isEmptyData.js -var require_isEmptyData = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/isEmptyData.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isEmptyData = void 0; - function isEmptyData(data) { - if (typeof data === "string") { - return data.length === 0; - } - return data.byteLength === 0; - } - exports.isEmptyData = isEmptyData; - } -}); - -// ../../../node_modules/@aws-crypto/util/build/numToUint8.js -var require_numToUint8 = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/numToUint8.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.numToUint8 = void 0; - function numToUint8(num) { - return new Uint8Array([ - (num & 4278190080) >> 24, - (num & 16711680) >> 16, - (num & 65280) >> 8, - num & 255 - ]); - } - exports.numToUint8 = numToUint8; - } -}); - -// ../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js -var require_uint32ArrayFrom = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uint32ArrayFrom = void 0; - function uint32ArrayFrom(a_lookUpTable) { - if (!Uint32Array.from) { - var return_array = new Uint32Array(a_lookUpTable.length); - var a_index = 0; - while (a_index < a_lookUpTable.length) { - return_array[a_index] = a_lookUpTable[a_index]; - a_index += 1; - } - return return_array; - } - return Uint32Array.from(a_lookUpTable); - } - exports.uint32ArrayFrom = uint32ArrayFrom; - } -}); - -// ../../../node_modules/@aws-crypto/util/build/index.js -var require_build = __commonJS({ - "../../../node_modules/@aws-crypto/util/build/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0; - var convertToBuffer_1 = require_convertToBuffer(); - Object.defineProperty(exports, "convertToBuffer", { enumerable: true, get: function() { - return convertToBuffer_1.convertToBuffer; - } }); - var isEmptyData_1 = require_isEmptyData(); - Object.defineProperty(exports, "isEmptyData", { enumerable: true, get: function() { - return isEmptyData_1.isEmptyData; - } }); - var numToUint8_1 = require_numToUint8(); - Object.defineProperty(exports, "numToUint8", { enumerable: true, get: function() { - return numToUint8_1.numToUint8; - } }); - var uint32ArrayFrom_1 = require_uint32ArrayFrom(); - Object.defineProperty(exports, "uint32ArrayFrom", { enumerable: true, get: function() { - return uint32ArrayFrom_1.uint32ArrayFrom; - } }); - } -}); - -// ../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js -var require_aws_crc32 = __commonJS({ - "../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AwsCrc32 = void 0; - var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); - var util_1 = require_build(); - var index_1 = require_build2(); - var AwsCrc32 = ( - /** @class */ - function() { - function AwsCrc322() { - this.crc32 = new index_1.Crc32(); - } - AwsCrc322.prototype.update = function(toHash) { - if ((0, util_1.isEmptyData)(toHash)) - return; - this.crc32.update((0, util_1.convertToBuffer)(toHash)); - }; - AwsCrc322.prototype.digest = function() { - return tslib_1.__awaiter(this, void 0, void 0, function() { - return tslib_1.__generator(this, function(_a) { - return [2, (0, util_1.numToUint8)(this.crc32.digest())]; - }); - }); - }; - AwsCrc322.prototype.reset = function() { - this.crc32 = new index_1.Crc32(); - }; - return AwsCrc322; - }() - ); - exports.AwsCrc32 = AwsCrc32; - } -}); - -// ../../../node_modules/@aws-crypto/crc32/build/index.js -var require_build2 = __commonJS({ - "../../../node_modules/@aws-crypto/crc32/build/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.AwsCrc32 = exports.Crc32 = exports.crc32 = void 0; - var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); - var util_1 = require_build(); - function crc32(data) { - return new Crc32().update(data).digest(); - } - exports.crc32 = crc32; - var Crc32 = ( - /** @class */ - function() { - function Crc322() { - this.checksum = 4294967295; - } - Crc322.prototype.update = function(data) { - var e_1, _a; - try { - for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { - var byte = data_1_1.value; - this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255]; - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (data_1_1 && !data_1_1.done && (_a = data_1.return)) - _a.call(data_1); - } finally { - if (e_1) - throw e_1.error; - } - } - return this; - }; - Crc322.prototype.digest = function() { - return (this.checksum ^ 4294967295) >>> 0; - }; - return Crc322; - }() - ); - exports.Crc32 = Crc32; - var a_lookUpTable = [ - 0, - 1996959894, - 3993919788, - 2567524794, - 124634137, - 1886057615, - 3915621685, - 2657392035, - 249268274, - 2044508324, - 3772115230, - 2547177864, - 162941995, - 2125561021, - 3887607047, - 2428444049, - 498536548, - 1789927666, - 4089016648, - 2227061214, - 450548861, - 1843258603, - 4107580753, - 2211677639, - 325883990, - 1684777152, - 4251122042, - 2321926636, - 335633487, - 1661365465, - 4195302755, - 2366115317, - 997073096, - 1281953886, - 3579855332, - 2724688242, - 1006888145, - 1258607687, - 3524101629, - 2768942443, - 901097722, - 1119000684, - 3686517206, - 2898065728, - 853044451, - 1172266101, - 3705015759, - 2882616665, - 651767980, - 1373503546, - 3369554304, - 3218104598, - 565507253, - 1454621731, - 3485111705, - 3099436303, - 671266974, - 1594198024, - 3322730930, - 2970347812, - 795835527, - 1483230225, - 3244367275, - 3060149565, - 1994146192, - 31158534, - 2563907772, - 4023717930, - 1907459465, - 112637215, - 2680153253, - 3904427059, - 2013776290, - 251722036, - 2517215374, - 3775830040, - 2137656763, - 141376813, - 2439277719, - 3865271297, - 1802195444, - 476864866, - 2238001368, - 4066508878, - 1812370925, - 453092731, - 2181625025, - 4111451223, - 1706088902, - 314042704, - 2344532202, - 4240017532, - 1658658271, - 366619977, - 2362670323, - 4224994405, - 1303535960, - 984961486, - 2747007092, - 3569037538, - 1256170817, - 1037604311, - 2765210733, - 3554079995, - 1131014506, - 879679996, - 2909243462, - 3663771856, - 1141124467, - 855842277, - 2852801631, - 3708648649, - 1342533948, - 654459306, - 3188396048, - 3373015174, - 1466479909, - 544179635, - 3110523913, - 3462522015, - 1591671054, - 702138776, - 2966460450, - 3352799412, - 1504918807, - 783551873, - 3082640443, - 3233442989, - 3988292384, - 2596254646, - 62317068, - 1957810842, - 3939845945, - 2647816111, - 81470997, - 1943803523, - 3814918930, - 2489596804, - 225274430, - 2053790376, - 3826175755, - 2466906013, - 167816743, - 2097651377, - 4027552580, - 2265490386, - 503444072, - 1762050814, - 4150417245, - 2154129355, - 426522225, - 1852507879, - 4275313526, - 2312317920, - 282753626, - 1742555852, - 4189708143, - 2394877945, - 397917763, - 1622183637, - 3604390888, - 2714866558, - 953729732, - 1340076626, - 3518719985, - 2797360999, - 1068828381, - 1219638859, - 3624741850, - 2936675148, - 906185462, - 1090812512, - 3747672003, - 2825379669, - 829329135, - 1181335161, - 3412177804, - 3160834842, - 628085408, - 1382605366, - 3423369109, - 3138078467, - 570562233, - 1426400815, - 3317316542, - 2998733608, - 733239954, - 1555261956, - 3268935591, - 3050360625, - 752459403, - 1541320221, - 2607071920, - 3965973030, - 1969922972, - 40735498, - 2617837225, - 3943577151, - 1913087877, - 83908371, - 2512341634, - 3803740692, - 2075208622, - 213261112, - 2463272603, - 3855990285, - 2094854071, - 198958881, - 2262029012, - 4057260610, - 1759359992, - 534414190, - 2176718541, - 4139329115, - 1873836001, - 414664567, - 2282248934, - 4279200368, - 1711684554, - 285281116, - 2405801727, - 4167216745, - 1634467795, - 376229701, - 2685067896, - 3608007406, - 1308918612, - 956543938, - 2808555105, - 3495958263, - 1231636301, - 1047427035, - 2932959818, - 3654703836, - 1088359270, - 936918e3, - 2847714899, - 3736837829, - 1202900863, - 817233897, - 3183342108, - 3401237130, - 1404277552, - 615818150, - 3134207493, - 3453421203, - 1423857449, - 601450431, - 3009837614, - 3294710456, - 1567103746, - 711928724, - 3020668471, - 3272380065, - 1510334235, - 755167117 - ]; - var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable); - var aws_crc32_1 = require_aws_crc32(); - Object.defineProperty(exports, "AwsCrc32", { enumerable: true, get: function() { - return aws_crc32_1.AwsCrc32; - } }); + +// ../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js +var require_deserializerMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.deserializerMiddleware = void 0; + var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed + }; + } catch (error) { + Object.defineProperty(error, "$response", { + value: response + }); + if (!("$metadata" in error)) { + const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; + error.message += "\n " + hint; + } + throw error; + } + }; + exports.deserializerMiddleware = deserializerMiddleware; } }); -// ../../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js -var require_dist_cjs8 = __commonJS({ - "../../../node_modules/@smithy/util-hex-encoding/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js +var require_serializerMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.toHex = exports.fromHex = void 0; - var SHORT_TO_HEX = {}; - var HEX_TO_SHORT = {}; - for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = `0${encodedByte}`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; - } - function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error("Hex encoded strings must have an even number length"); + exports.serializerMiddleware = void 0; + var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + var _a; + const endpoint = ((_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; + if (!endpoint) { + throw new Error("No valid endpoint provider available."); } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.slice(i, i + 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } else { - throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + const request2 = await serializer(args.input, { ...options, endpoint }); + return next({ + ...args, + request: request2 + }); + }; + exports.serializerMiddleware = serializerMiddleware; + } +}); + +// ../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js +var require_serdePlugin = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; + var deserializerMiddleware_1 = require_deserializerMiddleware(); + var serializerMiddleware_1 = require_serializerMiddleware(); + exports.deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true + }; + exports.serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true + }; + function getSerdePlugin(config, serializer, deserializer) { + return { + applyToStack: (commandStack) => { + commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports.deserializerMiddlewareOption); + commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); } - } - return out; - } - exports.fromHex = fromHex; - function toHex(bytes) { - let out = ""; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; + }; } - exports.toHex = toHex; + exports.getSerdePlugin = getSerdePlugin; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js -var require_Int64 = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js +var require_dist_cjs8 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.Int64 = void 0; - var util_hex_encoding_1 = require_dist_cjs8(); - var Int64 = class { - constructor(bytes) { - this.bytes = bytes; - if (bytes.byteLength !== 8) { - throw new Error("Int64 buffers must be exactly 8 bytes"); - } - } - static fromNumber(number) { - if (number > 9223372036854776e3 || number < -9223372036854776e3) { - throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); - } - const bytes = new Uint8Array(8); - for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { - bytes[i] = remaining; - } - if (number < 0) { - negate(bytes); - } - return new Int64(bytes); - } - valueOf() { - const bytes = this.bytes.slice(0); - const negative = bytes[0] & 128; - if (negative) { - negate(bytes); - } - return parseInt((0, util_hex_encoding_1.toHex)(bytes), 16) * (negative ? -1 : 1); - } - toString() { - return String(this.valueOf()); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_deserializerMiddleware(), exports); + tslib_1.__exportStar(require_serdePlugin(), exports); + tslib_1.__exportStar(require_serializerMiddleware(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/getEndpointPlugin.js +var require_getEndpointPlugin = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/getEndpointPlugin.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointPlugin = exports.endpointMiddlewareOptions = void 0; + var middleware_serde_1 = require_dist_cjs8(); + var endpointMiddleware_1 = require_endpointMiddleware(); + exports.endpointMiddlewareOptions = { + step: "serialize", + tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], + name: "endpointV2Middleware", + override: true, + relation: "before", + toMiddleware: middleware_serde_1.serializerMiddlewareOption.name + }; + var getEndpointPlugin = (config, instructions) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, endpointMiddleware_1.endpointMiddleware)({ + config, + instructions + }), exports.endpointMiddlewareOptions); } + }); + exports.getEndpointPlugin = getEndpointPlugin; + } +}); + +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +var require_resolveEndpointConfig = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/resolveEndpointConfig.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveEndpointConfig = void 0; + var util_middleware_1 = require_dist_cjs2(); + var toEndpointV1_1 = require_toEndpointV1(); + var resolveEndpointConfig = (input) => { + var _a, _b, _c; + const tls = (_a = input.tls) !== null && _a !== void 0 ? _a : true; + const { endpoint } = input; + const customEndpointProvider = endpoint != null ? async () => (0, toEndpointV1_1.toEndpointV1)(await (0, util_middleware_1.normalizeProvider)(endpoint)()) : void 0; + const isCustomEndpoint = !!endpoint; + return { + ...input, + endpoint: customEndpointProvider, + tls, + isCustomEndpoint, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false), + useFipsEndpoint: (0, util_middleware_1.normalizeProvider)((_c = input.useFipsEndpoint) !== null && _c !== void 0 ? _c : false) + }; }; - exports.Int64 = Int64; - function negate(bytes) { - for (let i = 0; i < 8; i++) { - bytes[i] ^= 255; - } - for (let i = 7; i > -1; i--) { - bytes[i]++; - if (bytes[i] !== 0) - break; - } - } + exports.resolveEndpointConfig = resolveEndpointConfig; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js -var require_HeaderMarshaller = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/types.js +var require_types = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/types.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.HeaderMarshaller = void 0; - var util_hex_encoding_1 = require_dist_cjs8(); - var Int64_1 = require_Int64(); - var HeaderMarshaller = class { - constructor(toUtf8, fromUtf8) { - this.toUtf8 = toUtf8; - this.fromUtf8 = fromUtf8; - } - format(headers) { - const chunks = []; - for (const headerName of Object.keys(headers)) { - const bytes = this.fromUtf8(headerName); - chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); - } - const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); - let position = 0; - for (const chunk of chunks) { - out.set(chunk, position); - position += chunk.byteLength; - } - return out; - } - formatHeaderValue(header) { - switch (header.type) { - case "boolean": - return Uint8Array.from([header.value ? 0 : 1]); - case "byte": - return Uint8Array.from([2, header.value]); - case "short": - const shortView = new DataView(new ArrayBuffer(3)); - shortView.setUint8(0, 3); - shortView.setInt16(1, header.value, false); - return new Uint8Array(shortView.buffer); - case "integer": - const intView = new DataView(new ArrayBuffer(5)); - intView.setUint8(0, 4); - intView.setInt32(1, header.value, false); - return new Uint8Array(intView.buffer); - case "long": - const longBytes = new Uint8Array(9); - longBytes[0] = 5; - longBytes.set(header.value.bytes, 1); - return longBytes; - case "binary": - const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); - binView.setUint8(0, 6); - binView.setUint16(1, header.value.byteLength, false); - const binBytes = new Uint8Array(binView.buffer); - binBytes.set(header.value, 3); - return binBytes; - case "string": - const utf8Bytes = this.fromUtf8(header.value); - const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); - strView.setUint8(0, 7); - strView.setUint16(1, utf8Bytes.byteLength, false); - const strBytes = new Uint8Array(strView.buffer); - strBytes.set(utf8Bytes, 3); - return strBytes; - case "timestamp": - const tsBytes = new Uint8Array(9); - tsBytes[0] = 8; - tsBytes.set(Int64_1.Int64.fromNumber(header.value.valueOf()).bytes, 1); - return tsBytes; - case "uuid": - if (!UUID_PATTERN.test(header.value)) { - throw new Error(`Invalid UUID received: ${header.value}`); - } - const uuidBytes = new Uint8Array(17); - uuidBytes[0] = 9; - uuidBytes.set((0, util_hex_encoding_1.fromHex)(header.value.replace(/\-/g, "")), 1); - return uuidBytes; - } - } - parse(headers) { - const out = {}; - let position = 0; - while (position < headers.byteLength) { - const nameLength = headers.getUint8(position++); - const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength)); - position += nameLength; - switch (headers.getUint8(position++)) { - case 0: - out[name] = { - type: BOOLEAN_TAG, - value: true - }; - break; - case 1: - out[name] = { - type: BOOLEAN_TAG, - value: false - }; - break; - case 2: - out[name] = { - type: BYTE_TAG, - value: headers.getInt8(position++) - }; - break; - case 3: - out[name] = { - type: SHORT_TAG, - value: headers.getInt16(position, false) - }; - position += 2; - break; - case 4: - out[name] = { - type: INT_TAG, - value: headers.getInt32(position, false) - }; - position += 4; - break; - case 5: - out[name] = { - type: LONG_TAG, - value: new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)) - }; - position += 8; - break; - case 6: - const binaryLength = headers.getUint16(position, false); - position += 2; - out[name] = { - type: BINARY_TAG, - value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength) - }; - position += binaryLength; - break; - case 7: - const stringLength = headers.getUint16(position, false); - position += 2; - out[name] = { - type: STRING_TAG, - value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)) - }; - position += stringLength; - break; - case 8: - out[name] = { - type: TIMESTAMP_TAG, - value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()) - }; - position += 8; - break; - case 9: - const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16); - position += 16; - out[name] = { - type: UUID_TAG, - value: `${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(0, 4))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(4, 6))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(6, 8))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(8, 10))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(10))}` - }; - break; - default: - throw new Error(`Unrecognized header type tag`); - } - } - return out; + } +}); + +// ../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/index.js +var require_dist_cjs9 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-endpoint/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_adaptors(), exports); + tslib_1.__exportStar(require_endpointMiddleware(), exports); + tslib_1.__exportStar(require_getEndpointPlugin(), exports); + tslib_1.__exportStar(require_resolveEndpointConfig(), exports); + tslib_1.__exportStar(require_types(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +var require_dist_cjs10 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; + var protocol_http_1 = require_dist_cjs4(); + function resolveHostHeaderConfig(input) { + return input; + } + exports.resolveHostHeaderConfig = resolveHostHeaderConfig; + var hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const { request: request2 } = args; + const { handlerProtocol = "" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf("h2") >= 0 && !request2.headers[":authority"]) { + delete request2.headers["host"]; + request2.headers[":authority"] = ""; + } else if (!request2.headers["host"]) { + let host = request2.hostname; + if (request2.port != null) + host += `:${request2.port}`; + request2.headers["host"] = host; } + return next(args); }; - exports.HeaderMarshaller = HeaderMarshaller; - var HEADER_VALUE_TYPE; - (function(HEADER_VALUE_TYPE2) { - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp"; - HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid"; - })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); - var BOOLEAN_TAG = "boolean"; - var BYTE_TAG = "byte"; - var SHORT_TAG = "short"; - var INT_TAG = "integer"; - var LONG_TAG = "long"; - var BINARY_TAG = "binary"; - var STRING_TAG = "string"; - var TIMESTAMP_TAG = "timestamp"; - var UUID_TAG = "uuid"; - var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; + exports.hostHeaderMiddleware = hostHeaderMiddleware; + exports.hostHeaderMiddlewareOptions = { + name: "hostHeaderMiddleware", + step: "build", + priority: "low", + tags: ["HOST"], + override: true + }; + var getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); + } + }); + exports.getHostHeaderPlugin = getHostHeaderPlugin; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js -var require_splitMessage = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +var require_loggerMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitMessage = void 0; - var crc32_1 = require_build2(); - var PRELUDE_MEMBER_LENGTH = 4; - var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; - var CHECKSUM_LENGTH = 4; - var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; - function splitMessage({ byteLength, byteOffset, buffer }) { - if (byteLength < MINIMUM_MESSAGE_LENGTH) { - throw new Error("Provided message too short to accommodate event stream message overhead"); - } - const view = new DataView(buffer, byteOffset, byteLength); - const messageLength = view.getUint32(0, false); - if (byteLength !== messageLength) { - throw new Error("Reported message length does not match received message length"); - } - const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); - const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); - const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); - const checksummer = new crc32_1.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); - if (expectedPreludeChecksum !== checksummer.digest()) { - throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`); + exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; + var loggerMiddleware = () => (next, context) => async (args) => { + var _a, _b; + try { + const response = await next(args); + const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; + const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; + const inputFilterSensitiveLog = overrideInputFilterSensitiveLog !== null && overrideInputFilterSensitiveLog !== void 0 ? overrideInputFilterSensitiveLog : context.inputFilterSensitiveLog; + const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog !== null && overrideOutputFilterSensitiveLog !== void 0 ? overrideOutputFilterSensitiveLog : context.outputFilterSensitiveLog; + const { $metadata, ...outputWithoutMetadata } = response.output; + (_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, { + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata + }); + return response; + } catch (error) { + const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; + const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; + const inputFilterSensitiveLog = overrideInputFilterSensitiveLog !== null && overrideInputFilterSensitiveLog !== void 0 ? overrideInputFilterSensitiveLog : context.inputFilterSensitiveLog; + (_b = logger === null || logger === void 0 ? void 0 : logger.error) === null || _b === void 0 ? void 0 : _b.call(logger, { + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + error, + metadata: error.$metadata + }); + throw error; } - checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); - if (expectedMessageChecksum !== checksummer.digest()) { - throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`); + }; + exports.loggerMiddleware = loggerMiddleware; + exports.loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true + }; + var getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); } - return { - headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), - body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)) - }; - } - exports.splitMessage = splitMessage; + }); + exports.getLoggerPlugin = getLoggerPlugin; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js -var require_EventStreamCodec = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +var require_dist_cjs11 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.EventStreamCodec = void 0; - var crc32_1 = require_build2(); - var HeaderMarshaller_1 = require_HeaderMarshaller(); - var splitMessage_1 = require_splitMessage(); - var EventStreamCodec = class { - constructor(toUtf8, fromUtf8) { - this.headerMarshaller = new HeaderMarshaller_1.HeaderMarshaller(toUtf8, fromUtf8); - this.messageBuffer = []; - this.isEndOfStream = false; - } - feed(message) { - this.messageBuffer.push(this.decode(message)); - } - endOfStream() { - this.isEndOfStream = true; - } - getMessage() { - const message = this.messageBuffer.pop(); - const isEndOfStream = this.isEndOfStream; - return { - getMessage() { - return message; - }, - isEndOfStream() { - return isEndOfStream; - } - }; - } - getAvailableMessages() { - const messages = this.messageBuffer; - this.messageBuffer = []; - const isEndOfStream = this.isEndOfStream; - return { - getMessages() { - return messages; - }, - isEndOfStream() { - return isEndOfStream; - } - }; - } - encode({ headers: rawHeaders, body }) { - const headers = this.headerMarshaller.format(rawHeaders); - const length = headers.byteLength + body.byteLength + 16; - const out = new Uint8Array(length); - const view = new DataView(out.buffer, out.byteOffset, out.byteLength); - const checksum = new crc32_1.Crc32(); - view.setUint32(0, length, false); - view.setUint32(4, headers.byteLength, false); - view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false); - out.set(headers, 12); - out.set(body, headers.byteLength + 12); - view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false); - return out; - } - decode(message) { - const { headers, body } = (0, splitMessage_1.splitMessage)(message); - return { headers: this.headerMarshaller.parse(headers), body }; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_loggerMiddleware(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +var require_dist_cjs12 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; + var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; + var ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; + var recursionDetectionMiddleware = (options) => (next) => async (args) => { + const { request: request2 } = args; + if (!protocol_http_1.HttpRequest.isInstance(request2) || options.runtime !== "node" || request2.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + return next(args); } - formatHeaders(rawHeaders) { - return this.headerMarshaller.format(rawHeaders); + const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + const traceId = process.env[ENV_TRACE_ID]; + const nonEmptyString = (str) => typeof str === "string" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request2.headers[TRACE_ID_HEADER_NAME] = traceId; } + return next({ + ...args, + request: request2 + }); }; - exports.EventStreamCodec = EventStreamCodec; + exports.recursionDetectionMiddleware = recursionDetectionMiddleware; + exports.addRecursionDetectionMiddlewareOptions = { + step: "build", + tags: ["RECURSION_DETECTION"], + name: "recursionDetectionMiddleware", + override: true, + priority: "low" + }; + var getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); + } + }); + exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/Message.js -var require_Message = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/Message.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/config.js +var require_config2 = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/config.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; + var RETRY_MODES; + (function(RETRY_MODES2) { + RETRY_MODES2["STANDARD"] = "standard"; + RETRY_MODES2["ADAPTIVE"] = "adaptive"; + })(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); + exports.DEFAULT_MAX_ATTEMPTS = 3; + exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + } +}); + +// ../../../node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js +var require_constants = __commonJS({ + "../../../node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.NODEJS_TIMEOUT_ERROR_CODES = exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; + exports.CLOCK_SKEW_ERROR_CODES = [ + "AuthFailure", + "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", + "RequestTimeTooSkewed", + "SignatureDoesNotMatch" + ]; + exports.THROTTLING_ERROR_CODES = [ + "BandwidthLimitExceeded", + "EC2ThrottledException", + "LimitExceededException", + "PriorRequestNotComplete", + "ProvisionedThroughputExceededException", + "RequestLimitExceeded", + "RequestThrottled", + "RequestThrottledException", + "SlowDown", + "ThrottledException", + "Throttling", + "ThrottlingException", + "TooManyRequestsException", + "TransactionInProgressException" + ]; + exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; + exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js -var require_MessageDecoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js"(exports) { +// ../../../node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js +var require_dist_cjs13 = __commonJS({ + "../../../node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.MessageDecoderStream = void 0; - var MessageDecoderStream = class { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const bytes of this.options.inputStream) { - const decoded = this.options.decoder.decode(bytes); - yield decoded; + exports.isServerError = exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; + var constants_1 = require_constants(); + var isRetryableByTrait = (error) => error.$retryable !== void 0; + exports.isRetryableByTrait = isRetryableByTrait; + var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); + exports.isClockSkewError = isClockSkewError; + var isThrottlingError = (error) => { + var _a, _b; + return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; + }; + exports.isThrottlingError = isThrottlingError; + var isTransientError = (error) => { + var _a; + return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes((error === null || error === void 0 ? void 0 : error.code) || "") || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); + }; + exports.isTransientError = isTransientError; + var isServerError = (error) => { + var _a; + if (((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) !== void 0) { + const statusCode = error.$metadata.httpStatusCode; + if (500 <= statusCode && statusCode <= 599 && !(0, exports.isTransientError)(error)) { + return true; } + return false; } + return false; }; - exports.MessageDecoderStream = MessageDecoderStream; + exports.isServerError = isServerError; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js -var require_MessageEncoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/DefaultRateLimiter.js +var require_DefaultRateLimiter = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/DefaultRateLimiter.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.MessageEncoderStream = void 0; - var MessageEncoderStream = class { + exports.DefaultRateLimiter = void 0; + var service_error_classification_1 = require_dist_cjs13(); + var DefaultRateLimiter = class { constructor(options) { - this.options = options; + var _a, _b, _c, _d, _e; + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; + this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; + this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; + this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; + this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; } - [Symbol.asyncIterator]() { - return this.asyncIterator(); + getCurrentTimeInSeconds() { + return Date.now() / 1e3; } - async *asyncIterator() { - for await (const msg of this.options.messageStream) { - const encoded = this.options.encoder.encode(msg); - yield encoded; + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; } - if (this.options.includeEndFrame) { - yield new Uint8Array(0); + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; + await new Promise((resolve) => setTimeout(resolve, delay)); } + this.currentCapacity = this.currentCapacity - amount; } - }; - exports.MessageEncoderStream = MessageEncoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js -var require_SmithyMessageDecoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SmithyMessageDecoderStream = void 0; - var SmithyMessageDecoderStream = class { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; } - async *asyncIterator() { - for await (const message of this.options.messageStream) { - const deserialized = await this.options.deserializer(message); - if (deserialized === void 0) - continue; - yield deserialized; + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, service_error_classification_1.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); } - }; - exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream; - } -}); - -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js -var require_SmithyMessageEncoderStream = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SmithyMessageEncoderStream = void 0; - var SmithyMessageEncoderStream = class { - constructor(options) { - this.options = options; + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); } - [Symbol.asyncIterator]() { - return this.asyncIterator(); + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); } - async *asyncIterator() { - for await (const chunk of this.options.inputStream) { - const payloadBuf = this.options.serializer(chunk); - yield payloadBuf; + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; } } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } }; - exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream; + exports.DefaultRateLimiter = DefaultRateLimiter; } }); -// ../../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js -var require_dist_cjs9 = __commonJS({ - "../../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/constants.js +var require_constants2 = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EventStreamCodec(), exports); - tslib_1.__exportStar(require_HeaderMarshaller(), exports); - tslib_1.__exportStar(require_Int64(), exports); - tslib_1.__exportStar(require_Message(), exports); - tslib_1.__exportStar(require_MessageDecoderStream(), exports); - tslib_1.__exportStar(require_MessageEncoderStream(), exports); - tslib_1.__exportStar(require_SmithyMessageDecoderStream(), exports); - tslib_1.__exportStar(require_SmithyMessageEncoderStream(), exports); + exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; + exports.DEFAULT_RETRY_DELAY_BASE = 100; + exports.MAXIMUM_RETRY_DELAY = 20 * 1e3; + exports.THROTTLING_RETRY_DELAY_BASE = 500; + exports.INITIAL_RETRY_TOKENS = 500; + exports.RETRY_COST = 5; + exports.TIMEOUT_RETRY_COST = 10; + exports.NO_RETRY_INCREMENT = 1; + exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; + exports.REQUEST_HEADER = "amz-sdk-request"; } }); -// ../../../node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js -var require_normalizeProvider = __commonJS({ - "../../../node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +var require_defaultRetryBackoffStrategy = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/defaultRetryBackoffStrategy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.normalizeProvider = void 0; - var normalizeProvider = (input) => { - if (typeof input === "function") - return input; - const promisified = Promise.resolve(input); - return () => promisified; + exports.getDefaultRetryBackoffStrategy = void 0; + var constants_1 = require_constants2(); + var getDefaultRetryBackoffStrategy = () => { + let delayBase = constants_1.DEFAULT_RETRY_DELAY_BASE; + const computeNextBackoffDelay = (attempts) => { + return Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + }; + const setDelayBase = (delay) => { + delayBase = delay; + }; + return { + computeNextBackoffDelay, + setDelayBase + }; }; - exports.normalizeProvider = normalizeProvider; - } -}); - -// ../../../node_modules/@smithy/util-middleware/dist-cjs/index.js -var require_dist_cjs10 = __commonJS({ - "../../../node_modules/@smithy/util-middleware/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_normalizeProvider(), exports); + exports.getDefaultRetryBackoffStrategy = getDefaultRetryBackoffStrategy; } }); -// ../../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js -var require_dist_cjs11 = __commonJS({ - "../../../node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/defaultRetryToken.js +var require_defaultRetryToken = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/defaultRetryToken.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.isArrayBuffer = void 0; - var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; - exports.isArrayBuffer = isArrayBuffer; + exports.createDefaultRetryToken = void 0; + var constants_1 = require_constants2(); + var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => { + const getRetryCount = () => retryCount; + const getRetryDelay = () => Math.min(constants_1.MAXIMUM_RETRY_DELAY, retryDelay); + const getRetryCost = () => retryCost; + return { + getRetryCount, + getRetryDelay, + getRetryCost + }; + }; + exports.createDefaultRetryToken = createDefaultRetryToken; } }); -// ../../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js -var require_dist_cjs12 = __commonJS({ - "../../../node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/StandardRetryStrategy.js +var require_StandardRetryStrategy = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/StandardRetryStrategy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromString = exports.fromArrayBuffer = void 0; - var is_array_buffer_1 = require_dist_cjs11(); - var buffer_1 = require("buffer"); - var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { - throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + exports.StandardRetryStrategy = void 0; + var config_1 = require_config2(); + var constants_1 = require_constants2(); + var defaultRetryBackoffStrategy_1 = require_defaultRetryBackoffStrategy(); + var defaultRetryToken_1 = require_defaultRetryToken(); + var StandardRetryStrategy = class { + constructor(maxAttempts) { + this.maxAttempts = maxAttempts; + this.mode = config_1.RETRY_MODES.STANDARD; + this.capacity = constants_1.INITIAL_RETRY_TOKENS; + this.retryBackoffStrategy = (0, defaultRetryBackoffStrategy_1.getDefaultRetryBackoffStrategy)(); + this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; + } + async acquireInitialRetryToken(retryTokenScope) { + return (0, defaultRetryToken_1.createDefaultRetryToken)({ + retryDelay: constants_1.DEFAULT_RETRY_DELAY_BASE, + retryCount: 0 + }); + } + async refreshRetryTokenForRetry(token, errorInfo) { + const maxAttempts = await this.getMaxAttempts(); + if (this.shouldRetry(token, errorInfo, maxAttempts)) { + const errorType = errorInfo.errorType; + this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE); + const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); + const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; + const capacityCost = this.getCapacityCost(errorType); + this.capacity -= capacityCost; + return (0, defaultRetryToken_1.createDefaultRetryToken)({ + retryDelay, + retryCount: token.getRetryCount() + 1, + retryCost: capacityCost + }); + } + throw new Error("No retry token available"); } - return buffer_1.Buffer.from(input, offset, length); - }; - exports.fromArrayBuffer = fromArrayBuffer; - var fromString = (input, encoding) => { - if (typeof input !== "string") { - throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + recordSuccess(token) { + var _a; + this.capacity = Math.max(constants_1.INITIAL_RETRY_TOKENS, this.capacity + ((_a = token.getRetryCost()) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT)); + } + getCapacity() { + return this.capacity; + } + async getMaxAttempts() { + try { + return await this.maxAttemptsProvider(); + } catch (error) { + console.warn(`Max attempts provider could not resolve. Using default of ${config_1.DEFAULT_MAX_ATTEMPTS}`); + return config_1.DEFAULT_MAX_ATTEMPTS; + } + } + shouldRetry(tokenToRenew, errorInfo, maxAttempts) { + const attempts = tokenToRenew.getRetryCount(); + return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); + } + getCapacityCost(errorType) { + return errorType === "TRANSIENT" ? constants_1.TIMEOUT_RETRY_COST : constants_1.RETRY_COST; + } + isRetryableError(errorType) { + return errorType === "THROTTLING" || errorType === "TRANSIENT"; } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); }; - exports.fromString = fromString; + exports.StandardRetryStrategy = StandardRetryStrategy; } }); -// ../../../node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js -var require_fromUtf8 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/AdaptiveRetryStrategy.js +var require_AdaptiveRetryStrategy = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromUtf8 = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var fromUtf8 = (input) => { - const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); + exports.AdaptiveRetryStrategy = void 0; + var config_1 = require_config2(); + var DefaultRateLimiter_1 = require_DefaultRateLimiter(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + var AdaptiveRetryStrategy = class { + constructor(maxAttemptsProvider, options) { + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = config_1.RETRY_MODES.ADAPTIVE; + const { rateLimiter } = options !== null && options !== void 0 ? options : {}; + this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); + this.standardRetryStrategy = new StandardRetryStrategy_1.StandardRetryStrategy(maxAttemptsProvider); + } + async acquireInitialRetryToken(retryTokenScope) { + await this.rateLimiter.getSendToken(); + return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + this.rateLimiter.updateClientSendingRate(errorInfo); + return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + } + recordSuccess(token) { + this.rateLimiter.updateClientSendingRate({}); + this.standardRetryStrategy.recordSuccess(token); + } }; - exports.fromUtf8 = fromUtf8; + exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; } }); -// ../../../node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js -var require_toUint8Array = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/ConfiguredRetryStrategy.js +var require_ConfiguredRetryStrategy = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/ConfiguredRetryStrategy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUint8Array = void 0; - var fromUtf8_1 = require_fromUtf8(); - var toUint8Array = (data) => { - if (typeof data === "string") { - return (0, fromUtf8_1.fromUtf8)(data); + exports.ConfiguredRetryStrategy = void 0; + var constants_1 = require_constants2(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + var ConfiguredRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { + constructor(maxAttempts, computeNextBackoffDelay = constants_1.DEFAULT_RETRY_DELAY_BASE) { + super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); + if (typeof computeNextBackoffDelay === "number") { + this.computeNextBackoffDelay = () => computeNextBackoffDelay; + } else { + this.computeNextBackoffDelay = computeNextBackoffDelay; + } } - if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); + return token; } - return new Uint8Array(data); }; - exports.toUint8Array = toUint8Array; + exports.ConfiguredRetryStrategy = ConfiguredRetryStrategy; } }); -// ../../../node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js -var require_toUtf8 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/types.js +var require_types2 = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/types.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.toUtf8 = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); - exports.toUtf8 = toUtf8; } }); -// ../../../node_modules/@smithy/util-utf8/dist-cjs/index.js -var require_dist_cjs13 = __commonJS({ - "../../../node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-retry/dist-cjs/index.js +var require_dist_cjs14 = __commonJS({ + "../../../node_modules/@aws-sdk/util-retry/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromUtf8(), exports); - tslib_1.__exportStar(require_toUint8Array(), exports); - tslib_1.__exportStar(require_toUtf8(), exports); + tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports); + tslib_1.__exportStar(require_ConfiguredRetryStrategy(), exports); + tslib_1.__exportStar(require_DefaultRateLimiter(), exports); + tslib_1.__exportStar(require_StandardRetryStrategy(), exports); + tslib_1.__exportStar(require_config2(), exports); + tslib_1.__exportStar(require_constants2(), exports); + tslib_1.__exportStar(require_types2(), exports); } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/constants.js -var require_constants = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; - exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; - exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; - exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; - exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; - exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; - exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; - exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; - exports.REGION_SET_PARAM = "X-Amz-Region-Set"; - exports.AUTH_HEADER = "authorization"; - exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); - exports.DATE_HEADER = "date"; - exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; - exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); - exports.SHA256_HEADER = "x-amz-content-sha256"; - exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); - exports.HOST_HEADER = "host"; - exports.ALWAYS_UNSIGNABLE_HEADERS = { - authorization: true, - "cache-control": true, - connection: true, - expect: true, - from: true, - "keep-alive": true, - "max-forwards": true, - pragma: true, - referer: true, - te: true, - trailer: true, - "transfer-encoding": true, - upgrade: true, - "user-agent": true, - "x-amzn-trace-id": true - }; - exports.PROXY_HEADER_PATTERN = /^proxy-/; - exports.SEC_HEADER_PATTERN = /^sec-/; - exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; - exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; - exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; - exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; - exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; - exports.MAX_CACHE_SIZE = 50; - exports.KEY_TYPE_IDENTIFIER = "aws4_request"; - exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; +// ../../../node_modules/uuid/dist/esm-node/rng.js +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + import_crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; } -}); - -// ../../../node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js -var require_credentialDerivation = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; - var util_hex_encoding_1 = require_dist_cjs8(); - var util_utf8_1 = require_dist_cjs13(); - var constants_1 = require_constants(); - var signingKeyCache = {}; - var cacheQueue = []; - var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; - exports.createScope = createScope; - var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = `AWS4${credentials.secretAccessKey}`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return signingKeyCache[cacheKey] = key; - }; - exports.getSigningKey = getSigningKey; - var clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); - }; - exports.clearCredentialCache = clearCredentialCache; - var hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update((0, util_utf8_1.toUint8Array)(data)); - return hash.digest(); - }; + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} +var import_crypto, rnds8Pool, poolPtr; +var init_rng = __esm({ + "../../../node_modules/uuid/dist/esm-node/rng.js"() { + import_crypto = __toESM(require("crypto")); + rnds8Pool = new Uint8Array(256); + poolPtr = rnds8Pool.length; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js -var require_getCanonicalHeaders = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCanonicalHeaders = void 0; - var constants_1 = require_constants(); - var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - if (headers[headerName] == void 0) { - continue; - } - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { - continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); - } - return canonical; - }; - exports.getCanonicalHeaders = getCanonicalHeaders; +// ../../../node_modules/uuid/dist/esm-node/regex.js +var regex_default; +var init_regex = __esm({ + "../../../node_modules/uuid/dist/esm-node/regex.js"() { + regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; } }); -// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js -var require_escape_uri = __commonJS({ - "../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.escapeUri = void 0; - var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); - exports.escapeUri = escapeUri; - var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; +// ../../../node_modules/uuid/dist/esm-node/validate.js +function validate(uuid) { + return typeof uuid === "string" && regex_default.test(uuid); +} +var validate_default; +var init_validate = __esm({ + "../../../node_modules/uuid/dist/esm-node/validate.js"() { + init_regex(); + validate_default = validate; } }); -// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js -var require_escape_uri_path = __commonJS({ - "../../../node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.escapeUriPath = void 0; - var escape_uri_1 = require_escape_uri(); - var escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); - exports.escapeUriPath = escapeUriPath; +// ../../../node_modules/uuid/dist/esm-node/stringify.js +function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!validate_default(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; +} +var byteToHex, stringify_default; +var init_stringify = __esm({ + "../../../node_modules/uuid/dist/esm-node/stringify.js"() { + init_validate(); + byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + stringify_default = stringify; } }); -// ../../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js -var require_dist_cjs14 = __commonJS({ - "../../../node_modules/@smithy/util-uri-escape/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_escape_uri(), exports); - tslib_1.__exportStar(require_escape_uri_path(), exports); +// ../../../node_modules/uuid/dist/esm-node/v1.js +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || rng)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || stringify_default(b); +} +var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; +var init_v1 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v1.js"() { + init_rng(); + init_stringify(); + _lastMSecs = 0; + _lastNSecs = 0; + v1_default = v1; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js -var require_getCanonicalQuery = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCanonicalQuery = void 0; - var util_uri_escape_1 = require_dist_cjs14(); - var constants_1 = require_constants(); - var getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === "string") { - serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; - } else if (Array.isArray(value)) { - serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value2)}`]), []).join("&"); - } - } - return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); - }; - exports.getCanonicalQuery = getCanonicalQuery; +// ../../../node_modules/uuid/dist/esm-node/parse.js +function parse(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + let v; + const arr = new Uint8Array(16); + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; + return arr; +} +var parse_default; +var init_parse = __esm({ + "../../../node_modules/uuid/dist/esm-node/parse.js"() { + init_validate(); + parse_default = parse; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js -var require_getPayloadHash = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getPayloadHash = void 0; - var is_array_buffer_1 = require_dist_cjs11(); - var util_hex_encoding_1 = require_dist_cjs8(); - var util_utf8_1 = require_dist_cjs13(); - var constants_1 = require_constants(); - var getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == void 0) { - return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; - } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update((0, util_utf8_1.toUint8Array)(body)); - return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); +// ../../../node_modules/uuid/dist/esm-node/v35.js +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; +} +function v35_default(name, version2, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = parse_default(namespace); + } + if (namespace.length !== 16) { + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version2; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; } - return constants_1.UNSIGNED_PAYLOAD; - }; - exports.getPayloadHash = getPayloadHash; + return buf; + } + return stringify_default(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; +} +var DNS, URL2; +var init_v35 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v35.js"() { + init_stringify(); + init_parse(); + DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js -var require_headerUtil = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; - var hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; - }; - exports.hasHeader = hasHeader; - var getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return void 0; - }; - exports.getHeaderValue = getHeaderValue; - var deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } - }; - exports.deleteHeader = deleteHeader; +// ../../../node_modules/uuid/dist/esm-node/md5.js +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto2.default.createHash("md5").update(bytes).digest(); +} +var import_crypto2, md5_default; +var init_md5 = __esm({ + "../../../node_modules/uuid/dist/esm-node/md5.js"() { + import_crypto2 = __toESM(require("crypto")); + md5_default = md5; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js -var require_cloneRequest = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.cloneQuery = exports.cloneRequest = void 0; - var cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? (0, exports.cloneQuery)(query) : void 0 - }); - exports.cloneRequest = cloneRequest; - var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param - }; - }, {}); - exports.cloneQuery = cloneQuery; +// ../../../node_modules/uuid/dist/esm-node/v3.js +var v3, v3_default; +var init_v3 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v3.js"() { + init_v35(); + init_md5(); + v3 = v35_default("v3", 48, md5_default); + v3_default = v3; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js -var require_moveHeadersToQuery = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.moveHeadersToQuery = void 0; - var cloneRequest_1 = require_cloneRequest(); - var moveHeadersToQuery = (request2, options = {}) => { - var _a; - const { headers, query = {} } = typeof request2.clone === "function" ? request2.clone() : (0, cloneRequest_1.cloneRequest)(request2); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request2, - headers, - query - }; - }; - exports.moveHeadersToQuery = moveHeadersToQuery; +// ../../../node_modules/uuid/dist/esm-node/v4.js +function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || rng)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return stringify_default(rnds); +} +var v4_default; +var init_v4 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v4.js"() { + init_rng(); + init_stringify(); + v4_default = v4; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js -var require_prepareRequest = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.prepareRequest = void 0; - var cloneRequest_1 = require_cloneRequest(); - var constants_1 = require_constants(); - var prepareRequest = (request2) => { - request2 = typeof request2.clone === "function" ? request2.clone() : (0, cloneRequest_1.cloneRequest)(request2); - for (const headerName of Object.keys(request2.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request2.headers[headerName]; - } - } - return request2; - }; - exports.prepareRequest = prepareRequest; +// ../../../node_modules/uuid/dist/esm-node/sha1.js +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return import_crypto3.default.createHash("sha1").update(bytes).digest(); +} +var import_crypto3, sha1_default; +var init_sha1 = __esm({ + "../../../node_modules/uuid/dist/esm-node/sha1.js"() { + import_crypto3 = __toESM(require("crypto")); + sha1_default = sha1; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/utilDate.js -var require_utilDate = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/utilDate.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.toDate = exports.iso8601 = void 0; - var iso8601 = (time) => (0, exports.toDate)(time).toISOString().replace(/\.\d{3}Z$/, "Z"); - exports.iso8601 = iso8601; - var toDate = (time) => { - if (typeof time === "number") { - return new Date(time * 1e3); - } - if (typeof time === "string") { - if (Number(time)) { - return new Date(Number(time) * 1e3); - } - return new Date(time); - } - return time; - }; - exports.toDate = toDate; +// ../../../node_modules/uuid/dist/esm-node/v5.js +var v5, v5_default; +var init_v5 = __esm({ + "../../../node_modules/uuid/dist/esm-node/v5.js"() { + init_v35(); + init_sha1(); + v5 = v35_default("v5", 80, sha1_default); + v5_default = v5; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js -var require_SignatureV4 = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SignatureV4 = void 0; - var eventstream_codec_1 = require_dist_cjs9(); - var util_hex_encoding_1 = require_dist_cjs8(); - var util_middleware_1 = require_dist_cjs10(); - var util_utf8_1 = require_dist_cjs13(); - var constants_1 = require_constants(); - var credentialDerivation_1 = require_credentialDerivation(); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - var getPayloadHash_1 = require_getPayloadHash(); - var headerUtil_1 = require_headerUtil(); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - var prepareRequest_1 = require_prepareRequest(); - var utilDate_1 = require_utilDate(); - var SignatureV4 = class { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { - this.headerMarshaller = new eventstream_codec_1.HeaderMarshaller(util_utf8_1.toUtf8, util_utf8_1.fromUtf8); - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); - this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future"); - } - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request2 = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request2.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request2.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request2.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; - request2.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request2.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request2, unsignableHeaders, signableHeaders); - request2.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request2.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request2, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); - return request2; - } - async sign(toSign, options) { - if (typeof toSign === "string") { - return this.signString(toSign, options); - } else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } else if (toSign.message) { - return this.signMessage(toSign, options); - } else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { shortDate, longDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); - const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload - ].join("\n"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) { - const promise = this.signEvent({ - headers: this.headerMarshaller.format(signableMessage.message.headers), - payload: signableMessage.message.body - }, { - signingDate, - signingRegion, - signingService, - priorSignature: signableMessage.priorSignature - }); - return promise.then((signature) => { - return { message: signableMessage.message, signature }; - }); - } - async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = /* @__PURE__ */ new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const request2 = (0, prepareRequest_1.prepareRequest)(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request2.headers[constants_1.AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request2.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request2, this.sha256); - if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request2.headers) && this.applyChecksum) { - request2.headers[constants_1.SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request2, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request2, canonicalHeaders, payloadHash)); - request2.headers[constants_1.AUTH_HEADER] = `${constants_1.ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; - return request2; - } - createCanonicalRequest(request2, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return `${request2.method} -${this.getCanonicalPath(request2)} -${(0, getCanonicalQuery_1.getCanonicalQuery)(request2)} -${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} +// ../../../node_modules/uuid/dist/esm-node/nil.js +var nil_default; +var init_nil = __esm({ + "../../../node_modules/uuid/dist/esm-node/nil.js"() { + nil_default = "00000000-0000-0000-0000-000000000000"; + } +}); -${sortedHeaders.join(";")} -${payloadHash}`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update((0, util_utf8_1.toUint8Array)(canonicalRequest)); - const hashedRequest = await hash.digest(); - return `${constants_1.ALGORITHM_IDENTIFIER} -${longDate} -${credentialScope} -${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const normalizedPathSegments = []; - for (const pathSegment of path.split("/")) { - if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) - continue; - if (pathSegment === ".") - continue; - if (pathSegment === "..") { - normalizedPathSegments.pop(); - } else { - normalizedPathSegments.push(pathSegment); - } - } - const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; - const doubleEncoded = encodeURIComponent(normalizedPath); - return doubleEncoded.replace(/%2F/g, "/"); - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); - } - validateResolvedCredentials(credentials) { - if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") { - throw new Error("Resolved credential object is not valid"); +// ../../../node_modules/uuid/dist/esm-node/version.js +function version(uuid) { + if (!validate_default(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); +} +var version_default; +var init_version = __esm({ + "../../../node_modules/uuid/dist/esm-node/version.js"() { + init_validate(); + version_default = version; + } +}); + +// ../../../node_modules/uuid/dist/esm-node/index.js +var esm_node_exports = {}; +__export(esm_node_exports, { + NIL: () => nil_default, + parse: () => parse_default, + stringify: () => stringify_default, + v1: () => v1_default, + v3: () => v3_default, + v4: () => v4_default, + v5: () => v5_default, + validate: () => validate_default, + version: () => version_default +}); +var init_esm_node = __esm({ + "../../../node_modules/uuid/dist/esm-node/index.js"() { + init_v1(); + init_v3(); + init_v4(); + init_v5(); + init_nil(); + init_version(); + init_validate(); + init_stringify(); + init_parse(); + } +}); + +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js +var require_defaultRetryQuota = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getDefaultRetryQuota = void 0; + var util_retry_1 = require_dist_cjs14(); + var getDefaultRetryQuota = (initialRetryTokens, options) => { + var _a, _b, _c; + const MAX_CAPACITY = initialRetryTokens; + const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : util_retry_1.NO_RETRY_INCREMENT; + const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : util_retry_1.RETRY_COST; + const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : util_retry_1.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost; + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error("No retry token available"); } - } - }; - exports.SignatureV4 = SignatureV4; - var formatDate = (now) => { - const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); - return { - longDate, - shortDate: longDate.slice(0, 8) + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens + }); }; - var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); + exports.getDefaultRetryQuota = getDefaultRetryQuota; } }); -// ../../../node_modules/@smithy/signature-v4/dist-cjs/index.js -var require_dist_cjs15 = __commonJS({ - "../../../node_modules/@smithy/signature-v4/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js +var require_delayDecider = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_SignatureV4(), exports); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function() { - return getCanonicalHeaders_1.getCanonicalHeaders; - } }); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function() { - return getCanonicalQuery_1.getCanonicalQuery; - } }); - var getPayloadHash_1 = require_getPayloadHash(); - Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function() { - return getPayloadHash_1.getPayloadHash; - } }); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function() { - return moveHeadersToQuery_1.moveHeadersToQuery; - } }); - var prepareRequest_1 = require_prepareRequest(); - Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function() { - return prepareRequest_1.prepareRequest; - } }); - tslib_1.__exportStar(require_credentialDerivation(), exports); + exports.defaultDelayDecider = void 0; + var util_retry_1 = require_dist_cjs14(); + var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(util_retry_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + exports.defaultDelayDecider = defaultDelayDecider; } }); -// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js -var require_awsAuthConfiguration = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js +var require_retryDecider = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; - var property_provider_1 = require_dist_cjs6(); - var signature_v4_1 = require_dist_cjs15(); - var util_middleware_1 = require_dist_cjs10(); - var CREDENTIAL_EXPIRE_WINDOW = 3e5; - var resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = (0, util_middleware_1.normalizeProvider)(input.signer); - } else if (input.regionInfoProvider) { - signer = () => (0, util_middleware_1.normalizeProvider)(input.region)().then(async (region) => [ - await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint() - }) || {}, - region - ]).then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - }; - const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; - return new SignerCtor(params); - }); - } else { - signer = async (authScheme) => { - authScheme = Object.assign({}, { - name: "sigv4", - signingName: input.signingName || input.defaultSigningName, - signingRegion: await (0, util_middleware_1.normalizeProvider)(input.region)(), - properties: {} - }, authScheme); - const signingRegion = authScheme.signingRegion; - const signingService = authScheme.signingName; - input.signingRegion = input.signingRegion || signingRegion; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - }; - const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; - return new SignerCtor(params); - }; - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer - }; - }; - exports.resolveAwsAuthConfig = resolveAwsAuthConfig; - var resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = (0, util_middleware_1.normalizeProvider)(input.signer); - } else { - signer = (0, util_middleware_1.normalizeProvider)(new signature_v4_1.SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer - }; - }; - exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; - var normalizeCredentialProvider = (credentials) => { - if (typeof credentials === "function") { - return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); + exports.defaultRetryDecider = void 0; + var service_error_classification_1 = require_dist_cjs13(); + var defaultRetryDecider = (error) => { + if (!error) { + return false; } - return (0, util_middleware_1.normalizeProvider)(credentials); + return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); }; + exports.defaultRetryDecider = defaultRetryDecider; } }); -// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js -var require_getSkewCorrectedDate = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/util.js +var require_util = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/util.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSkewCorrectedDate = void 0; - var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); - exports.getSkewCorrectedDate = getSkewCorrectedDate; + exports.asSdkError = void 0; + var asSdkError = (error) => { + if (error instanceof Error) + return error; + if (error instanceof Object) + return Object.assign(new Error(), error); + if (typeof error === "string") + return new Error(error); + return new Error(`AWS SDK error wrapper for ${error}`); + }; + exports.asSdkError = asSdkError; } }); -// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js -var require_isClockSkewed = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js +var require_StandardRetryStrategy2 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.isClockSkewed = void 0; - var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); - var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; - exports.isClockSkewed = isClockSkewed; + exports.StandardRetryStrategy = void 0; + var protocol_http_1 = require_dist_cjs4(); + var service_error_classification_1 = require_dist_cjs13(); + var util_retry_1 = require_dist_cjs14(); + var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); + var defaultRetryQuota_1 = require_defaultRetryQuota(); + var delayDecider_1 = require_delayDecider(); + var retryDecider_1 = require_retryDecider(); + var util_1 = require_util(); + var StandardRetryStrategy = class { + constructor(maxAttemptsProvider, options) { + var _a, _b, _c; + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = util_retry_1.RETRY_MODES.STANDARD; + this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; + this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; + this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(util_retry_1.INITIAL_RETRY_TOKENS); + } + shouldRetry(error, attempts, maxAttempts) { + return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + } + async getMaxAttempts() { + let maxAttempts; + try { + maxAttempts = await this.maxAttemptsProvider(); + } catch (error) { + maxAttempts = util_retry_1.DEFAULT_MAX_ATTEMPTS; + } + return maxAttempts; + } + async retry(next, args, options) { + let retryTokenAmount; + let attempts = 0; + let totalDelay = 0; + const maxAttempts = await this.getMaxAttempts(); + const { request: request2 } = args; + if (protocol_http_1.HttpRequest.isInstance(request2)) { + request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + } + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request2)) { + request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + if (options === null || options === void 0 ? void 0 : options.beforeRequest) { + await options.beforeRequest(); + } + const { response, output } = await next(args); + if (options === null || options === void 0 ? void 0 : options.afterRequest) { + options.afterRequest(response); + } + this.retryQuota.releaseRetryTokens(retryTokenAmount); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalDelay; + return { response, output }; + } catch (e) { + const err = (0, util_1.asSdkError)(e); + attempts++; + if (this.shouldRetry(err, attempts, maxAttempts)) { + retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); + const delayFromDecider = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? util_retry_1.THROTTLING_RETRY_DELAY_BASE : util_retry_1.DEFAULT_RETRY_DELAY_BASE, attempts); + const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); + const delay = Math.max(delayFromResponse || 0, delayFromDecider); + totalDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + if (!err.$metadata) { + err.$metadata = {}; + } + err.$metadata.attempts = attempts; + err.$metadata.totalRetryDelay = totalDelay; + throw err; + } + } + } + }; + exports.StandardRetryStrategy = StandardRetryStrategy; + var getDelayFromRetryAfterHeader = (response) => { + if (!protocol_http_1.HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return retryAfterSeconds * 1e3; + const retryAfterDate = new Date(retryAfter); + return retryAfterDate.getTime() - Date.now(); + }; } }); -// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js -var require_getUpdatedSystemClockOffset = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +var require_AdaptiveRetryStrategy2 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getUpdatedSystemClockOffset = void 0; - var isClockSkewed_1 = require_isClockSkewed(); - var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); + exports.AdaptiveRetryStrategy = void 0; + var util_retry_1 = require_dist_cjs14(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy2(); + var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; + super(maxAttemptsProvider, superOptions); + this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new util_retry_1.DefaultRateLimiter(); + this.mode = util_retry_1.RETRY_MODES.ADAPTIVE; + } + async retry(next, args) { + return super.retry(next, args, { + beforeRequest: async () => { + return this.rateLimiter.getSendToken(); + }, + afterRequest: (response) => { + this.rateLimiter.updateClientSendingRate(response); + } + }); } - return currentSystemClockOffset; }; - exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; } }); -// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js -var require_awsAuthMiddleware = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js +var require_configurations = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); - var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); - var awsAuthMiddleware = (options) => (next, context) => async function(args) { - var _a, _b, _c, _d; - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const authScheme = (_c = (_b = (_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.authSchemes) === null || _c === void 0 ? void 0 : _c[0]; - const multiRegionOverride = (authScheme === null || authScheme === void 0 ? void 0 : authScheme.name) === "sigv4a" ? (_d = authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegionSet) === null || _d === void 0 ? void 0 : _d.join(",") : void 0; - const signer = await options.signer(authScheme); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), - signingRegion: multiRegionOverride || context["signing_region"], - signingService: context["signing_service"] - }) - }).catch((error) => { - var _a2; - const serverTime = (_a2 = error.ServerTime) !== null && _a2 !== void 0 ? _a2 : getDateHeader(error.$response); - if (serverTime) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); + exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; + var util_middleware_1 = require_dist_cjs2(); + var util_retry_1 = require_dist_cjs14(); + exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; + exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; + exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[exports.ENV_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); } - throw error; - }); - const dateHeader = getDateHeader(output.response); - if (dateHeader) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); - } - return output; + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[exports.CONFIG_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + default: util_retry_1.DEFAULT_MAX_ATTEMPTS }; - exports.awsAuthMiddleware = awsAuthMiddleware; - var getDateHeader = (response) => { - var _a, _b, _c; - return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; + var resolveRetryConfig = (input) => { + var _a; + const { retryStrategy } = input; + const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : util_retry_1.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (retryStrategy) { + return retryStrategy; + } + const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); + if (retryMode === util_retry_1.RETRY_MODES.ADAPTIVE) { + return new util_retry_1.AdaptiveRetryStrategy(maxAttempts); + } + return new util_retry_1.StandardRetryStrategy(maxAttempts); + } + }; }; - exports.awsAuthMiddlewareOptions = { - name: "awsAuthMiddleware", - tags: ["SIGNATURE", "AWSAUTH"], - relation: "after", - toMiddleware: "retryMiddleware", + exports.resolveRetryConfig = resolveRetryConfig; + exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; + exports.CONFIG_RETRY_MODE = "retry_mode"; + exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], + configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], + default: util_retry_1.DEFAULT_RETRY_MODE + }; + } +}); + +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +var require_omitRetryHeadersMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var util_retry_1 = require_dist_cjs14(); + var omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request: request2 } = args; + if (protocol_http_1.HttpRequest.isInstance(request2)) { + delete request2.headers[util_retry_1.INVOCATION_ID_HEADER]; + delete request2.headers[util_retry_1.REQUEST_HEADER]; + } + return next(args); + }; + exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; + exports.omitRetryHeadersMiddlewareOptions = { + name: "omitRetryHeadersMiddleware", + tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], + relation: "before", + toMiddleware: "awsAuthMiddleware", override: true }; - var getAwsAuthPlugin = (options) => ({ + var getOmitRetryHeadersPlugin = (options) => ({ applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); + clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); } }); - exports.getAwsAuthPlugin = getAwsAuthPlugin; - exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; - } -}); - -// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js -var require_dist_cjs16 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_awsAuthConfiguration(), exports); - tslib_1.__exportStar(require_awsAuthMiddleware(), exports); + exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; } }); -// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js -var require_configurations = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js +var require_retryMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveUserAgentConfig = void 0; - function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent - }; - } - exports.resolveUserAgentConfig = resolveUserAgentConfig; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json -var require_partitions = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json"(exports, module2) { - module2.exports = { - partitions: [{ - id: "aws", - outputs: { - dnsSuffix: "amazonaws.com", - dualStackDnsSuffix: "api.aws", - name: "aws", - supportsDualStack: true, - supportsFIPS: true - }, - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - regions: { - "af-south-1": { - description: "Africa (Cape Town)" - }, - "ap-east-1": { - description: "Asia Pacific (Hong Kong)" - }, - "ap-northeast-1": { - description: "Asia Pacific (Tokyo)" - }, - "ap-northeast-2": { - description: "Asia Pacific (Seoul)" - }, - "ap-northeast-3": { - description: "Asia Pacific (Osaka)" - }, - "ap-south-1": { - description: "Asia Pacific (Mumbai)" - }, - "ap-south-2": { - description: "Asia Pacific (Hyderabad)" - }, - "ap-southeast-1": { - description: "Asia Pacific (Singapore)" - }, - "ap-southeast-2": { - description: "Asia Pacific (Sydney)" - }, - "ap-southeast-3": { - description: "Asia Pacific (Jakarta)" - }, - "ap-southeast-4": { - description: "Asia Pacific (Melbourne)" - }, - "aws-global": { - description: "AWS Standard global region" - }, - "ca-central-1": { - description: "Canada (Central)" - }, - "eu-central-1": { - description: "Europe (Frankfurt)" - }, - "eu-central-2": { - description: "Europe (Zurich)" - }, - "eu-north-1": { - description: "Europe (Stockholm)" - }, - "eu-south-1": { - description: "Europe (Milan)" - }, - "eu-south-2": { - description: "Europe (Spain)" - }, - "eu-west-1": { - description: "Europe (Ireland)" - }, - "eu-west-2": { - description: "Europe (London)" - }, - "eu-west-3": { - description: "Europe (Paris)" - }, - "me-central-1": { - description: "Middle East (UAE)" - }, - "me-south-1": { - description: "Middle East (Bahrain)" - }, - "sa-east-1": { - description: "South America (Sao Paulo)" - }, - "us-east-1": { - description: "US East (N. Virginia)" - }, - "us-east-2": { - description: "US East (Ohio)" - }, - "us-west-1": { - description: "US West (N. California)" - }, - "us-west-2": { - description: "US West (Oregon)" - } - } - }, { - id: "aws-cn", - outputs: { - dnsSuffix: "amazonaws.com.cn", - dualStackDnsSuffix: "api.amazonwebservices.com.cn", - name: "aws-cn", - supportsDualStack: true, - supportsFIPS: true - }, - regionRegex: "^cn\\-\\w+\\-\\d+$", - regions: { - "aws-cn-global": { - description: "AWS China global region" - }, - "cn-north-1": { - description: "China (Beijing)" - }, - "cn-northwest-1": { - description: "China (Ningxia)" - } - } - }, { - id: "aws-us-gov", - outputs: { - dnsSuffix: "amazonaws.com", - dualStackDnsSuffix: "api.aws", - name: "aws-us-gov", - supportsDualStack: true, - supportsFIPS: true - }, - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - regions: { - "aws-us-gov-global": { - description: "AWS GovCloud (US) global region" - }, - "us-gov-east-1": { - description: "AWS GovCloud (US-East)" - }, - "us-gov-west-1": { - description: "AWS GovCloud (US-West)" - } - } - }, { - id: "aws-iso", - outputs: { - dnsSuffix: "c2s.ic.gov", - dualStackDnsSuffix: "c2s.ic.gov", - name: "aws-iso", - supportsDualStack: false, - supportsFIPS: true - }, - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - regions: { - "aws-iso-global": { - description: "AWS ISO (US) global region" - }, - "us-iso-east-1": { - description: "US ISO East" - }, - "us-iso-west-1": { - description: "US ISO WEST" - } + exports.getRetryAfterHint = exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var service_error_classification_1 = require_dist_cjs13(); + var util_retry_1 = require_dist_cjs14(); + var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); + var util_1 = require_util(); + var retryMiddleware = (options) => (next, context) => async (args) => { + let retryStrategy = await options.retryStrategy(); + const maxAttempts = await options.maxAttempts(); + if (isRetryStrategyV2(retryStrategy)) { + retryStrategy = retryStrategy; + let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]); + let lastError = new Error(); + let attempts = 0; + let totalRetryDelay = 0; + const { request: request2 } = args; + if (protocol_http_1.HttpRequest.isInstance(request2)) { + request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); } - }, { - id: "aws-iso-b", - outputs: { - dnsSuffix: "sc2s.sgov.gov", - dualStackDnsSuffix: "sc2s.sgov.gov", - name: "aws-iso-b", - supportsDualStack: false, - supportsFIPS: true - }, - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - regions: { - "aws-iso-b-global": { - description: "AWS ISOB (US) global region" - }, - "us-isob-east-1": { - description: "US ISOB East (Ohio)" + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request2)) { + request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + const { response, output } = await next(args); + retryStrategy.recordSuccess(retryToken); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalRetryDelay; + return { response, output }; + } catch (e) { + const retryErrorInfo = getRetryErrorInfo(e); + lastError = (0, util_1.asSdkError)(e); + try { + retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); + } catch (refreshError) { + if (!lastError.$metadata) { + lastError.$metadata = {}; + } + lastError.$metadata.attempts = attempts + 1; + lastError.$metadata.totalRetryDelay = totalRetryDelay; + throw lastError; + } + attempts = retryToken.getRetryCount(); + const delay = retryToken.getRetryDelay(); + totalRetryDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); } } - }, { - id: "aws-iso-e", - outputs: { - dnsSuffix: "cloud.adc-e.uk", - dualStackDnsSuffix: "cloud.adc-e.uk", - name: "aws-iso-e", - supportsDualStack: false, - supportsFIPS: true - }, - regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$", - regions: {} - }, { - id: "aws-iso-f", - outputs: { - dnsSuffix: "csp.hci.ic.gov", - dualStackDnsSuffix: "csp.hci.ic.gov", - name: "aws-iso-f", - supportsDualStack: false, - supportsFIPS: true - }, - regionRegex: "^us\\-isof\\-\\w+\\-\\d+$", - regions: {} - }], - version: "1.1" + } else { + retryStrategy = retryStrategy; + if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; + return retryStrategy.retry(next, args); + } + }; + exports.retryMiddleware = retryMiddleware; + var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined"; + var getRetryErrorInfo = (error) => { + const errorInfo = { + errorType: getRetryErrorType(error) + }; + const retryAfterHint = (0, exports.getRetryAfterHint)(error.$response); + if (retryAfterHint) { + errorInfo.retryAfterHint = retryAfterHint; + } + return errorInfo; + }; + var getRetryErrorType = (error) => { + if ((0, service_error_classification_1.isThrottlingError)(error)) + return "THROTTLING"; + if ((0, service_error_classification_1.isTransientError)(error)) + return "TRANSIENT"; + if ((0, service_error_classification_1.isServerError)(error)) + return "SERVER_ERROR"; + return "CLIENT_ERROR"; + }; + exports.retryMiddlewareOptions = { + name: "retryMiddleware", + tags: ["RETRY"], + step: "finalizeRequest", + priority: "high", + override: true + }; + var getRetryPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); + } + }); + exports.getRetryPlugin = getRetryPlugin; + var getRetryAfterHint = (response) => { + if (!protocol_http_1.HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return new Date(retryAfterSeconds * 1e3); + const retryAfterDate = new Date(retryAfter); + return retryAfterDate; }; + exports.getRetryAfterHint = getRetryAfterHint; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js -var require_partition = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js +var require_dist_cjs15 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getUserAgentPrefix = exports.useDefaultPartitionInfo = exports.setPartitionInfo = exports.partition = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - var partitions_json_1 = tslib_1.__importDefault(require_partitions()); - var selectedPartitionsInfo = partitions_json_1.default; - var selectedUserAgentPrefix = ""; - var partition = (value) => { - const { partitions } = selectedPartitionsInfo; - for (const partition2 of partitions) { - const { regions, outputs } = partition2; - for (const [region, regionData] of Object.entries(regions)) { - if (region === value) { - return { - ...outputs, - ...regionData - }; - } - } - } - for (const partition2 of partitions) { - const { regionRegex, outputs } = partition2; - if (new RegExp(regionRegex).test(value)) { - return { - ...outputs - }; - } + tslib_1.__exportStar(require_AdaptiveRetryStrategy2(), exports); + tslib_1.__exportStar(require_StandardRetryStrategy2(), exports); + tslib_1.__exportStar(require_configurations(), exports); + tslib_1.__exportStar(require_delayDecider(), exports); + tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports); + tslib_1.__exportStar(require_retryDecider(), exports); + tslib_1.__exportStar(require_retryMiddleware(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js +var require_ProviderError = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ProviderError = void 0; + var ProviderError = class extends Error { + constructor(message, tryNextLink = true) { + super(message); + this.tryNextLink = tryNextLink; + this.name = "ProviderError"; + Object.setPrototypeOf(this, ProviderError.prototype); } - const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws"); - if (!DEFAULT_PARTITION) { - throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."); + static from(error, tryNextLink = true) { + return Object.assign(new this(error.message, tryNextLink), error); } - return { - ...DEFAULT_PARTITION.outputs - }; }; - exports.partition = partition; - var setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => { - selectedPartitionsInfo = partitionsInfo; - selectedUserAgentPrefix = userAgentPrefix; + exports.ProviderError = ProviderError; + } +}); + +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js +var require_CredentialsProviderError = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.CredentialsProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var CredentialsProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "CredentialsProviderError"; + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } }; - exports.setPartitionInfo = setPartitionInfo; - var useDefaultPartitionInfo = () => { - (0, exports.setPartitionInfo)(partitions_json_1.default, ""); + exports.CredentialsProviderError = CredentialsProviderError; + } +}); + +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js +var require_TokenProviderError = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.TokenProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var TokenProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "TokenProviderError"; + Object.setPrototypeOf(this, TokenProviderError.prototype); + } }; - exports.useDefaultPartitionInfo = useDefaultPartitionInfo; - var getUserAgentPrefix = () => selectedUserAgentPrefix; - exports.getUserAgentPrefix = getUserAgentPrefix; + exports.TokenProviderError = TokenProviderError; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js -var require_debugId = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js"(exports) { +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/chain.js +var require_chain = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/chain.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.debugId = void 0; - exports.debugId = "endpoints"; + exports.chain = void 0; + var ProviderError_1 = require_ProviderError(); + function chain(...providers) { + return () => { + let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); + for (const provider of providers) { + promise = promise.catch((err) => { + if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + return provider(); + } + throw err; + }); + } + return promise; + }; + } + exports.chain = chain; + } +}); + +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js +var require_fromStatic = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromStatic = void 0; + var fromStatic = (staticValue) => () => Promise.resolve(staticValue); + exports.fromStatic = fromStatic; + } +}); + +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js +var require_memoize = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.memoize = void 0; + var memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } finally { + pending = void 0; + } + return resolved; + }; + if (isExpired === void 0) { + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; + }; + exports.memoize = memoize; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js -var require_toDebugString = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js"(exports) { +// ../../../node_modules/@aws-sdk/property-provider/dist-cjs/index.js +var require_dist_cjs16 = __commonJS({ + "../../../node_modules/@aws-sdk/property-provider/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.toDebugString = void 0; - function toDebugString(input) { - if (typeof input !== "object" || input == null) { - return input; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_CredentialsProviderError(), exports); + tslib_1.__exportStar(require_ProviderError(), exports); + tslib_1.__exportStar(require_TokenProviderError(), exports); + tslib_1.__exportStar(require_chain(), exports); + tslib_1.__exportStar(require_fromStatic(), exports); + tslib_1.__exportStar(require_memoize(), exports); + } +}); + +// ../../../node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +var tslib_es6_exports2 = {}; +__export(tslib_es6_exports2, { + __assign: () => __assign2, + __asyncDelegator: () => __asyncDelegator2, + __asyncGenerator: () => __asyncGenerator2, + __asyncValues: () => __asyncValues2, + __await: () => __await2, + __awaiter: () => __awaiter2, + __classPrivateFieldGet: () => __classPrivateFieldGet2, + __classPrivateFieldSet: () => __classPrivateFieldSet2, + __createBinding: () => __createBinding2, + __decorate: () => __decorate2, + __exportStar: () => __exportStar2, + __extends: () => __extends2, + __generator: () => __generator2, + __importDefault: () => __importDefault2, + __importStar: () => __importStar2, + __makeTemplateObject: () => __makeTemplateObject2, + __metadata: () => __metadata2, + __param: () => __param2, + __read: () => __read2, + __rest: () => __rest2, + __spread: () => __spread2, + __spreadArrays: () => __spreadArrays2, + __values: () => __values2 +}); +function __extends2(d, b) { + extendStatics2(d, b); + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} +function __rest2(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +} +function __decorate2(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} +function __param2(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; +} +function __metadata2(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(metadataKey, metadataValue); +} +function __awaiter2(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); } - if ("ref" in input) { - return `$${toDebugString(input.ref)}`; + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); } - if ("fn" in input) { - return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`; + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} +function __generator2(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; } - return JSON.stringify(input, null, 2); + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } +} +function __createBinding2(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; +} +function __exportStar2(m, exports) { + for (var p in m) + if (p !== "default" && !exports.hasOwnProperty(p)) + exports[p] = m[p]; +} +function __values2(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); +} +function __read2(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar; +} +function __spread2() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read2(arguments[i])); + return ar; +} +function __spreadArrays2() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; +} +function __await2(v) { + return this instanceof __await2 ? (this.v = v, this) : new __await2(v); +} +function __asyncGenerator2(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); } - exports.toDebugString = toDebugString; } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js -var require_debug = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_debugId(), exports); - tslib_1.__exportStar(require_toDebugString(), exports); + function step(r) { + r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js -var require_EndpointError = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointError = void 0; - var EndpointError = class extends Error { - constructor(message) { - super(message); - this.name = "EndpointError"; - } - }; - exports.EndpointError = EndpointError; + function fulfill(value) { + resume("next", value); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js -var require_EndpointRuleObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + function reject(value) { + resume("throw", value); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js -var require_ErrorRuleObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js -var require_RuleSetObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); +} +function __asyncDelegator2(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v; + } : f; } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js -var require_TreeRuleObject2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); +} +function __asyncValues2(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js -var require_shared2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); + }, reject); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js -var require_types2 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_EndpointError(), exports); - tslib_1.__exportStar(require_EndpointRuleObject2(), exports); - tslib_1.__exportStar(require_ErrorRuleObject2(), exports); - tslib_1.__exportStar(require_RuleSetObject2(), exports); - tslib_1.__exportStar(require_TreeRuleObject2(), exports); - tslib_1.__exportStar(require_shared2(), exports); +} +function __makeTemplateObject2(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", { value: raw }); + } else { + cooked.raw = raw; } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js -var require_isIpAddress = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isIpAddress = void 0; - var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`); - var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"); - exports.isIpAddress = isIpAddress; + return cooked; +} +function __importStar2(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (Object.hasOwnProperty.call(mod, k)) + result[k] = mod[k]; } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js -var require_isValidHostLabel = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isValidHostLabel = void 0; - var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`); - var isValidHostLabel = (value, allowSubDomains = false) => { - if (!allowSubDomains) { - return VALID_HOST_LABEL_REGEX.test(value); - } - const labels = value.split("."); - for (const label of labels) { - if (!(0, exports.isValidHostLabel)(label)) { - return false; - } - } - return true; - }; - exports.isValidHostLabel = isValidHostLabel; + result.default = mod; + return result; +} +function __importDefault2(mod) { + return mod && mod.__esModule ? mod : { default: mod }; +} +function __classPrivateFieldGet2(receiver, privateMap) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to get private field on non-instance"); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js -var require_isVirtualHostableS3Bucket = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isVirtualHostableS3Bucket = void 0; - var isIpAddress_1 = require_isIpAddress(); - var isValidHostLabel_1 = require_isValidHostLabel(); - var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => { - if (allowSubDomains) { - for (const label of value.split(".")) { - if (!(0, exports.isVirtualHostableS3Bucket)(label)) { - return false; - } - } - return true; - } - if (!(0, isValidHostLabel_1.isValidHostLabel)(value)) { - return false; - } - if (value.length < 3 || value.length > 63) { - return false; - } - if (value !== value.toLowerCase()) { - return false; - } - if ((0, isIpAddress_1.isIpAddress)(value)) { - return false; - } - return true; - }; - exports.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket; + return privateMap.get(receiver); +} +function __classPrivateFieldSet2(receiver, privateMap, value) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to set private field on non-instance"); } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js -var require_parseArn = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseArn = void 0; - var parseArn = (value) => { - const segments = value.split(":"); - if (segments.length < 6) - return null; - const [arn, partition, service, region, accountId, ...resourceId] = segments; - if (arn !== "arn" || partition === "" || service === "" || resourceId[0] === "") - return null; - return { - partition, - service, - region, - accountId, - resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId + privateMap.set(receiver, value); + return value; +} +var extendStatics2, __assign2; +var init_tslib_es62 = __esm({ + "../../../node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js"() { + extendStatics2 = function(d, b) { + extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { + d2.__proto__ = b2; + } || function(d2, b2) { + for (var p in b2) + if (b2.hasOwnProperty(p)) + d2[p] = b2[p]; }; + return extendStatics2(d, b); + }; + __assign2 = function() { + __assign2 = Object.assign || function __assign3(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign2.apply(this, arguments); }; - exports.parseArn = parseArn; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js -var require_aws = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_isVirtualHostableS3Bucket(), exports); - tslib_1.__exportStar(require_parseArn(), exports); - tslib_1.__exportStar(require_partition(), exports); - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js -var require_booleanEquals = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.booleanEquals = void 0; - var booleanEquals = (value1, value2) => value1 === value2; - exports.booleanEquals = booleanEquals; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js -var require_getAttrPathList = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js +var require_pureJs = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getAttrPathList = void 0; - var types_1 = require_types2(); - var getAttrPathList = (path) => { - const parts = path.split("."); - const pathList = []; - for (const part of parts) { - const squareBracketIndex = part.indexOf("["); - if (squareBracketIndex !== -1) { - if (part.indexOf("]") !== part.length - 1) { - throw new types_1.EndpointError(`Path: '${path}' does not end with ']'`); - } - const arrayIndex = part.slice(squareBracketIndex + 1, -1); - if (Number.isNaN(parseInt(arrayIndex))) { - throw new types_1.EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`); - } - if (squareBracketIndex !== 0) { - pathList.push(part.slice(0, squareBracketIndex)); - } - pathList.push(arrayIndex); + exports.toUtf8 = exports.fromUtf8 = void 0; + var fromUtf8 = (input) => { + const bytes = []; + for (let i = 0, len = input.length; i < len; i++) { + const value = input.charCodeAt(i); + if (value < 128) { + bytes.push(value); + } else if (value < 2048) { + bytes.push(value >> 6 | 192, value & 63 | 128); + } else if (i + 1 < input.length && (value & 64512) === 55296 && (input.charCodeAt(i + 1) & 64512) === 56320) { + const surrogatePair = 65536 + ((value & 1023) << 10) + (input.charCodeAt(++i) & 1023); + bytes.push(surrogatePair >> 18 | 240, surrogatePair >> 12 & 63 | 128, surrogatePair >> 6 & 63 | 128, surrogatePair & 63 | 128); } else { - pathList.push(part); + bytes.push(value >> 12 | 224, value >> 6 & 63 | 128, value & 63 | 128); } } - return pathList; + return Uint8Array.from(bytes); }; - exports.getAttrPathList = getAttrPathList; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js -var require_getAttr = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getAttr = void 0; - var types_1 = require_types2(); - var getAttrPathList_1 = require_getAttrPathList(); - var getAttr = (value, path) => (0, getAttrPathList_1.getAttrPathList)(path).reduce((acc, index) => { - if (typeof acc !== "object") { - throw new types_1.EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`); - } else if (Array.isArray(acc)) { - return acc[parseInt(index)]; + exports.fromUtf8 = fromUtf8; + var toUtf8 = (input) => { + let decoded = ""; + for (let i = 0, len = input.length; i < len; i++) { + const byte = input[i]; + if (byte < 128) { + decoded += String.fromCharCode(byte); + } else if (192 <= byte && byte < 224) { + const nextByte = input[++i]; + decoded += String.fromCharCode((byte & 31) << 6 | nextByte & 63); + } else if (240 <= byte && byte < 365) { + const surrogatePair = [byte, input[++i], input[++i], input[++i]]; + const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%"); + decoded += decodeURIComponent(encoded); + } else { + decoded += String.fromCharCode((byte & 15) << 12 | (input[++i] & 63) << 6 | input[++i] & 63); + } } - return acc[index]; - }, value); - exports.getAttr = getAttr; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js -var require_isSet = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.isSet = void 0; - var isSet = (value) => value != null; - exports.isSet = isSet; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js -var require_not = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.not = void 0; - var not = (value) => !value; - exports.not = not; - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/abort.js -var require_abort2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/auth.js -var require_auth2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.HttpAuthLocation = void 0; - var HttpAuthLocation; - (function(HttpAuthLocation2) { - HttpAuthLocation2["HEADER"] = "header"; - HttpAuthLocation2["QUERY"] = "query"; - })(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js -var require_blob_types = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + return decoded; + }; + exports.toUtf8 = toUtf8; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js -var require_checksum2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js +var require_whatwgEncodingApi = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.toUtf8 = exports.fromUtf8 = void 0; + function fromUtf8(input) { + return new TextEncoder().encode(input); + } + exports.fromUtf8 = fromUtf8; + function toUtf8(input) { + return new TextDecoder("utf-8").decode(input); + } + exports.toUtf8 = toUtf8; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/client.js -var require_client2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/client.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js +var require_dist_cjs17 = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.toUtf8 = exports.fromUtf8 = void 0; + var pureJs_1 = require_pureJs(); + var whatwgEncodingApi_1 = require_whatwgEncodingApi(); + var fromUtf8 = (input) => typeof TextEncoder === "function" ? (0, whatwgEncodingApi_1.fromUtf8)(input) : (0, pureJs_1.fromUtf8)(input); + exports.fromUtf8 = fromUtf8; + var toUtf8 = (input) => typeof TextDecoder === "function" ? (0, whatwgEncodingApi_1.toUtf8)(input) : (0, pureJs_1.toUtf8)(input); + exports.toUtf8 = toUtf8; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/command.js -var require_command2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/command.js"(exports) { +// ../../../node_modules/@aws-crypto/util/build/convertToBuffer.js +var require_convertToBuffer = __commonJS({ + "../../../node_modules/@aws-crypto/util/build/convertToBuffer.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.convertToBuffer = void 0; + var util_utf8_browser_1 = require_dist_cjs17(); + var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from ? function(input) { + return Buffer.from(input, "utf8"); + } : util_utf8_browser_1.fromUtf8; + function convertToBuffer(data) { + if (data instanceof Uint8Array) + return data; + if (typeof data === "string") { + return fromUtf8(data); + } + if (ArrayBuffer.isView(data)) { + return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); + } + return new Uint8Array(data); + } + exports.convertToBuffer = convertToBuffer; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/config.js -var require_config2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/connection/config.js"(exports) { +// ../../../node_modules/@aws-crypto/util/build/isEmptyData.js +var require_isEmptyData = __commonJS({ + "../../../node_modules/@aws-crypto/util/build/isEmptyData.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.isEmptyData = void 0; + function isEmptyData(data) { + if (typeof data === "string") { + return data.length === 0; + } + return data.byteLength === 0; + } + exports.isEmptyData = isEmptyData; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/manager.js -var require_manager2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/connection/manager.js"(exports) { +// ../../../node_modules/@aws-crypto/util/build/numToUint8.js +var require_numToUint8 = __commonJS({ + "../../../node_modules/@aws-crypto/util/build/numToUint8.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.numToUint8 = void 0; + function numToUint8(num) { + return new Uint8Array([ + (num & 4278190080) >> 24, + (num & 16711680) >> 16, + (num & 65280) >> 8, + num & 255 + ]); + } + exports.numToUint8 = numToUint8; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/pool.js -var require_pool2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/connection/pool.js"(exports) { +// ../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js +var require_uint32ArrayFrom = __commonJS({ + "../../../node_modules/@aws-crypto/util/build/uint32ArrayFrom.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.uint32ArrayFrom = void 0; + function uint32ArrayFrom(a_lookUpTable) { + if (!Uint32Array.from) { + var return_array = new Uint32Array(a_lookUpTable.length); + var a_index = 0; + while (a_index < a_lookUpTable.length) { + return_array[a_index] = a_lookUpTable[a_index]; + a_index += 1; + } + return return_array; + } + return Uint32Array.from(a_lookUpTable); + } + exports.uint32ArrayFrom = uint32ArrayFrom; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/index.js -var require_connection2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/connection/index.js"(exports) { +// ../../../node_modules/@aws-crypto/util/build/index.js +var require_build = __commonJS({ + "../../../node_modules/@aws-crypto/util/build/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config2(), exports); - tslib_1.__exportStar(require_manager2(), exports); - tslib_1.__exportStar(require_pool2(), exports); + exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0; + var convertToBuffer_1 = require_convertToBuffer(); + Object.defineProperty(exports, "convertToBuffer", { enumerable: true, get: function() { + return convertToBuffer_1.convertToBuffer; + } }); + var isEmptyData_1 = require_isEmptyData(); + Object.defineProperty(exports, "isEmptyData", { enumerable: true, get: function() { + return isEmptyData_1.isEmptyData; + } }); + var numToUint8_1 = require_numToUint8(); + Object.defineProperty(exports, "numToUint8", { enumerable: true, get: function() { + return numToUint8_1.numToUint8; + } }); + var uint32ArrayFrom_1 = require_uint32ArrayFrom(); + Object.defineProperty(exports, "uint32ArrayFrom", { enumerable: true, get: function() { + return uint32ArrayFrom_1.uint32ArrayFrom; + } }); } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js -var require_credentials = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js"(exports) { +// ../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js +var require_aws_crc32 = __commonJS({ + "../../../node_modules/@aws-crypto/crc32/build/aws_crc32.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.AwsCrc32 = void 0; + var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); + var util_1 = require_build(); + var index_1 = require_build2(); + var AwsCrc32 = ( + /** @class */ + function() { + function AwsCrc322() { + this.crc32 = new index_1.Crc32(); + } + AwsCrc322.prototype.update = function(toHash) { + if ((0, util_1.isEmptyData)(toHash)) + return; + this.crc32.update((0, util_1.convertToBuffer)(toHash)); + }; + AwsCrc322.prototype.digest = function() { + return tslib_1.__awaiter(this, void 0, void 0, function() { + return tslib_1.__generator(this, function(_a) { + return [2, (0, util_1.numToUint8)(this.crc32.digest())]; + }); + }); + }; + AwsCrc322.prototype.reset = function() { + this.crc32 = new index_1.Crc32(); + }; + return AwsCrc322; + }() + ); + exports.AwsCrc32 = AwsCrc32; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js -var require_crypto2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports) { +// ../../../node_modules/@aws-crypto/crc32/build/index.js +var require_build2 = __commonJS({ + "../../../node_modules/@aws-crypto/crc32/build/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.AwsCrc32 = exports.Crc32 = exports.crc32 = void 0; + var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2)); + var util_1 = require_build(); + function crc32(data) { + return new Crc32().update(data).digest(); + } + exports.crc32 = crc32; + var Crc32 = ( + /** @class */ + function() { + function Crc322() { + this.checksum = 4294967295; + } + Crc322.prototype.update = function(data) { + var e_1, _a; + try { + for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { + var byte = data_1_1.value; + this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255]; + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (data_1_1 && !data_1_1.done && (_a = data_1.return)) + _a.call(data_1); + } finally { + if (e_1) + throw e_1.error; + } + } + return this; + }; + Crc322.prototype.digest = function() { + return (this.checksum ^ 4294967295) >>> 0; + }; + return Crc322; + }() + ); + exports.Crc32 = Crc32; + var a_lookUpTable = [ + 0, + 1996959894, + 3993919788, + 2567524794, + 124634137, + 1886057615, + 3915621685, + 2657392035, + 249268274, + 2044508324, + 3772115230, + 2547177864, + 162941995, + 2125561021, + 3887607047, + 2428444049, + 498536548, + 1789927666, + 4089016648, + 2227061214, + 450548861, + 1843258603, + 4107580753, + 2211677639, + 325883990, + 1684777152, + 4251122042, + 2321926636, + 335633487, + 1661365465, + 4195302755, + 2366115317, + 997073096, + 1281953886, + 3579855332, + 2724688242, + 1006888145, + 1258607687, + 3524101629, + 2768942443, + 901097722, + 1119000684, + 3686517206, + 2898065728, + 853044451, + 1172266101, + 3705015759, + 2882616665, + 651767980, + 1373503546, + 3369554304, + 3218104598, + 565507253, + 1454621731, + 3485111705, + 3099436303, + 671266974, + 1594198024, + 3322730930, + 2970347812, + 795835527, + 1483230225, + 3244367275, + 3060149565, + 1994146192, + 31158534, + 2563907772, + 4023717930, + 1907459465, + 112637215, + 2680153253, + 3904427059, + 2013776290, + 251722036, + 2517215374, + 3775830040, + 2137656763, + 141376813, + 2439277719, + 3865271297, + 1802195444, + 476864866, + 2238001368, + 4066508878, + 1812370925, + 453092731, + 2181625025, + 4111451223, + 1706088902, + 314042704, + 2344532202, + 4240017532, + 1658658271, + 366619977, + 2362670323, + 4224994405, + 1303535960, + 984961486, + 2747007092, + 3569037538, + 1256170817, + 1037604311, + 2765210733, + 3554079995, + 1131014506, + 879679996, + 2909243462, + 3663771856, + 1141124467, + 855842277, + 2852801631, + 3708648649, + 1342533948, + 654459306, + 3188396048, + 3373015174, + 1466479909, + 544179635, + 3110523913, + 3462522015, + 1591671054, + 702138776, + 2966460450, + 3352799412, + 1504918807, + 783551873, + 3082640443, + 3233442989, + 3988292384, + 2596254646, + 62317068, + 1957810842, + 3939845945, + 2647816111, + 81470997, + 1943803523, + 3814918930, + 2489596804, + 225274430, + 2053790376, + 3826175755, + 2466906013, + 167816743, + 2097651377, + 4027552580, + 2265490386, + 503444072, + 1762050814, + 4150417245, + 2154129355, + 426522225, + 1852507879, + 4275313526, + 2312317920, + 282753626, + 1742555852, + 4189708143, + 2394877945, + 397917763, + 1622183637, + 3604390888, + 2714866558, + 953729732, + 1340076626, + 3518719985, + 2797360999, + 1068828381, + 1219638859, + 3624741850, + 2936675148, + 906185462, + 1090812512, + 3747672003, + 2825379669, + 829329135, + 1181335161, + 3412177804, + 3160834842, + 628085408, + 1382605366, + 3423369109, + 3138078467, + 570562233, + 1426400815, + 3317316542, + 2998733608, + 733239954, + 1555261956, + 3268935591, + 3050360625, + 752459403, + 1541320221, + 2607071920, + 3965973030, + 1969922972, + 40735498, + 2617837225, + 3943577151, + 1913087877, + 83908371, + 2512341634, + 3803740692, + 2075208622, + 213261112, + 2463272603, + 3855990285, + 2094854071, + 198958881, + 2262029012, + 4057260610, + 1759359992, + 534414190, + 2176718541, + 4139329115, + 1873836001, + 414664567, + 2282248934, + 4279200368, + 1711684554, + 285281116, + 2405801727, + 4167216745, + 1634467795, + 376229701, + 2685067896, + 3608007406, + 1308918612, + 956543938, + 2808555105, + 3495958263, + 1231636301, + 1047427035, + 2932959818, + 3654703836, + 1088359270, + 936918e3, + 2847714899, + 3736837829, + 1202900863, + 817233897, + 3183342108, + 3401237130, + 1404277552, + 615818150, + 3134207493, + 3453421203, + 1423857449, + 601450431, + 3009837614, + 3294710456, + 1567103746, + 711928724, + 3020668471, + 3272380065, + 1510334235, + 755167117 + ]; + var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable); + var aws_crc32_1 = require_aws_crc32(); + Object.defineProperty(exports, "AwsCrc32", { enumerable: true, get: function() { + return aws_crc32_1.AwsCrc32; + } }); } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/dns.js -var require_dns = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/dns.js"(exports) { +// ../../../node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js +var require_dist_cjs18 = __commonJS({ + "../../../node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.HostAddressType = void 0; - var HostAddressType; - (function(HostAddressType2) { - HostAddressType2["AAAA"] = "AAAA"; - HostAddressType2["A"] = "A"; - })(HostAddressType = exports.HostAddressType || (exports.HostAddressType = {})); + exports.toHex = exports.fromHex = void 0; + var SHORT_TO_HEX = {}; + var HEX_TO_SHORT = {}; + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; + } + function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } + } + return out; + } + exports.fromHex = fromHex; + function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; + } + exports.toHex = toHex; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/encode.js -var require_encode2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/encode.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/Int64.js +var require_Int64 = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/Int64.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.Int64 = void 0; + var util_hex_encoding_1 = require_dist_cjs18(); + var Int64 = class { + constructor(bytes) { + this.bytes = bytes; + if (bytes.byteLength !== 8) { + throw new Error("Int64 buffers must be exactly 8 bytes"); + } + } + static fromNumber(number) { + if (number > 9223372036854776e3 || number < -9223372036854776e3) { + throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); + } + const bytes = new Uint8Array(8); + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; + } + if (number < 0) { + negate(bytes); + } + return new Int64(bytes); + } + valueOf() { + const bytes = this.bytes.slice(0); + const negative = bytes[0] & 128; + if (negative) { + negate(bytes); + } + return parseInt((0, util_hex_encoding_1.toHex)(bytes), 16) * (negative ? -1 : 1); + } + toString() { + return String(this.valueOf()); + } + }; + exports.Int64 = Int64; + function negate(bytes) { + for (let i = 0; i < 8; i++) { + bytes[i] ^= 255; + } + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) + break; + } + } } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js -var require_endpoint2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/HeaderMarshaller.js +var require_HeaderMarshaller = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/HeaderMarshaller.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointURLScheme = void 0; - var EndpointURLScheme; - (function(EndpointURLScheme2) { - EndpointURLScheme2["HTTP"] = "http"; - EndpointURLScheme2["HTTPS"] = "https"; - })(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {})); + exports.HeaderMarshaller = void 0; + var util_hex_encoding_1 = require_dist_cjs18(); + var Int64_1 = require_Int64(); + var HeaderMarshaller = class { + constructor(toUtf8, fromUtf8) { + this.toUtf8 = toUtf8; + this.fromUtf8 = fromUtf8; + } + format(headers) { + const chunks = []; + for (const headerName of Object.keys(headers)) { + const bytes = this.fromUtf8(headerName); + chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); + } + const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); + let position = 0; + for (const chunk of chunks) { + out.set(chunk, position); + position += chunk.byteLength; + } + return out; + } + formatHeaderValue(header) { + switch (header.type) { + case "boolean": + return Uint8Array.from([header.value ? 0 : 1]); + case "byte": + return Uint8Array.from([2, header.value]); + case "short": + const shortView = new DataView(new ArrayBuffer(3)); + shortView.setUint8(0, 3); + shortView.setInt16(1, header.value, false); + return new Uint8Array(shortView.buffer); + case "integer": + const intView = new DataView(new ArrayBuffer(5)); + intView.setUint8(0, 4); + intView.setInt32(1, header.value, false); + return new Uint8Array(intView.buffer); + case "long": + const longBytes = new Uint8Array(9); + longBytes[0] = 5; + longBytes.set(header.value.bytes, 1); + return longBytes; + case "binary": + const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); + binView.setUint8(0, 6); + binView.setUint16(1, header.value.byteLength, false); + const binBytes = new Uint8Array(binView.buffer); + binBytes.set(header.value, 3); + return binBytes; + case "string": + const utf8Bytes = this.fromUtf8(header.value); + const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); + strView.setUint8(0, 7); + strView.setUint16(1, utf8Bytes.byteLength, false); + const strBytes = new Uint8Array(strView.buffer); + strBytes.set(utf8Bytes, 3); + return strBytes; + case "timestamp": + const tsBytes = new Uint8Array(9); + tsBytes[0] = 8; + tsBytes.set(Int64_1.Int64.fromNumber(header.value.valueOf()).bytes, 1); + return tsBytes; + case "uuid": + if (!UUID_PATTERN.test(header.value)) { + throw new Error(`Invalid UUID received: ${header.value}`); + } + const uuidBytes = new Uint8Array(17); + uuidBytes[0] = 9; + uuidBytes.set((0, util_hex_encoding_1.fromHex)(header.value.replace(/\-/g, "")), 1); + return uuidBytes; + } + } + parse(headers) { + const out = {}; + let position = 0; + while (position < headers.byteLength) { + const nameLength = headers.getUint8(position++); + const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength)); + position += nameLength; + switch (headers.getUint8(position++)) { + case 0: + out[name] = { + type: BOOLEAN_TAG, + value: true + }; + break; + case 1: + out[name] = { + type: BOOLEAN_TAG, + value: false + }; + break; + case 2: + out[name] = { + type: BYTE_TAG, + value: headers.getInt8(position++) + }; + break; + case 3: + out[name] = { + type: SHORT_TAG, + value: headers.getInt16(position, false) + }; + position += 2; + break; + case 4: + out[name] = { + type: INT_TAG, + value: headers.getInt32(position, false) + }; + position += 4; + break; + case 5: + out[name] = { + type: LONG_TAG, + value: new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)) + }; + position += 8; + break; + case 6: + const binaryLength = headers.getUint16(position, false); + position += 2; + out[name] = { + type: BINARY_TAG, + value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength) + }; + position += binaryLength; + break; + case 7: + const stringLength = headers.getUint16(position, false); + position += 2; + out[name] = { + type: STRING_TAG, + value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)) + }; + position += stringLength; + break; + case 8: + out[name] = { + type: TIMESTAMP_TAG, + value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()) + }; + position += 8; + break; + case 9: + const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16); + position += 16; + out[name] = { + type: UUID_TAG, + value: `${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(0, 4))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(4, 6))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(6, 8))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(8, 10))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(10))}` + }; + break; + default: + throw new Error(`Unrecognized header type tag`); + } + } + return out; + } + }; + exports.HeaderMarshaller = HeaderMarshaller; + var HEADER_VALUE_TYPE; + (function(HEADER_VALUE_TYPE2) { + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolTrue"] = 0] = "boolTrue"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["boolFalse"] = 1] = "boolFalse"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byte"] = 2] = "byte"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["short"] = 3] = "short"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["integer"] = 4] = "integer"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["long"] = 5] = "long"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["byteArray"] = 6] = "byteArray"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["string"] = 7] = "string"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["timestamp"] = 8] = "timestamp"; + HEADER_VALUE_TYPE2[HEADER_VALUE_TYPE2["uuid"] = 9] = "uuid"; + })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); + var BOOLEAN_TAG = "boolean"; + var BYTE_TAG = "byte"; + var SHORT_TAG = "short"; + var INT_TAG = "integer"; + var LONG_TAG = "long"; + var BINARY_TAG = "binary"; + var STRING_TAG = "string"; + var TIMESTAMP_TAG = "timestamp"; + var UUID_TAG = "uuid"; + var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js -var require_eventStream2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/splitMessage.js +var require_splitMessage = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/splitMessage.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.splitMessage = void 0; + var crc32_1 = require_build2(); + var PRELUDE_MEMBER_LENGTH = 4; + var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; + var CHECKSUM_LENGTH = 4; + var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; + function splitMessage({ byteLength, byteOffset, buffer }) { + if (byteLength < MINIMUM_MESSAGE_LENGTH) { + throw new Error("Provided message too short to accommodate event stream message overhead"); + } + const view = new DataView(buffer, byteOffset, byteLength); + const messageLength = view.getUint32(0, false); + if (byteLength !== messageLength) { + throw new Error("Reported message length does not match received message length"); + } + const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); + const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); + const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); + const checksummer = new crc32_1.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); + if (expectedPreludeChecksum !== checksummer.digest()) { + throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`); + } + checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); + if (expectedMessageChecksum !== checksummer.digest()) { + throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`); + } + return { + headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), + body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)) + }; + } + exports.splitMessage = splitMessage; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/http.js -var require_http2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/http.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/EventStreamCodec.js +var require_EventStreamCodec = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/EventStreamCodec.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.EventStreamCodec = void 0; + var crc32_1 = require_build2(); + var HeaderMarshaller_1 = require_HeaderMarshaller(); + var splitMessage_1 = require_splitMessage(); + var EventStreamCodec = class { + constructor(toUtf8, fromUtf8) { + this.headerMarshaller = new HeaderMarshaller_1.HeaderMarshaller(toUtf8, fromUtf8); + this.messageBuffer = []; + this.isEndOfStream = false; + } + feed(message) { + this.messageBuffer.push(this.decode(message)); + } + endOfStream() { + this.isEndOfStream = true; + } + getMessage() { + const message = this.messageBuffer.pop(); + const isEndOfStream = this.isEndOfStream; + return { + getMessage() { + return message; + }, + isEndOfStream() { + return isEndOfStream; + } + }; + } + getAvailableMessages() { + const messages = this.messageBuffer; + this.messageBuffer = []; + const isEndOfStream = this.isEndOfStream; + return { + getMessages() { + return messages; + }, + isEndOfStream() { + return isEndOfStream; + } + }; + } + encode({ headers: rawHeaders, body }) { + const headers = this.headerMarshaller.format(rawHeaders); + const length = headers.byteLength + body.byteLength + 16; + const out = new Uint8Array(length); + const view = new DataView(out.buffer, out.byteOffset, out.byteLength); + const checksum = new crc32_1.Crc32(); + view.setUint32(0, length, false); + view.setUint32(4, headers.byteLength, false); + view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false); + out.set(headers, 12); + out.set(body, headers.byteLength + 12); + view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false); + return out; + } + decode(message) { + const { headers, body } = (0, splitMessage_1.splitMessage)(message); + return { headers: this.headerMarshaller.parse(headers), body }; + } + formatHeaders(rawHeaders) { + return this.headerMarshaller.format(rawHeaders); + } + }; + exports.EventStreamCodec = EventStreamCodec; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js -var require_AnonymousIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/Message.js +var require_Message = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/Message.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js -var require_AwsCredentialIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/MessageDecoderStream.js +var require_MessageDecoderStream = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/MessageDecoderStream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.MessageDecoderStream = void 0; + var MessageDecoderStream = class { + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const bytes of this.options.inputStream) { + const decoded = this.options.decoder.decode(bytes); + yield decoded; + } + } + }; + exports.MessageDecoderStream = MessageDecoderStream; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js -var require_Identity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/MessageEncoderStream.js +var require_MessageEncoderStream = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/MessageEncoderStream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.MessageEncoderStream = void 0; + var MessageEncoderStream = class { + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const msg of this.options.messageStream) { + const encoded = this.options.encoder.encode(msg); + yield encoded; + } + if (this.options.includeEndFrame) { + yield new Uint8Array(0); + } + } + }; + exports.MessageEncoderStream = MessageEncoderStream; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js -var require_LoginIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +var require_SmithyMessageDecoderStream = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.SmithyMessageDecoderStream = void 0; + var SmithyMessageDecoderStream = class { + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const message of this.options.messageStream) { + const deserialized = await this.options.deserializer(message); + if (deserialized === void 0) + continue; + yield deserialized; + } + } + }; + exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js -var require_TokenIdentity = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +var require_SmithyMessageEncoderStream = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.SmithyMessageEncoderStream = void 0; + var SmithyMessageEncoderStream = class { + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const chunk of this.options.inputStream) { + const payloadBuf = this.options.serializer(chunk); + yield payloadBuf; + } + } + }; + exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js -var require_identity3 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports) { +// ../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/index.js +var require_dist_cjs19 = __commonJS({ + "../../../node_modules/@aws-sdk/eventstream-codec/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AnonymousIdentity(), exports); - tslib_1.__exportStar(require_AwsCredentialIdentity(), exports); - tslib_1.__exportStar(require_Identity(), exports); - tslib_1.__exportStar(require_LoginIdentity(), exports); - tslib_1.__exportStar(require_TokenIdentity(), exports); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/logger.js -var require_logger2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js -var require_middleware2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js -var require_pagination2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/profile.js -var require_profile2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@aws-sdk/types/dist-cjs/request.js -var require_request = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/request.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); + tslib_1.__exportStar(require_EventStreamCodec(), exports); + tslib_1.__exportStar(require_HeaderMarshaller(), exports); + tslib_1.__exportStar(require_Int64(), exports); + tslib_1.__exportStar(require_Message(), exports); + tslib_1.__exportStar(require_MessageDecoderStream(), exports); + tslib_1.__exportStar(require_MessageEncoderStream(), exports); + tslib_1.__exportStar(require_SmithyMessageDecoderStream(), exports); + tslib_1.__exportStar(require_SmithyMessageEncoderStream(), exports); } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/response.js -var require_response2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/response.js"(exports) { +// ../../../node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js +var require_dist_cjs20 = __commonJS({ + "../../../node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.isArrayBuffer = void 0; + var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; + exports.isArrayBuffer = isArrayBuffer; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/retry.js -var require_retry2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/retry.js"(exports) { +// ../../../node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js +var require_dist_cjs21 = __commonJS({ + "../../../node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromString = exports.fromArrayBuffer = void 0; + var is_array_buffer_1 = require_dist_cjs20(); + var buffer_1 = require("buffer"); + var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + } + return buffer_1.Buffer.from(input, offset, length); + }; + exports.fromArrayBuffer = fromArrayBuffer; + var fromString = (input, encoding) => { + if (typeof input !== "string") { + throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + } + return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); + }; + exports.fromString = fromString; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/serde.js -var require_serde2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8/dist-cjs/fromUtf8.js +var require_fromUtf8 = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8/dist-cjs/fromUtf8.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromUtf8 = void 0; + var util_buffer_from_1 = require_dist_cjs21(); + var fromUtf8 = (input) => { + const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); + }; + exports.fromUtf8 = fromUtf8; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js -var require_shapes2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8/dist-cjs/toUint8Array.js +var require_toUint8Array = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8/dist-cjs/toUint8Array.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.toUint8Array = void 0; + var fromUtf8_1 = require_fromUtf8(); + var toUint8Array = (data) => { + if (typeof data === "string") { + return (0, fromUtf8_1.fromUtf8)(data); + } + if (ArrayBuffer.isView(data)) { + return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); + } + return new Uint8Array(data); + }; + exports.toUint8Array = toUint8Array; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/signature.js -var require_signature2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8/dist-cjs/toUtf8.js +var require_toUtf8 = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8/dist-cjs/toUtf8.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.toUtf8 = void 0; + var util_buffer_from_1 = require_dist_cjs21(); + var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); + exports.toUtf8 = toUtf8; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/stream.js -var require_stream2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports) { +// ../../../node_modules/@aws-sdk/util-utf8/dist-cjs/index.js +var require_dist_cjs22 = __commonJS({ + "../../../node_modules/@aws-sdk/util-utf8/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_fromUtf8(), exports); + tslib_1.__exportStar(require_toUint8Array(), exports); + tslib_1.__exportStar(require_toUtf8(), exports); } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/token.js -var require_token = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/token.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js +var require_constants3 = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; + exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; + exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; + exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; + exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; + exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; + exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; + exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; + exports.REGION_SET_PARAM = "X-Amz-Region-Set"; + exports.AUTH_HEADER = "authorization"; + exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); + exports.DATE_HEADER = "date"; + exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; + exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); + exports.SHA256_HEADER = "x-amz-content-sha256"; + exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); + exports.HOST_HEADER = "host"; + exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true + }; + exports.PROXY_HEADER_PATTERN = /^proxy-/; + exports.SEC_HEADER_PATTERN = /^sec-/; + exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; + exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; + exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; + exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; + exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; + exports.MAX_CACHE_SIZE = 50; + exports.KEY_TYPE_IDENTIFIER = "aws4_request"; + exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js -var require_transfer2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js +var require_credentialDerivation = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.RequestHandlerProtocol = void 0; - var RequestHandlerProtocol; - (function(RequestHandlerProtocol2) { - RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; - RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; - RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; - })(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {})); + exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; + var util_hex_encoding_1 = require_dist_cjs18(); + var util_utf8_1 = require_dist_cjs22(); + var constants_1 = require_constants3(); + var signingKeyCache = {}; + var cacheQueue = []; + var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; + exports.createScope = createScope; + var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return signingKeyCache[cacheKey] = key; + }; + exports.getSigningKey = getSigningKey; + var clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); + }; + exports.clearCredentialCache = clearCredentialCache; + var hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update((0, util_utf8_1.toUint8Array)(data)); + return hash.digest(); + }; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/uri.js -var require_uri2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/uri.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js +var require_getCanonicalHeaders = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCanonicalHeaders = void 0; + var constants_1 = require_constants3(); + var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == void 0) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; + }; + exports.getCanonicalHeaders = getCanonicalHeaders; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/util.js -var require_util2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/util.js"(exports) { +// ../../../node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js +var require_escape_uri = __commonJS({ + "../../../node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUri = void 0; + var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); + exports.escapeUri = escapeUri; + var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js -var require_waiter2 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports) { +// ../../../node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js +var require_escape_uri_path = __commonJS({ + "../../../node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.escapeUriPath = void 0; + var escape_uri_1 = require_escape_uri(); + var escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); + exports.escapeUriPath = escapeUriPath; } }); -// ../../../node_modules/@aws-sdk/types/dist-cjs/index.js -var require_dist_cjs17 = __commonJS({ - "../../../node_modules/@aws-sdk/types/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js +var require_dist_cjs23 = __commonJS({ + "../../../node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_abort2(), exports); - tslib_1.__exportStar(require_auth2(), exports); - tslib_1.__exportStar(require_blob_types(), exports); - tslib_1.__exportStar(require_checksum2(), exports); - tslib_1.__exportStar(require_client2(), exports); - tslib_1.__exportStar(require_command2(), exports); - tslib_1.__exportStar(require_connection2(), exports); - tslib_1.__exportStar(require_credentials(), exports); - tslib_1.__exportStar(require_crypto2(), exports); - tslib_1.__exportStar(require_dns(), exports); - tslib_1.__exportStar(require_encode2(), exports); - tslib_1.__exportStar(require_endpoint2(), exports); - tslib_1.__exportStar(require_eventStream2(), exports); - tslib_1.__exportStar(require_http2(), exports); - tslib_1.__exportStar(require_identity3(), exports); - tslib_1.__exportStar(require_logger2(), exports); - tslib_1.__exportStar(require_middleware2(), exports); - tslib_1.__exportStar(require_pagination2(), exports); - tslib_1.__exportStar(require_profile2(), exports); - tslib_1.__exportStar(require_request(), exports); - tslib_1.__exportStar(require_response2(), exports); - tslib_1.__exportStar(require_retry2(), exports); - tslib_1.__exportStar(require_serde2(), exports); - tslib_1.__exportStar(require_shapes2(), exports); - tslib_1.__exportStar(require_signature2(), exports); - tslib_1.__exportStar(require_stream2(), exports); - tslib_1.__exportStar(require_token(), exports); - tslib_1.__exportStar(require_transfer2(), exports); - tslib_1.__exportStar(require_uri2(), exports); - tslib_1.__exportStar(require_util2(), exports); - tslib_1.__exportStar(require_waiter2(), exports); + tslib_1.__exportStar(require_escape_uri(), exports); + tslib_1.__exportStar(require_escape_uri_path(), exports); } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js -var require_parseURL = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js +var require_getCanonicalQuery = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseURL = void 0; - var types_1 = require_dist_cjs17(); - var isIpAddress_1 = require_isIpAddress(); - var DEFAULT_PORTS = { - [types_1.EndpointURLScheme.HTTP]: 80, - [types_1.EndpointURLScheme.HTTPS]: 443 - }; - var parseURL = (value) => { - const whatwgURL = (() => { - try { - if (value instanceof URL) { - return value; - } - if (typeof value === "object" && "hostname" in value) { - const { hostname: hostname2, port, protocol: protocol2 = "", path = "", query = {} } = value; - const url2 = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path}`); - url2.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&"); - return url2; - } - return new URL(value); - } catch (error) { - return null; + exports.getCanonicalQuery = void 0; + var util_uri_escape_1 = require_dist_cjs23(); + var constants_1 = require_constants3(); + var getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + continue; + } + keys.push(key); + const value = query[key]; + if (typeof value === "string") { + serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; + } else if (Array.isArray(value)) { + serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value2)}`]), []).join("&"); } - })(); - if (!whatwgURL) { - console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`); - return null; - } - const urlString = whatwgURL.href; - const { host, hostname, pathname, protocol, search } = whatwgURL; - if (search) { - return null; - } - const scheme = protocol.slice(0, -1); - if (!Object.values(types_1.EndpointURLScheme).includes(scheme)) { - return null; - } - const isIp = (0, isIpAddress_1.isIpAddress)(hostname); - const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`); - const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`; - return { - scheme, - authority, - path: pathname, - normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`, - isIp - }; - }; - exports.parseURL = parseURL; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js -var require_stringEquals = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.stringEquals = void 0; - var stringEquals = (value1, value2) => value1 === value2; - exports.stringEquals = stringEquals; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js -var require_substring = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.substring = void 0; - var substring = (input, start, stop, reverse) => { - if (start >= stop || input.length < stop) { - return null; - } - if (!reverse) { - return input.substring(start, stop); } - return input.substring(input.length - stop, input.length - start); + return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join("&"); }; - exports.substring = substring; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js -var require_uriEncode = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.uriEncode = void 0; - var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); - exports.uriEncode = uriEncode; + exports.getCanonicalQuery = getCanonicalQuery; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js -var require_lib = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js +var require_getPayloadHash = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.aws = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - exports.aws = tslib_1.__importStar(require_aws()); - tslib_1.__exportStar(require_booleanEquals(), exports); - tslib_1.__exportStar(require_getAttr(), exports); - tslib_1.__exportStar(require_isSet(), exports); - tslib_1.__exportStar(require_isValidHostLabel(), exports); - tslib_1.__exportStar(require_not(), exports); - tslib_1.__exportStar(require_parseURL(), exports); - tslib_1.__exportStar(require_stringEquals(), exports); - tslib_1.__exportStar(require_substring(), exports); - tslib_1.__exportStar(require_uriEncode(), exports); + exports.getPayloadHash = void 0; + var is_array_buffer_1 = require_dist_cjs20(); + var util_hex_encoding_1 = require_dist_cjs18(); + var util_utf8_1 = require_dist_cjs22(); + var constants_1 = require_constants3(); + var getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == void 0) { + return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + } else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update((0, util_utf8_1.toUint8Array)(body)); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; + }; + exports.getPayloadHash = getPayloadHash; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js -var require_evaluateTemplate = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js +var require_headerUtil = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateTemplate = void 0; - var lib_1 = require_lib(); - var evaluateTemplate = (template, options) => { - const evaluatedTemplateArr = []; - const templateContext = { - ...options.endpointParams, - ...options.referenceRecord - }; - let currentIndex = 0; - while (currentIndex < template.length) { - const openingBraceIndex = template.indexOf("{", currentIndex); - if (openingBraceIndex === -1) { - evaluatedTemplateArr.push(template.slice(currentIndex)); - break; - } - evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex)); - const closingBraceIndex = template.indexOf("}", openingBraceIndex); - if (closingBraceIndex === -1) { - evaluatedTemplateArr.push(template.slice(openingBraceIndex)); - break; + exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; + var hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; } - if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") { - evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex)); - currentIndex = closingBraceIndex + 2; + } + return false; + }; + exports.hasHeader = hasHeader; + var getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; } - const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex); - if (parameterName.includes("#")) { - const [refName, attrName] = parameterName.split("#"); - evaluatedTemplateArr.push((0, lib_1.getAttr)(templateContext[refName], attrName)); - } else { - evaluatedTemplateArr.push(templateContext[parameterName]); + } + return void 0; + }; + exports.getHeaderValue = getHeaderValue; + var deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; } - currentIndex = closingBraceIndex + 1; } - return evaluatedTemplateArr.join(""); }; - exports.evaluateTemplate = evaluateTemplate; + exports.deleteHeader = deleteHeader; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js -var require_getReferenceValue = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js +var require_cloneRequest = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getReferenceValue = void 0; - var getReferenceValue = ({ ref }, options) => { - const referenceRecord = { - ...options.endpointParams, - ...options.referenceRecord + exports.cloneQuery = exports.cloneRequest = void 0; + var cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports.cloneQuery)(query) : void 0 + }); + exports.cloneRequest = cloneRequest; + var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param }; - return referenceRecord[ref]; - }; - exports.getReferenceValue = getReferenceValue; + }, {}); + exports.cloneQuery = cloneQuery; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js -var require_evaluateExpression = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js +var require_moveHeadersToQuery = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateExpression = void 0; - var types_1 = require_types2(); - var callFunction_1 = require_callFunction(); - var evaluateTemplate_1 = require_evaluateTemplate(); - var getReferenceValue_1 = require_getReferenceValue(); - var evaluateExpression = (obj, keyName, options) => { - if (typeof obj === "string") { - return (0, evaluateTemplate_1.evaluateTemplate)(obj, options); - } else if (obj["fn"]) { - return (0, callFunction_1.callFunction)(obj, options); - } else if (obj["ref"]) { - return (0, getReferenceValue_1.getReferenceValue)(obj, options); + exports.moveHeadersToQuery = void 0; + var cloneRequest_1 = require_cloneRequest(); + var moveHeadersToQuery = (request2, options = {}) => { + var _a; + const { headers, query = {} } = typeof request2.clone === "function" ? request2.clone() : (0, cloneRequest_1.cloneRequest)(request2); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + query[name] = headers[name]; + delete headers[name]; + } } - throw new types_1.EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`); + return { + ...request2, + headers, + query + }; }; - exports.evaluateExpression = evaluateExpression; + exports.moveHeadersToQuery = moveHeadersToQuery; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js -var require_callFunction = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +var require_prepareRequest = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.callFunction = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - var lib = tslib_1.__importStar(require_lib()); - var evaluateExpression_1 = require_evaluateExpression(); - var callFunction = ({ fn, argv }, options) => { - const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : (0, evaluateExpression_1.evaluateExpression)(arg, "arg", options)); - return fn.split(".").reduce((acc, key) => acc[key], lib)(...evaluatedArgs); + exports.prepareRequest = void 0; + var cloneRequest_1 = require_cloneRequest(); + var constants_1 = require_constants3(); + var prepareRequest = (request2) => { + request2 = typeof request2.clone === "function" ? request2.clone() : (0, cloneRequest_1.cloneRequest)(request2); + for (const headerName of Object.keys(request2.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request2.headers[headerName]; + } + } + return request2; }; - exports.callFunction = callFunction; + exports.prepareRequest = prepareRequest; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js -var require_evaluateCondition = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js +var require_utilDate = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateCondition = void 0; - var debug_1 = require_debug(); - var types_1 = require_types2(); - var callFunction_1 = require_callFunction(); - var evaluateCondition = ({ assign, ...fnArgs }, options) => { - var _a, _b; - if (assign && assign in options.referenceRecord) { - throw new types_1.EndpointError(`'${assign}' is already defined in Reference Record.`); + exports.toDate = exports.iso8601 = void 0; + var iso8601 = (time) => (0, exports.toDate)(time).toISOString().replace(/\.\d{3}Z$/, "Z"); + exports.iso8601 = iso8601; + var toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1e3); } - const value = (0, callFunction_1.callFunction)(fnArgs, options); - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `evaluateCondition: ${(0, debug_1.toDebugString)(fnArgs)} = ${(0, debug_1.toDebugString)(value)}`); - return { - result: value === "" ? true : !!value, - ...assign != null && { toAssign: { name: assign, value } } - }; + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1e3); + } + return new Date(time); + } + return time; }; - exports.evaluateCondition = evaluateCondition; + exports.toDate = toDate; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js -var require_evaluateConditions = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js +var require_SignatureV4 = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateConditions = void 0; - var debug_1 = require_debug(); - var evaluateCondition_1 = require_evaluateCondition(); - var evaluateConditions = (conditions = [], options) => { - var _a, _b; - const conditionsReferenceRecord = {}; - for (const condition of conditions) { - const { result, toAssign } = (0, evaluateCondition_1.evaluateCondition)(condition, { - ...options, - referenceRecord: { - ...options.referenceRecord, - ...conditionsReferenceRecord - } + exports.SignatureV4 = void 0; + var eventstream_codec_1 = require_dist_cjs19(); + var util_hex_encoding_1 = require_dist_cjs18(); + var util_middleware_1 = require_dist_cjs2(); + var util_utf8_1 = require_dist_cjs22(); + var constants_1 = require_constants3(); + var credentialDerivation_1 = require_credentialDerivation(); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + var getPayloadHash_1 = require_getPayloadHash(); + var headerUtil_1 = require_headerUtil(); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + var prepareRequest_1 = require_prepareRequest(); + var utilDate_1 = require_utilDate(); + var SignatureV4 = class { + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { + this.headerMarshaller = new eventstream_codec_1.HeaderMarshaller(util_utf8_1.toUtf8, util_utf8_1.fromUtf8); + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + } + async presign(originalRequest, options = {}) { + const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { longDate, shortDate } = formatDate(signingDate); + if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request2 = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request2.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request2.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request2.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request2.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request2.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request2, unsignableHeaders, signableHeaders); + request2.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request2.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request2, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request2; + } + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } else if (toSign.message) { + return this.signMessage(toSign, options); + } else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate, longDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload + ].join("\n"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) { + const promise = this.signEvent({ + headers: this.headerMarshaller.format(signableMessage.message.headers), + payload: signableMessage.message.body + }, { + signingDate, + signingRegion, + signingService, + priorSignature: signableMessage.priorSignature }); - if (!result) { - return { result }; + return promise.then((signature) => { + return { message: signableMessage.message, signature }; + }); + } + async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = /* @__PURE__ */ new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const request2 = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request2.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request2.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; } - if (toAssign) { - conditionsReferenceRecord[toAssign.name] = toAssign.value; - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `assign: ${toAssign.name} := ${(0, debug_1.toDebugString)(toAssign.value)}`); + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request2, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request2.headers) && this.applyChecksum) { + request2.headers[constants_1.SHA256_HEADER] = payloadHash; } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request2, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request2, canonicalHeaders, payloadHash)); + request2.headers[constants_1.AUTH_HEADER] = `${constants_1.ALGORITHM_IDENTIFIER} Credential=${credentials.accessKeyId}/${scope}, SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, Signature=${signature}`; + return request2; } - return { result: true, referenceRecord: conditionsReferenceRecord }; - }; - exports.evaluateConditions = evaluateConditions; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js -var require_getEndpointHeaders = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointHeaders = void 0; - var types_1 = require_types2(); - var evaluateExpression_1 = require_evaluateExpression(); - var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({ - ...acc, - [headerKey]: headerVal.map((headerValEntry) => { - const processedExpr = (0, evaluateExpression_1.evaluateExpression)(headerValEntry, "Header value entry", options); - if (typeof processedExpr !== "string") { - throw new types_1.EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`); - } - return processedExpr; - }) - }), {}); - exports.getEndpointHeaders = getEndpointHeaders; - } -}); + createCanonicalRequest(request2, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request2.method} +${this.getCanonicalPath(request2)} +${(0, getCanonicalQuery_1.getCanonicalQuery)(request2)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js -var require_getEndpointProperty = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointProperty = void 0; - var types_1 = require_types2(); - var evaluateTemplate_1 = require_evaluateTemplate(); - var getEndpointProperties_1 = require_getEndpointProperties(); - var getEndpointProperty = (property, options) => { - if (Array.isArray(property)) { - return property.map((propertyEntry) => (0, exports.getEndpointProperty)(propertyEntry, options)); +${sortedHeaders.join(";")} +${payloadHash}`; } - switch (typeof property) { - case "string": - return (0, evaluateTemplate_1.evaluateTemplate)(property, options); - case "object": - if (property === null) { - throw new types_1.EndpointError(`Unexpected endpoint property: ${property}`); + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update((0, util_utf8_1.toUint8Array)(canonicalRequest)); + const hashedRequest = await hash.digest(); + return `${constants_1.ALGORITHM_IDENTIFIER} +${longDate} +${credentialScope} +${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split("/")) { + if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } else { + normalizedPathSegments.push(pathSegment); + } } - return (0, getEndpointProperties_1.getEndpointProperties)(property, options); - case "boolean": - return property; - default: - throw new types_1.EndpointError(`Unexpected endpoint property type: ${typeof property}`); + const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; + const doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") { + throw new Error("Resolved credential object is not valid"); + } } }; - exports.getEndpointProperty = getEndpointProperty; + exports.SignatureV4 = SignatureV4; + var formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8) + }; + }; + var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js -var require_getEndpointProperties = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js"(exports) { +// ../../../node_modules/@aws-sdk/signature-v4/dist-cjs/index.js +var require_dist_cjs24 = __commonJS({ + "../../../node_modules/@aws-sdk/signature-v4/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointProperties = void 0; - var getEndpointProperty_1 = require_getEndpointProperty(); - var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({ - ...acc, - [propertyKey]: (0, getEndpointProperty_1.getEndpointProperty)(propertyVal, options) - }), {}); - exports.getEndpointProperties = getEndpointProperties; + exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_SignatureV4(), exports); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function() { + return getCanonicalHeaders_1.getCanonicalHeaders; + } }); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function() { + return getCanonicalQuery_1.getCanonicalQuery; + } }); + var getPayloadHash_1 = require_getPayloadHash(); + Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function() { + return getPayloadHash_1.getPayloadHash; + } }); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function() { + return moveHeadersToQuery_1.moveHeadersToQuery; + } }); + var prepareRequest_1 = require_prepareRequest(); + Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function() { + return prepareRequest_1.prepareRequest; + } }); + tslib_1.__exportStar(require_credentialDerivation(), exports); } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js -var require_getEndpointUrl = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js +var require_awsAuthConfiguration = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointUrl = void 0; - var types_1 = require_types2(); - var evaluateExpression_1 = require_evaluateExpression(); - var getEndpointUrl = (endpointUrl, options) => { - const expression = (0, evaluateExpression_1.evaluateExpression)(endpointUrl, "Endpoint URL", options); - if (typeof expression === "string") { - try { - return new URL(expression); - } catch (error) { - console.error(`Failed to construct URL with ${expression}`, error); - throw error; - } + exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; + var property_provider_1 = require_dist_cjs16(); + var signature_v4_1 = require_dist_cjs24(); + var util_middleware_1 = require_dist_cjs2(); + var CREDENTIAL_EXPIRE_WINDOW = 3e5; + var resolveAwsAuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = (0, util_middleware_1.normalizeProvider)(input.signer); + } else if (input.regionInfoProvider) { + signer = () => (0, util_middleware_1.normalizeProvider)(input.region)().then(async (region) => [ + await input.regionInfoProvider(region, { + useFipsEndpoint: await input.useFipsEndpoint(), + useDualstackEndpoint: await input.useDualstackEndpoint() + }) || {}, + region + ]).then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + input.signingRegion = input.signingRegion || signingRegion || region; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; + return new SignerCtor(params); + }); + } else { + signer = async (authScheme) => { + authScheme = Object.assign({}, { + name: "sigv4", + signingName: input.signingName || input.defaultSigningName, + signingRegion: await (0, util_middleware_1.normalizeProvider)(input.region)(), + properties: {} + }, authScheme); + const signingRegion = authScheme.signingRegion; + const signingService = authScheme.signingName; + input.signingRegion = input.signingRegion || signingRegion; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; + return new SignerCtor(params); + }; } - throw new types_1.EndpointError(`Endpoint URL must be a string, got ${typeof expression}`); + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; }; - exports.getEndpointUrl = getEndpointUrl; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js -var require_evaluateEndpointRule = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateEndpointRule = void 0; - var debug_1 = require_debug(); - var evaluateConditions_1 = require_evaluateConditions(); - var getEndpointHeaders_1 = require_getEndpointHeaders(); - var getEndpointProperties_1 = require_getEndpointProperties(); - var getEndpointUrl_1 = require_getEndpointUrl(); - var evaluateEndpointRule = (endpointRule, options) => { - var _a, _b; - const { conditions, endpoint } = endpointRule; - const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); - if (!result) { - return; + exports.resolveAwsAuthConfig = resolveAwsAuthConfig; + var resolveSigV4AuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = (0, util_middleware_1.normalizeProvider)(input.signer); + } else { + signer = (0, util_middleware_1.normalizeProvider)(new signature_v4_1.SignatureV4({ + credentials: normalizedCreds, + region: input.region, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + })); } - const endpointRuleOptions = { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord } - }; - const { url: url2, properties, headers } = endpoint; - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `Resolving endpoint from template: ${(0, debug_1.toDebugString)(endpoint)}`); return { - ...headers != void 0 && { - headers: (0, getEndpointHeaders_1.getEndpointHeaders)(headers, endpointRuleOptions) - }, - ...properties != void 0 && { - properties: (0, getEndpointProperties_1.getEndpointProperties)(properties, endpointRuleOptions) - }, - url: (0, getEndpointUrl_1.getEndpointUrl)(url2, endpointRuleOptions) + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer }; }; - exports.evaluateEndpointRule = evaluateEndpointRule; - } -}); - -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js -var require_evaluateErrorRule = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateErrorRule = void 0; - var types_1 = require_types2(); - var evaluateConditions_1 = require_evaluateConditions(); - var evaluateExpression_1 = require_evaluateExpression(); - var evaluateErrorRule = (errorRule, options) => { - const { conditions, error } = errorRule; - const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); - if (!result) { - return; + exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; + var normalizeCredentialProvider = (credentials) => { + if (typeof credentials === "function") { + return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); } - throw new types_1.EndpointError((0, evaluateExpression_1.evaluateExpression)(error, "Error", { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord } - })); + return (0, util_middleware_1.normalizeProvider)(credentials); }; - exports.evaluateErrorRule = evaluateErrorRule; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js -var require_evaluateTreeRule = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +var require_getSkewCorrectedDate = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateTreeRule = void 0; - var evaluateConditions_1 = require_evaluateConditions(); - var evaluateRules_1 = require_evaluateRules(); - var evaluateTreeRule = (treeRule, options) => { - const { conditions, rules } = treeRule; - const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); - if (!result) { - return; - } - return (0, evaluateRules_1.evaluateRules)(rules, { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord } - }); - }; - exports.evaluateTreeRule = evaluateTreeRule; + exports.getSkewCorrectedDate = void 0; + var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); + exports.getSkewCorrectedDate = getSkewCorrectedDate; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js -var require_evaluateRules = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +var require_isClockSkewed = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.evaluateRules = void 0; - var types_1 = require_types2(); - var evaluateEndpointRule_1 = require_evaluateEndpointRule(); - var evaluateErrorRule_1 = require_evaluateErrorRule(); - var evaluateTreeRule_1 = require_evaluateTreeRule(); - var evaluateRules = (rules, options) => { - for (const rule of rules) { - if (rule.type === "endpoint") { - const endpointOrUndefined = (0, evaluateEndpointRule_1.evaluateEndpointRule)(rule, options); - if (endpointOrUndefined) { - return endpointOrUndefined; - } - } else if (rule.type === "error") { - (0, evaluateErrorRule_1.evaluateErrorRule)(rule, options); - } else if (rule.type === "tree") { - const endpointOrUndefined = (0, evaluateTreeRule_1.evaluateTreeRule)(rule, options); - if (endpointOrUndefined) { - return endpointOrUndefined; - } - } else { - throw new types_1.EndpointError(`Unknown endpoint rule: ${rule}`); - } - } - throw new types_1.EndpointError(`Rules evaluation failed`); - }; - exports.evaluateRules = evaluateRules; + exports.isClockSkewed = void 0; + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; + exports.isClockSkewed = isClockSkewed; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js -var require_utils = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +var require_getUpdatedSystemClockOffset = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_evaluateRules(), exports); + exports.getUpdatedSystemClockOffset = void 0; + var isClockSkewed_1 = require_isClockSkewed(); + var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; + }; + exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js -var require_resolveEndpoint = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js +var require_awsAuthMiddleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveEndpoint = void 0; - var debug_1 = require_debug(); - var types_1 = require_types2(); - var utils_1 = require_utils(); - var resolveEndpoint = (ruleSetObject, options) => { - var _a, _b, _c, _d, _e, _f; - const { endpointParams, logger } = options; - const { parameters, rules } = ruleSetObject; - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, `${debug_1.debugId} Initial EndpointParams: ${(0, debug_1.toDebugString)(endpointParams)}`); - const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]); - if (paramsWithDefault.length > 0) { - for (const [paramKey, paramDefaultValue] of paramsWithDefault) { - endpointParams[paramKey] = (_c = endpointParams[paramKey]) !== null && _c !== void 0 ? _c : paramDefaultValue; - } - } - const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k); - for (const requiredParam of requiredParams) { - if (endpointParams[requiredParam] == null) { - throw new types_1.EndpointError(`Missing required parameter: '${requiredParam}'`); - } - } - const endpoint = (0, utils_1.evaluateRules)(rules, { endpointParams, logger, referenceRecord: {} }); - if ((_d = options.endpointParams) === null || _d === void 0 ? void 0 : _d.Endpoint) { - try { - const givenEndpoint = new URL(options.endpointParams.Endpoint); - const { protocol, port } = givenEndpoint; - endpoint.url.protocol = protocol; - endpoint.url.port = port; - } catch (e) { + exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); + var awsAuthMiddleware = (options) => (next, context) => async function(args) { + var _a, _b, _c, _d; + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const authScheme = (_c = (_b = (_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.authSchemes) === null || _c === void 0 ? void 0 : _c[0]; + const multiRegionOverride = (authScheme === null || authScheme === void 0 ? void 0 : authScheme.name) === "sigv4a" ? (_d = authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegionSet) === null || _d === void 0 ? void 0 : _d.join(",") : void 0; + const signer = await options.signer(authScheme); + const output = await next({ + ...args, + request: await signer.sign(args.request, { + signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), + signingRegion: multiRegionOverride || context["signing_region"], + signingService: context["signing_service"] + }) + }).catch((error) => { + var _a2; + const serverTime = (_a2 = error.ServerTime) !== null && _a2 !== void 0 ? _a2 : getDateHeader(error.$response); + if (serverTime) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); } + throw error; + }); + const dateHeader = getDateHeader(output.response); + if (dateHeader) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); } - (_f = (_e = options.logger) === null || _e === void 0 ? void 0 : _e.debug) === null || _f === void 0 ? void 0 : _f.call(_e, `${debug_1.debugId} Resolved endpoint: ${(0, debug_1.toDebugString)(endpoint)}`); - return endpoint; + return output; }; - exports.resolveEndpoint = resolveEndpoint; + exports.awsAuthMiddleware = awsAuthMiddleware; + var getDateHeader = (response) => { + var _a, _b, _c; + return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; + }; + exports.awsAuthMiddlewareOptions = { + name: "awsAuthMiddleware", + tags: ["SIGNATURE", "AWSAUTH"], + relation: "after", + toMiddleware: "retryMiddleware", + override: true + }; + var getAwsAuthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); + } + }); + exports.getAwsAuthPlugin = getAwsAuthPlugin; + exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; } }); -// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js -var require_dist_cjs18 = __commonJS({ - "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +var require_dist_cjs25 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_partition(), exports); - tslib_1.__exportStar(require_resolveEndpoint(), exports); - tslib_1.__exportStar(require_types2(), exports); + tslib_1.__exportStar(require_awsAuthConfiguration(), exports); + tslib_1.__exportStar(require_awsAuthMiddleware(), exports); } }); -// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js -var require_constants2 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +var require_configurations2 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.UA_ESCAPE_CHAR = exports.UA_VALUE_ESCAPE_REGEX = exports.UA_NAME_ESCAPE_REGEX = exports.UA_NAME_SEPARATOR = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; - exports.USER_AGENT = "user-agent"; - exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; - exports.SPACE = " "; - exports.UA_NAME_SEPARATOR = "/"; - exports.UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; - exports.UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g; - exports.UA_ESCAPE_CHAR = "-"; + exports.resolveUserAgentConfig = void 0; + function resolveUserAgentConfig(input) { + return { + ...input, + customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent + }; + } + exports.resolveUserAgentConfig = resolveUserAgentConfig; } }); -// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js -var require_user_agent_middleware = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; - var util_endpoints_1 = require_dist_cjs18(); - var protocol_http_1 = require_dist_cjs2(); - var constants_1 = require_constants2(); - var userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request: request2 } = args; - if (!protocol_http_1.HttpRequest.isInstance(request2)) - return next(args); - const { headers } = request2; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const prefix = (0, util_endpoints_1.getUserAgentPrefix)(); - const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent - ].join(constants_1.SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` : normalUAValue; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +var require_partitions = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json"(exports, module2) { + module2.exports = { + partitions: [{ + id: "aws", + outputs: { + dnsSuffix: "amazonaws.com", + dualStackDnsSuffix: "api.aws", + name: "aws", + supportsDualStack: true, + supportsFIPS: true + }, + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + regions: { + "af-south-1": { + description: "Africa (Cape Town)" + }, + "ap-east-1": { + description: "Asia Pacific (Hong Kong)" + }, + "ap-northeast-1": { + description: "Asia Pacific (Tokyo)" + }, + "ap-northeast-2": { + description: "Asia Pacific (Seoul)" + }, + "ap-northeast-3": { + description: "Asia Pacific (Osaka)" + }, + "ap-south-1": { + description: "Asia Pacific (Mumbai)" + }, + "ap-south-2": { + description: "Asia Pacific (Hyderabad)" + }, + "ap-southeast-1": { + description: "Asia Pacific (Singapore)" + }, + "ap-southeast-2": { + description: "Asia Pacific (Sydney)" + }, + "ap-southeast-3": { + description: "Asia Pacific (Jakarta)" + }, + "ap-southeast-4": { + description: "Asia Pacific (Melbourne)" + }, + "aws-global": { + description: "AWS Standard global region" + }, + "ca-central-1": { + description: "Canada (Central)" + }, + "eu-central-1": { + description: "Europe (Frankfurt)" + }, + "eu-central-2": { + description: "Europe (Zurich)" + }, + "eu-north-1": { + description: "Europe (Stockholm)" + }, + "eu-south-1": { + description: "Europe (Milan)" + }, + "eu-south-2": { + description: "Europe (Spain)" + }, + "eu-west-1": { + description: "Europe (Ireland)" + }, + "eu-west-2": { + description: "Europe (London)" + }, + "eu-west-3": { + description: "Europe (Paris)" + }, + "me-central-1": { + description: "Middle East (UAE)" + }, + "me-south-1": { + description: "Middle East (Bahrain)" + }, + "sa-east-1": { + description: "South America (Sao Paulo)" + }, + "us-east-1": { + description: "US East (N. Virginia)" + }, + "us-east-2": { + description: "US East (Ohio)" + }, + "us-west-1": { + description: "US West (N. California)" + }, + "us-west-2": { + description: "US West (Oregon)" + } } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; - } else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request: request2 - }); - }; - exports.userAgentMiddleware = userAgentMiddleware; - var escapeUserAgent = (userAgentPair) => { - var _a; - const name = userAgentPair[0].split(constants_1.UA_NAME_SEPARATOR).map((part) => part.replace(constants_1.UA_NAME_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR)).join(constants_1.UA_NAME_SEPARATOR); - const version2 = (_a = userAgentPair[1]) === null || _a === void 0 ? void 0 : _a.replace(constants_1.UA_VALUE_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR); - const prefixSeparatorIndex = name.indexOf(constants_1.UA_NAME_SEPARATOR); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version2].filter((item) => item && item.length > 0).reduce((acc, item, index) => { - switch (index) { - case 0: - return item; - case 1: - return `${acc}/${item}`; - default: - return `${acc}#${item}`; + }, { + id: "aws-cn", + outputs: { + dnsSuffix: "amazonaws.com.cn", + dualStackDnsSuffix: "api.amazonwebservices.com.cn", + name: "aws-cn", + supportsDualStack: true, + supportsFIPS: true + }, + regionRegex: "^cn\\-\\w+\\-\\d+$", + regions: { + "aws-cn-global": { + description: "AWS China global region" + }, + "cn-north-1": { + description: "China (Beijing)" + }, + "cn-northwest-1": { + description: "China (Ningxia)" + } + } + }, { + id: "aws-us-gov", + outputs: { + dnsSuffix: "amazonaws.com", + dualStackDnsSuffix: "api.aws", + name: "aws-us-gov", + supportsDualStack: true, + supportsFIPS: true + }, + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + regions: { + "aws-us-gov-global": { + description: "AWS GovCloud (US) global region" + }, + "us-gov-east-1": { + description: "AWS GovCloud (US-East)" + }, + "us-gov-west-1": { + description: "AWS GovCloud (US-West)" + } + } + }, { + id: "aws-iso", + outputs: { + dnsSuffix: "c2s.ic.gov", + dualStackDnsSuffix: "c2s.ic.gov", + name: "aws-iso", + supportsDualStack: false, + supportsFIPS: true + }, + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + regions: { + "aws-iso-global": { + description: "AWS ISO (US) global region" + }, + "us-iso-east-1": { + description: "US ISO East" + }, + "us-iso-west-1": { + description: "US ISO WEST" + } } - }, ""); - }; - exports.getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true + }, { + id: "aws-iso-b", + outputs: { + dnsSuffix: "sc2s.sgov.gov", + dualStackDnsSuffix: "sc2s.sgov.gov", + name: "aws-iso-b", + supportsDualStack: false, + supportsFIPS: true + }, + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + regions: { + "aws-iso-b-global": { + description: "AWS ISOB (US) global region" + }, + "us-isob-east-1": { + description: "US ISOB East (Ohio)" + } + } + }, { + id: "aws-iso-e", + outputs: { + dnsSuffix: "cloud.adc-e.uk", + dualStackDnsSuffix: "cloud.adc-e.uk", + name: "aws-iso-e", + supportsDualStack: false, + supportsFIPS: true + }, + regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$", + regions: {} + }], + version: "1.1" }; - var getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); - } - }); - exports.getUserAgentPlugin = getUserAgentPlugin; } }); -// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js -var require_dist_cjs19 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js +var require_partition = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.getUserAgentPrefix = exports.useDefaultPartitionInfo = exports.setPartitionInfo = exports.partition = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_configurations(), exports); - tslib_1.__exportStar(require_user_agent_middleware(), exports); - } -}); - -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js -var require_booleanSelector = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.booleanSelector = exports.SelectorType = void 0; - var SelectorType; - (function(SelectorType2) { - SelectorType2["ENV"] = "env"; - SelectorType2["CONFIG"] = "shared config entry"; - })(SelectorType = exports.SelectorType || (exports.SelectorType = {})); - var booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return void 0; - if (obj[key] === "true") - return true; - if (obj[key] === "false") - return false; - throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); + var partitions_json_1 = tslib_1.__importDefault(require_partitions()); + var selectedPartitionsInfo = partitions_json_1.default; + var selectedUserAgentPrefix = ""; + var partition = (value) => { + const { partitions } = selectedPartitionsInfo; + for (const partition2 of partitions) { + const { regions, outputs } = partition2; + for (const [region, regionData] of Object.entries(regions)) { + if (region === value) { + return { + ...outputs, + ...regionData + }; + } + } + } + for (const partition2 of partitions) { + const { regionRegex, outputs } = partition2; + if (new RegExp(regionRegex).test(value)) { + return { + ...outputs + }; + } + } + const DEFAULT_PARTITION = partitions.find((partition2) => partition2.id === "aws"); + if (!DEFAULT_PARTITION) { + throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist."); + } + return { + ...DEFAULT_PARTITION.outputs + }; }; - exports.booleanSelector = booleanSelector; - } -}); - -// ../../../node_modules/@smithy/util-config-provider/dist-cjs/index.js -var require_dist_cjs20 = __commonJS({ - "../../../node_modules/@smithy/util-config-provider/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_booleanSelector(), exports); + exports.partition = partition; + var setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => { + selectedPartitionsInfo = partitionsInfo; + selectedUserAgentPrefix = userAgentPrefix; + }; + exports.setPartitionInfo = setPartitionInfo; + var useDefaultPartitionInfo = () => { + (0, exports.setPartitionInfo)(partitions_json_1.default, ""); + }; + exports.useDefaultPartitionInfo = useDefaultPartitionInfo; + var getUserAgentPrefix = () => selectedUserAgentPrefix; + exports.getUserAgentPrefix = getUserAgentPrefix; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js -var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js +var require_debugId = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/debugId.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs20(); - exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; - exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; - exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; - exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false - }; + exports.debugId = void 0; + exports.debugId = "endpoints"; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js -var require_NodeUseFipsEndpointConfigOptions = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js +var require_toDebugString = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/toDebugString.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs20(); - exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; - exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; - exports.DEFAULT_USE_FIPS_ENDPOINT = false; - exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false - }; + exports.toDebugString = void 0; + function toDebugString(input) { + if (typeof input !== "object" || input == null) { + return input; + } + if ("ref" in input) { + return `$${toDebugString(input.ref)}`; + } + if ("fn" in input) { + return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`; + } + return JSON.stringify(input, null, 2); + } + exports.toDebugString = toDebugString; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js -var require_resolveCustomEndpointsConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js +var require_debug = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/debug/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveCustomEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs10(); - var resolveCustomEndpointsConfig = (input) => { - var _a, _b; - const { endpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), - isCustomEndpoint: true, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false) - }; - }; - exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_debugId(), exports); + tslib_1.__exportStar(require_toDebugString(), exports); } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js -var require_getEndpointFromRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +var require_EndpointError = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointFromRegion = void 0; - var getEndpointFromRegion = async (input) => { - var _a; - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error("Invalid region in client config"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; - if (!hostname) { - throw new Error("Cannot resolve hostname from client config"); + exports.EndpointError = void 0; + var EndpointError = class extends Error { + constructor(message) { + super(message); + this.name = "EndpointError"; } - return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); }; - exports.getEndpointFromRegion = getEndpointFromRegion; + exports.EndpointError = EndpointError; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js -var require_resolveEndpointsConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js +var require_EndpointRuleObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs10(); - var getEndpointFromRegion_1 = require_getEndpointFromRegion(); - var resolveEndpointsConfig = (input) => { - var _a, _b; - const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)((_a = input.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false); - const { endpoint, useFipsEndpoint, urlParser } = input; - return { - ...input, - tls: (_b = input.tls) !== null && _b !== void 0 ? _b : true, - endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: !!endpoint, - useDualstackEndpoint - }; - }; - exports.resolveEndpointsConfig = resolveEndpointsConfig; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js -var require_endpointsConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js +var require_ErrorRuleObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports); - tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports); - tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports); - tslib_1.__exportStar(require_resolveEndpointsConfig(), exports); } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js -var require_config3 = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js +var require_RuleSetObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; - exports.REGION_ENV_NAME = "AWS_REGION"; - exports.REGION_INI_NAME = "region"; - exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - } - }; - exports.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials" - }; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js -var require_isFipsRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js +var require_TreeRuleObject = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.isFipsRegion = void 0; - var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); - exports.isFipsRegion = isFipsRegion; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js -var require_getRealRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js +var require_shared = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRealRegion = void 0; - var isFipsRegion_1 = require_isFipsRegion(); - var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region; - exports.getRealRegion = getRealRegion; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js -var require_resolveRegionConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js +var require_types3 = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveRegionConfig = void 0; - var getRealRegion_1 = require_getRealRegion(); - var isFipsRegion_1 = require_isFipsRegion(); - var resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return (0, getRealRegion_1.getRealRegion)(region); - } - const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { - return true; - } - return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); - } - }; - }; - exports.resolveRegionConfig = resolveRegionConfig; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_EndpointError(), exports); + tslib_1.__exportStar(require_EndpointRuleObject(), exports); + tslib_1.__exportStar(require_ErrorRuleObject(), exports); + tslib_1.__exportStar(require_RuleSetObject(), exports); + tslib_1.__exportStar(require_TreeRuleObject(), exports); + tslib_1.__exportStar(require_shared(), exports); } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js -var require_regionConfig = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +var require_isIpAddress = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_config3(), exports); - tslib_1.__exportStar(require_resolveRegionConfig(), exports); + exports.isIpAddress = void 0; + var IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`); + var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]"); + exports.isIpAddress = isIpAddress; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js -var require_PartitionHash = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js +var require_isValidHostLabel = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isValidHostLabel.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.isValidHostLabel = void 0; + var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`); + var isValidHostLabel = (value, allowSubDomains = false) => { + if (!allowSubDomains) { + return VALID_HOST_LABEL_REGEX.test(value); + } + const labels = value.split("."); + for (const label of labels) { + if (!(0, exports.isValidHostLabel)(label)) { + return false; + } + } + return true; + }; + exports.isValidHostLabel = isValidHostLabel; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js -var require_RegionHash = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +var require_isVirtualHostableS3Bucket = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.isVirtualHostableS3Bucket = void 0; + var isIpAddress_1 = require_isIpAddress(); + var isValidHostLabel_1 = require_isValidHostLabel(); + var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => { + if (allowSubDomains) { + for (const label of value.split(".")) { + if (!(0, exports.isVirtualHostableS3Bucket)(label)) { + return false; + } + } + return true; + } + if (!(0, isValidHostLabel_1.isValidHostLabel)(value)) { + return false; + } + if (value.length < 3 || value.length > 63) { + return false; + } + if (value !== value.toLowerCase()) { + return false; + } + if ((0, isIpAddress_1.isIpAddress)(value)) { + return false; + } + return true; + }; + exports.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js -var require_getHostnameFromVariants = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js +var require_parseArn = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getHostnameFromVariants = void 0; - var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; + exports.parseArn = void 0; + var parseArn = (value) => { + const segments = value.split(":"); + if (segments.length < 6) + return null; + const [arn, partition, service, region, accountId, ...resourceId] = segments; + if (arn !== "arn" || partition === "" || service === "" || resourceId[0] === "") + return null; + return { + partition, + service, + region, + accountId, + resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId + }; }; - exports.getHostnameFromVariants = getHostnameFromVariants; + exports.parseArn = parseArn; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js -var require_getResolvedHostname = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js +var require_aws = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getResolvedHostname = void 0; - var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace("{region}", resolvedRegion) : void 0; - exports.getResolvedHostname = getResolvedHostname; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_isVirtualHostableS3Bucket(), exports); + tslib_1.__exportStar(require_parseArn(), exports); + tslib_1.__exportStar(require_partition(), exports); } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js -var require_getResolvedPartition = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js +var require_booleanEquals = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/booleanEquals.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getResolvedPartition = void 0; - var getResolvedPartition = (region, { partitionHash }) => { - var _a; - return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; - }; - exports.getResolvedPartition = getResolvedPartition; + exports.booleanEquals = void 0; + var booleanEquals = (value1, value2) => value1 === value2; + exports.booleanEquals = booleanEquals; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js -var require_getResolvedSigningRegion = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js +var require_getAttrPathList = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttrPathList.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getResolvedSigningRegion = void 0; - var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); + exports.getAttrPathList = void 0; + var types_1 = require_types3(); + var getAttrPathList = (path) => { + const parts = path.split("."); + const pathList = []; + for (const part of parts) { + const squareBracketIndex = part.indexOf("["); + if (squareBracketIndex !== -1) { + if (part.indexOf("]") !== part.length - 1) { + throw new types_1.EndpointError(`Path: '${path}' does not end with ']'`); + } + const arrayIndex = part.slice(squareBracketIndex + 1, -1); + if (Number.isNaN(parseInt(arrayIndex))) { + throw new types_1.EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`); + } + if (squareBracketIndex !== 0) { + pathList.push(part.slice(0, squareBracketIndex)); + } + pathList.push(arrayIndex); + } else { + pathList.push(part); } } + return pathList; }; - exports.getResolvedSigningRegion = getResolvedSigningRegion; + exports.getAttrPathList = getAttrPathList; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js -var require_getRegionInfo = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js +var require_getAttr = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/getAttr.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRegionInfo = void 0; - var getHostnameFromVariants_1 = require_getHostnameFromVariants(); - var getResolvedHostname_1 = require_getResolvedHostname(); - var getResolvedPartition_1 = require_getResolvedPartition(); - var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); - var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { - var _a, _b, _c, _d, _e, _f; - const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === void 0) { - throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); + exports.getAttr = void 0; + var types_1 = require_types3(); + var getAttrPathList_1 = require_getAttrPathList(); + var getAttr = (value, path) => (0, getAttrPathList_1.getAttrPathList)(path).reduce((acc, index) => { + if (typeof acc !== "object") { + throw new types_1.EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`); + } else if (Array.isArray(acc)) { + return acc[parseInt(index)]; } - const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint - }); - return { - partition, - signingService, - hostname, - ...signingRegion && { signingRegion }, - ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { - signingService: regionHash[resolvedRegion].signingService - } - }; - }; - exports.getRegionInfo = getRegionInfo; + return acc[index]; + }, value); + exports.getAttr = getAttr; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js -var require_regionInfo = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js +var require_isSet = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isSet.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_PartitionHash(), exports); - tslib_1.__exportStar(require_RegionHash(), exports); - tslib_1.__exportStar(require_getRegionInfo(), exports); + exports.isSet = void 0; + var isSet = (value) => value != null; + exports.isSet = isSet; } }); -// ../../../node_modules/@smithy/config-resolver/dist-cjs/index.js -var require_dist_cjs21 = __commonJS({ - "../../../node_modules/@smithy/config-resolver/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js +var require_not = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/not.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_endpointsConfig(), exports); - tslib_1.__exportStar(require_regionConfig(), exports); - tslib_1.__exportStar(require_regionInfo(), exports); + exports.not = void 0; + var not = (value) => !value; + exports.not = not; } }); -// ../../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js -var require_dist_cjs22 = __commonJS({ - "../../../node_modules/@smithy/middleware-content-length/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/abort.js +var require_abort = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/abort.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var CONTENT_LENGTH_HEADER = "content-length"; - function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request2 = args.request; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - const { body, headers } = request2; - if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { - try { - const length = bodyLengthChecker(body); - request2.headers = { - ...request2.headers, - [CONTENT_LENGTH_HEADER]: String(length) - }; - } catch (error) { - } - } - } - return next({ - ...args, - request: request2 - }); - }; - } - exports.contentLengthMiddleware = contentLengthMiddleware; - exports.contentLengthMiddlewareOptions = { - step: "build", - tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], - name: "contentLengthMiddleware", - override: true - }; - var getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); - } - }); - exports.getContentLengthPlugin = getContentLengthPlugin; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js -var require_s3 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/auth.js +var require_auth = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/auth.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.isArnBucketName = exports.isDnsCompatibleBucketName = exports.S3_HOSTNAME_PATTERN = exports.DOT_PATTERN = exports.resolveParamsForS3 = void 0; - var resolveParamsForS3 = async (endpointParams) => { - const bucket = (endpointParams === null || endpointParams === void 0 ? void 0 : endpointParams.Bucket) || ""; - if (typeof endpointParams.Bucket === "string") { - endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); - } - if ((0, exports.isArnBucketName)(bucket)) { - if (endpointParams.ForcePathStyle === true) { - throw new Error("Path-style addressing cannot be used with ARN buckets"); - } - } else if (!(0, exports.isDnsCompatibleBucketName)(bucket) || bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:") || bucket.toLowerCase() !== bucket || bucket.length < 3) { - endpointParams.ForcePathStyle = true; - } - if (endpointParams.DisableMultiRegionAccessPoints) { - endpointParams.disableMultiRegionAccessPoints = true; - endpointParams.DisableMRAP = true; - } - return endpointParams; - }; - exports.resolveParamsForS3 = resolveParamsForS3; - var DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; - var IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; - var DOTS_PATTERN = /\.\./; - exports.DOT_PATTERN = /\./; - exports.S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./; - var isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); - exports.isDnsCompatibleBucketName = isDnsCompatibleBucketName; - var isArnBucketName = (bucketName) => { - const [arn, partition, service, region, account, typeOrId] = bucketName.split(":"); - const isArn = arn === "arn" && bucketName.split(":").length >= 6; - const isValidArn = [arn, partition, service, account, typeOrId].filter(Boolean).length === 5; - if (isArn && !isValidArn) { - throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); - } - return arn === "arn" && !!partition && !!service && !!account && !!typeOrId; - }; - exports.isArnBucketName = isArnBucketName; + exports.HttpAuthLocation = void 0; + var HttpAuthLocation; + (function(HttpAuthLocation2) { + HttpAuthLocation2["HEADER"] = "header"; + HttpAuthLocation2["QUERY"] = "query"; + })(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js -var require_service_customizations = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js +var require_checksum = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/checksum.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_s3(), exports); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js -var require_createConfigValueProvider = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/client.js +var require_client = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/client.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.createConfigValueProvider = void 0; - var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { - const configProvider = async () => { - var _a; - const configValue = (_a = config[configKey]) !== null && _a !== void 0 ? _a : config[canonicalEndpointParamKey]; - if (typeof configValue === "function") { - return configValue(); - } - return configValue; - }; - if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { - return async () => { - const endpoint = await configProvider(); - if (endpoint && typeof endpoint === "object") { - if ("url" in endpoint) { - return endpoint.url.href; - } - if ("hostname" in endpoint) { - const { protocol, hostname, port, path } = endpoint; - return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; - } - } - return endpoint; - }; - } - return configProvider; - }; - exports.createConfigValueProvider = createConfigValueProvider; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js -var require_getEndpointFromInstructions = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/command.js +var require_command = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/command.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveParams = exports.getEndpointFromInstructions = void 0; - var service_customizations_1 = require_service_customizations(); - var createConfigValueProvider_1 = require_createConfigValueProvider(); - var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => { - const endpointParams = await (0, exports.resolveParams)(commandInput, instructionsSupplier, clientConfig); - if (typeof clientConfig.endpointProvider !== "function") { - throw new Error("config.endpointProvider is not set."); - } - const endpoint = clientConfig.endpointProvider(endpointParams, context); - return endpoint; - }; - exports.getEndpointFromInstructions = getEndpointFromInstructions; - var resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { - var _a; - const endpointParams = {}; - const instructions = ((_a = instructionsSupplier === null || instructionsSupplier === void 0 ? void 0 : instructionsSupplier.getEndpointParameterInstructions) === null || _a === void 0 ? void 0 : _a.call(instructionsSupplier)) || {}; - for (const [name, instruction] of Object.entries(instructions)) { - switch (instruction.type) { - case "staticContextParams": - endpointParams[name] = instruction.value; - break; - case "contextParams": - endpointParams[name] = commandInput[instruction.name]; - break; - case "clientContextParams": - case "builtInParams": - endpointParams[name] = await (0, createConfigValueProvider_1.createConfigValueProvider)(instruction.name, name, clientConfig)(); - break; - default: - throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); - } - } - if (Object.keys(instructions).length === 0) { - Object.assign(endpointParams, clientConfig); - } - if (String(clientConfig.serviceId).toLowerCase() === "s3") { - await (0, service_customizations_1.resolveParamsForS3)(endpointParams); - } - return endpointParams; - }; - exports.resolveParams = resolveParams; } }); -// ../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js -var require_dist_cjs23 = __commonJS({ - "../../../node_modules/@smithy/querystring-parser/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/config.js +var require_config3 = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/connection/config.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseQueryString = void 0; - function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\?/, ""); - if (querystring) { - for (const pair of querystring.split("&")) { - let [key, value = null] = pair.split("="); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } else if (Array.isArray(query[key])) { - query[key].push(value); - } else { - query[key] = [query[key], value]; - } - } - } - return query; - } - exports.parseQueryString = parseQueryString; } }); -// ../../../node_modules/@smithy/url-parser/dist-cjs/index.js -var require_dist_cjs24 = __commonJS({ - "../../../node_modules/@smithy/url-parser/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/manager.js +var require_manager = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/connection/manager.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseUrl = void 0; - var querystring_parser_1 = require_dist_cjs23(); - var parseUrl = (url2) => { - if (typeof url2 === "string") { - return (0, exports.parseUrl)(new URL(url2)); - } - const { hostname, pathname, port, protocol, search } = url2; - let query; - if (search) { - query = (0, querystring_parser_1.parseQueryString)(search); - } - return { - hostname, - port: port ? parseInt(port) : void 0, - protocol, - path: pathname, - query - }; - }; - exports.parseUrl = parseUrl; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js -var require_toEndpointV1 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/pool.js +var require_pool = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/connection/pool.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@aws-sdk/types/dist-cjs/connection/index.js +var require_connection = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/connection/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_config3(), exports); + tslib_1.__exportStar(require_manager(), exports); + tslib_1.__exportStar(require_pool(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js +var require_credentials = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/credentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.toEndpointV1 = void 0; - var url_parser_1 = require_dist_cjs24(); - var toEndpointV1 = (endpoint) => { - if (typeof endpoint === "object") { - if ("url" in endpoint) { - return (0, url_parser_1.parseUrl)(endpoint.url); - } - return endpoint; - } - return (0, url_parser_1.parseUrl)(endpoint); - }; - exports.toEndpointV1 = toEndpointV1; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js -var require_adaptors = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js +var require_crypto = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/crypto.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getEndpointFromInstructions(), exports); - tslib_1.__exportStar(require_toEndpointV1(), exports); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js -var require_endpointMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/dns.js +var require_dns = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/dns.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.endpointMiddleware = void 0; - var getEndpointFromInstructions_1 = require_getEndpointFromInstructions(); - var endpointMiddleware = ({ config, instructions }) => { - return (next, context) => async (args) => { - var _a, _b; - const endpoint = await (0, getEndpointFromInstructions_1.getEndpointFromInstructions)(args.input, { - getEndpointParameterInstructions() { - return instructions; - } - }, { ...config }, context); - context.endpointV2 = endpoint; - context.authSchemes = (_a = endpoint.properties) === null || _a === void 0 ? void 0 : _a.authSchemes; - const authScheme = (_b = context.authSchemes) === null || _b === void 0 ? void 0 : _b[0]; - if (authScheme) { - context["signing_region"] = authScheme.signingRegion; - context["signing_service"] = authScheme.signingName; - } - return next({ - ...args - }); - }; - }; - exports.endpointMiddleware = endpointMiddleware; + exports.HostAddressType = void 0; + var HostAddressType; + (function(HostAddressType2) { + HostAddressType2["AAAA"] = "AAAA"; + HostAddressType2["A"] = "A"; + })(HostAddressType = exports.HostAddressType || (exports.HostAddressType = {})); } }); -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js -var require_deserializerMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/encode.js +var require_encode = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/encode.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.deserializerMiddleware = void 0; - var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed - }; - } catch (error) { - Object.defineProperty(error, "$response", { - value: response - }); - if (!("$metadata" in error)) { - const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; - error.message += "\n " + hint; - } - throw error; - } - }; - exports.deserializerMiddleware = deserializerMiddleware; } }); -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js -var require_serializerMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js +var require_endpoint = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/endpoint.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.serializerMiddleware = void 0; - var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - var _a; - const endpoint = ((_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.url) && options.urlParser ? async () => options.urlParser(context.endpointV2.url) : options.endpoint; - if (!endpoint) { - throw new Error("No valid endpoint provider available."); - } - const request2 = await serializer(args.input, { ...options, endpoint }); - return next({ - ...args, - request: request2 - }); - }; - exports.serializerMiddleware = serializerMiddleware; + exports.EndpointURLScheme = void 0; + var EndpointURLScheme; + (function(EndpointURLScheme2) { + EndpointURLScheme2["HTTP"] = "http"; + EndpointURLScheme2["HTTPS"] = "https"; + })(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {})); } }); -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js -var require_serdePlugin = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js +var require_eventStream = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/eventStream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; - var deserializerMiddleware_1 = require_deserializerMiddleware(); - var serializerMiddleware_1 = require_serializerMiddleware(); - exports.deserializerMiddlewareOption = { - name: "deserializerMiddleware", - step: "deserialize", - tags: ["DESERIALIZER"], - override: true - }; - exports.serializerMiddlewareOption = { - name: "serializerMiddleware", - step: "serialize", - tags: ["SERIALIZER"], - override: true - }; - function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); - } - }; - } - exports.getSerdePlugin = getSerdePlugin; } }); -// ../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js -var require_dist_cjs25 = __commonJS({ - "../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/http.js +var require_http = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/http.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_deserializerMiddleware(), exports); - tslib_1.__exportStar(require_serdePlugin(), exports); - tslib_1.__exportStar(require_serializerMiddleware(), exports); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js -var require_getEndpointPlugin = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js +var require_AnonymousIdentity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getEndpointPlugin = exports.endpointMiddlewareOptions = void 0; - var middleware_serde_1 = require_dist_cjs25(); - var endpointMiddleware_1 = require_endpointMiddleware(); - exports.endpointMiddlewareOptions = { - step: "serialize", - tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], - name: "endpointV2Middleware", - override: true, - relation: "before", - toMiddleware: middleware_serde_1.serializerMiddlewareOption.name - }; - var getEndpointPlugin = (config, instructions) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, endpointMiddleware_1.endpointMiddleware)({ - config, - instructions - }), exports.endpointMiddlewareOptions); - } - }); - exports.getEndpointPlugin = getEndpointPlugin; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js -var require_resolveEndpointConfig = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js +var require_AwsCredentialIdentity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveEndpointConfig = void 0; - var util_middleware_1 = require_dist_cjs10(); - var toEndpointV1_1 = require_toEndpointV1(); - var resolveEndpointConfig = (input) => { - var _a, _b, _c; - const tls = (_a = input.tls) !== null && _a !== void 0 ? _a : true; - const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => (0, toEndpointV1_1.toEndpointV1)(await (0, util_middleware_1.normalizeProvider)(endpoint)()) : void 0; - const isCustomEndpoint = !!endpoint; - return { - ...input, - endpoint: customEndpointProvider, - tls, - isCustomEndpoint, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false), - useFipsEndpoint: (0, util_middleware_1.normalizeProvider)((_c = input.useFipsEndpoint) !== null && _c !== void 0 ? _c : false) - }; - }; - exports.resolveEndpointConfig = resolveEndpointConfig; } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/types.js -var require_types3 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/types.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js +var require_Identity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js -var require_dist_cjs26 = __commonJS({ - "../../../node_modules/@smithy/middleware-endpoint/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js +var require_LoginIdentity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_adaptors(), exports); - tslib_1.__exportStar(require_endpointMiddleware(), exports); - tslib_1.__exportStar(require_getEndpointPlugin(), exports); - tslib_1.__exportStar(require_resolveEndpointConfig(), exports); - tslib_1.__exportStar(require_types3(), exports); } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/config.js -var require_config4 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/config.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js +var require_TokenIdentity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; - var RETRY_MODES; - (function(RETRY_MODES2) { - RETRY_MODES2["STANDARD"] = "standard"; - RETRY_MODES2["ADAPTIVE"] = "adaptive"; - })(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); - exports.DEFAULT_MAX_ATTEMPTS = 3; - exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; } }); -// ../../../node_modules/@smithy/service-error-classification/dist-cjs/constants.js -var require_constants3 = __commonJS({ - "../../../node_modules/@smithy/service-error-classification/dist-cjs/constants.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js +var require_identity = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/identity/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODEJS_TIMEOUT_ERROR_CODES = exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; - exports.CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch" - ]; - exports.THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException" - ]; - exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; - exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_AnonymousIdentity(), exports); + tslib_1.__exportStar(require_AwsCredentialIdentity(), exports); + tslib_1.__exportStar(require_Identity(), exports); + tslib_1.__exportStar(require_LoginIdentity(), exports); + tslib_1.__exportStar(require_TokenIdentity(), exports); } }); -// ../../../node_modules/@smithy/service-error-classification/dist-cjs/index.js -var require_dist_cjs27 = __commonJS({ - "../../../node_modules/@smithy/service-error-classification/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/logger.js +var require_logger = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/logger.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.isServerError = exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; - var constants_1 = require_constants3(); - var isRetryableByTrait = (error) => error.$retryable !== void 0; - exports.isRetryableByTrait = isRetryableByTrait; - var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); - exports.isClockSkewError = isClockSkewError; - var isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; - }; - exports.isThrottlingError = isThrottlingError; - var isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes((error === null || error === void 0 ? void 0 : error.code) || "") || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); - }; - exports.isTransientError = isTransientError; - var isServerError = (error) => { - var _a; - if (((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) !== void 0) { - const statusCode = error.$metadata.httpStatusCode; - if (500 <= statusCode && statusCode <= 599 && !(0, exports.isTransientError)(error)) { - return true; - } - return false; - } - return false; - }; - exports.isServerError = isServerError; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js -var require_DefaultRateLimiter = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js +var require_middleware = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/middleware.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.DefaultRateLimiter = void 0; - var service_error_classification_1 = require_dist_cjs27(); - var DefaultRateLimiter = class { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1e3; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } - }; - exports.DefaultRateLimiter = DefaultRateLimiter; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/constants.js -var require_constants4 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/constants.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js +var require_pagination = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/pagination.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; - exports.DEFAULT_RETRY_DELAY_BASE = 100; - exports.MAXIMUM_RETRY_DELAY = 20 * 1e3; - exports.THROTTLING_RETRY_DELAY_BASE = 500; - exports.INITIAL_RETRY_TOKENS = 500; - exports.RETRY_COST = 5; - exports.TIMEOUT_RETRY_COST = 10; - exports.NO_RETRY_INCREMENT = 1; - exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; - exports.REQUEST_HEADER = "amz-sdk-request"; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js -var require_defaultRetryBackoffStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/profile.js +var require_profile = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/profile.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getDefaultRetryBackoffStrategy = void 0; - var constants_1 = require_constants4(); - var getDefaultRetryBackoffStrategy = () => { - let delayBase = constants_1.DEFAULT_RETRY_DELAY_BASE; - const computeNextBackoffDelay = (attempts) => { - return Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - }; - const setDelayBase = (delay) => { - delayBase = delay; - }; - return { - computeNextBackoffDelay, - setDelayBase - }; - }; - exports.getDefaultRetryBackoffStrategy = getDefaultRetryBackoffStrategy; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js -var require_defaultRetryToken = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/request.js +var require_request = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/request.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.createDefaultRetryToken = void 0; - var constants_1 = require_constants4(); - var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => { - const getRetryCount = () => retryCount; - const getRetryDelay = () => Math.min(constants_1.MAXIMUM_RETRY_DELAY, retryDelay); - const getRetryCost = () => retryCost; - return { - getRetryCount, - getRetryDelay, - getRetryCost - }; - }; - exports.createDefaultRetryToken = createDefaultRetryToken; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/response.js +var require_response = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/response.js"(exports) { "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.StandardRetryStrategy = void 0; - var config_1 = require_config4(); - var constants_1 = require_constants4(); - var defaultRetryBackoffStrategy_1 = require_defaultRetryBackoffStrategy(); - var defaultRetryToken_1 = require_defaultRetryToken(); - var StandardRetryStrategy = class { - constructor(maxAttempts) { - this.maxAttempts = maxAttempts; - this.mode = config_1.RETRY_MODES.STANDARD; - this.capacity = constants_1.INITIAL_RETRY_TOKENS; - this.retryBackoffStrategy = (0, defaultRetryBackoffStrategy_1.getDefaultRetryBackoffStrategy)(); - this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; - } - async acquireInitialRetryToken(retryTokenScope) { - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay: constants_1.DEFAULT_RETRY_DELAY_BASE, - retryCount: 0 - }); - } - async refreshRetryTokenForRetry(token, errorInfo) { - const maxAttempts = await this.getMaxAttempts(); - if (this.shouldRetry(token, errorInfo, maxAttempts)) { - const errorType = errorInfo.errorType; - this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE); - const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); - const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType; - const capacityCost = this.getCapacityCost(errorType); - this.capacity -= capacityCost; - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay, - retryCount: token.getRetryCount() + 1, - retryCost: capacityCost - }); - } - throw new Error("No retry token available"); - } - recordSuccess(token) { - var _a; - this.capacity = Math.max(constants_1.INITIAL_RETRY_TOKENS, this.capacity + ((_a = token.getRetryCost()) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT)); - } - getCapacity() { - return this.capacity; - } - async getMaxAttempts() { - try { - return await this.maxAttemptsProvider(); - } catch (error) { - console.warn(`Max attempts provider could not resolve. Using default of ${config_1.DEFAULT_MAX_ATTEMPTS}`); - return config_1.DEFAULT_MAX_ATTEMPTS; - } - } - shouldRetry(tokenToRenew, errorInfo, maxAttempts) { - const attempts = tokenToRenew.getRetryCount() + 1; - return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType); - } - getCapacityCost(errorType) { - return errorType === "TRANSIENT" ? constants_1.TIMEOUT_RETRY_COST : constants_1.RETRY_COST; - } - isRetryableError(errorType) { - return errorType === "THROTTLING" || errorType === "TRANSIENT"; - } - }; - exports.StandardRetryStrategy = StandardRetryStrategy; + Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/retry.js +var require_retry = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/retry.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.AdaptiveRetryStrategy = void 0; - var config_1 = require_config4(); - var DefaultRateLimiter_1 = require_DefaultRateLimiter(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - var AdaptiveRetryStrategy = class { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.ADAPTIVE; - const { rateLimiter } = options !== null && options !== void 0 ? options : {}; - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.standardRetryStrategy = new StandardRetryStrategy_1.StandardRetryStrategy(maxAttemptsProvider); - } - async acquireInitialRetryToken(retryTokenScope) { - await this.rateLimiter.getSendToken(); - return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - this.rateLimiter.updateClientSendingRate(errorInfo); - return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - } - recordSuccess(token) { - this.rateLimiter.updateClientSendingRate({}); - this.standardRetryStrategy.recordSuccess(token); - } - }; - exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js -var require_ConfiguredRetryStrategy = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/serde.js +var require_serde = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/serde.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.ConfiguredRetryStrategy = void 0; - var constants_1 = require_constants4(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - var ConfiguredRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttempts, computeNextBackoffDelay = constants_1.DEFAULT_RETRY_DELAY_BASE) { - super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); - if (typeof computeNextBackoffDelay === "number") { - this.computeNextBackoffDelay = () => computeNextBackoffDelay; - } else { - this.computeNextBackoffDelay = computeNextBackoffDelay; - } - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); - return token; - } - }; - exports.ConfiguredRetryStrategy = ConfiguredRetryStrategy; } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/types.js -var require_types4 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/types.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js +var require_shapes = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/shapes.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/util-retry/dist-cjs/index.js -var require_dist_cjs28 = __commonJS({ - "../../../node_modules/@smithy/util-retry/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/types/dist-cjs/signature.js +var require_signature = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/signature.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports); - tslib_1.__exportStar(require_ConfiguredRetryStrategy(), exports); - tslib_1.__exportStar(require_DefaultRateLimiter(), exports); - tslib_1.__exportStar(require_StandardRetryStrategy(), exports); - tslib_1.__exportStar(require_config4(), exports); - tslib_1.__exportStar(require_constants4(), exports); - tslib_1.__exportStar(require_types4(), exports); } }); -// ../../../node_modules/uuid/dist/esm-node/rng.js -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - import_crypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} -var import_crypto, rnds8Pool, poolPtr; -var init_rng = __esm({ - "../../../node_modules/uuid/dist/esm-node/rng.js"() { - import_crypto = __toESM(require("crypto")); - rnds8Pool = new Uint8Array(256); - poolPtr = rnds8Pool.length; +// ../../../node_modules/@aws-sdk/types/dist-cjs/stream.js +var require_stream = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/stream.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/uuid/dist/esm-node/regex.js -var regex_default; -var init_regex = __esm({ - "../../../node_modules/uuid/dist/esm-node/regex.js"() { - regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +// ../../../node_modules/@aws-sdk/types/dist-cjs/token.js +var require_token = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/token.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/uuid/dist/esm-node/validate.js -function validate(uuid) { - return typeof uuid === "string" && regex_default.test(uuid); -} -var validate_default; -var init_validate = __esm({ - "../../../node_modules/uuid/dist/esm-node/validate.js"() { - init_regex(); - validate_default = validate; +// ../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js +var require_transfer = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/transfer.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.RequestHandlerProtocol = void 0; + var RequestHandlerProtocol; + (function(RequestHandlerProtocol2) { + RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; + RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; + RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; + })(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {})); } }); -// ../../../node_modules/uuid/dist/esm-node/stringify.js -function stringify(arr, offset = 0) { - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); - if (!validate_default(uuid)) { - throw TypeError("Stringified UUID is invalid"); - } - return uuid; -} -var byteToHex, stringify_default; -var init_stringify = __esm({ - "../../../node_modules/uuid/dist/esm-node/stringify.js"() { - init_validate(); - byteToHex = []; - for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 256).toString(16).substr(1)); - } - stringify_default = stringify; +// ../../../node_modules/@aws-sdk/types/dist-cjs/uri.js +var require_uri = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/uri.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/uuid/dist/esm-node/v1.js -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || rng)(); - if (node == null) { - node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - if (clockseq == null) { - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; - } - } - let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); - let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if (dt < 0 && options.clockseq === void 0) { - clockseq = clockseq + 1 & 16383; - } - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { - nsecs = 0; +// ../../../node_modules/@aws-sdk/types/dist-cjs/util.js +var require_util2 = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/util.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); } - if (nsecs >= 1e4) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); +}); + +// ../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js +var require_waiter = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/waiter.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - msecs += 122192928e5; - const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b[i++] = tl >>> 24 & 255; - b[i++] = tl >>> 16 & 255; - b[i++] = tl >>> 8 & 255; - b[i++] = tl & 255; - const tmh = msecs / 4294967296 * 1e4 & 268435455; - b[i++] = tmh >>> 8 & 255; - b[i++] = tmh & 255; - b[i++] = tmh >>> 24 & 15 | 16; - b[i++] = tmh >>> 16 & 255; - b[i++] = clockseq >>> 8 | 128; - b[i++] = clockseq & 255; - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; +}); + +// ../../../node_modules/@aws-sdk/types/dist-cjs/index.js +var require_dist_cjs26 = __commonJS({ + "../../../node_modules/@aws-sdk/types/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_abort(), exports); + tslib_1.__exportStar(require_auth(), exports); + tslib_1.__exportStar(require_checksum(), exports); + tslib_1.__exportStar(require_client(), exports); + tslib_1.__exportStar(require_command(), exports); + tslib_1.__exportStar(require_connection(), exports); + tslib_1.__exportStar(require_credentials(), exports); + tslib_1.__exportStar(require_crypto(), exports); + tslib_1.__exportStar(require_dns(), exports); + tslib_1.__exportStar(require_encode(), exports); + tslib_1.__exportStar(require_endpoint(), exports); + tslib_1.__exportStar(require_eventStream(), exports); + tslib_1.__exportStar(require_http(), exports); + tslib_1.__exportStar(require_identity(), exports); + tslib_1.__exportStar(require_logger(), exports); + tslib_1.__exportStar(require_middleware(), exports); + tslib_1.__exportStar(require_pagination(), exports); + tslib_1.__exportStar(require_profile(), exports); + tslib_1.__exportStar(require_request(), exports); + tslib_1.__exportStar(require_response(), exports); + tslib_1.__exportStar(require_retry(), exports); + tslib_1.__exportStar(require_serde(), exports); + tslib_1.__exportStar(require_shapes(), exports); + tslib_1.__exportStar(require_signature(), exports); + tslib_1.__exportStar(require_stream(), exports); + tslib_1.__exportStar(require_token(), exports); + tslib_1.__exportStar(require_transfer(), exports); + tslib_1.__exportStar(require_uri(), exports); + tslib_1.__exportStar(require_util2(), exports); + tslib_1.__exportStar(require_waiter(), exports); } - return buf || stringify_default(b); -} -var _nodeId, _clockseq, _lastMSecs, _lastNSecs, v1_default; -var init_v1 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v1.js"() { - init_rng(); - init_stringify(); - _lastMSecs = 0; - _lastNSecs = 0; - v1_default = v1; +}); + +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js +var require_parseURL = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/parseURL.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseURL = void 0; + var types_1 = require_dist_cjs26(); + var isIpAddress_1 = require_isIpAddress(); + var DEFAULT_PORTS = { + [types_1.EndpointURLScheme.HTTP]: 80, + [types_1.EndpointURLScheme.HTTPS]: 443 + }; + var parseURL = (value) => { + const whatwgURL = (() => { + try { + if (value instanceof URL) { + return value; + } + if (typeof value === "object" && "hostname" in value) { + const { hostname: hostname2, port, protocol: protocol2 = "", path = "", query = {} } = value; + const url2 = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path}`); + url2.search = Object.entries(query).map(([k, v]) => `${k}=${v}`).join("&"); + return url2; + } + return new URL(value); + } catch (error) { + return null; + } + })(); + if (!whatwgURL) { + console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`); + return null; + } + const urlString = whatwgURL.href; + const { host, hostname, pathname, protocol, search } = whatwgURL; + if (search) { + return null; + } + const scheme = protocol.slice(0, -1); + if (!Object.values(types_1.EndpointURLScheme).includes(scheme)) { + return null; + } + const isIp = (0, isIpAddress_1.isIpAddress)(hostname); + const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`); + const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`; + return { + scheme, + authority, + path: pathname, + normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`, + isIp + }; + }; + exports.parseURL = parseURL; } }); -// ../../../node_modules/uuid/dist/esm-node/parse.js -function parse(uuid) { - if (!validate_default(uuid)) { - throw TypeError("Invalid UUID"); - } - let v; - const arr = new Uint8Array(16); - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 255; - arr[2] = v >>> 8 & 255; - arr[3] = v & 255; - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 255; - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 255; - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 255; - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v / 4294967296 & 255; - arr[12] = v >>> 24 & 255; - arr[13] = v >>> 16 & 255; - arr[14] = v >>> 8 & 255; - arr[15] = v & 255; - return arr; -} -var parse_default; -var init_parse = __esm({ - "../../../node_modules/uuid/dist/esm-node/parse.js"() { - init_validate(); - parse_default = parse; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js +var require_stringEquals = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/stringEquals.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.stringEquals = void 0; + var stringEquals = (value1, value2) => value1 === value2; + exports.stringEquals = stringEquals; } }); -// ../../../node_modules/uuid/dist/esm-node/v35.js -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; -} -function v35_default(name, version2, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === "string") { - value = stringToBytes(value); - } - if (typeof namespace === "string") { - namespace = parse_default(namespace); - } - if (namespace.length !== 16) { - throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); - } - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 15 | version2; - bytes[8] = bytes[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js +var require_substring = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/substring.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.substring = void 0; + var substring = (input, start, stop, reverse) => { + if (start >= stop || input.length < stop) { + return null; } - return buf; - } - return stringify_default(bytes); + if (!reverse) { + return input.substring(start, stop); + } + return input.substring(input.length - stop, input.length - start); + }; + exports.substring = substring; } - try { - generateUUID.name = name; - } catch (err) { +}); + +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js +var require_uriEncode = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/uriEncode.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.uriEncode = void 0; + var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); + exports.uriEncode = uriEncode; } - generateUUID.DNS = DNS; - generateUUID.URL = URL2; - return generateUUID; -} -var DNS, URL2; -var init_v35 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v35.js"() { - init_stringify(); - init_parse(); - DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; - URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +}); + +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js +var require_lib = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.aws = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + exports.aws = tslib_1.__importStar(require_aws()); + tslib_1.__exportStar(require_booleanEquals(), exports); + tslib_1.__exportStar(require_getAttr(), exports); + tslib_1.__exportStar(require_isSet(), exports); + tslib_1.__exportStar(require_isValidHostLabel(), exports); + tslib_1.__exportStar(require_not(), exports); + tslib_1.__exportStar(require_parseURL(), exports); + tslib_1.__exportStar(require_stringEquals(), exports); + tslib_1.__exportStar(require_substring(), exports); + tslib_1.__exportStar(require_uriEncode(), exports); } }); -// ../../../node_modules/uuid/dist/esm-node/md5.js -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === "string") { - bytes = Buffer.from(bytes, "utf8"); +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js +var require_evaluateTemplate = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTemplate.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.evaluateTemplate = void 0; + var lib_1 = require_lib(); + var evaluateTemplate = (template, options) => { + const evaluatedTemplateArr = []; + const templateContext = { + ...options.endpointParams, + ...options.referenceRecord + }; + let currentIndex = 0; + while (currentIndex < template.length) { + const openingBraceIndex = template.indexOf("{", currentIndex); + if (openingBraceIndex === -1) { + evaluatedTemplateArr.push(template.slice(currentIndex)); + break; + } + evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex)); + const closingBraceIndex = template.indexOf("}", openingBraceIndex); + if (closingBraceIndex === -1) { + evaluatedTemplateArr.push(template.slice(openingBraceIndex)); + break; + } + if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") { + evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex)); + currentIndex = closingBraceIndex + 2; + } + const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex); + if (parameterName.includes("#")) { + const [refName, attrName] = parameterName.split("#"); + evaluatedTemplateArr.push((0, lib_1.getAttr)(templateContext[refName], attrName)); + } else { + evaluatedTemplateArr.push(templateContext[parameterName]); + } + currentIndex = closingBraceIndex + 1; + } + return evaluatedTemplateArr.join(""); + }; + exports.evaluateTemplate = evaluateTemplate; } - return import_crypto2.default.createHash("md5").update(bytes).digest(); -} -var import_crypto2, md5_default; -var init_md5 = __esm({ - "../../../node_modules/uuid/dist/esm-node/md5.js"() { - import_crypto2 = __toESM(require("crypto")); - md5_default = md5; +}); + +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js +var require_getReferenceValue = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getReferenceValue.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getReferenceValue = void 0; + var getReferenceValue = ({ ref }, options) => { + const referenceRecord = { + ...options.endpointParams, + ...options.referenceRecord + }; + return referenceRecord[ref]; + }; + exports.getReferenceValue = getReferenceValue; } }); -// ../../../node_modules/uuid/dist/esm-node/v3.js -var v3, v3_default; -var init_v3 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v3.js"() { - init_v35(); - init_md5(); - v3 = v35_default("v3", 48, md5_default); - v3_default = v3; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js +var require_evaluateExpression = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateExpression.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.evaluateExpression = void 0; + var types_1 = require_types3(); + var callFunction_1 = require_callFunction(); + var evaluateTemplate_1 = require_evaluateTemplate(); + var getReferenceValue_1 = require_getReferenceValue(); + var evaluateExpression = (obj, keyName, options) => { + if (typeof obj === "string") { + return (0, evaluateTemplate_1.evaluateTemplate)(obj, options); + } else if (obj["fn"]) { + return (0, callFunction_1.callFunction)(obj, options); + } else if (obj["ref"]) { + return (0, getReferenceValue_1.getReferenceValue)(obj, options); + } + throw new types_1.EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`); + }; + exports.evaluateExpression = evaluateExpression; } }); -// ../../../node_modules/uuid/dist/esm-node/v4.js -function v4(options, buf, offset) { - options = options || {}; - const rnds = options.random || (options.rng || rng)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return stringify_default(rnds); -} -var v4_default; -var init_v4 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v4.js"() { - init_rng(); - init_stringify(); - v4_default = v4; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js +var require_callFunction = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.callFunction = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + var lib = tslib_1.__importStar(require_lib()); + var evaluateExpression_1 = require_evaluateExpression(); + var callFunction = ({ fn, argv }, options) => { + const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : (0, evaluateExpression_1.evaluateExpression)(arg, "arg", options)); + return fn.split(".").reduce((acc, key) => acc[key], lib)(...evaluatedArgs); + }; + exports.callFunction = callFunction; } }); -// ../../../node_modules/uuid/dist/esm-node/sha1.js -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === "string") { - bytes = Buffer.from(bytes, "utf8"); - } - return import_crypto3.default.createHash("sha1").update(bytes).digest(); -} -var import_crypto3, sha1_default; -var init_sha1 = __esm({ - "../../../node_modules/uuid/dist/esm-node/sha1.js"() { - import_crypto3 = __toESM(require("crypto")); - sha1_default = sha1; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js +var require_evaluateCondition = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateCondition.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.evaluateCondition = void 0; + var debug_1 = require_debug(); + var types_1 = require_types3(); + var callFunction_1 = require_callFunction(); + var evaluateCondition = ({ assign, ...fnArgs }, options) => { + var _a, _b; + if (assign && assign in options.referenceRecord) { + throw new types_1.EndpointError(`'${assign}' is already defined in Reference Record.`); + } + const value = (0, callFunction_1.callFunction)(fnArgs, options); + (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `evaluateCondition: ${(0, debug_1.toDebugString)(fnArgs)} = ${(0, debug_1.toDebugString)(value)}`); + return { + result: value === "" ? true : !!value, + ...assign != null && { toAssign: { name: assign, value } } + }; + }; + exports.evaluateCondition = evaluateCondition; } }); -// ../../../node_modules/uuid/dist/esm-node/v5.js -var v5, v5_default; -var init_v5 = __esm({ - "../../../node_modules/uuid/dist/esm-node/v5.js"() { - init_v35(); - init_sha1(); - v5 = v35_default("v5", 80, sha1_default); - v5_default = v5; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js +var require_evaluateConditions = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateConditions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.evaluateConditions = void 0; + var debug_1 = require_debug(); + var evaluateCondition_1 = require_evaluateCondition(); + var evaluateConditions = (conditions = [], options) => { + var _a, _b; + const conditionsReferenceRecord = {}; + for (const condition of conditions) { + const { result, toAssign } = (0, evaluateCondition_1.evaluateCondition)(condition, { + ...options, + referenceRecord: { + ...options.referenceRecord, + ...conditionsReferenceRecord + } + }); + if (!result) { + return { result }; + } + if (toAssign) { + conditionsReferenceRecord[toAssign.name] = toAssign.value; + (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `assign: ${toAssign.name} := ${(0, debug_1.toDebugString)(toAssign.value)}`); + } + } + return { result: true, referenceRecord: conditionsReferenceRecord }; + }; + exports.evaluateConditions = evaluateConditions; } }); -// ../../../node_modules/uuid/dist/esm-node/nil.js -var nil_default; -var init_nil = __esm({ - "../../../node_modules/uuid/dist/esm-node/nil.js"() { - nil_default = "00000000-0000-0000-0000-000000000000"; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +var require_getEndpointHeaders = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointHeaders.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointHeaders = void 0; + var types_1 = require_types3(); + var evaluateExpression_1 = require_evaluateExpression(); + var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({ + ...acc, + [headerKey]: headerVal.map((headerValEntry) => { + const processedExpr = (0, evaluateExpression_1.evaluateExpression)(headerValEntry, "Header value entry", options); + if (typeof processedExpr !== "string") { + throw new types_1.EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`); + } + return processedExpr; + }) + }), {}); + exports.getEndpointHeaders = getEndpointHeaders; } }); -// ../../../node_modules/uuid/dist/esm-node/version.js -function version(uuid) { - if (!validate_default(uuid)) { - throw TypeError("Invalid UUID"); - } - return parseInt(uuid.substr(14, 1), 16); -} -var version_default; -var init_version = __esm({ - "../../../node_modules/uuid/dist/esm-node/version.js"() { - init_validate(); - version_default = version; +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js +var require_getEndpointProperty = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperty.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointProperty = void 0; + var types_1 = require_types3(); + var evaluateTemplate_1 = require_evaluateTemplate(); + var getEndpointProperties_1 = require_getEndpointProperties(); + var getEndpointProperty = (property, options) => { + if (Array.isArray(property)) { + return property.map((propertyEntry) => (0, exports.getEndpointProperty)(propertyEntry, options)); + } + switch (typeof property) { + case "string": + return (0, evaluateTemplate_1.evaluateTemplate)(property, options); + case "object": + if (property === null) { + throw new types_1.EndpointError(`Unexpected endpoint property: ${property}`); + } + return (0, getEndpointProperties_1.getEndpointProperties)(property, options); + case "boolean": + return property; + default: + throw new types_1.EndpointError(`Unexpected endpoint property type: ${typeof property}`); + } + }; + exports.getEndpointProperty = getEndpointProperty; } }); -// ../../../node_modules/uuid/dist/esm-node/index.js -var esm_node_exports = {}; -__export(esm_node_exports, { - NIL: () => nil_default, - parse: () => parse_default, - stringify: () => stringify_default, - v1: () => v1_default, - v3: () => v3_default, - v4: () => v4_default, - v5: () => v5_default, - validate: () => validate_default, - version: () => version_default -}); -var init_esm_node = __esm({ - "../../../node_modules/uuid/dist/esm-node/index.js"() { - init_v1(); - init_v3(); - init_v4(); - init_v5(); - init_nil(); - init_version(); - init_validate(); - init_stringify(); - init_parse(); +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js +var require_getEndpointProperties = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointProperties.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getEndpointProperties = void 0; + var getEndpointProperty_1 = require_getEndpointProperty(); + var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({ + ...acc, + [propertyKey]: (0, getEndpointProperty_1.getEndpointProperty)(propertyVal, options) + }), {}); + exports.getEndpointProperties = getEndpointProperties; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js -var require_defaultRetryQuota = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js +var require_getEndpointUrl = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/getEndpointUrl.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getDefaultRetryQuota = void 0; - var util_retry_1 = require_dist_cjs28(); - var getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : util_retry_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : util_retry_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : util_retry_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost; - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error("No retry token available"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens - }); + exports.getEndpointUrl = void 0; + var types_1 = require_types3(); + var evaluateExpression_1 = require_evaluateExpression(); + var getEndpointUrl = (endpointUrl, options) => { + const expression = (0, evaluateExpression_1.evaluateExpression)(endpointUrl, "Endpoint URL", options); + if (typeof expression === "string") { + try { + return new URL(expression); + } catch (error) { + console.error(`Failed to construct URL with ${expression}`, error); + throw error; + } + } + throw new types_1.EndpointError(`Endpoint URL must be a string, got ${typeof expression}`); }; - exports.getDefaultRetryQuota = getDefaultRetryQuota; + exports.getEndpointUrl = getEndpointUrl; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js -var require_delayDecider = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +var require_evaluateEndpointRule = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultDelayDecider = void 0; - var util_retry_1 = require_dist_cjs28(); - var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(util_retry_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - exports.defaultDelayDecider = defaultDelayDecider; + exports.evaluateEndpointRule = void 0; + var debug_1 = require_debug(); + var evaluateConditions_1 = require_evaluateConditions(); + var getEndpointHeaders_1 = require_getEndpointHeaders(); + var getEndpointProperties_1 = require_getEndpointProperties(); + var getEndpointUrl_1 = require_getEndpointUrl(); + var evaluateEndpointRule = (endpointRule, options) => { + var _a, _b; + const { conditions, endpoint } = endpointRule; + const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); + if (!result) { + return; + } + const endpointRuleOptions = { + ...options, + referenceRecord: { ...options.referenceRecord, ...referenceRecord } + }; + const { url: url2, properties, headers } = endpoint; + (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `Resolving endpoint from template: ${(0, debug_1.toDebugString)(endpoint)}`); + return { + ...headers != void 0 && { + headers: (0, getEndpointHeaders_1.getEndpointHeaders)(headers, endpointRuleOptions) + }, + ...properties != void 0 && { + properties: (0, getEndpointProperties_1.getEndpointProperties)(properties, endpointRuleOptions) + }, + url: (0, getEndpointUrl_1.getEndpointUrl)(url2, endpointRuleOptions) + }; + }; + exports.evaluateEndpointRule = evaluateEndpointRule; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js -var require_retryDecider = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +var require_evaluateErrorRule = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateErrorRule.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.defaultRetryDecider = void 0; - var service_error_classification_1 = require_dist_cjs27(); - var defaultRetryDecider = (error) => { - if (!error) { - return false; + exports.evaluateErrorRule = void 0; + var types_1 = require_types3(); + var evaluateConditions_1 = require_evaluateConditions(); + var evaluateExpression_1 = require_evaluateExpression(); + var evaluateErrorRule = (errorRule, options) => { + const { conditions, error } = errorRule; + const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); + if (!result) { + return; } - return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); + throw new types_1.EndpointError((0, evaluateExpression_1.evaluateExpression)(error, "Error", { + ...options, + referenceRecord: { ...options.referenceRecord, ...referenceRecord } + })); }; - exports.defaultRetryDecider = defaultRetryDecider; + exports.evaluateErrorRule = evaluateErrorRule; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/util.js -var require_util3 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/util.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +var require_evaluateTreeRule = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateTreeRule.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.asSdkError = void 0; - var asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === "string") - return new Error(error); - return new Error(`AWS SDK error wrapper for ${error}`); + exports.evaluateTreeRule = void 0; + var evaluateConditions_1 = require_evaluateConditions(); + var evaluateRules_1 = require_evaluateRules(); + var evaluateTreeRule = (treeRule, options) => { + const { conditions, rules } = treeRule; + const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); + if (!result) { + return; + } + return (0, evaluateRules_1.evaluateRules)(rules, { + ...options, + referenceRecord: { ...options.referenceRecord, ...referenceRecord } + }); }; - exports.asSdkError = asSdkError; + exports.evaluateTreeRule = evaluateTreeRule; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js +var require_evaluateRules = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/evaluateRules.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.StandardRetryStrategy = void 0; - var protocol_http_1 = require_dist_cjs2(); - var service_error_classification_1 = require_dist_cjs27(); - var util_retry_1 = require_dist_cjs28(); - var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); - var defaultRetryQuota_1 = require_defaultRetryQuota(); - var delayDecider_1 = require_delayDecider(); - var retryDecider_1 = require_retryDecider(); - var util_1 = require_util3(); - var StandardRetryStrategy = class { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = util_retry_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(util_retry_1.INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } catch (error) { - maxAttempts = util_retry_1.DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request: request2 } = args; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } catch (e) { - const err = (0, util_1.asSdkError)(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delayFromDecider = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? util_retry_1.THROTTLING_RETRY_DELAY_BASE : util_retry_1.DEFAULT_RETRY_DELAY_BASE, attempts); - const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); - const delay = Math.max(delayFromResponse || 0, delayFromDecider); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; + exports.evaluateRules = void 0; + var types_1 = require_types3(); + var evaluateEndpointRule_1 = require_evaluateEndpointRule(); + var evaluateErrorRule_1 = require_evaluateErrorRule(); + var evaluateTreeRule_1 = require_evaluateTreeRule(); + var evaluateRules = (rules, options) => { + for (const rule of rules) { + if (rule.type === "endpoint") { + const endpointOrUndefined = (0, evaluateEndpointRule_1.evaluateEndpointRule)(rule, options); + if (endpointOrUndefined) { + return endpointOrUndefined; + } + } else if (rule.type === "error") { + (0, evaluateErrorRule_1.evaluateErrorRule)(rule, options); + } else if (rule.type === "tree") { + const endpointOrUndefined = (0, evaluateTreeRule_1.evaluateTreeRule)(rule, options); + if (endpointOrUndefined) { + return endpointOrUndefined; } + } else { + throw new types_1.EndpointError(`Unknown endpoint rule: ${rule}`); } } + throw new types_1.EndpointError(`Rules evaluation failed`); }; - exports.StandardRetryStrategy = StandardRetryStrategy; - var getDelayFromRetryAfterHeader = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return retryAfterSeconds * 1e3; - const retryAfterDate = new Date(retryAfter); - return retryAfterDate.getTime() - Date.now(); - }; + exports.evaluateRules = evaluateRules; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js +var require_utils = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.AdaptiveRetryStrategy = void 0; - var util_retry_1 = require_dist_cjs28(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy2(); - var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new util_retry_1.DefaultRateLimiter(); - this.mode = util_retry_1.RETRY_MODES.ADAPTIVE; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_evaluateRules(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +var require_resolveEndpoint = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveEndpoint = void 0; + var debug_1 = require_debug(); + var types_1 = require_types3(); + var utils_1 = require_utils(); + var resolveEndpoint = (ruleSetObject, options) => { + var _a, _b, _c, _d, _e, _f; + const { endpointParams, logger } = options; + const { parameters, rules } = ruleSetObject; + (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, `${debug_1.debugId} Initial EndpointParams: ${(0, debug_1.toDebugString)(endpointParams)}`); + const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]); + if (paramsWithDefault.length > 0) { + for (const [paramKey, paramDefaultValue] of paramsWithDefault) { + endpointParams[paramKey] = (_c = endpointParams[paramKey]) !== null && _c !== void 0 ? _c : paramDefaultValue; + } } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - } - }); + const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k); + for (const requiredParam of requiredParams) { + if (endpointParams[requiredParam] == null) { + throw new types_1.EndpointError(`Missing required parameter: '${requiredParam}'`); + } } + const endpoint = (0, utils_1.evaluateRules)(rules, { endpointParams, logger, referenceRecord: {} }); + if ((_d = options.endpointParams) === null || _d === void 0 ? void 0 : _d.Endpoint) { + try { + const givenEndpoint = new URL(options.endpointParams.Endpoint); + const { protocol, port } = givenEndpoint; + endpoint.url.protocol = protocol; + endpoint.url.port = port; + } catch (e) { + } + } + (_f = (_e = options.logger) === null || _e === void 0 ? void 0 : _e.debug) === null || _f === void 0 ? void 0 : _f.call(_e, `${debug_1.debugId} Resolved endpoint: ${(0, debug_1.toDebugString)(endpoint)}`); + return endpoint; }; - exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; + exports.resolveEndpoint = resolveEndpoint; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/configurations.js -var require_configurations2 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/configurations.js"(exports) { +// ../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +var require_dist_cjs27 = __commonJS({ + "../../../node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; - var util_middleware_1 = require_dist_cjs10(); - var util_retry_1 = require_dist_cjs28(); - exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; - exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; - exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports.ENV_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports.CONFIG_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - default: util_retry_1.DEFAULT_MAX_ATTEMPTS - }; - var resolveRetryConfig = (input) => { - var _a; - const { retryStrategy } = input; - const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : util_retry_1.DEFAULT_MAX_ATTEMPTS); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (retryStrategy) { - return retryStrategy; - } - const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); - if (retryMode === util_retry_1.RETRY_MODES.ADAPTIVE) { - return new util_retry_1.AdaptiveRetryStrategy(maxAttempts); - } - return new util_retry_1.StandardRetryStrategy(maxAttempts); - } - }; - }; - exports.resolveRetryConfig = resolveRetryConfig; - exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; - exports.CONFIG_RETRY_MODE = "retry_mode"; - exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], - default: util_retry_1.DEFAULT_RETRY_MODE - }; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_partition(), exports); + tslib_1.__exportStar(require_resolveEndpoint(), exports); + tslib_1.__exportStar(require_types3(), exports); } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js -var require_omitRetryHeadersMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +var require_constants4 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var util_retry_1 = require_dist_cjs28(); - var omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request: request2 } = args; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - delete request2.headers[util_retry_1.INVOCATION_ID_HEADER]; - delete request2.headers[util_retry_1.REQUEST_HEADER]; - } - return next(args); - }; - exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; - exports.omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true - }; - var getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); - } - }); - exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; + exports.UA_ESCAPE_CHAR = exports.UA_VALUE_ESCAPE_REGEX = exports.UA_NAME_ESCAPE_REGEX = exports.UA_NAME_SEPARATOR = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; + exports.USER_AGENT = "user-agent"; + exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; + exports.SPACE = " "; + exports.UA_NAME_SEPARATOR = "/"; + exports.UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; + exports.UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g; + exports.UA_ESCAPE_CHAR = "-"; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js -var require_retryMiddleware = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +var require_user_agent_middleware = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getRetryAfterHint = exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; - var protocol_http_1 = require_dist_cjs2(); - var service_error_classification_1 = require_dist_cjs27(); - var util_retry_1 = require_dist_cjs28(); - var uuid_1 = (init_esm_node(), __toCommonJS(esm_node_exports)); - var util_1 = require_util3(); - var retryMiddleware = (options) => (next, context) => async (args) => { - let retryStrategy = await options.retryStrategy(); - const maxAttempts = await options.maxAttempts(); - if (isRetryStrategyV2(retryStrategy)) { - retryStrategy = retryStrategy; - let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]); - let lastError = new Error(); - let attempts = 0; - let totalRetryDelay = 0; - const { request: request2 } = args; - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request2)) { - request2.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - const { response, output } = await next(args); - retryStrategy.recordSuccess(retryToken); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalRetryDelay; - return { response, output }; - } catch (e) { - const retryErrorInfo = getRetryErrorInfo(e); - lastError = (0, util_1.asSdkError)(e); - try { - retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); - } catch (refreshError) { - if (!lastError.$metadata) { - lastError.$metadata = {}; - } - lastError.$metadata.attempts = attempts + 1; - lastError.$metadata.totalRetryDelay = totalRetryDelay; - throw lastError; - } - attempts = retryToken.getRetryCount(); - const delay = retryToken.getRetryDelay(); - totalRetryDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - } + exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var util_endpoints_1 = require_dist_cjs27(); + var constants_1 = require_constants4(); + var userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request: request2 } = args; + if (!protocol_http_1.HttpRequest.isInstance(request2)) + return next(args); + const { headers } = request2; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const prefix = (0, util_endpoints_1.getUserAgentPrefix)(); + const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent + ].join(constants_1.SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` : normalUAValue; } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; } else { - retryStrategy = retryStrategy; - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]]; - return retryStrategy.retry(next, args); + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; } + return next({ + ...args, + request: request2 + }); }; - exports.retryMiddleware = retryMiddleware; - var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined"; - var getRetryErrorInfo = (error) => { - const errorInfo = { - errorType: getRetryErrorType(error) - }; - const retryAfterHint = (0, exports.getRetryAfterHint)(error.$response); - if (retryAfterHint) { - errorInfo.retryAfterHint = retryAfterHint; + exports.userAgentMiddleware = userAgentMiddleware; + var escapeUserAgent = (userAgentPair) => { + var _a; + const name = userAgentPair[0].split(constants_1.UA_NAME_SEPARATOR).map((part) => part.replace(constants_1.UA_NAME_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR)).join(constants_1.UA_NAME_SEPARATOR); + const version2 = (_a = userAgentPair[1]) === null || _a === void 0 ? void 0 : _a.replace(constants_1.UA_VALUE_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR); + const prefixSeparatorIndex = name.indexOf(constants_1.UA_NAME_SEPARATOR); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); } - return errorInfo; - }; - var getRetryErrorType = (error) => { - if ((0, service_error_classification_1.isThrottlingError)(error)) - return "THROTTLING"; - if ((0, service_error_classification_1.isTransientError)(error)) - return "TRANSIENT"; - if ((0, service_error_classification_1.isServerError)(error)) - return "SERVER_ERROR"; - return "CLIENT_ERROR"; - }; - exports.retryMiddlewareOptions = { - name: "retryMiddleware", - tags: ["RETRY"], - step: "finalizeRequest", - priority: "high", - override: true + return [prefix, uaName, version2].filter((item) => item && item.length > 0).reduce((acc, item, index) => { + switch (index) { + case 0: + return item; + case 1: + return `${acc}/${item}`; + default: + return `${acc}#${item}`; + } + }, ""); }; - var getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); - } - }); - exports.getRetryPlugin = getRetryPlugin; - var getRetryAfterHint = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return new Date(retryAfterSeconds * 1e3); - const retryAfterDate = new Date(retryAfter); - return retryAfterDate; + exports.getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true }; - exports.getRetryAfterHint = getRetryAfterHint; + var getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); + } + }); + exports.getUserAgentPlugin = getUserAgentPlugin; } }); -// ../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js -var require_dist_cjs29 = __commonJS({ - "../../../node_modules/@smithy/middleware-retry/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +var require_dist_cjs28 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_AdaptiveRetryStrategy2(), exports); - tslib_1.__exportStar(require_StandardRetryStrategy2(), exports); tslib_1.__exportStar(require_configurations2(), exports); - tslib_1.__exportStar(require_delayDecider(), exports); - tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports); - tslib_1.__exportStar(require_retryDecider(), exports); - tslib_1.__exportStar(require_retryMiddleware(), exports); + tslib_1.__exportStar(require_user_agent_middleware(), exports); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/NoOpLogger.js var require_NoOpLogger = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js"(exports) { + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/NoOpLogger.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoOpLogger = void 0; @@ -8202,9 +7818,9 @@ var require_NoOpLogger = __commonJS({ } }); -// ../../../node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +// ../../../node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js var require_MiddlewareStack = __commonJS({ - "../../../node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js"(exports) { + "../../../node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.constructStack = void 0; @@ -8311,8 +7927,8 @@ var require_MiddlewareStack = __commonJS({ } } }); - const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expandedMiddlewareList) => { - wholeList.push(...expandedMiddlewareList); + const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { + wholeList.push(...expendedMiddlewareList); return wholeList; }, []); return mainChain; @@ -8424,9 +8040,9 @@ var require_MiddlewareStack = __commonJS({ } }); -// ../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js -var require_dist_cjs30 = __commonJS({ - "../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js +var require_dist_cjs29 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -8434,13 +8050,13 @@ var require_dist_cjs30 = __commonJS({ } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/client.js -var require_client3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/client.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/client.js +var require_client2 = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/client.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Client = void 0; - var middleware_stack_1 = require_dist_cjs30(); + var middleware_stack_1 = require_dist_cjs29(); var Client = class { constructor(config) { this.middlewareStack = (0, middleware_stack_1.constructStack)(); @@ -8466,2279 +8082,1952 @@ var require_client3 = __commonJS({ } }); -// ../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js -var require_fromBase64 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/fromBase64.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/command.js +var require_command2 = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/command.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromBase64 = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; - var fromBase64 = (input) => { - if (input.length * 3 % 4 !== 0) { - throw new TypeError(`Incorrect padding on base64 string.`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(`Invalid base64 string.`); + exports.Command = void 0; + var middleware_stack_1 = require_dist_cjs29(); + var Command = class { + constructor() { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); } - const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); }; - exports.fromBase64 = fromBase64; + exports.Command = Command; } }); -// ../../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js -var require_toBase64 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/toBase64.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js +var require_constants5 = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.toBase64 = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var toBase64 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); - exports.toBase64 = toBase64; + exports.SENSITIVE_STRING = void 0; + exports.SENSITIVE_STRING = "***SensitiveInformation***"; } }); -// ../../../node_modules/@smithy/util-base64/dist-cjs/index.js -var require_dist_cjs31 = __commonJS({ - "../../../node_modules/@smithy/util-base64/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/create-aggregated-client.js +var require_create_aggregated_client = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/create-aggregated-client.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromBase64(), exports); - tslib_1.__exportStar(require_toBase64(), exports); + exports.createAggregatedClient = void 0; + var createAggregatedClient = (commands, Client) => { + for (const command of Object.keys(commands)) { + const CommandCtor = commands[command]; + const methodImpl = async function(args, optionsOrCb, cb) { + const command2 = new CommandCtor(args); + if (typeof optionsOrCb === "function") { + this.send(command2, optionsOrCb); + } else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expected http options but got ${typeof optionsOrCb}`); + this.send(command2, optionsOrCb || {}, cb); + } else { + return this.send(command2, optionsOrCb); + } + }; + const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); + Client.prototype[methodName] = methodImpl; + } + }; + exports.createAggregatedClient = createAggregatedClient; } }); -// ../../../node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js -var require_transforms = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js +var require_parse_utils = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.transformFromString = exports.transformToString = void 0; - var util_base64_1 = require_dist_cjs31(); - var util_utf8_1 = require_dist_cjs13(); - var Uint8ArrayBlobAdapter_1 = require_Uint8ArrayBlobAdapter(); - function transformToString(payload, encoding = "utf-8") { - if (encoding === "base64") { - return (0, util_base64_1.toBase64)(payload); + exports.logger = exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; + var parseBoolean = (value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); } - return (0, util_utf8_1.toUtf8)(payload); - } - exports.transformToString = transformToString; - function transformFromString(str, encoding) { - if (encoding === "base64") { - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_base64_1.fromBase64)(str)); + }; + exports.parseBoolean = parseBoolean; + var expectBoolean = (value) => { + if (value === null || value === void 0) { + return void 0; } - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_utf8_1.fromUtf8)(str)); - } - exports.transformFromString = transformFromString; - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js -var require_Uint8ArrayBlobAdapter = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Uint8ArrayBlobAdapter = void 0; - var transforms_1 = require_transforms(); - var Uint8ArrayBlobAdapter = class extends Uint8Array { - static fromString(source, encoding = "utf-8") { - switch (typeof source) { - case "string": - return (0, transforms_1.transformFromString)(source, encoding); - default: - throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`); + if (typeof value === "number") { + if (value === 0 || value === 1) { + exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; } } - static mutate(source) { - Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype); - return source; + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } } - transformToString(encoding = "utf-8") { - return (0, transforms_1.transformToString)(this, encoding); + if (typeof value === "boolean") { + return value; } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); }; - exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter; - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js -var require_getAwsChunkedEncodingStream = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getAwsChunkedEncodingStream = void 0; - var stream_1 = require("stream"); - var getAwsChunkedEncodingStream = (readableStream, options) => { - const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; - const checksumRequired = base64Encoder !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0; - const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0; - const awsChunkedEncodingStream = new stream_1.Readable({ read: () => { - } }); - readableStream.on("data", (data) => { - const length = bodyLengthChecker(data) || 0; - awsChunkedEncodingStream.push(`${length.toString(16)}\r -`); - awsChunkedEncodingStream.push(data); - awsChunkedEncodingStream.push("\r\n"); - }); - readableStream.on("end", async () => { - awsChunkedEncodingStream.push(`0\r -`); - if (checksumRequired) { - const checksum = base64Encoder(await digest); - awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r -`); - awsChunkedEncodingStream.push(`\r -`); + exports.expectBoolean = expectBoolean; + var expectNumber = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + exports.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; } - awsChunkedEncodingStream.push(null); - }); - return awsChunkedEncodingStream; + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); }; - exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream; - } -}); - -// ../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js -var require_dist_cjs32 = __commonJS({ - "../../../node_modules/@smithy/querystring-builder/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.buildQueryString = void 0; - var util_uri_escape_1 = require_dist_cjs14(); - function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = (0, util_uri_escape_1.escapeUri)(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(`${key}=${(0, util_uri_escape_1.escapeUri)(value[i])}`); - } - } else { - let qsEntry = key; - if (value || typeof value === "string") { - qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; - } - parts.push(qsEntry); + exports.expectNumber = expectNumber; + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = (value) => { + const expected = (0, exports.expectNumber)(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); } } - return parts.join("&"); - } - exports.buildQueryString = buildQueryString; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/constants.js -var require_constants5 = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; - exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js -var require_get_transformed_headers = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getTransformedHeaders = void 0; - var getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; + return expected; + }; + exports.expectFloat32 = expectFloat32; + var expectLong = (value) => { + if (value === null || value === void 0) { + return void 0; } - return transformedHeaders; + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); }; - exports.getTransformedHeaders = getTransformedHeaders; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js -var require_set_connection_timeout = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.setConnectionTimeout = void 0; - var setConnectionTimeout = (request2, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; + exports.expectLong = expectLong; + exports.expectInt = exports.expectLong; + var expectInt32 = (value) => expectSizedInt(value, 32); + exports.expectInt32 = expectInt32; + var expectShort = (value) => expectSizedInt(value, 16); + exports.expectShort = expectShort; + var expectByte = (value) => expectSizedInt(value, 8); + exports.expectByte = expectByte; + var expectSizedInt = (value, size) => { + const expected = (0, exports.expectLong)(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); } - const timeoutId = setTimeout(() => { - request2.destroy(); - reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { - name: "TimeoutError" - })); - }, timeoutInMs); - request2.on("socket", (socket) => { - if (socket.connecting) { - socket.on("connect", () => { - clearTimeout(timeoutId); - }); - } else { - clearTimeout(timeoutId); + return expected; + }; + var castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }; + var expectNonNull = (value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); } - }); + throw new TypeError("Expected a non-null value"); + } + return value; }; - exports.setConnectionTimeout = setConnectionTimeout; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js -var require_set_socket_keep_alive = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.setSocketKeepAlive = void 0; - var setSocketKeepAlive = (request2, { keepAlive, keepAliveMsecs }) => { - if (keepAlive !== true) { - return; + exports.expectNonNull = expectNonNull; + var expectObject = (value) => { + if (value === null || value === void 0) { + return void 0; } - request2.on("socket", (socket) => { - socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); - }); + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); }; - exports.setSocketKeepAlive = setSocketKeepAlive; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js -var require_set_socket_timeout = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.setSocketTimeout = void 0; - var setSocketTimeout = (request2, reject, timeoutInMs = 0) => { - request2.setTimeout(timeoutInMs, () => { - request2.destroy(); - reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); - }); + exports.expectObject = expectObject; + var expectString = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + exports.logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); }; - exports.setSocketTimeout = setSocketTimeout; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js -var require_write_request_body = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.writeRequestBody = void 0; - var stream_1 = require("stream"); - var MIN_WAIT_TIME = 1e3; - async function writeRequestBody(httpRequest, request2, maxContinueTimeoutMs = MIN_WAIT_TIME) { - var _a; - const headers = (_a = request2.headers) !== null && _a !== void 0 ? _a : {}; - const expect = headers["Expect"] || headers["expect"]; - let timeoutId = -1; - let hasError = false; - if (expect === "100-continue") { - await Promise.race([ - new Promise((resolve) => { - timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); - }), - new Promise((resolve) => { - httpRequest.on("continue", () => { - clearTimeout(timeoutId); - resolve(); - }); - httpRequest.on("error", () => { - hasError = true; - clearTimeout(timeoutId); - resolve(); - }); - }) - ]); + exports.expectString = expectString; + var expectUnion = (value) => { + if (value === null || value === void 0) { + return void 0; } - if (!hasError) { - writeBody(httpRequest, request2.body); + const asObject = (0, exports.expectObject)(value); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); + if (setKeys.length === 0) { + throw new TypeError(`Unions must have exactly one non-null member. None were found.`); } - } - exports.writeRequestBody = writeRequestBody; - function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { - body.pipe(httpRequest); - } else if (body) { - httpRequest.end(Buffer.from(body)); - } else { - httpRequest.end(); + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); } - } - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js -var require_node_http_handler = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttpHandler = exports.DEFAULT_REQUEST_TIMEOUT = void 0; - var protocol_http_1 = require_dist_cjs2(); - var querystring_builder_1 = require_dist_cjs32(); - var http_1 = require("http"); - var https_1 = require("https"); - var constants_1 = require_constants5(); - var get_transformed_headers_1 = require_get_transformed_headers(); - var set_connection_timeout_1 = require_set_connection_timeout(); - var set_socket_keep_alive_1 = require_set_socket_keep_alive(); - var set_socket_timeout_1 = require_set_socket_timeout(); - var write_request_body_1 = require_write_request_body(); - exports.DEFAULT_REQUEST_TIMEOUT = 0; - var NodeHttpHandler = class { - constructor(options) { - this.metadata = { handlerProtocol: "http/1.1" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options().then((_options) => { - resolve(this.resolveDefaultConfig(_options)); - }).catch(reject); - } else { - resolve(this.resolveDefaultConfig(options)); - } - }); + return asObject; + }; + exports.expectUnion = expectUnion; + var strictParseDouble = (value) => { + if (typeof value == "string") { + return (0, exports.expectNumber)(parseNumber(value)); } - resolveDefaultConfig(options) { - const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; - const keepAlive = true; - const maxSockets = 50; - return { - connectionTimeout, - requestTimeout: requestTimeout !== null && requestTimeout !== void 0 ? requestTimeout : socketTimeout, - httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) - }; + return (0, exports.expectNumber)(value); + }; + exports.strictParseDouble = strictParseDouble; + exports.strictParseFloat = exports.strictParseDouble; + var strictParseFloat32 = (value) => { + if (typeof value == "string") { + return (0, exports.expectFloat32)(parseNumber(value)); } - destroy() { - var _a, _b, _c, _d; - (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); - (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + return (0, exports.expectFloat32)(value); + }; + exports.strictParseFloat32 = strictParseFloat32; + var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = (value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(`Expected real number, got implicit NaN`); } - async handle(request2, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - return new Promise((_resolve, _reject) => { - var _a, _b; - let writeRequestBodyPromise = void 0; - const resolve = async (arg) => { - await writeRequestBodyPromise; - _resolve(arg); - }; - const reject = async (arg) => { - await writeRequestBodyPromise; - _reject(arg); - }; - if (!this.config) { - throw new Error("Node HTTP request handler config is not resolved"); - } - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const isSSL = request2.protocol === "https:"; - const queryString = (0, querystring_builder_1.buildQueryString)(request2.query || {}); - let auth = void 0; - if (request2.username != null || request2.password != null) { - const username = (_a = request2.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request2.password) !== null && _b !== void 0 ? _b : ""; - auth = `${username}:${password}`; - } - let path = request2.path; - if (queryString) { - path += `?${queryString}`; - } - if (request2.fragment) { - path += `#${request2.fragment}`; - } - const nodeHttpsOptions = { - headers: request2.headers, - host: request2.hostname, - method: request2.method, - path, - port: request2.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, - auth - }; - const requestFunc = isSSL ? https_1.request : http_1.request; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: res.statusCode || -1, - reason: res.statusMessage, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), - body: res - }); - resolve({ response: httpResponse }); - }); - req.on("error", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: "TimeoutError" })); - } else { - reject(err); - } - }); - (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); - (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.requestTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - const httpAgent = nodeHttpsOptions.agent; - if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { - (0, set_socket_keep_alive_1.setSocketKeepAlive)(req, { - keepAlive: httpAgent.keepAlive, - keepAliveMsecs: httpAgent.keepAliveMsecs - }); - } - writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request2, this.config.requestTimeout).catch(_reject); - }); + return parseFloat(value); + }; + var limitedParseDouble = (value) => { + if (typeof value == "string") { + return parseFloatString(value); } + return (0, exports.expectNumber)(value); + }; + exports.limitedParseDouble = limitedParseDouble; + exports.handleFloat = exports.limitedParseDouble; + exports.limitedParseFloat = exports.limitedParseDouble; + var limitedParseFloat32 = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectFloat32)(value); + }; + exports.limitedParseFloat32 = limitedParseFloat32; + var parseFloatString = (value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } + }; + var strictParseLong = (value) => { + if (typeof value === "string") { + return (0, exports.expectLong)(parseNumber(value)); + } + return (0, exports.expectLong)(value); + }; + exports.strictParseLong = strictParseLong; + exports.strictParseInt = exports.strictParseLong; + var strictParseInt32 = (value) => { + if (typeof value === "string") { + return (0, exports.expectInt32)(parseNumber(value)); + } + return (0, exports.expectInt32)(value); + }; + exports.strictParseInt32 = strictParseInt32; + var strictParseShort = (value) => { + if (typeof value === "string") { + return (0, exports.expectShort)(parseNumber(value)); + } + return (0, exports.expectShort)(value); + }; + exports.strictParseShort = strictParseShort; + var strictParseByte = (value) => { + if (typeof value === "string") { + return (0, exports.expectByte)(parseNumber(value)); + } + return (0, exports.expectByte)(value); + }; + exports.strictParseByte = strictParseByte; + var stackTraceWarning = (message) => { + return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); + }; + exports.logger = { + warn: console.warn }; - exports.NodeHttpHandler = NodeHttpHandler; } }); -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js -var require_node_http2_connection_pool = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js +var require_date_utils = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttp2ConnectionPool = void 0; - var NodeHttp2ConnectionPool = class { - constructor(sessions) { - this.sessions = []; - this.sessions = sessions !== null && sessions !== void 0 ? sessions : []; + exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTimeWithOffset = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; + var parse_utils_1 = require_parse_utils(); + var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; + var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; + } + exports.dateToUtcString = dateToUtcString; + var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); + var parseRfc3339DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; } - poll() { - if (this.sessions.length > 0) { - return this.sessions.shift(); - } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); } - offerLast(session) { - this.sessions.push(session); + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); } - contains(session) { - return this.sessions.includes(session); + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }; + exports.parseRfc3339DateTime = parseRfc3339DateTime; + var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/); + var parseRfc3339DateTimeWithOffset = (value) => { + if (value === null || value === void 0) { + return void 0; } - remove(session) { - this.sessions = this.sessions.filter((s) => s !== session); + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); } - [Symbol.iterator]() { - return this.sessions[Symbol.iterator](); + const match = RFC3339_WITH_OFFSET.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); } - destroy(connection) { - for (const session of this.sessions) { - if (session === connection) { - if (!session.destroyed) { - session.destroy(); - } - } - } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + if (offsetStr.toUpperCase() != "Z") { + date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); } + return date; }; - exports.NodeHttp2ConnectionPool = NodeHttp2ConnectionPool; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js -var require_node_http2_connection_manager = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttp2ConnectionManager = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - var http2_1 = tslib_1.__importDefault(require("http2")); - var node_http2_connection_pool_1 = require_node_http2_connection_pool(); - var NodeHttp2ConnectionManager = class { - constructor(config) { - this.sessionCache = /* @__PURE__ */ new Map(); - this.config = config; - if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { - throw new RangeError("maxConcurrency must be greater than zero."); - } + exports.parseRfc3339DateTimeWithOffset = parseRfc3339DateTimeWithOffset; + var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); + var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); + var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); + var parseRfc7231DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; } - lease(requestContext, connectionConfiguration) { - const url2 = this.getUrlString(requestContext); - const existingPool = this.sessionCache.get(url2); - if (existingPool) { - const existingSession = existingPool.poll(); - if (existingSession && !this.config.disableConcurrency) { - return existingSession; - } - } - const session = http2_1.default.connect(url2); - if (this.config.maxConcurrency) { - session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { - if (err) { - throw new Error("Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString()); - } - }); - } - session.unref(); - const destroySessionCb = () => { - session.destroy(); - this.deleteSession(url2, session); - }; - session.on("goaway", destroySessionCb); - session.on("error", destroySessionCb); - session.on("frameError", destroySessionCb); - session.on("close", () => this.deleteSession(url2, session)); - if (connectionConfiguration.requestTimeout) { - session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb); - } - const connectionPool = this.sessionCache.get(url2) || new node_http2_connection_pool_1.NodeHttp2ConnectionPool(); - connectionPool.offerLast(session); - this.sessionCache.set(url2, connectionPool); - return session; + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); } - deleteSession(authority, session) { - const existingConnectionPool = this.sessionCache.get(authority); - if (!existingConnectionPool) { - return; - } - if (!existingConnectionPool.contains(session)) { - return; - } - existingConnectionPool.remove(session); - this.sessionCache.set(authority, existingConnectionPool); + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); } - release(requestContext, session) { - var _a; - const cacheKey = this.getUrlString(requestContext); - (_a = this.sessionCache.get(cacheKey)) === null || _a === void 0 ? void 0 : _a.offerLast(session); + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + })); } - destroy() { - for (const [key, connectionPool] of this.sessionCache) { - for (const session of connectionPool) { - if (!session.destroyed) { - session.destroy(); - } - connectionPool.remove(session); - } - this.sessionCache.delete(key); - } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); } - setMaxConcurrentStreams(maxConcurrentStreams) { - if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { - throw new RangeError("maxConcurrentStreams must be greater than zero."); - } - this.config.maxConcurrency = maxConcurrentStreams; + throw new TypeError("Invalid RFC-7231 date-time value"); + }; + exports.parseRfc7231DateTime = parseRfc7231DateTime; + var parseEpochTimestamp = (value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } else if (typeof value === "string") { + valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + } else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); } - setDisableConcurrentStreams(disableConcurrentStreams) { - this.config.disableConcurrency = disableConcurrentStreams; + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); } - getUrlString(request2) { - return request2.destination.toString(); + return new Date(Math.round(valueAsDouble * 1e3)); + }; + exports.parseEpochTimestamp = parseEpochTimestamp; + var buildDate = (year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); + }; + var parseTwoDigitYear = (value) => { + const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; } + return valueInThisCentury; }; - exports.NodeHttp2ConnectionManager = NodeHttp2ConnectionManager; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js -var require_node_http2_handler = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.NodeHttp2Handler = void 0; - var protocol_http_1 = require_dist_cjs2(); - var querystring_builder_1 = require_dist_cjs32(); - var http2_1 = require("http2"); - var get_transformed_headers_1 = require_get_transformed_headers(); - var node_http2_connection_manager_1 = require_node_http2_connection_manager(); - var write_request_body_1 = require_write_request_body(); - var NodeHttp2Handler = class { - constructor(options) { - this.metadata = { handlerProtocol: "h2" }; - this.connectionManager = new node_http2_connection_manager_1.NodeHttp2ConnectionManager({}); - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options().then((opts) => { - resolve(opts || {}); - }).catch(reject); - } else { - resolve(options || {}); - } - }); + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = (input) => { + if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); } - destroy() { - this.connectionManager.destroy(); + return input; + }; + var parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); } - async handle(request2, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false); - if (this.config.maxConcurrentStreams) { - this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams); - } - } - const { requestTimeout, disableConcurrentStreams } = this.config; - return new Promise((_resolve, _reject) => { - var _a, _b, _c; - let fulfilled = false; - let writeRequestBodyPromise = void 0; - const resolve = async (arg) => { - await writeRequestBodyPromise; - _resolve(arg); - }; - const reject = async (arg) => { - await writeRequestBodyPromise; - _reject(arg); - }; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - fulfilled = true; - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const { hostname, method, port, protocol, query } = request2; - let auth = ""; - if (request2.username != null || request2.password != null) { - const username = (_a = request2.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request2.password) !== null && _b !== void 0 ? _b : ""; - auth = `${username}:${password}@`; - } - const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; - const requestContext = { destination: new URL(authority) }; - const session = this.connectionManager.lease(requestContext, { - requestTimeout: (_c = this.config) === null || _c === void 0 ? void 0 : _c.sessionTimeout, - disableConcurrentStreams: disableConcurrentStreams || false - }); - const rejectWithDestroy = (err) => { - if (disableConcurrentStreams) { - this.destroySession(session); - } - fulfilled = true; - reject(err); - }; - const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); - let path = request2.path; - if (queryString) { - path += `?${queryString}`; - } - if (request2.fragment) { - path += `#${request2.fragment}`; - } - const req = session.request({ - ...request2.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method - }); - session.ref(); - req.on("response", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: headers[":status"] || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), - body: req - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (disableConcurrentStreams) { - session.close(); - this.connectionManager.deleteSession(authority, session); - } - }); - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); - timeoutError.name = "TimeoutError"; - rejectWithDestroy(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - rejectWithDestroy(abortError); - }; - } - req.on("frameError", (type, code, id) => { - rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); - }); - req.on("error", rejectWithDestroy); - req.on("aborted", () => { - rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); - }); - req.on("close", () => { - session.unref(); - if (disableConcurrentStreams) { - session.destroy(); - } - if (!fulfilled) { - rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response")); - } - }); - writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request2, requestTimeout); - }); + return monthIdx + 1; + }; + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); } }; - exports.NodeHttp2Handler = NodeHttp2Handler; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js -var require_collector = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Collector = void 0; - var stream_1 = require("stream"); - var Collector = class extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; + var isLeapYear = (year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); + }; + var parseDateValue = (value, type, lower, upper) => { + const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); + return dateVal; + }; + var parseMilliseconds = (value) => { + if (value === null || value === void 0) { + return 0; } + return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1e3; }; - exports.Collector = Collector; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js -var require_stream_collector = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.streamCollector = void 0; - var collector_1 = require_collector(); - var streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); - stream.pipe(collector); - stream.on("error", (err) => { - collector.end(); - reject(err); - }); - collector.on("error", reject); - collector.on("finish", function() { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); - }); - exports.streamCollector = streamCollector; - } -}); - -// ../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js -var require_dist_cjs33 = __commonJS({ - "../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_node_http_handler(), exports); - tslib_1.__exportStar(require_node_http2_handler(), exports); - tslib_1.__exportStar(require_stream_collector(), exports); - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js -var require_sdk_stream_mixin = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.sdkStreamMixin = void 0; - var node_http_handler_1 = require_dist_cjs33(); - var util_buffer_from_1 = require_dist_cjs12(); - var stream_1 = require("stream"); - var util_1 = require("util"); - var ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; - var sdkStreamMixin = (stream) => { - var _a, _b; - if (!(stream instanceof stream_1.Readable)) { - const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; - throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`); + var parseOffsetToMilliseconds = (value) => { + const directionStr = value[0]; + let direction = 1; + if (directionStr == "+") { + direction = 1; + } else if (directionStr == "-") { + direction = -1; + } else { + throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); } - let transformed = false; - const transformToByteArray = async () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - return await (0, node_http_handler_1.streamCollector)(stream); - }; - return Object.assign(stream, { - transformToByteArray, - transformToString: async (encoding) => { - const buf = await transformToByteArray(); - if (encoding === void 0 || Buffer.isEncoding(encoding)) { - return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding); - } else { - const decoder = new util_1.TextDecoder(encoding); - return decoder.decode(buf); - } - }, - transformToWebStream: () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - if (stream.readableFlowing !== null) { - throw new Error("The stream has been consumed by other callbacks."); - } - if (typeof stream_1.Readable.toWeb !== "function") { - throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available."); - } - transformed = true; - return stream_1.Readable.toWeb(stream); - } - }); + const hour = Number(value.substring(1, 3)); + const minute = Number(value.substring(4, 6)); + return direction * (hour * 60 + minute) * 60 * 1e3; }; - exports.sdkStreamMixin = sdkStreamMixin; - } -}); - -// ../../../node_modules/@smithy/util-stream/dist-cjs/index.js -var require_dist_cjs34 = __commonJS({ - "../../../node_modules/@smithy/util-stream/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_Uint8ArrayBlobAdapter(), exports); - tslib_1.__exportStar(require_getAwsChunkedEncodingStream(), exports); - tslib_1.__exportStar(require_sdk_stream_mixin(), exports); - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js -var require_collect_stream_body = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.collectBody = void 0; - var util_stream_1 = require_dist_cjs34(); - var collectBody = async (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return util_stream_1.Uint8ArrayBlobAdapter.mutate(streamBody); + var stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; } - if (!streamBody) { - return util_stream_1.Uint8ArrayBlobAdapter.mutate(new Uint8Array()); + if (idx === 0) { + return value; } - const fromContext = context.streamCollector(streamBody); - return util_stream_1.Uint8ArrayBlobAdapter.mutate(await fromContext); + return value.slice(idx); }; - exports.collectBody = collectBody; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/command.js -var require_command3 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/command.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js +var require_exceptions = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.Command = void 0; - var middleware_stack_1 = require_dist_cjs30(); - var Command = class { - constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); + exports.decorateServiceException = exports.ServiceException = void 0; + var ServiceException = class extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, ServiceException.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; } }; - exports.Command = Command; - } -}); - -// ../../../node_modules/@smithy/smithy-client/dist-cjs/constants.js -var require_constants6 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/constants.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.SENSITIVE_STRING = void 0; - exports.SENSITIVE_STRING = "***SensitiveInformation***"; + exports.ServiceException = ServiceException; + var decorateServiceException = (exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; + }; + exports.decorateServiceException = decorateServiceException; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js -var require_create_aggregated_client = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js +var require_default_error_handler = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.createAggregatedClient = void 0; - var createAggregatedClient = (commands, Client) => { - for (const command of Object.keys(commands)) { - const CommandCtor = commands[command]; - const methodImpl = async function(args, optionsOrCb, cb) { - const command2 = new CommandCtor(args); - if (typeof optionsOrCb === "function") { - this.send(command2, optionsOrCb); - } else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expected http options but got ${typeof optionsOrCb}`); - this.send(command2, optionsOrCb || {}, cb); - } else { - return this.send(command2, optionsOrCb); - } - }; - const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); - Client.prototype[methodName] = methodImpl; - } + exports.withBaseException = exports.throwDefaultError = void 0; + var exceptions_1 = require_exceptions(); + var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; + const response = new exceptionCtor({ + name: (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.code) || (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", + $fault: "client", + $metadata + }); + throw (0, exceptions_1.decorateServiceException)(response, parsedBody); + }; + exports.throwDefaultError = throwDefaultError; + var withBaseException = (ExceptionCtor) => { + return ({ output, parsedBody, errorCode }) => { + (0, exports.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); + }; + }; + exports.withBaseException = withBaseException; + var deserializeMetadata = (output) => { + var _a, _b; + return { + httpStatusCode: output.statusCode, + requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }; }; - exports.createAggregatedClient = createAggregatedClient; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js -var require_parse_utils = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js"(exports) { +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js +var require_defaults_mode = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.logger = exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; - var parseBoolean = (value) => { - switch (value) { - case "true": - return true; - case "false": - return false; + exports.loadConfigsForDefaultMode = void 0; + var loadConfigsForDefaultMode = (mode) => { + switch (mode) { + case "standard": + return { + retryMode: "standard", + connectionTimeout: 3100 + }; + case "in-region": + return { + retryMode: "standard", + connectionTimeout: 1100 + }; + case "cross-region": + return { + retryMode: "standard", + connectionTimeout: 3100 + }; + case "mobile": + return { + retryMode: "standard", + connectionTimeout: 3e4 + }; default: - throw new Error(`Unable to parse boolean value "${value}"`); - } - }; - exports.parseBoolean = parseBoolean; - var expectBoolean = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "number") { - if (value === 0 || value === 1) { - exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (value === 0) { - return false; - } - if (value === 1) { - return true; - } - } - if (typeof value === "string") { - const lower = value.toLowerCase(); - if (lower === "false" || lower === "true") { - exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (lower === "false") { - return false; - } - if (lower === "true") { - return true; - } - } - if (typeof value === "boolean") { - return value; - } - throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); - }; - exports.expectBoolean = expectBoolean; - var expectNumber = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "string") { - const parsed = parseFloat(value); - if (!Number.isNaN(parsed)) { - if (String(parsed) !== String(value)) { - exports.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); - } - return parsed; - } - } - if (typeof value === "number") { - return value; - } - throw new TypeError(`Expected number, got ${typeof value}: ${value}`); - }; - exports.expectNumber = expectNumber; - var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); - var expectFloat32 = (value) => { - const expected = (0, exports.expectNumber)(value); - if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(`Expected 32-bit float, got ${value}`); - } - } - return expected; - }; - exports.expectFloat32 = expectFloat32; - var expectLong = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); - }; - exports.expectLong = expectLong; - exports.expectInt = exports.expectLong; - var expectInt32 = (value) => expectSizedInt(value, 32); - exports.expectInt32 = expectInt32; - var expectShort = (value) => expectSizedInt(value, 16); - exports.expectShort = expectShort; - var expectByte = (value) => expectSizedInt(value, 8); - exports.expectByte = expectByte; - var expectSizedInt = (value, size) => { - const expected = (0, exports.expectLong)(value); - if (expected !== void 0 && castInt(expected, size) !== expected) { - throw new TypeError(`Expected ${size}-bit integer, got ${value}`); - } - return expected; - }; - var castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; + return {}; } }; - var expectNonNull = (value, location) => { - if (value === null || value === void 0) { - if (location) { - throw new TypeError(`Expected a non-null value for ${location}`); - } - throw new TypeError("Expected a non-null value"); + exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +var require_emitWarningIfUnsupportedVersion = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.emitWarningIfUnsupportedVersion = void 0; + var warningEmitted = false; + var emitWarningIfUnsupportedVersion = (version2) => { + if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 14) { + warningEmitted = true; } - return value; }; - exports.expectNonNull = expectNonNull; - var expectObject = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === "object" && !Array.isArray(value)) { - return value; + exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js +var require_extended_encode_uri_component = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.extendedEncodeURIComponent = void 0; + function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + exports.extendedEncodeURIComponent = extendedEncodeURIComponent; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js +var require_get_array_if_single_item = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getArrayIfSingleItem = void 0; + var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; + exports.getArrayIfSingleItem = getArrayIfSingleItem; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js +var require_get_value_from_text_node = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getValueFromTextNode = void 0; + var getValueFromTextNode = (obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = (0, exports.getValueFromTextNode)(obj[key]); + } } - const receivedType = Array.isArray(value) ? "array" : typeof value; - throw new TypeError(`Expected object, got ${receivedType}: ${value}`); + return obj; }; - exports.expectObject = expectObject; - var expectString = (value) => { - if (value === null || value === void 0) { - return void 0; + exports.getValueFromTextNode = getValueFromTextNode; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js +var require_lazy_json = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.LazyJsonString = exports.StringWrapper = void 0; + var StringWrapper = function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }; + exports.StringWrapper = StringWrapper; + exports.StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: exports.StringWrapper, + enumerable: false, + writable: true, + configurable: true } - if (typeof value === "string") { - return value; + }); + Object.setPrototypeOf(exports.StringWrapper, String); + var LazyJsonString = class extends exports.StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); } - if (["boolean", "number", "bigint"].includes(typeof value)) { - exports.logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); - return String(value); + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof LazyJsonString) { + return object; + } else if (object instanceof String || typeof object === "string") { + return new LazyJsonString(object); + } + return new LazyJsonString(JSON.stringify(object)); } - throw new TypeError(`Expected string, got ${typeof value}: ${value}`); }; - exports.expectString = expectString; - var expectUnion = (value) => { - if (value === null || value === void 0) { - return void 0; + exports.LazyJsonString = LazyJsonString; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js +var require_object_mapping = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.take = exports.convertMap = exports.map = void 0; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; + } } - const asObject = (0, exports.expectObject)(value); - const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); - if (setKeys.length === 0) { - throw new TypeError(`Unions must have exactly one non-null member. None were found.`); + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + applyInstruction(target, null, instructions, key); } - if (setKeys.length > 1) { - throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + return target; + } + exports.map = map; + var convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; } - return asObject; + return output; }; - exports.expectUnion = expectUnion; - var strictParseDouble = (value) => { - if (typeof value == "string") { - return (0, exports.expectNumber)(parseNumber(value)); + exports.convertMap = convertMap; + var take = (source, instructions) => { + const out = {}; + for (const key in instructions) { + applyInstruction(out, source, instructions, key); } - return (0, exports.expectNumber)(value); + return out; }; - exports.strictParseDouble = strictParseDouble; - exports.strictParseFloat = exports.strictParseDouble; - var strictParseFloat32 = (value) => { - if (typeof value == "string") { - return (0, exports.expectFloat32)(parseNumber(value)); - } - return (0, exports.expectFloat32)(value); + exports.take = take; + var mapWithFilter = (target, filter, instructions) => { + return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } else { + if (typeof value === "function") { + _instructions[key] = [filter, value()]; + } else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, {})); }; - exports.strictParseFloat32 = strictParseFloat32; - var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; - var parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(`Expected real number, got implicit NaN`); + var applyInstruction = (target, source, instructions, targetKey) => { + if (source !== null) { + let instruction = instructions[targetKey]; + if (typeof instruction === "function") { + instruction = [, instruction]; + } + const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; + if (typeof filter2 === "function" && filter2(source[sourceKey]) || typeof filter2 !== "function" && !!filter2) { + target[targetKey] = valueFn(source[sourceKey]); + } + return; } - return parseFloat(value); - }; - var limitedParseDouble = (value) => { - if (typeof value == "string") { - return parseFloatString(value); + let [filter, value] = instructions[targetKey]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter === "function" && !!filter(void 0) || typeof filter !== "function" && !!filter; + if (defaultFilterPassed) { + target[targetKey] = _value; + } else if (customFilterPassed) { + target[targetKey] = value(); + } + } else { + const defaultFilterPassed = filter === void 0 && value != null; + const customFilterPassed = typeof filter === "function" && !!filter(value) || typeof filter !== "function" && !!filter; + if (defaultFilterPassed || customFilterPassed) { + target[targetKey] = value; + } } - return (0, exports.expectNumber)(value); }; - exports.limitedParseDouble = limitedParseDouble; - exports.handleFloat = exports.limitedParseDouble; - exports.limitedParseFloat = exports.limitedParseDouble; - var limitedParseFloat32 = (value) => { - if (typeof value == "string") { - return parseFloatString(value); + var nonNullish = (_) => _ != null; + var pass = (_) => _; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js +var require_resolve_path = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolvedPath = void 0; + var extended_encode_uri_component_1 = require_extended_encode_uri_component(); + var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== void 0) { + const labelValue = labelValueProvider(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: " + memberName + "."); + } + resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join("/") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); + } else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); } - return (0, exports.expectFloat32)(value); + return resolvedPath2; }; - exports.limitedParseFloat32 = limitedParseFloat32; - var parseFloatString = (value) => { + exports.resolvedPath = resolvedPath; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js +var require_ser_utils = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.serializeFloat = void 0; + var serializeFloat = (value) => { + if (value !== value) { + return "NaN"; + } switch (value) { - case "NaN": - return NaN; - case "Infinity": - return Infinity; - case "-Infinity": - return -Infinity; + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; default: - throw new Error(`Unable to parse float value: ${value}`); + return value; } }; - var strictParseLong = (value) => { - if (typeof value === "string") { - return (0, exports.expectLong)(parseNumber(value)); + exports.serializeFloat = serializeFloat; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/serde-json.js +var require_serde_json = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/serde-json.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports._json = void 0; + var _json = (obj) => { + if (obj == null) { + return {}; } - return (0, exports.expectLong)(value); - }; - exports.strictParseLong = strictParseLong; - exports.strictParseInt = exports.strictParseLong; - var strictParseInt32 = (value) => { - if (typeof value === "string") { - return (0, exports.expectInt32)(parseNumber(value)); + if (Array.isArray(obj)) { + return obj.filter((_) => _ != null); } - return (0, exports.expectInt32)(value); + if (typeof obj === "object") { + const target = {}; + for (const key of Object.keys(obj)) { + if (obj[key] == null) { + continue; + } + target[key] = (0, exports._json)(obj[key]); + } + return target; + } + return obj; }; - exports.strictParseInt32 = strictParseInt32; - var strictParseShort = (value) => { - if (typeof value === "string") { - return (0, exports.expectShort)(parseNumber(value)); + exports._json = _json; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js +var require_split_every = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.splitEvery = void 0; + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); } - return (0, exports.expectShort)(value); + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; + } else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; + } + } + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; + } + exports.splitEvery = splitEvery; + } +}); + +// ../../../node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +var require_dist_cjs30 = __commonJS({ + "../../../node_modules/@aws-sdk/smithy-client/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_NoOpLogger(), exports); + tslib_1.__exportStar(require_client2(), exports); + tslib_1.__exportStar(require_command2(), exports); + tslib_1.__exportStar(require_constants5(), exports); + tslib_1.__exportStar(require_create_aggregated_client(), exports); + tslib_1.__exportStar(require_date_utils(), exports); + tslib_1.__exportStar(require_default_error_handler(), exports); + tslib_1.__exportStar(require_defaults_mode(), exports); + tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports); + tslib_1.__exportStar(require_exceptions(), exports); + tslib_1.__exportStar(require_extended_encode_uri_component(), exports); + tslib_1.__exportStar(require_get_array_if_single_item(), exports); + tslib_1.__exportStar(require_get_value_from_text_node(), exports); + tslib_1.__exportStar(require_lazy_json(), exports); + tslib_1.__exportStar(require_object_mapping(), exports); + tslib_1.__exportStar(require_parse_utils(), exports); + tslib_1.__exportStar(require_resolve_path(), exports); + tslib_1.__exportStar(require_ser_utils(), exports); + tslib_1.__exportStar(require_serde_json(), exports); + tslib_1.__exportStar(require_split_every(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js +var require_EndpointParameters = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveClientEndpointParameters = void 0; + var resolveClientEndpointParameters = (options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "states" + }; }; - exports.strictParseShort = strictParseShort; - var strictParseByte = (value) => { - if (typeof value === "string") { - return (0, exports.expectByte)(parseNumber(value)); + exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/package.json +var require_package = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sfn", + description: "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native", + version: "3.347.0", + scripts: { + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "tsc -p tsconfig.cjs.json", + "build:docs": "typedoc", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sfn" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "3.347.0", + "@aws-sdk/config-resolver": "3.347.0", + "@aws-sdk/credential-provider-node": "3.347.0", + "@aws-sdk/fetch-http-handler": "3.347.0", + "@aws-sdk/hash-node": "3.347.0", + "@aws-sdk/invalid-dependency": "3.347.0", + "@aws-sdk/middleware-content-length": "3.347.0", + "@aws-sdk/middleware-endpoint": "3.347.0", + "@aws-sdk/middleware-host-header": "3.347.0", + "@aws-sdk/middleware-logger": "3.347.0", + "@aws-sdk/middleware-recursion-detection": "3.347.0", + "@aws-sdk/middleware-retry": "3.347.0", + "@aws-sdk/middleware-serde": "3.347.0", + "@aws-sdk/middleware-signing": "3.347.0", + "@aws-sdk/middleware-stack": "3.347.0", + "@aws-sdk/middleware-user-agent": "3.347.0", + "@aws-sdk/node-config-provider": "3.347.0", + "@aws-sdk/node-http-handler": "3.347.0", + "@aws-sdk/smithy-client": "3.347.0", + "@aws-sdk/types": "3.347.0", + "@aws-sdk/url-parser": "3.347.0", + "@aws-sdk/util-base64": "3.310.0", + "@aws-sdk/util-body-length-browser": "3.310.0", + "@aws-sdk/util-body-length-node": "3.310.0", + "@aws-sdk/util-defaults-mode-browser": "3.347.0", + "@aws-sdk/util-defaults-mode-node": "3.347.0", + "@aws-sdk/util-endpoints": "3.347.0", + "@aws-sdk/util-retry": "3.347.0", + "@aws-sdk/util-user-agent-browser": "3.347.0", + "@aws-sdk/util-user-agent-node": "3.347.0", + "@aws-sdk/util-utf8": "3.310.0", + "@smithy/protocol-http": "^1.0.1", + "@smithy/types": "^1.0.0", + tslib: "^2.5.0" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.310.0", + "@tsconfig/node14": "1.0.3", + "@types/node": "^14.14.31", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.23.23", + typescript: "~4.9.5" + }, + engines: { + node: ">=14.0.0" + }, + typesVersions: { + "<4.0": { + "dist-types/*": [ + "dist-types/ts3.4/*" + ] + } + }, + files: [ + "dist-*/**" + ], + author: { + name: "AWS SDK for JavaScript Team", + url: "https://aws.amazon.com/javascript/" + }, + license: "Apache-2.0", + browser: { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" + }, + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sfn", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-sfn" } - return (0, exports.expectByte)(value); }; - exports.strictParseByte = strictParseByte; - var stackTraceWarning = (message) => { - return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n"); + } +}); + +// ../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +var require_dist_cjs31 = __commonJS({ + "../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveStsAuthConfig = void 0; + var middleware_signing_1 = require_dist_cjs25(); + var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ + ...input, + stsClientCtor + }); + exports.resolveStsAuthConfig = resolveStsAuthConfig; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +var require_EndpointParameters2 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.resolveClientEndpointParameters = void 0; + var resolveClientEndpointParameters = (options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + useGlobalEndpoint: options.useGlobalEndpoint ?? false, + defaultSigningName: "sts" + }; }; - exports.logger = { - warn: console.warn + exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/package.json +var require_package2 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sts", + description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", + version: "3.347.0", + scripts: { + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "tsc -p tsconfig.cjs.json", + "build:docs": "typedoc", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sts", + test: "yarn test:unit", + "test:unit": "jest" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.347.0", + "@aws-sdk/credential-provider-node": "3.347.0", + "@aws-sdk/fetch-http-handler": "3.347.0", + "@aws-sdk/hash-node": "3.347.0", + "@aws-sdk/invalid-dependency": "3.347.0", + "@aws-sdk/middleware-content-length": "3.347.0", + "@aws-sdk/middleware-endpoint": "3.347.0", + "@aws-sdk/middleware-host-header": "3.347.0", + "@aws-sdk/middleware-logger": "3.347.0", + "@aws-sdk/middleware-recursion-detection": "3.347.0", + "@aws-sdk/middleware-retry": "3.347.0", + "@aws-sdk/middleware-sdk-sts": "3.347.0", + "@aws-sdk/middleware-serde": "3.347.0", + "@aws-sdk/middleware-signing": "3.347.0", + "@aws-sdk/middleware-stack": "3.347.0", + "@aws-sdk/middleware-user-agent": "3.347.0", + "@aws-sdk/node-config-provider": "3.347.0", + "@aws-sdk/node-http-handler": "3.347.0", + "@aws-sdk/smithy-client": "3.347.0", + "@aws-sdk/types": "3.347.0", + "@aws-sdk/url-parser": "3.347.0", + "@aws-sdk/util-base64": "3.310.0", + "@aws-sdk/util-body-length-browser": "3.310.0", + "@aws-sdk/util-body-length-node": "3.310.0", + "@aws-sdk/util-defaults-mode-browser": "3.347.0", + "@aws-sdk/util-defaults-mode-node": "3.347.0", + "@aws-sdk/util-endpoints": "3.347.0", + "@aws-sdk/util-retry": "3.347.0", + "@aws-sdk/util-user-agent-browser": "3.347.0", + "@aws-sdk/util-user-agent-node": "3.347.0", + "@aws-sdk/util-utf8": "3.310.0", + "@smithy/protocol-http": "^1.0.1", + "@smithy/types": "^1.0.0", + "fast-xml-parser": "4.1.2", + tslib: "^2.5.0" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.310.0", + "@tsconfig/node14": "1.0.3", + "@types/node": "^14.14.31", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.23.23", + typescript: "~4.9.5" + }, + engines: { + node: ">=14.0.0" + }, + typesVersions: { + "<4.0": { + "dist-types/*": [ + "dist-types/ts3.4/*" + ] + } + }, + files: [ + "dist-*/**" + ], + author: { + name: "AWS SDK for JavaScript Team", + url: "https://aws.amazon.com/javascript/" + }, + license: "Apache-2.0", + browser: { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" + }, + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-sts" + } }; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/date-utils.js -var require_date_utils = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/date-utils.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +var require_STSServiceException = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTimeWithOffset = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; - var parse_utils_1 = require_parse_utils(); - var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; - var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; - const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; - const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; - const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; - return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; - } - exports.dateToUtcString = dateToUtcString; - var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); - var parseRfc3339DateTime = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - }; - exports.parseRfc3339DateTime = parseRfc3339DateTime; - var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/); - var parseRfc3339DateTimeWithOffset = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339_WITH_OFFSET.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - if (offsetStr.toUpperCase() != "Z") { - date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); - } - return date; - }; - exports.parseRfc3339DateTimeWithOffset = parseRfc3339DateTimeWithOffset; - var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); - var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); - var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); - var parseRfc7231DateTime = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== "string") { - throw new TypeError("RFC-7231 date-times must be expressed as strings"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError("Invalid RFC-7231 date-time value"); - }; - exports.parseRfc7231DateTime = parseRfc7231DateTime; - var parseEpochTimestamp = (value) => { - if (value === null || value === void 0) { - return void 0; - } - let valueAsDouble; - if (typeof value === "number") { - valueAsDouble = value; - } else if (typeof value === "string") { - valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); - } else { - throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); - } - return new Date(Math.round(valueAsDouble * 1e3)); - }; - exports.parseEpochTimestamp = parseEpochTimestamp; - var buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); - }; - var parseTwoDigitYear = (value) => { - const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; - }; - var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; - var adjustRfc850Year = (input) => { - if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); + exports.STSServiceException = exports.__ServiceException = void 0; + var smithy_client_1 = require_dist_cjs30(); + Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { + return smithy_client_1.ServiceException; + } }); + var STSServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); } - return input; }; - var parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(`Invalid month: ${value}`); + exports.STSServiceException = STSServiceException; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +var require_models_0 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; + var smithy_client_1 = require_dist_cjs30(); + var STSServiceException_1 = require_STSServiceException(); + var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "ExpiredTokenException", + $fault: "client", + ...opts + }); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ExpiredTokenException.prototype); } - return monthIdx + 1; }; - var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - var validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + exports.ExpiredTokenException = ExpiredTokenException; + var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "MalformedPolicyDocumentException", + $fault: "client", + ...opts + }); + this.name = "MalformedPolicyDocumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); } }; - var isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); + exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; + var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "PackedPolicyTooLargeException", + $fault: "client", + ...opts + }); + this.name = "PackedPolicyTooLargeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } }; - var parseDateValue = (value, type, lower, upper) => { - const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; + var RegionDisabledException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "RegionDisabledException", + $fault: "client", + ...opts + }); + this.name = "RegionDisabledException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RegionDisabledException.prototype); } - return dateVal; }; - var parseMilliseconds = (value) => { - if (value === null || value === void 0) { - return 0; + exports.RegionDisabledException = RegionDisabledException; + var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPRejectedClaimException", + $fault: "client", + ...opts + }); + this.name = "IDPRejectedClaimException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); } - return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1e3; }; - var parseOffsetToMilliseconds = (value) => { - const directionStr = value[0]; - let direction = 1; - if (directionStr == "+") { - direction = 1; - } else if (directionStr == "-") { - direction = -1; - } else { - throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); + exports.IDPRejectedClaimException = IDPRejectedClaimException; + var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidIdentityTokenException", + $fault: "client", + ...opts + }); + this.name = "InvalidIdentityTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); } - const hour = Number(value.substring(1, 3)); - const minute = Number(value.substring(4, 6)); - return direction * (hour * 60 + minute) * 60 * 1e3; }; - var stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === "0") { - idx++; + exports.InvalidIdentityTokenException = InvalidIdentityTokenException; + var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPCommunicationErrorException", + $fault: "client", + ...opts + }); + this.name = "IDPCommunicationErrorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); } - if (idx === 0) { - return value; + }; + exports.IDPCommunicationErrorException = IDPCommunicationErrorException; + var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidAuthorizationMessageException", + $fault: "client", + ...opts + }); + this.name = "InvalidAuthorizationMessageException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); } - return value.slice(idx); }; + exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; + var CredentialsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING } + }); + exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; + var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + }); + exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; + var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.SAMLAssertion && { SAMLAssertion: smithy_client_1.SENSITIVE_STRING } + }); + exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; + var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + }); + exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.WebIdentityToken && { WebIdentityToken: smithy_client_1.SENSITIVE_STRING } + }); + exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + }); + exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; + var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + }); + exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; + var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } + }); + exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/abort.js +var require_abort2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/abort.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/auth.js +var require_auth2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/auth.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.HttpAuthLocation = void 0; + var HttpAuthLocation; + (function(HttpAuthLocation2) { + HttpAuthLocation2["HEADER"] = "header"; + HttpAuthLocation2["QUERY"] = "query"; + })(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/checksum.js +var require_checksum2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/checksum.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/client.js +var require_client3 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/client.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/command.js +var require_command3 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/command.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/connection/config.js +var require_config4 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/connection/config.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/connection/manager.js +var require_manager2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/connection/manager.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/connection/pool.js +var require_pool2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/connection/pool.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/connection/index.js +var require_connection2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/connection/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_config4(), exports); + tslib_1.__exportStar(require_manager2(), exports); + tslib_1.__exportStar(require_pool2(), exports); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/crypto.js +var require_crypto2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/crypto.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/encode.js +var require_encode2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/encode.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/endpoint.js +var require_endpoint2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.EndpointURLScheme = void 0; + var EndpointURLScheme; + (function(EndpointURLScheme2) { + EndpointURLScheme2["HTTP"] = "http"; + EndpointURLScheme2["HTTPS"] = "https"; + })(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {})); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +var require_EndpointRuleObject2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/exceptions.js -var require_exceptions = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/exceptions.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +var require_ErrorRuleObject2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.decorateServiceException = exports.ServiceException = void 0; - var ServiceException = class extends Error { - constructor(options) { - super(options.message); - Object.setPrototypeOf(this, ServiceException.prototype); - this.name = options.name; - this.$fault = options.$fault; - this.$metadata = options.$metadata; - } - }; - exports.ServiceException = ServiceException; - var decorateServiceException = (exception, additions = {}) => { - Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { - if (exception[k] == void 0 || exception[k] === "") { - exception[k] = v; - } - }); - const message = exception.message || exception.Message || "UnknownError"; - exception.message = message; - delete exception.Message; - return exception; - }; - exports.decorateServiceException = decorateServiceException; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js -var require_default_error_handler = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +var require_RuleSetObject2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.withBaseException = exports.throwDefaultError = void 0; - var exceptions_1 = require_exceptions(); - var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata(output); - const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : void 0; - const response = new exceptionCtor({ - name: (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.code) || (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", - $fault: "client", - $metadata - }); - throw (0, exceptions_1.decorateServiceException)(response, parsedBody); - }; - exports.throwDefaultError = throwDefaultError; - var withBaseException = (ExceptionCtor) => { - return ({ output, parsedBody, errorCode }) => { - (0, exports.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); - }; - }; - exports.withBaseException = withBaseException; - var deserializeMetadata = (output) => { - var _a, _b; - return { - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"] - }; - }; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js -var require_defaults_mode = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/endpoints/shared.js +var require_shared2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoints/shared.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadConfigsForDefaultMode = void 0; - var loadConfigsForDefaultMode = (mode) => { - switch (mode) { - case "standard": - return { - retryMode: "standard", - connectionTimeout: 3100 - }; - case "in-region": - return { - retryMode: "standard", - connectionTimeout: 1100 - }; - case "cross-region": - return { - retryMode: "standard", - connectionTimeout: 3100 - }; - case "mobile": - return { - retryMode: "standard", - connectionTimeout: 3e4 - }; - default: - return {}; - } - }; - exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js -var require_emitWarningIfUnsupportedVersion = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +var require_TreeRuleObject2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.emitWarningIfUnsupportedVersion = void 0; - var warningEmitted = false; - var emitWarningIfUnsupportedVersion = (version2) => { - if (version2 && !warningEmitted && parseInt(version2.substring(1, version2.indexOf("."))) < 14) { - warningEmitted = true; - } - }; - exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js -var require_extended_encode_uri_component = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/endpoints/index.js +var require_endpoints = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/endpoints/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.extendedEncodeURIComponent = void 0; - function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - exports.extendedEncodeURIComponent = extendedEncodeURIComponent; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_EndpointRuleObject2(), exports); + tslib_1.__exportStar(require_ErrorRuleObject2(), exports); + tslib_1.__exportStar(require_RuleSetObject2(), exports); + tslib_1.__exportStar(require_shared2(), exports); + tslib_1.__exportStar(require_TreeRuleObject2(), exports); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js -var require_get_array_if_single_item = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/eventStream.js +var require_eventStream2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/eventStream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getArrayIfSingleItem = void 0; - var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; - exports.getArrayIfSingleItem = getArrayIfSingleItem; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js -var require_get_value_from_text_node = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/http.js +var require_http2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/http.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getValueFromTextNode = void 0; - var getValueFromTextNode = (obj) => { - const textNodeName = "#text"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { - obj[key] = obj[key][textNodeName]; - } else if (typeof obj[key] === "object" && obj[key] !== null) { - obj[key] = (0, exports.getValueFromTextNode)(obj[key]); - } - } - return obj; - }; - exports.getValueFromTextNode = getValueFromTextNode; + exports.FieldPosition = void 0; + var FieldPosition; + (function(FieldPosition2) { + FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER"; + FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER"; + })(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {})); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js -var require_lazy_json = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +var require_awsCredentialIdentity = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/identity/identity.js +var require_identity2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/identity/identity.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/identity/index.js +var require_identity3 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/identity/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_awsCredentialIdentity(), exports); + tslib_1.__exportStar(require_identity2(), exports); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/logger.js +var require_logger2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/logger.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/middleware.js +var require_middleware2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/middleware.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/pagination.js +var require_pagination2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/pagination.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/profile.js +var require_profile2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/profile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/response.js +var require_response2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/response.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/retry.js +var require_retry2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/retry.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/serde.js +var require_serde2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/serde.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/shapes.js +var require_shapes2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/shapes.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/signature.js +var require_signature2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/signature.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/types/dist-cjs/stream.js +var require_stream2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/stream.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.LazyJsonString = exports.StringWrapper = void 0; - var StringWrapper = function() { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; - }; - exports.StringWrapper = StringWrapper; - exports.StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: exports.StringWrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - Object.setPrototypeOf(exports.StringWrapper, String); - var LazyJsonString = class extends exports.StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } else if (object instanceof String || typeof object === "string") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } - }; - exports.LazyJsonString = LazyJsonString; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js -var require_object_mapping = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/transfer.js +var require_transfer2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/transfer.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.take = exports.convertMap = exports.map = void 0; - function map(arg0, arg1, arg2) { - let target; - let filter; - let instructions; - if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { - target = {}; - instructions = arg0; - } else { - target = arg0; - if (typeof arg1 === "function") { - filter = arg1; - instructions = arg2; - return mapWithFilter(target, filter, instructions); - } else { - instructions = arg1; - } - } - for (const key of Object.keys(instructions)) { - if (!Array.isArray(instructions[key])) { - target[key] = instructions[key]; - continue; - } - applyInstruction(target, null, instructions, key); - } - return target; - } - exports.map = map; - var convertMap = (target) => { - const output = {}; - for (const [k, v] of Object.entries(target || {})) { - output[k] = [, v]; - } - return output; - }; - exports.convertMap = convertMap; - var take = (source, instructions) => { - const out = {}; - for (const key in instructions) { - applyInstruction(out, source, instructions, key); - } - return out; - }; - exports.take = take; - var mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } else { - if (typeof value === "function") { - _instructions[key] = [filter, value()]; - } else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); - }; - var applyInstruction = (target, source, instructions, targetKey) => { - if (source !== null) { - let instruction = instructions[targetKey]; - if (typeof instruction === "function") { - instruction = [, instruction]; - } - const [filter2 = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; - if (typeof filter2 === "function" && filter2(source[sourceKey]) || typeof filter2 !== "function" && !!filter2) { - target[targetKey] = valueFn(source[sourceKey]); - } - return; - } - let [filter, value] = instructions[targetKey]; - if (typeof value === "function") { - let _value; - const defaultFilterPassed = filter === void 0 && (_value = value()) != null; - const customFilterPassed = typeof filter === "function" && !!filter(void 0) || typeof filter !== "function" && !!filter; - if (defaultFilterPassed) { - target[targetKey] = _value; - } else if (customFilterPassed) { - target[targetKey] = value(); - } - } else { - const defaultFilterPassed = filter === void 0 && value != null; - const customFilterPassed = typeof filter === "function" && !!filter(value) || typeof filter !== "function" && !!filter; - if (defaultFilterPassed || customFilterPassed) { - target[targetKey] = value; - } - } - }; - var nonNullish = (_) => _ != null; - var pass = (_) => _; + exports.RequestHandlerProtocol = void 0; + var RequestHandlerProtocol; + (function(RequestHandlerProtocol2) { + RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9"; + RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0"; + RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0"; + })(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {})); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js -var require_resolve_path = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/uri.js +var require_uri2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/uri.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolvedPath = void 0; - var extended_encode_uri_component_1 = require_extended_encode_uri_component(); - var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { - if (input != null && input[memberName] !== void 0) { - const labelValue = labelValueProvider(); - if (labelValue.length <= 0) { - throw new Error("Empty value provided for input HTTP label: " + memberName + "."); - } - resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split("/").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join("/") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); - } else { - throw new Error("No value provided for input HTTP label: " + memberName + "."); - } - return resolvedPath2; - }; - exports.resolvedPath = resolvedPath; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js -var require_ser_utils = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/util.js +var require_util3 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/util.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.serializeFloat = void 0; - var serializeFloat = (value) => { - if (value !== value) { - return "NaN"; - } - switch (value) { - case Infinity: - return "Infinity"; - case -Infinity: - return "-Infinity"; - default: - return value; - } - }; - exports.serializeFloat = serializeFloat; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/serde-json.js -var require_serde_json = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/serde-json.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/waiter.js +var require_waiter2 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/waiter.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports._json = void 0; - var _json = (obj) => { - if (obj == null) { - return {}; - } - if (Array.isArray(obj)) { - return obj.filter((_) => _ != null); - } - if (typeof obj === "object") { - const target = {}; - for (const key of Object.keys(obj)) { - if (obj[key] == null) { - continue; - } - target[key] = (0, exports._json)(obj[key]); - } - return target; - } - return obj; - }; - exports._json = _json; } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/split-every.js -var require_split_every = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/split-every.js"(exports) { +// ../../../node_modules/@smithy/types/dist-cjs/index.js +var require_dist_cjs32 = __commonJS({ + "../../../node_modules/@smithy/types/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.splitEvery = void 0; - function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = ""; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === "") { - currentSegment = segments[i]; - } else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = ""; - } - } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); - } - return compoundSegments; - } - exports.splitEvery = splitEvery; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_abort2(), exports); + tslib_1.__exportStar(require_auth2(), exports); + tslib_1.__exportStar(require_checksum2(), exports); + tslib_1.__exportStar(require_client3(), exports); + tslib_1.__exportStar(require_command3(), exports); + tslib_1.__exportStar(require_connection2(), exports); + tslib_1.__exportStar(require_crypto2(), exports); + tslib_1.__exportStar(require_encode2(), exports); + tslib_1.__exportStar(require_endpoint2(), exports); + tslib_1.__exportStar(require_endpoints(), exports); + tslib_1.__exportStar(require_eventStream2(), exports); + tslib_1.__exportStar(require_http2(), exports); + tslib_1.__exportStar(require_identity3(), exports); + tslib_1.__exportStar(require_logger2(), exports); + tslib_1.__exportStar(require_middleware2(), exports); + tslib_1.__exportStar(require_pagination2(), exports); + tslib_1.__exportStar(require_profile2(), exports); + tslib_1.__exportStar(require_response2(), exports); + tslib_1.__exportStar(require_retry2(), exports); + tslib_1.__exportStar(require_serde2(), exports); + tslib_1.__exportStar(require_shapes2(), exports); + tslib_1.__exportStar(require_signature2(), exports); + tslib_1.__exportStar(require_stream2(), exports); + tslib_1.__exportStar(require_transfer2(), exports); + tslib_1.__exportStar(require_uri2(), exports); + tslib_1.__exportStar(require_util3(), exports); + tslib_1.__exportStar(require_waiter2(), exports); } }); -// ../../../node_modules/@smithy/smithy-client/dist-cjs/index.js -var require_dist_cjs35 = __commonJS({ - "../../../node_modules/@smithy/smithy-client/dist-cjs/index.js"(exports) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js +var require_Field2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/Field.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_NoOpLogger(), exports); - tslib_1.__exportStar(require_client3(), exports); - tslib_1.__exportStar(require_collect_stream_body(), exports); - tslib_1.__exportStar(require_command3(), exports); - tslib_1.__exportStar(require_constants6(), exports); - tslib_1.__exportStar(require_create_aggregated_client(), exports); - tslib_1.__exportStar(require_date_utils(), exports); - tslib_1.__exportStar(require_default_error_handler(), exports); - tslib_1.__exportStar(require_defaults_mode(), exports); - tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports); - tslib_1.__exportStar(require_exceptions(), exports); - tslib_1.__exportStar(require_extended_encode_uri_component(), exports); - tslib_1.__exportStar(require_get_array_if_single_item(), exports); - tslib_1.__exportStar(require_get_value_from_text_node(), exports); - tslib_1.__exportStar(require_lazy_json(), exports); - tslib_1.__exportStar(require_object_mapping(), exports); - tslib_1.__exportStar(require_parse_utils(), exports); - tslib_1.__exportStar(require_resolve_path(), exports); - tslib_1.__exportStar(require_ser_utils(), exports); - tslib_1.__exportStar(require_serde_json(), exports); - tslib_1.__exportStar(require_split_every(), exports); + exports.Field = void 0; + var types_1 = require_dist_cjs32(); + var Field = class { + constructor({ name, kind = types_1.FieldPosition.HEADER, values = [] }) { + this.name = name; + this.kind = kind; + this.values = values; + } + add(value) { + this.values.push(value); + } + set(values) { + this.values = values; + } + remove(value) { + this.values = this.values.filter((v) => v !== value); + } + toString() { + return this.values.map((v) => v.includes(",") || v.includes(" ") ? `"${v}"` : v).join(", "); + } + get() { + return this.values; + } + }; + exports.Field = Field; } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js -var require_EndpointParameters = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/endpoint/EndpointParameters.js"(exports) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js +var require_Fields2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/Fields.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveClientEndpointParameters = void 0; - var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "states" - }; - }; - exports.resolveClientEndpointParameters = resolveClientEndpointParameters; - } -}); - -// ../../../node_modules/@aws-sdk/client-sfn/package.json -var require_package = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/package.json"(exports, module2) { - module2.exports = { - name: "@aws-sdk/client-sfn", - description: "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native", - version: "3.363.0", - scripts: { - build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:docs": "typedoc", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "generate:client": "node ../../scripts/generate-clients/single-service --solo sfn" - }, - main: "./dist-cjs/index.js", - types: "./dist-types/index.d.ts", - module: "./dist-es/index.js", - sideEffects: false, - dependencies: { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.363.0", - "@aws-sdk/credential-provider-node": "3.363.0", - "@aws-sdk/middleware-host-header": "3.363.0", - "@aws-sdk/middleware-logger": "3.363.0", - "@aws-sdk/middleware-recursion-detection": "3.363.0", - "@aws-sdk/middleware-signing": "3.363.0", - "@aws-sdk/middleware-user-agent": "3.363.0", - "@aws-sdk/types": "3.357.0", - "@aws-sdk/util-endpoints": "3.357.0", - "@aws-sdk/util-user-agent-browser": "3.363.0", - "@aws-sdk/util-user-agent-node": "3.363.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.1", - "@smithy/middleware-retry": "^1.0.2", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/protocol-http": "^1.0.1", - "@smithy/smithy-client": "^1.0.3", - "@smithy/types": "^1.0.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.2", - "@smithy/util-utf8": "^1.0.1", - tslib: "^2.5.0" - }, - devDependencies: { - "@aws-sdk/service-client-documentation-generator": "3.310.0", - "@smithy/service-client-documentation-generator": "^1.0.1", - "@tsconfig/node14": "1.0.3", - "@types/node": "^14.14.31", - concurrently: "7.0.0", - "downlevel-dts": "0.10.1", - rimraf: "3.0.2", - typedoc: "0.23.23", - typescript: "~4.9.5" - }, - engines: { - node: ">=14.0.0" - }, - typesVersions: { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - files: [ - "dist-*/**" - ], - author: { - name: "AWS SDK for JavaScript Team", - url: "https://aws.amazon.com/javascript/" - }, - license: "Apache-2.0", - browser: { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sfn", - repository: { - type: "git", - url: "https://github.com/aws/aws-sdk-js-v3.git", - directory: "clients/client-sfn" + exports.Fields = void 0; + var Fields = class { + constructor({ fields = [], encoding = "utf-8" }) { + this.entries = {}; + fields.forEach(this.setField.bind(this)); + this.encoding = encoding; + } + setField(field) { + this.entries[field.name.toLowerCase()] = field; + } + getField(name) { + return this.entries[name.toLowerCase()]; + } + removeField(name) { + delete this.entries[name.toLowerCase()]; + } + getByType(kind) { + return Object.values(this.entries).filter((field) => field.kind === kind); } }; + exports.Fields = Fields; } }); -// ../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js -var require_dist_cjs36 = __commonJS({ - "../../../node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js"(exports) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +var require_httpHandler2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveStsAuthConfig = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ - ...input, - stsClientCtor - }); - exports.resolveStsAuthConfig = resolveStsAuthConfig; } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js -var require_EndpointParameters2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +var require_httpRequest2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveClientEndpointParameters = void 0; - var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - useGlobalEndpoint: options.useGlobalEndpoint ?? false, - defaultSigningName: "sts" - }; - }; - exports.resolveClientEndpointParameters = resolveClientEndpointParameters; - } -}); - -// ../../../node_modules/@aws-sdk/client-sts/package.json -var require_package2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/package.json"(exports, module2) { - module2.exports = { - name: "@aws-sdk/client-sts", - description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", - version: "3.363.0", - scripts: { - build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:docs": "typedoc", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "generate:client": "node ../../scripts/generate-clients/single-service --solo sts", - test: "yarn test:unit", - "test:unit": "jest" - }, - main: "./dist-cjs/index.js", - types: "./dist-types/index.d.ts", - module: "./dist-es/index.js", - sideEffects: false, - dependencies: { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/credential-provider-node": "3.363.0", - "@aws-sdk/middleware-host-header": "3.363.0", - "@aws-sdk/middleware-logger": "3.363.0", - "@aws-sdk/middleware-recursion-detection": "3.363.0", - "@aws-sdk/middleware-sdk-sts": "3.363.0", - "@aws-sdk/middleware-signing": "3.363.0", - "@aws-sdk/middleware-user-agent": "3.363.0", - "@aws-sdk/types": "3.357.0", - "@aws-sdk/util-endpoints": "3.357.0", - "@aws-sdk/util-user-agent-browser": "3.363.0", - "@aws-sdk/util-user-agent-node": "3.363.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.1", - "@smithy/middleware-retry": "^1.0.1", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.1", - "@smithy/protocol-http": "^1.1.0", - "@smithy/smithy-client": "^1.0.2", - "@smithy/types": "^1.1.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.1", - "@smithy/util-utf8": "^1.0.1", - "fast-xml-parser": "4.2.5", - tslib: "^2.5.0" - }, - devDependencies: { - "@aws-sdk/service-client-documentation-generator": "3.310.0", - "@smithy/service-client-documentation-generator": "^1.0.1", - "@tsconfig/node14": "1.0.3", - "@types/node": "^14.14.31", - concurrently: "7.0.0", - "downlevel-dts": "0.10.1", - rimraf: "3.0.2", - typedoc: "0.23.23", - typescript: "~4.9.5" - }, - engines: { - node: ">=14.0.0" - }, - typesVersions: { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - files: [ - "dist-*/**" - ], - author: { - name: "AWS SDK for JavaScript Team", - url: "https://aws.amazon.com/javascript/" - }, - license: "Apache-2.0", - browser: { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts", - repository: { - type: "git", - url: "https://github.com/aws/aws-sdk-js-v3.git", - directory: "clients/client-sts" + exports.HttpRequest = void 0; + var HttpRequest = class { + constructor(options) { + this.method = options.method || "GET"; + this.hostname = options.hostname || "localhost"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:"; + this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/"; + this.username = options.username; + this.password = options.password; + this.fragment = options.fragment; + } + static isInstance(request2) { + if (!request2) + return false; + const req = request2; + return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object"; + } + clone() { + const cloned = new HttpRequest({ + ...this, + headers: { ...this.headers } + }); + if (cloned.query) + cloned.query = cloneQuery(cloned.query); + return cloned; } }; + exports.HttpRequest = HttpRequest; + function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + } } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js -var require_STSServiceException = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js"(exports) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +var require_httpResponse2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.STSServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { - return smithy_client_1.ServiceException; - } }); - var STSServiceException = class extends smithy_client_1.ServiceException { + exports.HttpResponse = void 0; + var HttpResponse = class { constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); + this.statusCode = options.statusCode; + this.reason = options.reason; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === "number" && typeof resp.headers === "object"; } }; - exports.STSServiceException = STSServiceException; + exports.HttpResponse = HttpResponse; } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js -var require_models_0 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js"(exports) { +// ../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +var require_isValidHostname2 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; - var smithy_client_1 = require_dist_cjs35(); - var STSServiceException_1 = require_STSServiceException(); - var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); - } - }; - exports.ExpiredTokenException = ExpiredTokenException; - var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "MalformedPolicyDocumentException", - $fault: "client", - ...opts - }); - this.name = "MalformedPolicyDocumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); - } - }; - exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; - var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "PackedPolicyTooLargeException", - $fault: "client", - ...opts - }); - this.name = "PackedPolicyTooLargeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); - } - }; - exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; - var RegionDisabledException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "RegionDisabledException", - $fault: "client", - ...opts - }); - this.name = "RegionDisabledException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); - } - }; - exports.RegionDisabledException = RegionDisabledException; - var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPRejectedClaimException", - $fault: "client", - ...opts - }); - this.name = "IDPRejectedClaimException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); - } - }; - exports.IDPRejectedClaimException = IDPRejectedClaimException; - var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidIdentityTokenException", - $fault: "client", - ...opts - }); - this.name = "InvalidIdentityTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); - } - }; - exports.InvalidIdentityTokenException = InvalidIdentityTokenException; - var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPCommunicationErrorException", - $fault: "client", - ...opts - }); - this.name = "IDPCommunicationErrorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); - } - }; - exports.IDPCommunicationErrorException = IDPCommunicationErrorException; - var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidAuthorizationMessageException", - $fault: "client", - ...opts - }); - this.name = "InvalidAuthorizationMessageException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); - } - }; - exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; - var CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING } - }); - exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; - var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } - }); - exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; - var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.SAMLAssertion && { SAMLAssertion: smithy_client_1.SENSITIVE_STRING } - }); - exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; - var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } - }); - exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; - var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.WebIdentityToken && { WebIdentityToken: smithy_client_1.SENSITIVE_STRING } - }); - exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; - var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } - }); - exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; - var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } - }); - exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; - var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) } - }); - exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + exports.isValidHostname = void 0; + function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; + return hostPattern.test(hostname); + } + exports.isValidHostname = isValidHostname; + } +}); + +// ../../../node_modules/@smithy/protocol-http/dist-cjs/types.js +var require_types4 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@smithy/protocol-http/dist-cjs/index.js +var require_dist_cjs33 = __commonJS({ + "../../../node_modules/@smithy/protocol-http/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_Field2(), exports); + tslib_1.__exportStar(require_Fields2(), exports); + tslib_1.__exportStar(require_httpHandler2(), exports); + tslib_1.__exportStar(require_httpRequest2(), exports); + tslib_1.__exportStar(require_httpResponse2(), exports); + tslib_1.__exportStar(require_isValidHostname2(), exports); + tslib_1.__exportStar(require_types4(), exports); } }); -// ../../../node_modules/fast-xml-parser/src/util.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/util.js var require_util4 = __commonJS({ - "../../../node_modules/fast-xml-parser/src/util.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/util.js"(exports) { "use strict"; var nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; @@ -10795,9 +10084,9 @@ var require_util4 = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/validator.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/validator.js var require_validator = __commonJS({ - "../../../node_modules/fast-xml-parser/src/validator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/validator.js"(exports) { "use strict"; var util = require_util4(); var defaultOptions = { @@ -11107,9 +10396,9 @@ var require_validator = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js var require_OptionsBuilder = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"(exports) { var defaultOptions = { preserveOrder: false, attributeNamePrefix: "@_", @@ -11131,11 +10420,11 @@ var require_OptionsBuilder = __commonJS({ leadingZeros: true, eNotation: true }, - tagValueProcessor: function(tagName, val2) { - return val2; + tagValueProcessor: function(tagName, val) { + return val; }, - attributeValueProcessor: function(attrName, val2) { - return val2; + attributeValueProcessor: function(attrName, val) { + return val; }, stopNodes: [], //nested tags will not be parsed even for errors @@ -11148,11 +10437,7 @@ var require_OptionsBuilder = __commonJS({ ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, - transformAttributeName: false, - updateTag: function(tagName, jPath, attrs) { - return tagName; - } - // skipEmptyListItem: false + transformAttributeName: false }; var buildOptions = function(options) { return Object.assign({}, defaultOptions, options); @@ -11162,9 +10447,9 @@ var require_OptionsBuilder = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js var require_xmlNode = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports, module2) { "use strict"; var XmlNode = class { constructor(tagname) { @@ -11172,10 +10457,10 @@ var require_xmlNode = __commonJS({ this.child = []; this[":@"] = {}; } - add(key, val2) { + add(key, val) { if (key === "__proto__") key = "#__proto__"; - this.child.push({ [key]: val2 }); + this.child.push({ [key]: val }); } addChild(node) { if (node.tagname === "__proto__") @@ -11191,37 +10476,35 @@ var require_xmlNode = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js var require_DocTypeReader = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports, module2) { - var util = require_util4(); + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports, module2) { function readDocType(xmlData, i) { const entities = {}; if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") { i = i + 9; let angleBracketsCount = 1; - let hasBody = false, comment = false; + let hasBody = false, entity = false, comment = false; let exp = ""; for (; i < xmlData.length; i++) { if (xmlData[i] === "<" && !comment) { - if (hasBody && isEntity(xmlData, i)) { + if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y") { i += 7; - [entityName, val, i] = readEntityExp(xmlData, i + 1); - if (val.indexOf("&") === -1) - entities[validateEntityName(entityName)] = { - regx: RegExp(`&${entityName};`, "g"), - val - }; - } else if (hasBody && isElement(xmlData, i)) + entity = true; + } else if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T") { i += 8; - else if (hasBody && isAttlist(xmlData, i)) + } else if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T") { i += 8; - else if (hasBody && isNotation(xmlData, i)) + } else if (hasBody && xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N") { i += 9; - else if (isComment) + } else if ( + //comment + xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-" + ) { comment = true; - else + } else { throw new Error("Invalid DOCTYPE"); + } angleBracketsCount++; exp = ""; } else if (xmlData[i] === ">") { @@ -11231,6 +10514,10 @@ var require_DocTypeReader = __commonJS({ angleBracketsCount--; } } else { + if (entity) { + parseEntityExp(exp, entities); + entity = false; + } angleBracketsCount--; } if (angleBracketsCount === 0) { @@ -11247,54 +10534,18 @@ var require_DocTypeReader = __commonJS({ } } else { throw new Error(`Invalid Tag instead of DOCTYPE`); - } - return { entities, i }; - } - function readEntityExp(xmlData, i) { - let entityName2 = ""; - for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"'); i++) { - entityName2 += xmlData[i]; - } - entityName2 = entityName2.trim(); - if (entityName2.indexOf(" ") !== -1) - throw new Error("External entites are not supported"); - const startChar = xmlData[i++]; - let val2 = ""; - for (; i < xmlData.length && xmlData[i] !== startChar; i++) { - val2 += xmlData[i]; - } - return [entityName2, val2, i]; - } - function isComment(xmlData, i) { - if (xmlData[i + 1] === "!" && xmlData[i + 2] === "-" && xmlData[i + 3] === "-") - return true; - return false; - } - function isEntity(xmlData, i) { - if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "N" && xmlData[i + 4] === "T" && xmlData[i + 5] === "I" && xmlData[i + 6] === "T" && xmlData[i + 7] === "Y") - return true; - return false; - } - function isElement(xmlData, i) { - if (xmlData[i + 1] === "!" && xmlData[i + 2] === "E" && xmlData[i + 3] === "L" && xmlData[i + 4] === "E" && xmlData[i + 5] === "M" && xmlData[i + 6] === "E" && xmlData[i + 7] === "N" && xmlData[i + 8] === "T") - return true; - return false; - } - function isAttlist(xmlData, i) { - if (xmlData[i + 1] === "!" && xmlData[i + 2] === "A" && xmlData[i + 3] === "T" && xmlData[i + 4] === "T" && xmlData[i + 5] === "L" && xmlData[i + 6] === "I" && xmlData[i + 7] === "S" && xmlData[i + 8] === "T") - return true; - return false; - } - function isNotation(xmlData, i) { - if (xmlData[i + 1] === "!" && xmlData[i + 2] === "N" && xmlData[i + 3] === "O" && xmlData[i + 4] === "T" && xmlData[i + 5] === "A" && xmlData[i + 6] === "T" && xmlData[i + 7] === "I" && xmlData[i + 8] === "O" && xmlData[i + 9] === "N") - return true; - return false; + } + return { entities, i }; } - function validateEntityName(name) { - if (util.isName(name)) - return name; - else - throw new Error(`Invalid entity name ${name}`); + var entityRegex = RegExp(`^\\s([a-zA-z0-0]+)[ ](['"])([^&]+)\\2`); + function parseEntityExp(exp, entities) { + const match = entityRegex.exec(exp); + if (match) { + entities[match[1]] = { + regx: RegExp(`&${match[1]};`, "g"), + val: match[3] + }; + } } module2.exports = readDocType; } @@ -11397,9 +10648,9 @@ var require_strnum = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js var require_OrderedObjParser = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports, module2) { "use strict"; var util = require_util4(); var xmlNode = require_xmlNode(); @@ -11443,7 +10694,6 @@ var require_OrderedObjParser = __commonJS({ this.replaceEntitiesValue = replaceEntitiesValue; this.readStopNodeData = readStopNodeData; this.saveTextToParentTag = saveTextToParentTag; - this.addChild = addChild; } }; function addExternalEntities(externalEntities) { @@ -11456,27 +10706,27 @@ var require_OrderedObjParser = __commonJS({ }; } } - function parseTextData(val2, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) { - if (val2 !== void 0) { + function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) { + if (val !== void 0) { if (this.options.trimValues && !dontTrim) { - val2 = val2.trim(); + val = val.trim(); } - if (val2.length > 0) { + if (val.length > 0) { if (!escapeEntities) - val2 = this.replaceEntitiesValue(val2); - const newval = this.options.tagValueProcessor(tagName, val2, jPath, hasAttributes, isLeafNode); + val = this.replaceEntitiesValue(val); + const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode); if (newval === null || newval === void 0) { - return val2; - } else if (typeof newval !== typeof val2 || newval !== val2) { + return val; + } else if (typeof newval !== typeof val || newval !== val) { return newval; } else if (this.options.trimValues) { - return parseValue(val2, this.options.parseTagValue, this.options.numberParseOptions); + return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions); } else { - const trimmedVal = val2.trim(); - if (trimmedVal === val2) { - return parseValue(val2, this.options.parseTagValue, this.options.numberParseOptions); + const trimmedVal = val.trim(); + if (trimmedVal === val) { + return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions); } else { - return val2; + return val; } } } @@ -11496,7 +10746,7 @@ var require_OrderedObjParser = __commonJS({ return tagname; } var attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm"); - function buildAttributesMap(attrStr, jPath, tagName) { + function buildAttributesMap(attrStr, jPath) { if (!this.options.ignoreAttributes && typeof attrStr === "string") { const matches = util.getAllMatches(attrStr, attrsRegx); const len = matches.length; @@ -11568,18 +10818,7 @@ var require_OrderedObjParser = __commonJS({ if (currentNode) { textData = this.saveTextToParentTag(textData, currentNode, jPath); } - const lastTagName = jPath.substring(jPath.lastIndexOf(".") + 1); - if (tagName && this.options.unpairedTags.indexOf(tagName) !== -1) { - throw new Error(`Unpaired tag can not be used as closing tag: `); - } - let propIndex = 0; - if (lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1) { - propIndex = jPath.lastIndexOf(".", jPath.lastIndexOf(".") - 1); - this.tagsNodeStack.pop(); - } else { - propIndex = jPath.lastIndexOf("."); - } - jPath = jPath.substring(0, propIndex); + jPath = jPath.substr(0, jPath.lastIndexOf(".")); currentNode = this.tagsNodeStack.pop(); textData = ""; i = closeIndex; @@ -11593,9 +10832,9 @@ var require_OrderedObjParser = __commonJS({ const childNode = new xmlNode(tagData.tagName); childNode.add(this.options.textNodeName, ""); if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) { - childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName); + childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath); } - this.addChild(currentNode, childNode, jPath); + currentNode.addChild(childNode); } i = tagData.closeIndex + 1; } else if (xmlData.substr(i + 1, 3) === "!--") { @@ -11617,10 +10856,10 @@ var require_OrderedObjParser = __commonJS({ if (this.options.cdataPropName) { currentNode.add(this.options.cdataPropName, [{ [this.options.textNodeName]: tagExp }]); } else { - let val2 = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true); - if (val2 == void 0) - val2 = ""; - currentNode.add(this.options.textNodeName, val2); + let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true); + if (val == void 0) + val = ""; + currentNode.add(this.options.textNodeName, val); } i = closeIndex + 2; } else { @@ -11637,13 +10876,12 @@ var require_OrderedObjParser = __commonJS({ textData = this.saveTextToParentTag(textData, currentNode, jPath, false); } } + if (tagName !== xmlObj.tagname) { + jPath += jPath ? "." + tagName : tagName; + } const lastTag = currentNode; if (lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1) { currentNode = this.tagsNodeStack.pop(); - jPath = jPath.substring(0, jPath.lastIndexOf(".")); - } - if (tagName !== xmlObj.tagname) { - jPath += jPath ? "." + tagName : tagName; } if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) { let tagContent = ""; @@ -11660,14 +10898,14 @@ var require_OrderedObjParser = __commonJS({ } const childNode = new xmlNode(tagName); if (tagName !== tagExp && attrExpPresent) { - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); + childNode[":@"] = this.buildAttributesMap(tagExp, jPath); } if (tagContent) { tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true); } jPath = jPath.substr(0, jPath.lastIndexOf(".")); childNode.add(this.options.textNodeName, tagContent); - this.addChild(currentNode, childNode, jPath); + currentNode.addChild(childNode); } else { if (tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1) { if (tagName[tagName.length - 1] === "/") { @@ -11681,17 +10919,17 @@ var require_OrderedObjParser = __commonJS({ } const childNode = new xmlNode(tagName); if (tagName !== tagExp && attrExpPresent) { - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); + childNode[":@"] = this.buildAttributesMap(tagExp, jPath); } - this.addChild(currentNode, childNode, jPath); jPath = jPath.substr(0, jPath.lastIndexOf(".")); + currentNode.addChild(childNode); } else { const childNode = new xmlNode(tagName); this.tagsNodeStack.push(currentNode); if (tagName !== tagExp && attrExpPresent) { - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); + childNode[":@"] = this.buildAttributesMap(tagExp, jPath); } - this.addChild(currentNode, childNode, jPath); + currentNode.addChild(childNode); currentNode = childNode; } textData = ""; @@ -11704,35 +10942,25 @@ var require_OrderedObjParser = __commonJS({ } return xmlObj.child; }; - function addChild(currentNode, childNode, jPath) { - const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]); - if (result === false) { - } else if (typeof result === "string") { - childNode.tagname = result; - currentNode.addChild(childNode); - } else { - currentNode.addChild(childNode); - } - } - var replaceEntitiesValue = function(val2) { + var replaceEntitiesValue = function(val) { if (this.options.processEntities) { - for (let entityName2 in this.docTypeEntities) { - const entity = this.docTypeEntities[entityName2]; - val2 = val2.replace(entity.regx, entity.val); + for (let entityName in this.docTypeEntities) { + const entity = this.docTypeEntities[entityName]; + val = val.replace(entity.regx, entity.val); } - for (let entityName2 in this.lastEntities) { - const entity = this.lastEntities[entityName2]; - val2 = val2.replace(entity.regex, entity.val); + for (let entityName in this.lastEntities) { + const entity = this.lastEntities[entityName]; + val = val.replace(entity.regex, entity.val); } if (this.options.htmlEntities) { - for (let entityName2 in this.htmlEntities) { - const entity = this.htmlEntities[entityName2]; - val2 = val2.replace(entity.regex, entity.val); + for (let entityName in this.htmlEntities) { + const entity = this.htmlEntities[entityName]; + val = val.replace(entity.regex, entity.val); } } - val2 = val2.replace(this.ampEntity.regex, this.ampEntity.val); + val = val.replace(this.ampEntity.regex, this.ampEntity.val); } - return val2; + return val; }; function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) { if (textData) { @@ -11866,18 +11094,18 @@ var require_OrderedObjParser = __commonJS({ } } } - function parseValue(val2, shouldParse, options) { - if (shouldParse && typeof val2 === "string") { - const newval = val2.trim(); + function parseValue(val, shouldParse, options) { + if (shouldParse && typeof val === "string") { + const newval = val.trim(); if (newval === "true") return true; else if (newval === "false") return false; else - return toNumber(val2, options); + return toNumber(val, options); } else { - if (util.isExist(val2)) { - return val2; + if (util.isExist(val)) { + return val; } else { return ""; } @@ -11887,9 +11115,9 @@ var require_OrderedObjParser = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlparser/node2json.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/node2json.js var require_node2json = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/node2json.js"(exports) { "use strict"; function prettify(node, options) { return compress(node, options); @@ -11913,28 +11141,28 @@ var require_node2json = __commonJS({ } else if (property === void 0) { continue; } else if (tagObj[property]) { - let val2 = compress(tagObj[property], options, newJpath); - const isLeaf = isLeafTag(val2, options); + let val = compress(tagObj[property], options, newJpath); + const isLeaf = isLeafTag(val, options); if (tagObj[":@"]) { - assignAttributes(val2, tagObj[":@"], newJpath, options); - } else if (Object.keys(val2).length === 1 && val2[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) { - val2 = val2[options.textNodeName]; - } else if (Object.keys(val2).length === 0) { + assignAttributes(val, tagObj[":@"], newJpath, options); + } else if (Object.keys(val).length === 1 && val[options.textNodeName] !== void 0 && !options.alwaysCreateTextNode) { + val = val[options.textNodeName]; + } else if (Object.keys(val).length === 0) { if (options.alwaysCreateTextNode) - val2[options.textNodeName] = ""; + val[options.textNodeName] = ""; else - val2 = ""; + val = ""; } if (compressedObj[property] !== void 0 && compressedObj.hasOwnProperty(property)) { if (!Array.isArray(compressedObj[property])) { compressedObj[property] = [compressedObj[property]]; } - compressedObj[property].push(val2); + compressedObj[property].push(val); } else { if (options.isArray(property, newJpath, isLeaf)) { - compressedObj[property] = [val2]; + compressedObj[property] = [val]; } else { - compressedObj[property] = val2; + compressedObj[property] = val; } } } @@ -11969,23 +11197,18 @@ var require_node2json = __commonJS({ } } function isLeafTag(obj, options) { - const { textNodeName } = options; const propCount = Object.keys(obj).length; - if (propCount === 0) { - return true; - } - if (propCount === 1 && (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0)) { + if (propCount === 0 || propCount === 1 && obj[options.textNodeName]) return true; - } return false; } exports.prettify = prettify; } }); -// ../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js var require_XMLParser = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports, module2) { var { buildOptions } = require_OptionsBuilder(); var OrderedObjParser = require_OrderedObjParser(); var { prettify } = require_node2json(); @@ -12044,9 +11267,9 @@ var require_XMLParser = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js var require_orderedJs2Xml = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports, module2) { var EOL = "\n"; function toXml(jArray, options) { let indentation = ""; @@ -12172,9 +11395,9 @@ var require_orderedJs2Xml = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js var require_json2xml = __commonJS({ - "../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports, module2) { "use strict"; var buildFromOrderedJs = require_orderedJs2Xml(); var defaultOptions = { @@ -12206,10 +11429,9 @@ var require_json2xml = __commonJS({ { regex: new RegExp('"', "g"), val: """ } ], processEntities: true, - stopNodes: [], + stopNodes: [] // transformTagName: false, // transformAttributeName: false, - oneListGroup: false }; function Builder(options) { this.options = Object.assign({}, defaultOptions, options); @@ -12248,16 +11470,16 @@ var require_json2xml = __commonJS({ }; Builder.prototype.j2x = function(jObj, level) { let attrStr = ""; - let val2 = ""; + let val = ""; for (let key in jObj) { if (typeof jObj[key] === "undefined") { } else if (jObj[key] === null) { if (key[0] === "?") - val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar; + val += this.indentate(level) + "<" + key + "?" + this.tagEndChar; else - val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar; + val += this.indentate(level) + "<" + key + "/" + this.tagEndChar; } else if (jObj[key] instanceof Date) { - val2 += this.buildTextValNode(jObj[key], key, "", level); + val += this.buildTextValNode(jObj[key], key, "", level); } else if (typeof jObj[key] !== "object") { const attr = this.isAttribute(key); if (attr) { @@ -12265,36 +11487,27 @@ var require_json2xml = __commonJS({ } else { if (key === this.options.textNodeName) { let newval = this.options.tagValueProcessor(key, "" + jObj[key]); - val2 += this.replaceEntitiesValue(newval); + val += this.replaceEntitiesValue(newval); } else { - val2 += this.buildTextValNode(jObj[key], key, "", level); + val += this.buildTextValNode(jObj[key], key, "", level); } } } else if (Array.isArray(jObj[key])) { const arrLen = jObj[key].length; - let listTagVal = ""; for (let j = 0; j < arrLen; j++) { const item = jObj[key][j]; if (typeof item === "undefined") { } else if (item === null) { if (key[0] === "?") - val2 += this.indentate(level) + "<" + key + "?" + this.tagEndChar; + val += this.indentate(level) + "<" + key + "?" + this.tagEndChar; else - val2 += this.indentate(level) + "<" + key + "/" + this.tagEndChar; + val += this.indentate(level) + "<" + key + "/" + this.tagEndChar; } else if (typeof item === "object") { - if (this.options.oneListGroup) { - listTagVal += this.j2x(item, level + 1).val; - } else { - listTagVal += this.processTextOrObjNode(item, key, level); - } + val += this.processTextOrObjNode(item, key, level); } else { - listTagVal += this.buildTextValNode(item, key, "", level); + val += this.buildTextValNode(item, key, "", level); } } - if (this.options.oneListGroup) { - listTagVal = this.buildObjectNode(listTagVal, key, "", level); - } - val2 += listTagVal; } else { if (this.options.attributesGroupName && key === this.options.attributesGroupName) { const Ks = Object.keys(jObj[key]); @@ -12303,19 +11516,19 @@ var require_json2xml = __commonJS({ attrStr += this.buildAttrPairStr(Ks[j], "" + jObj[key][Ks[j]]); } } else { - val2 += this.processTextOrObjNode(jObj[key], key, level); + val += this.processTextOrObjNode(jObj[key], key, level); } } } - return { attrStr, val: val2 }; + return { attrStr, val }; }; - Builder.prototype.buildAttrPairStr = function(attrName, val2) { - val2 = this.options.attributeValueProcessor(attrName, "" + val2); - val2 = this.replaceEntitiesValue(val2); - if (this.options.suppressBooleanAttributes && val2 === "true") { + Builder.prototype.buildAttrPairStr = function(attrName, val) { + val = this.options.attributeValueProcessor(attrName, "" + val); + val = this.replaceEntitiesValue(val); + if (this.options.suppressBooleanAttributes && val === "true") { return " " + attrName; } else - return " " + attrName + '="' + val2 + '"'; + return " " + attrName + '="' + val + '"'; }; function processTextOrObjNode(object, key, level) { const result = this.j2x(object, level + 1); @@ -12325,8 +11538,8 @@ var require_json2xml = __commonJS({ return this.buildObjectNode(result.val, key, result.attrStr, level); } } - Builder.prototype.buildObjectNode = function(val2, key, attrStr, level) { - if (val2 === "") { + Builder.prototype.buildObjectNode = function(val, key, attrStr, level) { + if (val === "") { if (key[0] === "?") return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar; else { @@ -12339,12 +11552,12 @@ var require_json2xml = __commonJS({ piClosingChar = "?"; tagEndExp = ""; } - if (attrStr && val2.indexOf("<") === -1) { - return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val2 + tagEndExp; + if (attrStr && val.indexOf("<") === -1) { + return this.indentate(level) + "<" + key + attrStr + piClosingChar + ">" + val + tagEndExp; } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) { - return this.indentate(level) + `` + this.newLine; + return this.indentate(level) + `` + this.newLine; } else { - return this.indentate(level) + "<" + key + attrStr + piClosingChar + this.tagEndChar + val2 + this.indentate(level) + tagEndExp; + return this.indentate(level) + "<" + key + attrStr + piClosingChar + this.tagEndChar + val + this.indentate(level) + tagEndExp; } } }; @@ -12360,15 +11573,15 @@ var require_json2xml = __commonJS({ } return closeTag; }; - Builder.prototype.buildTextValNode = function(val2, key, attrStr, level) { + Builder.prototype.buildTextValNode = function(val, key, attrStr, level) { if (this.options.cdataPropName !== false && key === this.options.cdataPropName) { - return this.indentate(level) + `` + this.newLine; + return this.indentate(level) + `` + this.newLine; } else if (this.options.commentPropName !== false && key === this.options.commentPropName) { - return this.indentate(level) + `` + this.newLine; + return this.indentate(level) + `` + this.newLine; } else if (key[0] === "?") { return this.indentate(level) + "<" + key + attrStr + "?" + this.tagEndChar; } else { - let textValue = this.options.tagValueProcessor(key, val2); + let textValue = this.options.tagValueProcessor(key, val); textValue = this.replaceEntitiesValue(textValue); if (textValue === "") { return this.indentate(level) + "<" + key + attrStr + this.closeTag(key) + this.tagEndChar; @@ -12400,9 +11613,9 @@ var require_json2xml = __commonJS({ } }); -// ../../../node_modules/fast-xml-parser/src/fxp.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/fxp.js var require_fxp = __commonJS({ - "../../../node_modules/fast-xml-parser/src/fxp.js"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/fast-xml-parser/src/fxp.js"(exports, module2) { "use strict"; var validator = require_validator(); var XMLParser = require_XMLParser(); @@ -12415,14 +11628,14 @@ var require_fxp = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js var require_Aws_query = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0; - var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); + var protocol_http_1 = require_dist_cjs33(); var fast_xml_parser_1 = require_fxp(); var models_0_1 = require_models_0(); var STSServiceException_1 = require_STSServiceException(); @@ -13252,1548 +12465,2273 @@ var require_Aws_query = __commonJS({ if (output["Arn"] !== void 0) { contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); } - return contents; - }; - var de_GetAccessKeyInfoResponse = (output, context) => { - const contents = {}; - if (output["Account"] !== void 0) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + return contents; + }; + var de_GetAccessKeyInfoResponse = (output, context) => { + const contents = {}; + if (output["Account"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + return contents; + }; + var de_GetCallerIdentityResponse = (output, context) => { + const contents = {}; + if (output["UserId"] !== void 0) { + contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); + } + if (output["Account"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + if (output["Arn"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; + }; + var de_GetFederationTokenResponse = (output, context) => { + const contents = {}; + if (output["Credentials"] !== void 0) { + contents.Credentials = de_Credentials(output["Credentials"], context); + } + if (output["FederatedUser"] !== void 0) { + contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); + } + if (output["PackedPolicySize"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + return contents; + }; + var de_GetSessionTokenResponse = (output, context) => { + const contents = {}; + if (output["Credentials"] !== void 0) { + contents.Credentials = de_Credentials(output["Credentials"], context); + } + return contents; + }; + var de_IDPCommunicationErrorException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var de_IDPRejectedClaimException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var de_InvalidAuthorizationMessageException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var de_InvalidIdentityTokenException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var de_MalformedPolicyDocumentException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var de_PackedPolicyTooLargeException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var de_RegionDisabledException = (output, context) => { + const contents = {}; + if (output["message"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; + }; + var deserializeMetadata = (output) => ({ + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"] + }); + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var throwDefaultError = (0, smithy_client_1.withBaseException)(STSServiceException_1.STSServiceException); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var SHARED_HEADERS = { + "content-type": "application/x-www-form-urlencoded" + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parser = new fast_xml_parser_1.XMLParser({ + attributeNamePrefix: "", + htmlEntities: true, + ignoreAttributes: false, + ignoreDeclaration: true, + parseTagValue: false, + trimValues: false, + tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0 + }); + parser.addEntity("#xD", "\r"); + parser.addEntity("#10", "\n"); + const parsedObj = parser.parse(encoded); + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; + }); + var parseErrorBody = async (errorBody, context) => { + const value = await parseBody(errorBody, context); + if (value.Error) { + value.Error.message = value.Error.message ?? value.Error.Message; + } + return value; + }; + var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join("&"); + var loadQueryErrorCode = (output, data) => { + var _a; + if (((_a = data.Error) == null ? void 0 : _a.Code) !== void 0) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return "NotFound"; + } + }; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +var require_AssumeRoleCommand = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleCommand = exports.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var middleware_signing_1 = require_dist_cjs25(); + var smithy_client_1 = require_dist_cjs30(); + Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + return smithy_client_1.Command; + } }); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleCommand = class extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } + }; + } + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_) => _, + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.se_AssumeRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.de_AssumeRoleCommand)(output, context); + } + }; + exports.AssumeRoleCommand = AssumeRoleCommand; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +var require_AssumeRoleWithWebIdentityCommand = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.AssumeRoleWithWebIdentityCommand = exports.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); + Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { + return smithy_client_1.Command; + } }); + var models_0_1 = require_models_0(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { + static getEndpointParameterInstructions() { + return { + UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } + }; + } + constructor(input) { + super(); + this.input = input; } - return contents; - }; - var de_GetCallerIdentityResponse = (output, context) => { - const contents = {}; - if (output["UserId"] !== void 0) { - contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions())); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithWebIdentityCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); } - if (output["Account"] !== void 0) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + serialize(input, context) { + return (0, Aws_query_1.se_AssumeRoleWithWebIdentityCommand)(input, context); } - if (output["Arn"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + deserialize(output, context) { + return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context); } - return contents; }; - var de_GetFederationTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== void 0) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["FederatedUser"] !== void 0) { - contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); - } - if (output["PackedPolicySize"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + } +}); + +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +var require_defaultStsRoleAssumers = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; + var decorateDefaultRegion = (region) => { + if (typeof region !== "function") { + return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; } - return contents; + return async () => { + try { + return await region(); + } catch (e) { + return ASSUME_ROLE_DEFAULT_REGION; + } + }; }; - var de_GetSessionTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== void 0) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - return contents; + var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; }; - var de_IDPCommunicationErrorException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; + exports.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; }; - var de_IDPRejectedClaimException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + ...input + }); + exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +var require_fromEnv = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; + var property_provider_1 = require_dist_cjs16(); + exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; + exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; + exports.ENV_SESSION = "AWS_SESSION_TOKEN"; + exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; + var fromEnv = () => async () => { + const accessKeyId = process.env[exports.ENV_KEY]; + const secretAccessKey = process.env[exports.ENV_SECRET]; + const sessionToken = process.env[exports.ENV_SESSION]; + const expiry = process.env[exports.ENV_EXPIRATION]; + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...sessionToken && { sessionToken }, + ...expiry && { expiration: new Date(expiry) } + }; } - return contents; + throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); }; - var de_InvalidAuthorizationMessageException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; + exports.fromEnv = fromEnv; + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +var require_dist_cjs34 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_fromEnv(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js +var require_getHomeDir = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getHomeDir = void 0; + var os_1 = require("os"); + var path_1 = require("path"); + var getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return `${HOMEDRIVE}${HOMEPATH}`; + return (0, os_1.homedir)(); }; - var de_InvalidIdentityTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; + exports.getHomeDir = getHomeDir; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js +var require_getProfileName = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; + exports.ENV_PROFILE = "AWS_PROFILE"; + exports.DEFAULT_PROFILE = "default"; + var getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; + exports.getProfileName = getProfileName; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +var require_getSSOTokenFilepath = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSSOTokenFilepath = void 0; + var crypto_1 = require("crypto"); + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + var getSSOTokenFilepath = (id) => { + const hasher = (0, crypto_1.createHash)("sha1"); + const cacheName = hasher.update(id).digest("hex"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); }; - var de_MalformedPolicyDocumentException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; + exports.getSSOTokenFilepath = getSSOTokenFilepath; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +var require_getSSOTokenFromFile = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSSOTokenFromFile = void 0; + var fs_1 = require("fs"); + var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); + var { readFile } = fs_1.promises; + var getSSOTokenFromFile = async (id) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); + const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); + return JSON.parse(ssoTokenText); }; - var de_PackedPolicyTooLargeException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + exports.getSSOTokenFromFile = getSSOTokenFromFile; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +var require_getConfigFilepath = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; + var getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); + exports.getConfigFilepath = getConfigFilepath; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +var require_getCredentialsFilepath = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; + var path_1 = require("path"); + var getHomeDir_1 = require_getHomeDir(); + exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; + var getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); + exports.getCredentialsFilepath = getCredentialsFilepath; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js +var require_getProfileData = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getProfileData = void 0; + var profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; + var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { + ...data.default && { default: data.default } + }); + exports.getProfileData = getProfileData; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js +var require_parseIni = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseIni = void 0; + var profileNameBlockList = ["__proto__", "profile __proto__"]; + var parseIni = (iniData) => { + const map = {}; + let currentSection; + for (let line of iniData.split(/\r?\n/)) { + line = line.split(/(^|\s)[;#]/)[0].trim(); + const isSection = line[0] === "[" && line[line.length - 1] === "]"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (profileNameBlockList.includes(currentSection)) { + throw new Error(`Found invalid profile name "${currentSection}"`); + } + } else if (currentSection) { + const indexOfEqualsSign = line.indexOf("="); + const start = 0; + const end = line.length - 1; + const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + const [name, value] = [ + line.substring(0, indexOfEqualsSign).trim(), + line.substring(indexOfEqualsSign + 1).trim() + ]; + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } } - return contents; + return map; }; - var de_RegionDisabledException = (output, context) => { - const contents = {}; - if (output["message"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); + exports.parseIni = parseIni; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js +var require_slurpFile = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.slurpFile = void 0; + var fs_1 = require("fs"); + var { readFile } = fs_1.promises; + var filePromisesHash = {}; + var slurpFile = (path, options) => { + if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) { + filePromisesHash[path] = readFile(path, "utf8"); } - return contents; + return filePromisesHash[path]; }; - var deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"] - }); - var collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); - var throwDefaultError = (0, smithy_client_1.withBaseException)(STSServiceException_1.STSServiceException); - var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers + exports.slurpFile = slurpFile; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +var require_loadSharedConfigFiles = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadSharedConfigFiles = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getCredentialsFilepath_1 = require_getCredentialsFilepath(); + var getProfileData_1 = require_getProfileData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSharedConfigFiles = async (init = {}) => { + const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + const parsedFiles = await Promise.all([ + (0, slurpFile_1.slurpFile)(configFilepath, { + ignoreCache: init.ignoreCache + }).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), + (0, slurpFile_1.slurpFile)(filepath, { + ignoreCache: init.ignoreCache + }).then(parseIni_1.parseIni).catch(swallowError) + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1] }; - if (resolvedHostname !== void 0) { - contents.hostname = resolvedHostname; - } - if (body !== void 0) { - contents.body = body; + }; + exports.loadSharedConfigFiles = loadSharedConfigFiles; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +var require_getSsoSessionData = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.getSsoSessionData = void 0; + var ssoSessionKeyRegex = /^sso-session\s(["'])?([^\1]+)\1$/; + var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); + exports.getSsoSessionData = getSsoSessionData; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +var require_loadSsoSessionData = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.loadSsoSessionData = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getSsoSessionData_1 = require_getSsoSessionData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSsoSessionData = async (init = {}) => { + var _a; + return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); + }; + exports.loadSsoSessionData = loadSsoSessionData; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +var require_mergeConfigFiles = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.mergeConfigFiles = void 0; + var mergeConfigFiles = (...files) => { + const merged = {}; + for (const file of files) { + for (const [key, values] of Object.entries(file)) { + if (merged[key] !== void 0) { + Object.assign(merged[key], values); + } else { + merged[key] = values; + } + } } - return new protocol_http_1.HttpRequest(contents); + return merged; }; - var SHARED_HEADERS = { - "content-type": "application/x-www-form-urlencoded" + exports.mergeConfigFiles = mergeConfigFiles; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +var require_parseKnownFiles = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.parseKnownFiles = void 0; + var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); + var mergeConfigFiles_1 = require_mergeConfigFiles(); + var parseKnownFiles = async (init) => { + const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); + return (0, mergeConfigFiles_1.mergeConfigFiles)(parsedFiles.configFile, parsedFiles.credentialsFile); }; - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parser = new fast_xml_parser_1.XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_, val2) => val2.trim() === "" && val2.includes("\n") ? "" : void 0 + exports.parseKnownFiles = parseKnownFiles; + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js +var require_types5 = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js +var require_dist_cjs35 = __commonJS({ + "../../../node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_getHomeDir(), exports); + tslib_1.__exportStar(require_getProfileName(), exports); + tslib_1.__exportStar(require_getSSOTokenFilepath(), exports); + tslib_1.__exportStar(require_getSSOTokenFromFile(), exports); + tslib_1.__exportStar(require_loadSharedConfigFiles(), exports); + tslib_1.__exportStar(require_loadSsoSessionData(), exports); + tslib_1.__exportStar(require_parseKnownFiles(), exports); + tslib_1.__exportStar(require_types5(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +var require_httpRequest3 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.httpRequest = void 0; + var property_provider_1 = require_dist_cjs16(); + var buffer_1 = require("buffer"); + var http_1 = require("http"); + function httpRequest(options) { + return new Promise((resolve, reject) => { + var _a; + const req = (0, http_1.request)({ + method: "GET", + ...options, + hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1") }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - const parsedObj = parser.parse(encoded); - const textNodeName = "#text"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; + req.on("error", (err) => { + reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); + req.destroy(); + }); + req.on("timeout", () => { + reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); + req.destroy(); + }); + req.on("response", (res) => { + const { statusCode = 400 } = res; + if (statusCode < 200 || 300 <= statusCode) { + reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); + req.destroy(); + } + const chunks = []; + res.on("data", (chunk) => { + chunks.push(chunk); + }); + res.on("end", () => { + resolve(buffer_1.Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); + } + exports.httpRequest = httpRequest; + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +var require_ImdsCredentials = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromImdsCredentials = exports.isImdsCredentials = void 0; + var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string"; + exports.isImdsCredentials = isImdsCredentials; + var fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration) }); - var parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - if (value.Error) { - value.Error.message = value.Error.message ?? value.Error.Message; - } - return value; - }; - var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join("&"); - var loadQueryErrorCode = (output, data) => { - var _a; - if (((_a = data.Error) == null ? void 0 : _a.Code) !== void 0) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; - } - }; + exports.fromImdsCredentials = fromImdsCredentials; } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js -var require_AssumeRoleCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +var require_RemoteProviderInit = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.AssumeRoleCommand = exports.$Command = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_0(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleCommand)(output, context); - } - }; - exports.AssumeRoleCommand = AssumeRoleCommand; + exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; + exports.DEFAULT_TIMEOUT = 1e3; + exports.DEFAULT_MAX_RETRIES = 0; + var providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); + exports.providerConfigFromInit = providerConfigFromInit; } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js -var require_AssumeRoleWithWebIdentityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js +var require_retry3 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.AssumeRoleWithWebIdentityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_0(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithWebIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context); + exports.retry = void 0; + var retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); } + return promise; }; - exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + exports.retry = retry; } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js -var require_defaultStsRoleAssumers = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js +var require_fromContainerMetadata = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; - var AssumeRoleCommand_1 = require_AssumeRoleCommand(); - var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); - var ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; - var decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; + exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; + var property_provider_1 = require_dist_cjs16(); + var url_1 = require("url"); + var httpRequest_1 = require_httpRequest3(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry3(); + exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; + exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; + exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; + var fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + return () => (0, retry_1.retry)(async () => { + const requestOptions = await getCmdsUri(); + const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); } - }; + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }, maxRetries); }; - var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...requestHandler ? { requestHandler } : {} - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); - } + exports.fromContainerMetadata = fromContainerMetadata; + var requestFromEcsImds = async (timeout, options) => { + if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN] + }; + } + const buffer = await (0, httpRequest_1.httpRequest)({ + ...options, + timeout + }); + return buffer.toString(); + }; + var CMDS_IP = "169.254.170.2"; + var GREENGRASS_HOSTS = { + localhost: true, + "127.0.0.1": true + }; + var GREENGRASS_PROTOCOLS = { + "http:": true, + "https:": true + }; + var getCmdsUri = async () => { + if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration + hostname: CMDS_IP, + path: process.env[exports.ENV_CMDS_RELATIVE_URI] }; - }; - }; - exports.getDefaultRoleAssumer = getDefaultRoleAssumer; - var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...requestHandler ? { requestHandler } : {} - }); + } + if (process.env[exports.ENV_CMDS_FULL_URI]) { + const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); } return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : void 0 }; - }; + } + throw new property_provider_1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment variable is set`, false); }; - exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; - var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input - }); - exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; } }); -// ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js -var require_fromEnv = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js"(exports) { +// ../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js +var require_fromEnv2 = __commonJS({ + "../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; - var property_provider_1 = require_dist_cjs6(); - exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; - exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; - exports.ENV_SESSION = "AWS_SESSION_TOKEN"; - exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; - var fromEnv = () => async () => { - const accessKeyId = process.env[exports.ENV_KEY]; - const secretAccessKey = process.env[exports.ENV_SECRET]; - const sessionToken = process.env[exports.ENV_SESSION]; - const expiry = process.env[exports.ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...sessionToken && { sessionToken }, - ...expiry && { expiration: new Date(expiry) } - }; + exports.fromEnv = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromEnv = (envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === void 0) { + throw new Error(); + } + return config; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); } - throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); }; exports.fromEnv = fromEnv; } }); -// ../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js -var require_dist_cjs37 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js +var require_fromSharedConfigFiles = __commonJS({ + "../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromEnv(), exports); + exports.fromSharedConfigFiles = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs35(); + var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { + const profile = (0, shared_ini_file_loader_1.getProfileName)(init); + const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); + const profileFromCredentials = credentialsFile[profile] || {}; + const profileFromConfig = configFile[profile] || {}; + const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; + try { + const configValue = configSelector(mergedProfile); + if (configValue === void 0) { + throw new Error(); + } + return configValue; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); + } + }; + exports.fromSharedConfigFiles = fromSharedConfigFiles; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js -var require_getHomeDir = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js"(exports) { +// ../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js +var require_fromStatic2 = __commonJS({ + "../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getHomeDir = void 0; - var os_1 = require("os"); - var path_1 = require("path"); - var getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return `${HOMEDRIVE}${HOMEPATH}`; - return (0, os_1.homedir)(); - }; - exports.getHomeDir = getHomeDir; + exports.fromStatic = void 0; + var property_provider_1 = require_dist_cjs16(); + var isFunction = (func) => typeof func === "function"; + var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); + exports.fromStatic = fromStatic; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js -var require_getProfileName = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js"(exports) { +// ../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js +var require_configLoader = __commonJS({ + "../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; - exports.ENV_PROFILE = "AWS_PROFILE"; - exports.DEFAULT_PROFILE = "default"; - var getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; - exports.getProfileName = getProfileName; + exports.loadConfig = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromEnv_1 = require_fromEnv2(); + var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); + var fromStatic_1 = require_fromStatic2(); + var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); + exports.loadConfig = loadConfig; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js -var require_getSSOTokenFilepath = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js"(exports) { +// ../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js +var require_dist_cjs36 = __commonJS({ + "../../../node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSSOTokenFilepath = void 0; - var crypto_1 = require("crypto"); - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - var getSSOTokenFilepath = (id) => { - const hasher = (0, crypto_1.createHash)("sha1"); - const cacheName = hasher.update(id).digest("hex"); - return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_configLoader(), exports); + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js +var require_Endpoint = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.Endpoint = void 0; + var Endpoint; + (function(Endpoint2) { + Endpoint2["IPv4"] = "http://169.254.169.254"; + Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; + })(Endpoint = exports.Endpoint || (exports.Endpoint = {})); + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +var require_EndpointConfigOptions = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; + exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; + exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; + exports.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + default: void 0 }; - exports.getSSOTokenFilepath = getSSOTokenFilepath; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js -var require_getSSOTokenFromFile = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js +var require_EndpointMode = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSSOTokenFromFile = void 0; - var fs_1 = require("fs"); - var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); - var { readFile } = fs_1.promises; - var getSSOTokenFromFile = async (id) => { - const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); - const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); - return JSON.parse(ssoTokenText); + exports.EndpointMode = void 0; + var EndpointMode; + (function(EndpointMode2) { + EndpointMode2["IPv4"] = "IPv4"; + EndpointMode2["IPv6"] = "IPv6"; + })(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); + } +}); + +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +var require_EndpointModeConfigOptions = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; + var EndpointMode_1 = require_EndpointMode(); + exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; + exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; + exports.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4 }; - exports.getSSOTokenFromFile = getSSOTokenFromFile; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js -var require_getConfigFilepath = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +var require_getInstanceMetadataEndpoint = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; - var getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); - exports.getConfigFilepath = getConfigFilepath; + exports.getInstanceMetadataEndpoint = void 0; + var node_config_provider_1 = require_dist_cjs36(); + var url_parser_1 = require_dist_cjs7(); + var Endpoint_1 = require_Endpoint(); + var EndpointConfigOptions_1 = require_EndpointConfigOptions(); + var EndpointMode_1 = require_EndpointMode(); + var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); + var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); + exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; + var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); + var getFromEndpointModeConfig = async () => { + const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode_1.EndpointMode.IPv4: + return Endpoint_1.Endpoint.IPv4; + case EndpointMode_1.EndpointMode.IPv6: + return Endpoint_1.Endpoint.IPv6; + default: + throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode_1.EndpointMode)}`); + } + }; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js -var require_getCredentialsFilepath = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +var require_getExtendedInstanceMetadataCredentials = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; - var path_1 = require("path"); - var getHomeDir_1 = require_getHomeDir(); - exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; - var getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); - exports.getCredentialsFilepath = getCredentialsFilepath; + exports.getExtendedInstanceMetadataCredentials = void 0; + var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; + var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; + var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; + var getExtendedInstanceMetadataCredentials = (credentials, logger) => { + var _a; + const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); + const newExpiration = new Date(Date.now() + refreshInterval * 1e3); + logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + STATIC_STABILITY_DOC_URL); + const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; + return { + ...credentials, + ...originalExpiration ? { originalExpiration } : {}, + expiration: newExpiration + }; + }; + exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js -var require_getProfileData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +var require_staticStabilityProvider = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getProfileData = void 0; - var profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; - var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { - ...data.default && { default: data.default } - }); - exports.getProfileData = getProfileData; + exports.staticStabilityProvider = void 0; + var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); + var staticStabilityProvider = (provider, options = {}) => { + const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; + let pastCredentials; + return async () => { + let credentials; + try { + credentials = await provider(); + if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); + } + } catch (e) { + if (pastCredentials) { + logger.warn("Credential renew failed: ", e); + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); + } else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; + }; + exports.staticStabilityProvider = staticStabilityProvider; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js -var require_parseIni = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +var require_fromInstanceMetadata = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseIni = void 0; - var profileNameBlockList = ["__proto__", "profile __proto__"]; - var parseIni = (iniData) => { - const map = {}; - let currentSection; - for (let line of iniData.split(/\r?\n/)) { - line = line.split(/(^|\s)[;#]/)[0].trim(); - const isSection = line[0] === "[" && line[line.length - 1] === "]"; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (profileNameBlockList.includes(currentSection)) { - throw new Error(`Found invalid profile name "${currentSection}"`); + exports.fromInstanceMetadata = void 0; + var property_provider_1 = require_dist_cjs16(); + var httpRequest_1 = require_httpRequest3(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry3(); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + var staticStabilityProvider_1 = require_staticStabilityProvider(); + var IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; + var IMDS_TOKEN_PATH = "/latest/api/token"; + var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); + exports.fromInstanceMetadata = fromInstanceMetadata; + var getInstanceImdsProvider = (init) => { + let disableFetchToken = false; + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + const getCredentials = async (maxRetries2, options) => { + const profile = (await (0, retry_1.retry)(async () => { + let profile2; + try { + profile2 = await getProfile(options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; } - } else if (currentSection) { - const indexOfEqualsSign = line.indexOf("="); - const start = 0; - const end = line.length - 1; - const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - const [name, value] = [ - line.substring(0, indexOfEqualsSign).trim(), - line.substring(indexOfEqualsSign + 1).trim() - ]; - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; + return profile2; + }, maxRetries2)).trim(); + return (0, retry_1.retry)(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(profile, options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries2); + }; + return async () => { + const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + if (disableFetchToken) { + return getCredentials(maxRetries, { ...endpoint, timeout }); + } else { + let token; + try { + token = (await getMetadataToken({ ...endpoint, timeout })).toString(); + } catch (error) { + if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { + throw Object.assign(error, { + message: "EC2 Metadata token request returned error" + }); + } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + return getCredentials(maxRetries, { ...endpoint, timeout }); } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + "x-aws-ec2-metadata-token": token + }, + timeout + }); } + }; + }; + var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_TOKEN_PATH, + method: "PUT", + headers: { + "x-aws-ec2-metadata-token-ttl-seconds": "21600" } - return map; + }); + var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); + var getCredentialsFromProfile = async (profile, options) => { + const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_PATH + profile + })).toString()); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); }; - exports.parseIni = parseIni; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js -var require_slurpFile = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js +var require_types6 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.slurpFile = void 0; - var fs_1 = require("fs"); - var { readFile } = fs_1.promises; - var filePromisesHash = {}; - var slurpFile = (path, options) => { - if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) { - filePromisesHash[path] = readFile(path, "utf8"); - } - return filePromisesHash[path]; - }; - exports.slurpFile = slurpFile; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js -var require_loadSharedConfigFiles = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js +var require_dist_cjs37 = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadSharedConfigFiles = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getCredentialsFilepath_1 = require_getCredentialsFilepath(); - var getProfileData_1 = require_getProfileData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; - const parsedFiles = await Promise.all([ - (0, slurpFile_1.slurpFile)(configFilepath, { - ignoreCache: init.ignoreCache - }).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath, { - ignoreCache: init.ignoreCache - }).then(parseIni_1.parseIni).catch(swallowError) - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1] - }; - }; - exports.loadSharedConfigFiles = loadSharedConfigFiles; + exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_fromContainerMetadata(), exports); + tslib_1.__exportStar(require_fromInstanceMetadata(), exports); + tslib_1.__exportStar(require_RemoteProviderInit(), exports); + tslib_1.__exportStar(require_types6(), exports); + var httpRequest_1 = require_httpRequest3(); + Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function() { + return httpRequest_1.httpRequest; + } }); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + Object.defineProperty(exports, "getInstanceMetadataEndpoint", { enumerable: true, get: function() { + return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; + } }); } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js -var require_getSsoSessionData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +var require_resolveCredentialSource = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getSsoSessionData = void 0; - var ssoSessionKeyRegex = /^sso-session\s(["'])?([^\1]+)\1$/; - var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); - exports.getSsoSessionData = getSsoSessionData; + exports.resolveCredentialSource = void 0; + var credential_provider_env_1 = require_dist_cjs34(); + var credential_provider_imds_1 = require_dist_cjs37(); + var property_provider_1 = require_dist_cjs16(); + var resolveCredentialSource = (credentialSource, profileName) => { + const sourceProvidersMap = { + EcsContainer: credential_provider_imds_1.fromContainerMetadata, + Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, + Environment: credential_provider_env_1.fromEnv + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource](); + } else { + throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`); + } + }; + exports.resolveCredentialSource = resolveCredentialSource; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js -var require_loadSsoSessionData = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +var require_resolveAssumeRoleCredentials = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadSsoSessionData = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getSsoSessionData_1 = require_getSsoSessionData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSsoSessionData = async (init = {}) => { - var _a; - return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); + exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs35(); + var resolveCredentialSource_1 = require_resolveCredentialSource(); + var resolveProfileData_1 = require_resolveProfileData(); + var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); + exports.isAssumeRoleProfile = isAssumeRoleProfile; + var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; + var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; + var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (!options.roleAssumer) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); + } + const { source_profile } = data; + if (source_profile && source_profile in visitedProfiles) { + throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), false); + } + const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { + ...visitedProfiles, + [source_profile]: true + }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); + const params = { + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: data.external_id + }; + const { mfa_serial } = data; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params); }; - exports.loadSsoSessionData = loadSsoSessionData; + exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js -var require_mergeConfigFiles = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +var require_getValidatedProcessCredentials = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.mergeConfigFiles = void 0; - var mergeConfigFiles = (...files) => { - const merged = {}; - for (const file of files) { - for (const [key, values] of Object.entries(file)) { - if (merged[key] !== void 0) { - Object.assign(merged[key], values); - } else { - merged[key] = values; - } + exports.getValidatedProcessCredentials = void 0; + var getValidatedProcessCredentials = (profileName, data) => { + if (data.Version !== 1) { + throw Error(`Profile ${profileName} credential_process did not return Version 1.`); + } + if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { + throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); + } + if (data.Expiration) { + const currentTime = /* @__PURE__ */ new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(`Profile ${profileName} credential_process returned expired credentials.`); } } - return merged; + return { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...data.SessionToken && { sessionToken: data.SessionToken }, + ...data.Expiration && { expiration: new Date(data.Expiration) } + }; }; - exports.mergeConfigFiles = mergeConfigFiles; + exports.getValidatedProcessCredentials = getValidatedProcessCredentials; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js -var require_parseKnownFiles = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +var require_resolveProcessCredentials = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.parseKnownFiles = void 0; - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); - var mergeConfigFiles_1 = require_mergeConfigFiles(); - var parseKnownFiles = async (init) => { - const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); - return (0, mergeConfigFiles_1.mergeConfigFiles)(parsedFiles.configFile, parsedFiles.credentialsFile); + exports.resolveProcessCredentials = void 0; + var property_provider_1 = require_dist_cjs16(); + var child_process_1 = require("child_process"); + var util_1 = require("util"); + var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); + var resolveProcessCredentials = async (profileName, profiles) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile["credential_process"]; + if (credentialProcess !== void 0) { + const execPromise = (0, util_1.promisify)(child_process_1.exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } catch (_a) { + throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); + } + return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); + } catch (error) { + throw new property_provider_1.CredentialsProviderError(error.message); + } + } else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); + } + } else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); + } }; - exports.parseKnownFiles = parseKnownFiles; + exports.resolveProcessCredentials = resolveProcessCredentials; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js -var require_types5 = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js"(exports) { +// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +var require_fromProcess = __commonJS({ + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); + exports.fromProcess = void 0; + var shared_ini_file_loader_1 = require_dist_cjs35(); + var resolveProcessCredentials_1 = require_resolveProcessCredentials(); + var fromProcess = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); + }; + exports.fromProcess = fromProcess; } }); -// ../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js var require_dist_cjs38 = __commonJS({ - "../../../node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_getHomeDir(), exports); - tslib_1.__exportStar(require_getProfileName(), exports); - tslib_1.__exportStar(require_getSSOTokenFilepath(), exports); - tslib_1.__exportStar(require_getSSOTokenFromFile(), exports); - tslib_1.__exportStar(require_loadSharedConfigFiles(), exports); - tslib_1.__exportStar(require_loadSsoSessionData(), exports); - tslib_1.__exportStar(require_parseKnownFiles(), exports); - tslib_1.__exportStar(require_types5(), exports); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js -var require_httpRequest2 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.httpRequest = void 0; - var property_provider_1 = require_dist_cjs6(); - var buffer_1 = require("buffer"); - var http_1 = require("http"); - function httpRequest(options) { - return new Promise((resolve, reject) => { - var _a; - const req = (0, http_1.request)({ - method: "GET", - ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1") - }); - req.on("error", (err) => { - reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); - req.destroy(); - }); - req.on("timeout", () => { - reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); - req.destroy(); - }); - req.on("response", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on("data", (chunk) => { - chunks.push(chunk); - }); - res.on("end", () => { - resolve(buffer_1.Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); - } - exports.httpRequest = httpRequest; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js -var require_ImdsCredentials = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromImdsCredentials = exports.isImdsCredentials = void 0; - var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string"; - exports.isImdsCredentials = isImdsCredentials; - var fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration) - }); - exports.fromImdsCredentials = fromImdsCredentials; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js -var require_RemoteProviderInit = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; - exports.DEFAULT_TIMEOUT = 1e3; - exports.DEFAULT_MAX_RETRIES = 0; - var providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); - exports.providerConfigFromInit = providerConfigFromInit; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js -var require_retry3 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.retry = void 0; - var retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; - }; - exports.retry = retry; + tslib_1.__exportStar(require_fromProcess(), exports); } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js -var require_fromContainerMetadata = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js +var require_resolveProcessCredentials2 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; - var property_provider_1 = require_dist_cjs6(); - var url_1 = require("url"); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry3(); - exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; - exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; - exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; - var fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - return () => (0, retry_1.retry)(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }, maxRetries); - }; - exports.fromContainerMetadata = fromContainerMetadata; - var requestFromEcsImds = async (timeout, options) => { - if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN] - }; - } - const buffer = await (0, httpRequest_1.httpRequest)({ - ...options, - timeout - }); - return buffer.toString(); - }; - var CMDS_IP = "169.254.170.2"; - var GREENGRASS_HOSTS = { - localhost: true, - "127.0.0.1": true - }; - var GREENGRASS_PROTOCOLS = { - "http:": true, - "https:": true - }; - var getCmdsUri = async () => { - if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[exports.ENV_CMDS_RELATIVE_URI] - }; - } - if (process.env[exports.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : void 0 - }; - } - throw new property_provider_1.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment variable is set`, false); - }; + exports.resolveProcessCredentials = exports.isProcessProfile = void 0; + var credential_provider_process_1 = require_dist_cjs38(); + var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; + exports.isProcessProfile = isProcessProfile; + var resolveProcessCredentials = async (options, profile) => (0, credential_provider_process_1.fromProcess)({ + ...options, + profile + })(); + exports.resolveProcessCredentials = resolveProcessCredentials; } }); -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js -var require_fromEnv2 = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +var require_isSsoProfile = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromEnv = void 0; - var property_provider_1 = require_dist_cjs6(); - var fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === void 0) { - throw new Error(); - } - return config; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); - } - }; - exports.fromEnv = fromEnv; + exports.isSsoProfile = void 0; + var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"); + exports.isSsoProfile = isSsoProfile; } }); -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js -var require_fromSharedConfigFiles = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js +var require_EndpointParameters3 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromSharedConfigFiles = void 0; - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); - var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { - const profile = (0, shared_ini_file_loader_1.getProfileName)(init); - const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; - try { - const configValue = configSelector(mergedProfile); - if (configValue === void 0) { - throw new Error(); - } - return configValue; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); - } + exports.resolveClientEndpointParameters = void 0; + var resolveClientEndpointParameters = (options) => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "awsssoportal" + }; }; - exports.fromSharedConfigFiles = fromSharedConfigFiles; + exports.resolveClientEndpointParameters = resolveClientEndpointParameters; } }); -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js -var require_fromStatic2 = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromStatic = void 0; - var property_provider_1 = require_dist_cjs6(); - var isFunction = (func) => typeof func === "function"; - var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); - exports.fromStatic = fromStatic; +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/package.json +var require_package3 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/package.json"(exports, module2) { + module2.exports = { + name: "@aws-sdk/client-sso", + description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", + version: "3.347.0", + scripts: { + build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "tsc -p tsconfig.cjs.json", + "build:docs": "typedoc", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo sso" + }, + main: "./dist-cjs/index.js", + types: "./dist-types/index.d.ts", + module: "./dist-es/index.js", + sideEffects: false, + dependencies: { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/config-resolver": "3.347.0", + "@aws-sdk/fetch-http-handler": "3.347.0", + "@aws-sdk/hash-node": "3.347.0", + "@aws-sdk/invalid-dependency": "3.347.0", + "@aws-sdk/middleware-content-length": "3.347.0", + "@aws-sdk/middleware-endpoint": "3.347.0", + "@aws-sdk/middleware-host-header": "3.347.0", + "@aws-sdk/middleware-logger": "3.347.0", + "@aws-sdk/middleware-recursion-detection": "3.347.0", + "@aws-sdk/middleware-retry": "3.347.0", + "@aws-sdk/middleware-serde": "3.347.0", + "@aws-sdk/middleware-stack": "3.347.0", + "@aws-sdk/middleware-user-agent": "3.347.0", + "@aws-sdk/node-config-provider": "3.347.0", + "@aws-sdk/node-http-handler": "3.347.0", + "@aws-sdk/smithy-client": "3.347.0", + "@aws-sdk/types": "3.347.0", + "@aws-sdk/url-parser": "3.347.0", + "@aws-sdk/util-base64": "3.310.0", + "@aws-sdk/util-body-length-browser": "3.310.0", + "@aws-sdk/util-body-length-node": "3.310.0", + "@aws-sdk/util-defaults-mode-browser": "3.347.0", + "@aws-sdk/util-defaults-mode-node": "3.347.0", + "@aws-sdk/util-endpoints": "3.347.0", + "@aws-sdk/util-retry": "3.347.0", + "@aws-sdk/util-user-agent-browser": "3.347.0", + "@aws-sdk/util-user-agent-node": "3.347.0", + "@aws-sdk/util-utf8": "3.310.0", + "@smithy/protocol-http": "^1.0.1", + "@smithy/types": "^1.0.0", + tslib: "^2.5.0" + }, + devDependencies: { + "@aws-sdk/service-client-documentation-generator": "3.310.0", + "@tsconfig/node14": "1.0.3", + "@types/node": "^14.14.31", + concurrently: "7.0.0", + "downlevel-dts": "0.10.1", + rimraf: "3.0.2", + typedoc: "0.23.23", + typescript: "~4.9.5" + }, + engines: { + node: ">=14.0.0" + }, + typesVersions: { + "<4.0": { + "dist-types/*": [ + "dist-types/ts3.4/*" + ] + } + }, + files: [ + "dist-*/**" + ], + author: { + name: "AWS SDK for JavaScript Team", + url: "https://aws.amazon.com/javascript/" + }, + license: "Apache-2.0", + browser: { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" + }, + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso", + repository: { + type: "git", + url: "https://github.com/aws/aws-sdk-js-v3.git", + directory: "clients/client-sso" + } + }; } }); -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js -var require_configLoader = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js"(exports) { +// ../../../node_modules/@aws-sdk/hash-node/dist-cjs/index.js +var require_dist_cjs39 = __commonJS({ + "../../../node_modules/@aws-sdk/hash-node/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.loadConfig = void 0; - var property_provider_1 = require_dist_cjs6(); - var fromEnv_1 = require_fromEnv2(); - var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); - var fromStatic_1 = require_fromStatic2(); - var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); - exports.loadConfig = loadConfig; + exports.Hash = void 0; + var util_buffer_from_1 = require_dist_cjs21(); + var util_utf8_1 = require_dist_cjs22(); + var buffer_1 = require("buffer"); + var crypto_1 = require("crypto"); + var Hash = class { + constructor(algorithmIdentifier, secret) { + this.algorithmIdentifier = algorithmIdentifier; + this.secret = secret; + this.reset(); + } + update(toHash, encoding) { + this.hash.update((0, util_utf8_1.toUint8Array)(castSourceData(toHash, encoding))); + } + digest() { + return Promise.resolve(this.hash.digest()); + } + reset() { + this.hash = this.secret ? (0, crypto_1.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, crypto_1.createHash)(this.algorithmIdentifier); + } + }; + exports.Hash = Hash; + function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return (0, util_buffer_from_1.fromString)(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return (0, util_buffer_from_1.fromArrayBuffer)(toCast); + } } }); -// ../../../node_modules/@smithy/node-config-provider/dist-cjs/index.js -var require_dist_cjs39 = __commonJS({ - "../../../node_modules/@smithy/node-config-provider/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js +var require_dist_cjs40 = __commonJS({ + "../../../node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_configLoader(), exports); + exports.buildQueryString = void 0; + var util_uri_escape_1 = require_dist_cjs23(); + function buildQueryString(query) { + const parts = []; + for (let key of Object.keys(query).sort()) { + const value = query[key]; + key = (0, util_uri_escape_1.escapeUri)(key); + if (Array.isArray(value)) { + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(`${key}=${(0, util_uri_escape_1.escapeUri)(value[i])}`); + } + } else { + let qsEntry = key; + if (value || typeof value === "string") { + qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + parts.push(qsEntry); + } + } + return parts.join("&"); + } + exports.buildQueryString = buildQueryString; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js -var require_Endpoint = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js +var require_constants6 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.Endpoint = void 0; - var Endpoint; - (function(Endpoint2) { - Endpoint2["IPv4"] = "http://169.254.169.254"; - Endpoint2["IPv6"] = "http://[fd00:ec2::254]"; - })(Endpoint = exports.Endpoint || (exports.Endpoint = {})); + exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; + exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js -var require_EndpointConfigOptions = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js +var require_get_transformed_headers = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; - exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; - exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; - exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], - default: void 0 + exports.getTransformedHeaders = void 0; + var getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name of Object.keys(headers)) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; + } + return transformedHeaders; }; + exports.getTransformedHeaders = getTransformedHeaders; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js -var require_EndpointMode = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js +var require_set_connection_timeout = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.EndpointMode = void 0; - var EndpointMode; - (function(EndpointMode2) { - EndpointMode2["IPv4"] = "IPv4"; - EndpointMode2["IPv6"] = "IPv6"; - })(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); + exports.setConnectionTimeout = void 0; + var setConnectionTimeout = (request2, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return; + } + request2.on("socket", (socket) => { + if (socket.connecting) { + const timeoutId = setTimeout(() => { + request2.destroy(); + reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { + name: "TimeoutError" + })); + }, timeoutInMs); + socket.on("connect", () => { + clearTimeout(timeoutId); + }); + } + }); + }; + exports.setConnectionTimeout = setConnectionTimeout; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js -var require_EndpointModeConfigOptions = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-keep-alive.js +var require_set_socket_keep_alive = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-keep-alive.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; - var EndpointMode_1 = require_EndpointMode(); - exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; - exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; - exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4 + exports.setSocketKeepAlive = void 0; + var setSocketKeepAlive = (request2, { keepAlive, keepAliveMsecs }) => { + if (keepAlive !== true) { + return; + } + request2.on("socket", (socket) => { + socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); + }); }; + exports.setSocketKeepAlive = setSocketKeepAlive; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js -var require_getInstanceMetadataEndpoint = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js +var require_set_socket_timeout = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getInstanceMetadataEndpoint = void 0; - var node_config_provider_1 = require_dist_cjs39(); - var url_parser_1 = require_dist_cjs24(); - var Endpoint_1 = require_Endpoint(); - var EndpointConfigOptions_1 = require_EndpointConfigOptions(); - var EndpointMode_1 = require_EndpointMode(); - var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); - var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); - exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; - var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); - var getFromEndpointModeConfig = async () => { - const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; - default: - throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode_1.EndpointMode)}`); - } + exports.setSocketTimeout = void 0; + var setSocketTimeout = (request2, reject, timeoutInMs = 0) => { + request2.setTimeout(timeoutInMs, () => { + request2.destroy(); + reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); + }); }; + exports.setSocketTimeout = setSocketTimeout; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js -var require_getExtendedInstanceMetadataCredentials = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +var require_write_request_body = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getExtendedInstanceMetadataCredentials = void 0; - var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; - var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; - var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; - var getExtendedInstanceMetadataCredentials = (credentials, logger) => { + exports.writeRequestBody = void 0; + var stream_1 = require("stream"); + var MIN_WAIT_TIME = 1e3; + async function writeRequestBody(httpRequest, request2, maxContinueTimeoutMs = MIN_WAIT_TIME) { var _a; - const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); - const newExpiration = new Date(Date.now() + refreshInterval * 1e3); - logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + STATIC_STABILITY_DOC_URL); - const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; - return { - ...credentials, - ...originalExpiration ? { originalExpiration } : {}, - expiration: newExpiration - }; - }; - exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; + const headers = (_a = request2.headers) !== null && _a !== void 0 ? _a : {}; + const expect = headers["Expect"] || headers["expect"]; + let timeoutId = -1; + if (expect === "100-continue") { + await Promise.race([ + new Promise((resolve) => { + timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); + }), + new Promise((resolve) => { + httpRequest.on("continue", () => { + clearTimeout(timeoutId); + resolve(); + }); + }) + ]); + } + writeBody(httpRequest, request2.body); + } + exports.writeRequestBody = writeRequestBody; + function writeBody(httpRequest, body) { + if (body instanceof stream_1.Readable) { + body.pipe(httpRequest); + } else if (body) { + httpRequest.end(Buffer.from(body)); + } else { + httpRequest.end(); + } + } } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js -var require_staticStabilityProvider = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +var require_node_http_handler = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.staticStabilityProvider = void 0; - var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); - var staticStabilityProvider = (provider, options = {}) => { - const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; - let pastCredentials; - return async () => { - let credentials; - try { - credentials = await provider(); - if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); - } - } catch (e) { - if (pastCredentials) { - logger.warn("Credential renew failed: ", e); - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); + exports.NodeHttpHandler = exports.DEFAULT_REQUEST_TIMEOUT = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs40(); + var http_1 = require("http"); + var https_1 = require("https"); + var constants_1 = require_constants6(); + var get_transformed_headers_1 = require_get_transformed_headers(); + var set_connection_timeout_1 = require_set_connection_timeout(); + var set_socket_keep_alive_1 = require_set_socket_keep_alive(); + var set_socket_timeout_1 = require_set_socket_timeout(); + var write_request_body_1 = require_write_request_body(); + exports.DEFAULT_REQUEST_TIMEOUT = 0; + var NodeHttpHandler = class { + constructor(options) { + this.metadata = { handlerProtocol: "http/1.1" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options().then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }).catch(reject); } else { - throw e; + resolve(this.resolveDefaultConfig(options)); } + }); + } + resolveDefaultConfig(options) { + const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + requestTimeout: requestTimeout !== null && requestTimeout !== void 0 ? requestTimeout : socketTimeout, + httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) + }; + } + destroy() { + var _a, _b, _c, _d; + (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); + (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + } + async handle(request2, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; } - pastCredentials = credentials; - return credentials; - }; - }; - exports.staticStabilityProvider = staticStabilityProvider; - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js -var require_fromInstanceMetadata = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromInstanceMetadata = void 0; - var property_provider_1 = require_dist_cjs6(); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry3(); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - var staticStabilityProvider_1 = require_staticStabilityProvider(); - var IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; - var IMDS_TOKEN_PATH = "/latest/api/token"; - var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); - exports.fromInstanceMetadata = fromInstanceMetadata; - var getInstanceImdsProvider = (init) => { - let disableFetchToken = false; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries2, options) => { - const profile = (await (0, retry_1.retry)(async () => { - let profile2; - try { - profile2 = await getProfile(options); - } catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; + return new Promise((_resolve, _reject) => { + var _a, _b; + let writeRequestBodyPromise = void 0; + const resolve = async (arg) => { + await writeRequestBodyPromise; + _resolve(arg); + }; + const reject = async (arg) => { + await writeRequestBodyPromise; + _reject(arg); + }; + if (!this.config) { + throw new Error("Node HTTP request handler config is not resolved"); } - return profile2; - }, maxRetries2)).trim(); - return (0, retry_1.retry)(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(profile, options); - } catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + return; } - return creds; - }, maxRetries2); - }; - return async () => { - const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); - if (disableFetchToken) { - return getCredentials(maxRetries, { ...endpoint, timeout }); - } else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { - throw Object.assign(error, { - message: "EC2 Metadata token request returned error" - }); - } else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; + const isSSL = request2.protocol === "https:"; + const queryString = (0, querystring_builder_1.buildQueryString)(request2.query || {}); + let auth = void 0; + if (request2.username != null || request2.password != null) { + const username = (_a = request2.username) !== null && _a !== void 0 ? _a : ""; + const password = (_b = request2.password) !== null && _b !== void 0 ? _b : ""; + auth = `${username}:${password}`; + } + let path = request2.path; + if (queryString) { + path += `?${queryString}`; + } + if (request2.fragment) { + path += `#${request2.fragment}`; + } + const nodeHttpsOptions = { + headers: request2.headers, + host: request2.hostname, + method: request2.method, + path, + port: request2.port, + agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, + auth + }; + const requestFunc = isSSL ? https_1.request : http_1.request; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: res.statusCode || -1, + reason: res.statusMessage, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + body: res + }); + resolve({ response: httpResponse }); + }); + req.on("error", (err) => { + if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { + reject(Object.assign(err, { name: "TimeoutError" })); + } else { + reject(err); } - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - "x-aws-ec2-metadata-token": token - }, - timeout }); - } - }; - }; - var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_TOKEN_PATH, - method: "PUT", - headers: { - "x-aws-ec2-metadata-token-ttl-seconds": "21600" - } - }); - var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); - var getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_PATH + profile - })).toString()); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); + (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); + (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.requestTimeout); + if (abortSignal) { + abortSignal.onabort = () => { + req.abort(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + const httpAgent = nodeHttpsOptions.agent; + if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { + (0, set_socket_keep_alive_1.setSocketKeepAlive)(req, { + keepAlive: httpAgent.keepAlive, + keepAliveMsecs: httpAgent.keepAliveMsecs + }); + } + writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request2, this.config.requestTimeout); + }); } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); }; + exports.NodeHttpHandler = NodeHttpHandler; } }); -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/types.js -var require_types6 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/types.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - } -}); - -// ../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js -var require_dist_cjs40 = __commonJS({ - "../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromContainerMetadata(), exports); - tslib_1.__exportStar(require_fromInstanceMetadata(), exports); - tslib_1.__exportStar(require_RemoteProviderInit(), exports); - tslib_1.__exportStar(require_types6(), exports); - var httpRequest_1 = require_httpRequest2(); - Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function() { - return httpRequest_1.httpRequest; - } }); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - Object.defineProperty(exports, "getInstanceMetadataEndpoint", { enumerable: true, get: function() { - return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; - } }); - } -}); - -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js -var require_resolveCredentialSource = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-pool.js +var require_node_http2_connection_pool = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-pool.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveCredentialSource = void 0; - var credential_provider_env_1 = require_dist_cjs37(); - var credential_provider_imds_1 = require_dist_cjs40(); - var property_provider_1 = require_dist_cjs6(); - var resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } else { - throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`); + exports.NodeHttp2ConnectionPool = void 0; + var NodeHttp2ConnectionPool = class { + constructor(sessions) { + this.sessions = []; + this.sessions = sessions !== null && sessions !== void 0 ? sessions : []; } - }; - exports.resolveCredentialSource = resolveCredentialSource; - } -}); - -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js -var require_resolveAssumeRoleCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); - var resolveCredentialSource_1 = require_resolveCredentialSource(); - var resolveProfileData_1 = require_resolveProfileData(); - var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); - exports.isAssumeRoleProfile = isAssumeRoleProfile; - var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; - var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; - var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); + poll() { + if (this.sessions.length > 0) { + return this.sessions.shift(); + } } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), false); + offerLast(session) { + this.sessions.push(session); } - const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true - }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: data.external_id - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); + contains(session) { + return this.sessions.includes(session); + } + remove(session) { + this.sessions = this.sessions.filter((s) => s !== session); + } + [Symbol.iterator]() { + return this.sessions[Symbol.iterator](); + } + destroy(connection) { + for (const session of this.sessions) { + if (session === connection) { + if (!session.destroyed) { + session.destroy(); + } + } } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); }; - exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + exports.NodeHttp2ConnectionPool = NodeHttp2ConnectionPool; } }); -// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js -var require_getValidatedProcessCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-manager.js +var require_node_http2_connection_manager = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-connection-manager.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.getValidatedProcessCredentials = void 0; - var getValidatedProcessCredentials = (profileName, data) => { - if (data.Version !== 1) { - throw Error(`Profile ${profileName} credential_process did not return Version 1.`); + exports.NodeHttp2ConnectionManager = void 0; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + var http2_1 = tslib_1.__importDefault(require("http2")); + var node_http2_connection_pool_1 = require_node_http2_connection_pool(); + var NodeHttp2ConnectionManager = class { + constructor(config) { + this.sessionCache = /* @__PURE__ */ new Map(); + this.config = config; + if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { + throw new RangeError("maxConcurrency must be greater than zero."); + } } - if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { - throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); + lease(requestContext, connectionConfiguration) { + const url2 = this.getUrlString(requestContext); + const existingPool = this.sessionCache.get(url2); + if (existingPool) { + const existingSession = existingPool.poll(); + if (existingSession && !this.config.disableConcurrency) { + return existingSession; + } + } + const session = http2_1.default.connect(url2); + if (this.config.maxConcurrency) { + session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { + if (err) { + throw new Error("Fail to set maxConcurrentStreams to " + this.config.maxConcurrency + "when creating new session for " + requestContext.destination.toString()); + } + }); + } + session.unref(); + const destroySessionCb = () => { + session.destroy(); + this.deleteSession(url2, session); + }; + session.on("goaway", destroySessionCb); + session.on("error", destroySessionCb); + session.on("frameError", destroySessionCb); + session.on("close", () => this.deleteSession(url2, session)); + if (connectionConfiguration.requestTimeout) { + session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb); + } + const connectionPool = this.sessionCache.get(url2) || new node_http2_connection_pool_1.NodeHttp2ConnectionPool(); + connectionPool.offerLast(session); + this.sessionCache.set(url2, connectionPool); + return session; } - if (data.Expiration) { - const currentTime = /* @__PURE__ */ new Date(); - const expireTime = new Date(data.Expiration); - if (expireTime < currentTime) { - throw Error(`Profile ${profileName} credential_process returned expired credentials.`); + deleteSession(authority, session) { + const existingConnectionPool = this.sessionCache.get(authority); + if (!existingConnectionPool) { + return; + } + if (!existingConnectionPool.contains(session)) { + return; } + existingConnectionPool.remove(session); + this.sessionCache.set(authority, existingConnectionPool); + } + release(requestContext, session) { + var _a; + const cacheKey = this.getUrlString(requestContext); + (_a = this.sessionCache.get(cacheKey)) === null || _a === void 0 ? void 0 : _a.offerLast(session); + } + destroy() { + for (const [key, connectionPool] of this.sessionCache) { + for (const session of connectionPool) { + if (!session.destroyed) { + session.destroy(); + } + connectionPool.remove(session); + } + this.sessionCache.delete(key); + } + } + setMaxConcurrentStreams(maxConcurrentStreams) { + if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { + throw new RangeError("maxConcurrentStreams must be greater than zero."); + } + this.config.maxConcurrency = maxConcurrentStreams; + } + setDisableConcurrentStreams(disableConcurrentStreams) { + this.config.disableConcurrency = disableConcurrentStreams; + } + getUrlString(request2) { + return request2.destination.toString(); } - return { - accessKeyId: data.AccessKeyId, - secretAccessKey: data.SecretAccessKey, - ...data.SessionToken && { sessionToken: data.SessionToken }, - ...data.Expiration && { expiration: new Date(data.Expiration) } - }; }; - exports.getValidatedProcessCredentials = getValidatedProcessCredentials; + exports.NodeHttp2ConnectionManager = NodeHttp2ConnectionManager; } }); -// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js -var require_resolveProcessCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +var require_node_http2_handler = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveProcessCredentials = void 0; - var property_provider_1 = require_dist_cjs6(); - var child_process_1 = require("child_process"); - var util_1 = require("util"); - var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); - var resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile["credential_process"]; - if (credentialProcess !== void 0) { - const execPromise = (0, util_1.promisify)(child_process_1.exec); - try { - const { stdout } = await execPromise(credentialProcess); - let data; - try { - data = JSON.parse(stdout.trim()); - } catch (_a) { - throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); + exports.NodeHttp2Handler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs40(); + var http2_1 = require("http2"); + var get_transformed_headers_1 = require_get_transformed_headers(); + var node_http2_connection_manager_1 = require_node_http2_connection_manager(); + var write_request_body_1 = require_write_request_body(); + var NodeHttp2Handler = class { + constructor(options) { + this.metadata = { handlerProtocol: "h2" }; + this.connectionManager = new node_http2_connection_manager_1.NodeHttp2ConnectionManager({}); + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options().then((opts) => { + resolve(opts || {}); + }).catch(reject); + } else { + resolve(options || {}); + } + }); + } + destroy() { + this.connectionManager.destroy(); + } + async handle(request2, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false); + if (this.config.maxConcurrentStreams) { + this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams); + } + } + const { requestTimeout, disableConcurrentStreams } = this.config; + return new Promise((_resolve, _reject) => { + var _a, _b, _c; + let fulfilled = false; + let writeRequestBodyPromise = void 0; + const resolve = async (arg) => { + await writeRequestBodyPromise; + _resolve(arg); + }; + const reject = async (arg) => { + await writeRequestBodyPromise; + _reject(arg); + }; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + fulfilled = true; + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + return; + } + const { hostname, method, port, protocol, query } = request2; + let auth = ""; + if (request2.username != null || request2.password != null) { + const username = (_a = request2.username) !== null && _a !== void 0 ? _a : ""; + const password = (_b = request2.password) !== null && _b !== void 0 ? _b : ""; + auth = `${username}:${password}@`; + } + const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; + const requestContext = { destination: new URL(authority) }; + const session = this.connectionManager.lease(requestContext, { + requestTimeout: (_c = this.config) === null || _c === void 0 ? void 0 : _c.sessionTimeout, + disableConcurrentStreams: disableConcurrentStreams || false + }); + const rejectWithDestroy = (err) => { + if (disableConcurrentStreams) { + this.destroySession(session); } - return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); - } catch (error) { - throw new property_provider_1.CredentialsProviderError(error.message); + fulfilled = true; + reject(err); + }; + const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + let path = request2.path; + if (queryString) { + path += `?${queryString}`; } - } else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); + if (request2.fragment) { + path += `#${request2.fragment}`; + } + const req = session.request({ + ...request2.headers, + [http2_1.constants.HTTP2_HEADER_PATH]: path, + [http2_1.constants.HTTP2_HEADER_METHOD]: method + }); + session.ref(); + req.on("response", (headers) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: headers[":status"] || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + body: req + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (disableConcurrentStreams) { + session.close(); + this.connectionManager.deleteSession(authority, session); + } + }); + if (requestTimeout) { + req.setTimeout(requestTimeout, () => { + req.close(); + const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); + timeoutError.name = "TimeoutError"; + rejectWithDestroy(timeoutError); + }); + } + if (abortSignal) { + abortSignal.onabort = () => { + req.close(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + rejectWithDestroy(abortError); + }; + } + req.on("frameError", (type, code, id) => { + rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); + }); + req.on("error", rejectWithDestroy); + req.on("aborted", () => { + rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); + }); + req.on("close", () => { + session.unref(); + if (disableConcurrentStreams) { + session.destroy(); + } + if (!fulfilled) { + rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response")); + } + }); + writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request2, requestTimeout); + }); + } + destroySession(session) { + if (!session.destroyed) { + session.destroy(); } - } else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); } }; - exports.resolveProcessCredentials = resolveProcessCredentials; + exports.NodeHttp2Handler = NodeHttp2Handler; } }); -// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js -var require_fromProcess = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js +var require_collector = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.fromProcess = void 0; - var shared_ini_file_loader_1 = require_dist_cjs38(); - var resolveProcessCredentials_1 = require_resolveProcessCredentials(); - var fromProcess = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); + exports.Collector = void 0; + var stream_1 = require("stream"); + var Collector = class extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; + } + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } }; - exports.fromProcess = fromProcess; - } -}); - -// ../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs41 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_fromProcess(), exports); + exports.Collector = Collector; } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js -var require_resolveProcessCredentials2 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js +var require_stream_collector = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveProcessCredentials = exports.isProcessProfile = void 0; - var credential_provider_process_1 = require_dist_cjs41(); - var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; - exports.isProcessProfile = isProcessProfile; - var resolveProcessCredentials = async (options, profile) => (0, credential_provider_process_1.fromProcess)({ - ...options, - profile - })(); - exports.resolveProcessCredentials = resolveProcessCredentials; + exports.streamCollector = void 0; + var collector_1 = require_collector(); + var streamCollector = (stream) => new Promise((resolve, reject) => { + const collector = new collector_1.Collector(); + stream.pipe(collector); + stream.on("error", (err) => { + collector.end(); + reject(err); + }); + collector.on("error", reject); + collector.on("finish", function() { + const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); + resolve(bytes); + }); + }); + exports.streamCollector = streamCollector; } }); -// ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js -var require_isSsoProfile = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js +var require_dist_cjs41 = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.isSsoProfile = void 0; - var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"); - exports.isSsoProfile = isSsoProfile; + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_node_http_handler(), exports); + tslib_1.__exportStar(require_node_http2_handler(), exports); + tslib_1.__exportStar(require_stream_collector(), exports); } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js -var require_EndpointParameters3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js"(exports) { +// ../../../node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js +var require_calculateBodyLength = __commonJS({ + "../../../node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.resolveClientEndpointParameters = void 0; - var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssoportal" - }; + exports.calculateBodyLength = void 0; + var fs_1 = require("fs"); + var calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === "string") { + return Buffer.from(body).length; + } else if (typeof body.byteLength === "number") { + return body.byteLength; + } else if (typeof body.size === "number") { + return body.size; + } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { + return (0, fs_1.lstatSync)(body.path).size; + } else if (typeof body.fd === "number") { + return (0, fs_1.fstatSync)(body.fd).size; + } + throw new Error(`Body Length computation failed for ${body}`); }; - exports.resolveClientEndpointParameters = resolveClientEndpointParameters; + exports.calculateBodyLength = calculateBodyLength; } }); -// ../../../node_modules/@aws-sdk/client-sso/package.json -var require_package3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/package.json"(exports, module2) { - module2.exports = { - name: "@aws-sdk/client-sso", - description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - version: "3.363.0", - scripts: { - build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:docs": "typedoc", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - clean: "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "generate:client": "node ../../scripts/generate-clients/single-service --solo sso" - }, - main: "./dist-cjs/index.js", - types: "./dist-types/index.d.ts", - module: "./dist-es/index.js", - sideEffects: false, - dependencies: { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.363.0", - "@aws-sdk/middleware-logger": "3.363.0", - "@aws-sdk/middleware-recursion-detection": "3.363.0", - "@aws-sdk/middleware-user-agent": "3.363.0", - "@aws-sdk/types": "3.357.0", - "@aws-sdk/util-endpoints": "3.357.0", - "@aws-sdk/util-user-agent-browser": "3.363.0", - "@aws-sdk/util-user-agent-node": "3.363.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.1", - "@smithy/middleware-retry": "^1.0.2", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", - "@smithy/protocol-http": "^1.0.1", - "@smithy/smithy-client": "^1.0.3", - "@smithy/types": "^1.0.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.2", - "@smithy/util-utf8": "^1.0.1", - tslib: "^2.5.0" - }, - devDependencies: { - "@aws-sdk/service-client-documentation-generator": "3.310.0", - "@smithy/service-client-documentation-generator": "^1.0.1", - "@tsconfig/node14": "1.0.3", - "@types/node": "^14.14.31", - concurrently: "7.0.0", - "downlevel-dts": "0.10.1", - rimraf: "3.0.2", - typedoc: "0.23.23", - typescript: "~4.9.5" - }, - engines: { - node: ">=14.0.0" - }, - typesVersions: { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - files: [ - "dist-*/**" - ], - author: { - name: "AWS SDK for JavaScript Team", - url: "https://aws.amazon.com/javascript/" - }, - license: "Apache-2.0", - browser: { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso", - repository: { - type: "git", - url: "https://github.com/aws/aws-sdk-js-v3.git", - directory: "clients/client-sso" - } - }; +// ../../../node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js +var require_dist_cjs42 = __commonJS({ + "../../../node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); + tslib_1.__exportStar(require_calculateBodyLength(), exports); } }); @@ -14818,12 +14756,12 @@ var require_is_crt_available = __commonJS({ }); // ../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js -var require_dist_cjs42 = __commonJS({ +var require_dist_cjs43 = __commonJS({ "../../../node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; - var node_config_provider_1 = require_dist_cjs39(); + var node_config_provider_1 = require_dist_cjs36(); var os_1 = require("os"); var process_1 = require("process"); var is_crt_available_1 = require_is_crt_available(); @@ -14865,89 +14803,54 @@ var require_dist_cjs42 = __commonJS({ } }); -// ../../../node_modules/@smithy/hash-node/dist-cjs/index.js -var require_dist_cjs43 = __commonJS({ - "../../../node_modules/@smithy/hash-node/dist-cjs/index.js"(exports) { +// ../../../node_modules/@aws-sdk/util-base64/dist-cjs/fromBase64.js +var require_fromBase64 = __commonJS({ + "../../../node_modules/@aws-sdk/util-base64/dist-cjs/fromBase64.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.Hash = void 0; - var util_buffer_from_1 = require_dist_cjs12(); - var util_utf8_1 = require_dist_cjs13(); - var buffer_1 = require("buffer"); - var crypto_1 = require("crypto"); - var Hash = class { - constructor(algorithmIdentifier, secret) { - this.algorithmIdentifier = algorithmIdentifier; - this.secret = secret; - this.reset(); - } - update(toHash, encoding) { - this.hash.update((0, util_utf8_1.toUint8Array)(castSourceData(toHash, encoding))); - } - digest() { - return Promise.resolve(this.hash.digest()); + exports.fromBase64 = void 0; + var util_buffer_from_1 = require_dist_cjs21(); + var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; + var fromBase64 = (input) => { + if (input.length * 3 % 4 !== 0) { + throw new TypeError(`Incorrect padding on base64 string.`); } - reset() { - this.hash = this.secret ? (0, crypto_1.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, crypto_1.createHash)(this.algorithmIdentifier); + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(`Invalid base64 string.`); } + const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); }; - exports.Hash = Hash; - function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === "string") { - return (0, util_buffer_from_1.fromString)(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return (0, util_buffer_from_1.fromArrayBuffer)(toCast); - } + exports.fromBase64 = fromBase64; } }); -// ../../../node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js -var require_calculateBodyLength = __commonJS({ - "../../../node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js"(exports) { +// ../../../node_modules/@aws-sdk/util-base64/dist-cjs/toBase64.js +var require_toBase64 = __commonJS({ + "../../../node_modules/@aws-sdk/util-base64/dist-cjs/toBase64.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.calculateBodyLength = void 0; - var fs_1 = require("fs"); - var calculateBodyLength = (body) => { - if (!body) { - return 0; - } - if (typeof body === "string") { - return Buffer.from(body).length; - } else if (typeof body.byteLength === "number") { - return body.byteLength; - } else if (typeof body.size === "number") { - return body.size; - } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { - return (0, fs_1.lstatSync)(body.path).size; - } else if (typeof body.fd === "number") { - return (0, fs_1.fstatSync)(body.fd).size; - } - throw new Error(`Body Length computation failed for ${body}`); - }; - exports.calculateBodyLength = calculateBodyLength; + exports.toBase64 = void 0; + var util_buffer_from_1 = require_dist_cjs21(); + var toBase64 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); + exports.toBase64 = toBase64; } }); -// ../../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/util-base64/dist-cjs/index.js var require_dist_cjs44 = __commonJS({ - "../../../node_modules/@smithy/util-body-length-node/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-base64/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); - tslib_1.__exportStar(require_calculateBodyLength(), exports); + tslib_1.__exportStar(require_fromBase64(), exports); + tslib_1.__exportStar(require_toBase64(), exports); } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js var require_ruleset = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ruleSet = void 0; @@ -14975,13 +14878,13 @@ var require_ruleset = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js var require_endpointResolver = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultEndpointResolver = void 0; - var util_endpoints_1 = require_dist_cjs18(); + var util_endpoints_1 = require_dist_cjs27(); var ruleset_1 = require_ruleset(); var defaultEndpointResolver = (endpointParams, context = {}) => { return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { @@ -14993,16 +14896,16 @@ var require_endpointResolver = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js var require_runtimeConfig_shared = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); - var util_utf8_1 = require_dist_cjs13(); + var smithy_client_1 = require_dist_cjs30(); + var url_parser_1 = require_dist_cjs7(); + var util_base64_1 = require_dist_cjs44(); + var util_utf8_1 = require_dist_cjs22(); var endpointResolver_1 = require_endpointResolver(); var getRuntimeConfig = (config) => ({ apiVersion: "2019-06-10", @@ -15020,9 +14923,9 @@ var require_runtimeConfig_shared = __commonJS({ } }); -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +// ../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js var require_constants7 = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js"(exports) { + "../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; @@ -15035,9 +14938,9 @@ var require_constants7 = __commonJS({ } }); -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +// ../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js var require_defaultsModeConfig = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; @@ -15055,16 +14958,16 @@ var require_defaultsModeConfig = __commonJS({ } }); -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +// ../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js var require_resolveDefaultsModeConfig = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveDefaultsModeConfig = void 0; - var config_resolver_1 = require_dist_cjs21(); - var credential_provider_imds_1 = require_dist_cjs40(); - var node_config_provider_1 = require_dist_cjs39(); - var property_provider_1 = require_dist_cjs6(); + var config_resolver_1 = require_dist_cjs3(); + var credential_provider_imds_1 = require_dist_cjs37(); + var node_config_provider_1 = require_dist_cjs36(); + var property_provider_1 = require_dist_cjs16(); var constants_1 = require_constants7(); var defaultsModeConfig_1 = require_defaultsModeConfig(); var resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, property_provider_1.memoize)(async () => { @@ -15116,9 +15019,9 @@ var require_resolveDefaultsModeConfig = __commonJS({ } }); -// ../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js var require_dist_cjs45 = __commonJS({ - "../../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -15126,26 +15029,26 @@ var require_dist_cjs45 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js var require_runtimeConfig = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package3()); - var util_user_agent_node_1 = require_dist_cjs42(); - var config_resolver_1 = require_dist_cjs21(); - var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); - var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var config_resolver_1 = require_dist_cjs3(); + var hash_node_1 = require_dist_cjs39(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs36(); + var node_http_handler_1 = require_dist_cjs41(); + var util_body_length_node_1 = require_dist_cjs42(); + var util_retry_1 = require_dist_cjs14(); + var util_user_agent_node_1 = require_dist_cjs43(); var runtimeConfig_shared_1 = require_runtimeConfig_shared(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs30(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -15175,21 +15078,21 @@ var require_runtimeConfig = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js var require_SSOClient = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOClient = exports.__Client = void 0; - var middleware_host_header_1 = require_dist_cjs3(); - var middleware_logger_1 = require_dist_cjs4(); - var middleware_recursion_detection_1 = require_dist_cjs5(); - var middleware_user_agent_1 = require_dist_cjs19(); - var config_resolver_1 = require_dist_cjs21(); - var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_host_header_1 = require_dist_cjs10(); + var middleware_logger_1 = require_dist_cjs11(); + var middleware_recursion_detection_1 = require_dist_cjs12(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_user_agent_1 = require_dist_cjs28(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); @@ -15221,13 +15124,13 @@ var require_SSOClient = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js var require_SSOServiceException = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { return smithy_client_1.ServiceException; } }); @@ -15241,13 +15144,13 @@ var require_SSOServiceException = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js var require_models_02 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var SSOServiceException_1 = require_SSOServiceException(); var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { constructor(opts) { @@ -15335,14 +15238,14 @@ var require_models_02 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js var require_Aws_restJson1 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0; - var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); + var protocol_http_1 = require_dist_cjs33(); var models_0_1 = require_models_02(); var SSOServiceException_1 = require_SSOServiceException(); var se_GetRoleCredentialsCommand = async (input, context) => { @@ -15571,7 +15474,7 @@ var require_Aws_restJson1 = __commonJS({ const contents = (0, smithy_client_1.map)({ $metadata: deserializeMetadata(output) }); - await (0, smithy_client_1.collectBody)(output.body, context); + await collectBody(output.body, context); return contents; }; exports.de_LogoutCommand = de_LogoutCommand; @@ -15659,7 +15562,13 @@ var require_Aws_restJson1 = __commonJS({ extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }); - var collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { @@ -15704,15 +15613,15 @@ var require_Aws_restJson1 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js var require_GetRoleCredentialsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetRoleCredentialsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -15759,15 +15668,15 @@ var require_GetRoleCredentialsCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js var require_ListAccountRolesCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListAccountRolesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -15814,15 +15723,15 @@ var require_ListAccountRolesCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js var require_ListAccountsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListAccountsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -15869,15 +15778,15 @@ var require_ListAccountsCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js var require_LogoutCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogoutCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -15924,13 +15833,13 @@ var require_LogoutCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js var require_SSO = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSO = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); var ListAccountsCommand_1 = require_ListAccountsCommand(); @@ -15949,9 +15858,9 @@ var require_SSO = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js var require_commands = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -15962,17 +15871,17 @@ var require_commands = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js var require_Interfaces = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js var require_ListAccountRolesPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.paginateListAccountRoles = void 0; @@ -16004,9 +15913,9 @@ var require_ListAccountRolesPaginator = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js var require_ListAccountsPaginator = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.paginateListAccounts = void 0; @@ -16038,9 +15947,9 @@ var require_ListAccountsPaginator = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js var require_pagination3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -16050,9 +15959,9 @@ var require_pagination3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js var require_models = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -16060,9 +15969,9 @@ var require_models = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/index.js var require_dist_cjs46 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOServiceException = void 0; @@ -16079,9 +15988,9 @@ var require_dist_cjs46 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js var require_constants8 = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0; @@ -16090,9 +15999,9 @@ var require_constants8 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js var require_EndpointParameters4 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveClientEndpointParameters = void 0; @@ -16108,13 +16017,13 @@ var require_EndpointParameters4 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/package.json +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/package.json var require_package4 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/package.json"(exports, module2) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports, module2) { module2.exports = { name: "@aws-sdk/client-sso-oidc", description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native", - version: "3.363.0", + version: "3.347.0", scripts: { build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "tsc -p tsconfig.cjs.json", @@ -16134,41 +16043,40 @@ var require_package4 = __commonJS({ dependencies: { "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.363.0", - "@aws-sdk/middleware-logger": "3.363.0", - "@aws-sdk/middleware-recursion-detection": "3.363.0", - "@aws-sdk/middleware-user-agent": "3.363.0", - "@aws-sdk/types": "3.357.0", - "@aws-sdk/util-endpoints": "3.357.0", - "@aws-sdk/util-user-agent-browser": "3.363.0", - "@aws-sdk/util-user-agent-node": "3.363.0", - "@smithy/config-resolver": "^1.0.1", - "@smithy/fetch-http-handler": "^1.0.1", - "@smithy/hash-node": "^1.0.1", - "@smithy/invalid-dependency": "^1.0.1", - "@smithy/middleware-content-length": "^1.0.1", - "@smithy/middleware-endpoint": "^1.0.1", - "@smithy/middleware-retry": "^1.0.2", - "@smithy/middleware-serde": "^1.0.1", - "@smithy/middleware-stack": "^1.0.1", - "@smithy/node-config-provider": "^1.0.1", - "@smithy/node-http-handler": "^1.0.2", + "@aws-sdk/config-resolver": "3.347.0", + "@aws-sdk/fetch-http-handler": "3.347.0", + "@aws-sdk/hash-node": "3.347.0", + "@aws-sdk/invalid-dependency": "3.347.0", + "@aws-sdk/middleware-content-length": "3.347.0", + "@aws-sdk/middleware-endpoint": "3.347.0", + "@aws-sdk/middleware-host-header": "3.347.0", + "@aws-sdk/middleware-logger": "3.347.0", + "@aws-sdk/middleware-recursion-detection": "3.347.0", + "@aws-sdk/middleware-retry": "3.347.0", + "@aws-sdk/middleware-serde": "3.347.0", + "@aws-sdk/middleware-stack": "3.347.0", + "@aws-sdk/middleware-user-agent": "3.347.0", + "@aws-sdk/node-config-provider": "3.347.0", + "@aws-sdk/node-http-handler": "3.347.0", + "@aws-sdk/smithy-client": "3.347.0", + "@aws-sdk/types": "3.347.0", + "@aws-sdk/url-parser": "3.347.0", + "@aws-sdk/util-base64": "3.310.0", + "@aws-sdk/util-body-length-browser": "3.310.0", + "@aws-sdk/util-body-length-node": "3.310.0", + "@aws-sdk/util-defaults-mode-browser": "3.347.0", + "@aws-sdk/util-defaults-mode-node": "3.347.0", + "@aws-sdk/util-endpoints": "3.347.0", + "@aws-sdk/util-retry": "3.347.0", + "@aws-sdk/util-user-agent-browser": "3.347.0", + "@aws-sdk/util-user-agent-node": "3.347.0", + "@aws-sdk/util-utf8": "3.310.0", "@smithy/protocol-http": "^1.0.1", - "@smithy/smithy-client": "^1.0.3", "@smithy/types": "^1.0.0", - "@smithy/url-parser": "^1.0.1", - "@smithy/util-base64": "^1.0.1", - "@smithy/util-body-length-browser": "^1.0.1", - "@smithy/util-body-length-node": "^1.0.1", - "@smithy/util-defaults-mode-browser": "^1.0.1", - "@smithy/util-defaults-mode-node": "^1.0.1", - "@smithy/util-retry": "^1.0.2", - "@smithy/util-utf8": "^1.0.1", tslib: "^2.5.0" }, devDependencies: { "@aws-sdk/service-client-documentation-generator": "3.310.0", - "@smithy/service-client-documentation-generator": "^1.0.1", "@tsconfig/node14": "1.0.3", "@types/node": "^14.14.31", concurrently: "7.0.0", @@ -16211,9 +16119,9 @@ var require_package4 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js var require_ruleset2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ruleSet = void 0; @@ -16241,13 +16149,13 @@ var require_ruleset2 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js var require_endpointResolver2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultEndpointResolver = void 0; - var util_endpoints_1 = require_dist_cjs18(); + var util_endpoints_1 = require_dist_cjs27(); var ruleset_1 = require_ruleset2(); var defaultEndpointResolver = (endpointParams, context = {}) => { return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { @@ -16259,16 +16167,16 @@ var require_endpointResolver2 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js var require_runtimeConfig_shared2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); - var util_utf8_1 = require_dist_cjs13(); + var smithy_client_1 = require_dist_cjs30(); + var url_parser_1 = require_dist_cjs7(); + var util_base64_1 = require_dist_cjs44(); + var util_utf8_1 = require_dist_cjs22(); var endpointResolver_1 = require_endpointResolver2(); var getRuntimeConfig = (config) => ({ apiVersion: "2019-06-10", @@ -16286,26 +16194,26 @@ var require_runtimeConfig_shared2 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js var require_runtimeConfig2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package4()); - var util_user_agent_node_1 = require_dist_cjs42(); - var config_resolver_1 = require_dist_cjs21(); - var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); - var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var config_resolver_1 = require_dist_cjs3(); + var hash_node_1 = require_dist_cjs39(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs36(); + var node_http_handler_1 = require_dist_cjs41(); + var util_body_length_node_1 = require_dist_cjs42(); + var util_retry_1 = require_dist_cjs14(); + var util_user_agent_node_1 = require_dist_cjs43(); var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs30(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -16335,21 +16243,21 @@ var require_runtimeConfig2 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js var require_SSOOIDCClient = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOOIDCClient = exports.__Client = void 0; - var middleware_host_header_1 = require_dist_cjs3(); - var middleware_logger_1 = require_dist_cjs4(); - var middleware_recursion_detection_1 = require_dist_cjs5(); - var middleware_user_agent_1 = require_dist_cjs19(); - var config_resolver_1 = require_dist_cjs21(); - var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_host_header_1 = require_dist_cjs10(); + var middleware_logger_1 = require_dist_cjs11(); + var middleware_recursion_detection_1 = require_dist_cjs12(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_user_agent_1 = require_dist_cjs28(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); @@ -16381,13 +16289,13 @@ var require_SSOOIDCClient = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js var require_SSOOIDCServiceException = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOOIDCServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { return smithy_client_1.ServiceException; } }); @@ -16401,9 +16309,9 @@ var require_SSOOIDCServiceException = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js var require_models_03 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidClientMetadataException = exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidGrantException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0; @@ -16591,14 +16499,14 @@ var require_models_03 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js var require_Aws_restJson12 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.de_StartDeviceAuthorizationCommand = exports.de_RegisterClientCommand = exports.de_CreateTokenCommand = exports.se_StartDeviceAuthorizationCommand = exports.se_RegisterClientCommand = exports.se_CreateTokenCommand = void 0; - var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); + var protocol_http_1 = require_dist_cjs33(); var models_0_1 = require_models_03(); var SSOOIDCServiceException_1 = require_SSOOIDCServiceException(); var se_CreateTokenCommand = async (input, context) => { @@ -17017,7 +16925,13 @@ var require_Aws_restJson12 = __commonJS({ extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }); - var collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { return JSON.parse(encoded); @@ -17061,15 +16975,15 @@ var require_Aws_restJson12 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js var require_CreateTokenCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateTokenCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -17115,15 +17029,15 @@ var require_CreateTokenCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js var require_RegisterClientCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RegisterClientCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -17169,15 +17083,15 @@ var require_RegisterClientCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js var require_StartDeviceAuthorizationCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StartDeviceAuthorizationCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -17223,13 +17137,13 @@ var require_StartDeviceAuthorizationCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js var require_SSOOIDC = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOOIDC = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var CreateTokenCommand_1 = require_CreateTokenCommand(); var RegisterClientCommand_1 = require_RegisterClientCommand(); var StartDeviceAuthorizationCommand_1 = require_StartDeviceAuthorizationCommand(); @@ -17246,9 +17160,9 @@ var require_SSOOIDC = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js var require_commands2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -17258,9 +17172,9 @@ var require_commands2 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js var require_models2 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -17268,9 +17182,9 @@ var require_models2 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js var require_dist_cjs47 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SSOOIDCServiceException = void 0; @@ -17286,9 +17200,9 @@ var require_dist_cjs47 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js var require_getSsoOidcClient = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSsoOidcClient = void 0; @@ -17306,9 +17220,9 @@ var require_getSsoOidcClient = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js var require_getNewSsoOidcToken = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getNewSsoOidcToken = void 0; @@ -17327,13 +17241,13 @@ var require_getNewSsoOidcToken = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js var require_validateTokenExpiry = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateTokenExpiry = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var constants_1 = require_constants8(); var validateTokenExpiry = (token) => { if (token.expiration && token.expiration.getTime() < Date.now()) { @@ -17344,13 +17258,13 @@ var require_validateTokenExpiry = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js var require_validateTokenKey = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateTokenKey = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var constants_1 = require_constants8(); var validateTokenKey = (key, value, forRefresh = false) => { if (typeof value === "undefined") { @@ -17361,13 +17275,13 @@ var require_validateTokenKey = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js var require_writeSSOTokenToFile = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.writeSSOTokenToFile = void 0; - var shared_ini_file_loader_1 = require_dist_cjs38(); + var shared_ini_file_loader_1 = require_dist_cjs35(); var fs_1 = require("fs"); var { writeFile } = fs_1.promises; var writeSSOTokenToFile = (id, ssoToken) => { @@ -17379,14 +17293,14 @@ var require_writeSSOTokenToFile = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js var require_fromSso = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromSso = void 0; - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs35(); var constants_1 = require_constants8(); var getNewSsoOidcToken_1 = require_getNewSsoOidcToken(); var validateTokenExpiry_1 = require_validateTokenExpiry(); @@ -17463,13 +17377,13 @@ var require_fromSso = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js var require_fromStatic3 = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromStatic = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var fromStatic = ({ token }) => async () => { if (!token || !token.token) { throw new property_provider_1.TokenProviderError(`Please pass a valid token to fromStatic`, false); @@ -17480,13 +17394,13 @@ var require_fromStatic3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js var require_nodeProvider = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.nodeProvider = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var fromSso_1 = require_fromSso(); var nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => { throw new property_provider_1.TokenProviderError("Could not load token from any providers", false); @@ -17495,9 +17409,9 @@ var require_nodeProvider = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/index.js var require_dist_cjs48 = __commonJS({ - "../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -17507,16 +17421,16 @@ var require_dist_cjs48 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js var require_resolveSSOCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveSSOCredentials = void 0; var client_sso_1 = require_dist_cjs46(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs35(); var token_providers_1 = require_dist_cjs48(); - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; var SHOULD_FAIL_CREDENTIAL_CHAIN = false; var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile }) => { @@ -17564,13 +17478,13 @@ var require_resolveSSOCredentials = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js var require_validateSsoProfile = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateSsoProfile = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var validateSsoProfile = (profile) => { const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { @@ -17583,14 +17497,14 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht } }); -// ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js var require_fromSSO = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromSSO = void 0; - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs35(); var isSsoProfile_1 = require_isSsoProfile(); var resolveSSOCredentials_1 = require_resolveSSOCredentials(); var validateSsoProfile_1 = require_validateSsoProfile(); @@ -17647,17 +17561,17 @@ var require_fromSSO = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js var require_types7 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// ../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js var require_dist_cjs49 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -17668,9 +17582,9 @@ var require_dist_cjs49 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js var require_resolveSsoCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveSsoCredentials = exports.isSsoProfile = void 0; @@ -17693,9 +17607,9 @@ var require_resolveSsoCredentials = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js var require_resolveStaticCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; @@ -17716,7 +17630,7 @@ var require_fromWebToken = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromWebToken = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var fromWebToken = (init) => () => { const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; if (!roleAssumerWithWebIdentity) { @@ -17742,13 +17656,17 @@ var require_fromTokenFile = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromTokenFile = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var fs_1 = require("fs"); var fromWebToken_1 = require_fromWebToken(); var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; var ENV_ROLE_ARN = "AWS_ROLE_ARN"; var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; var fromTokenFile = (init = {}) => async () => { + return resolveTokenFile(init); + }; + exports.fromTokenFile = fromTokenFile; + var resolveTokenFile = (init) => { var _a, _b, _c; const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; @@ -17763,7 +17681,6 @@ var require_fromTokenFile = __commonJS({ roleSessionName })(); }; - exports.fromTokenFile = fromTokenFile; } }); @@ -17778,9 +17695,9 @@ var require_dist_cjs50 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js var require_resolveWebIdentityCredentials = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; @@ -17797,13 +17714,13 @@ var require_resolveWebIdentityCredentials = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js var require_resolveProfileData = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resolveProfileData = void 0; - var property_provider_1 = require_dist_cjs6(); + var property_provider_1 = require_dist_cjs16(); var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); var resolveProcessCredentials_1 = require_resolveProcessCredentials2(); var resolveSsoCredentials_1 = require_resolveSsoCredentials(); @@ -17835,13 +17752,13 @@ var require_resolveProfileData = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js var require_fromIni = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromIni = void 0; - var shared_ini_file_loader_1 = require_dist_cjs38(); + var shared_ini_file_loader_1 = require_dist_cjs35(); var resolveProfileData_1 = require_resolveProfileData(); var fromIni = (init = {}) => async () => { const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); @@ -17851,9 +17768,9 @@ var require_fromIni = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js var require_dist_cjs51 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -17861,14 +17778,14 @@ var require_dist_cjs51 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js var require_remoteProvider = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; - var credential_provider_imds_1 = require_dist_cjs40(); - var property_provider_1 = require_dist_cjs6(); + var credential_provider_imds_1 = require_dist_cjs37(); + var property_provider_1 = require_dist_cjs16(); exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; var remoteProvider = (init) => { if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { @@ -17885,19 +17802,19 @@ var require_remoteProvider = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js var require_defaultProvider = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultProvider = void 0; - var credential_provider_env_1 = require_dist_cjs37(); + var credential_provider_env_1 = require_dist_cjs34(); var credential_provider_ini_1 = require_dist_cjs51(); - var credential_provider_process_1 = require_dist_cjs41(); + var credential_provider_process_1 = require_dist_cjs38(); var credential_provider_sso_1 = require_dist_cjs49(); var credential_provider_web_identity_1 = require_dist_cjs50(); - var property_provider_1 = require_dist_cjs6(); - var shared_ini_file_loader_1 = require_dist_cjs38(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs35(); var remoteProvider_1 = require_remoteProvider(); var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); @@ -17906,9 +17823,9 @@ var require_defaultProvider = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js var require_dist_cjs52 = __commonJS({ - "../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -17916,9 +17833,9 @@ var require_dist_cjs52 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js var require_ruleset3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ruleSet = void 0; @@ -17963,13 +17880,13 @@ var require_ruleset3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js var require_endpointResolver3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultEndpointResolver = void 0; - var util_endpoints_1 = require_dist_cjs18(); + var util_endpoints_1 = require_dist_cjs27(); var ruleset_1 = require_ruleset3(); var defaultEndpointResolver = (endpointParams, context = {}) => { return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { @@ -17981,16 +17898,16 @@ var require_endpointResolver3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js var require_runtimeConfig_shared3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); - var util_utf8_1 = require_dist_cjs13(); + var smithy_client_1 = require_dist_cjs30(); + var url_parser_1 = require_dist_cjs7(); + var util_base64_1 = require_dist_cjs44(); + var util_utf8_1 = require_dist_cjs22(); var endpointResolver_1 = require_endpointResolver3(); var getRuntimeConfig = (config) => ({ apiVersion: "2011-06-15", @@ -18008,28 +17925,28 @@ var require_runtimeConfig_shared3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js var require_runtimeConfig3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package2()); var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var config_resolver_1 = require_dist_cjs3(); var credential_provider_node_1 = require_dist_cjs52(); - var util_user_agent_node_1 = require_dist_cjs42(); - var config_resolver_1 = require_dist_cjs21(); - var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); - var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var hash_node_1 = require_dist_cjs39(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs36(); + var node_http_handler_1 = require_dist_cjs41(); + var util_body_length_node_1 = require_dist_cjs42(); + var util_retry_1 = require_dist_cjs14(); + var util_user_agent_node_1 = require_dist_cjs43(); var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs30(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -18060,22 +17977,22 @@ var require_runtimeConfig3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js var require_STSClient = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.STSClient = exports.__Client = void 0; - var middleware_host_header_1 = require_dist_cjs3(); - var middleware_logger_1 = require_dist_cjs4(); - var middleware_recursion_detection_1 = require_dist_cjs5(); - var middleware_sdk_sts_1 = require_dist_cjs36(); - var middleware_user_agent_1 = require_dist_cjs19(); - var config_resolver_1 = require_dist_cjs21(); - var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_host_header_1 = require_dist_cjs10(); + var middleware_logger_1 = require_dist_cjs11(); + var middleware_recursion_detection_1 = require_dist_cjs12(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_sdk_sts_1 = require_dist_cjs31(); + var middleware_user_agent_1 = require_dist_cjs28(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); @@ -18108,15 +18025,15 @@ var require_STSClient = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js var require_AssumeRoleWithSAMLCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -18164,16 +18081,16 @@ var require_AssumeRoleWithSAMLCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js var require_DecodeAuthorizationMessageCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var middleware_signing_1 = require_dist_cjs25(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -18221,16 +18138,16 @@ var require_DecodeAuthorizationMessageCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js var require_GetAccessKeyInfoCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetAccessKeyInfoCommand = exports.$Command = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var middleware_signing_1 = require_dist_cjs25(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -18278,16 +18195,16 @@ var require_GetAccessKeyInfoCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js var require_GetCallerIdentityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetCallerIdentityCommand = exports.$Command = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var middleware_signing_1 = require_dist_cjs25(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -18335,16 +18252,16 @@ var require_GetCallerIdentityCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js var require_GetFederationTokenCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetFederationTokenCommand = exports.$Command = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var middleware_signing_1 = require_dist_cjs25(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -18393,16 +18310,16 @@ var require_GetFederationTokenCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js var require_GetSessionTokenCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetSessionTokenCommand = exports.$Command = void 0; - var middleware_signing_1 = require_dist_cjs16(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var middleware_signing_1 = require_dist_cjs25(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -18451,13 +18368,13 @@ var require_GetSessionTokenCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js var require_STS = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/STS.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.STS = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var AssumeRoleCommand_1 = require_AssumeRoleCommand(); var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); @@ -18484,9 +18401,9 @@ var require_STS = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js var require_commands3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -18501,9 +18418,9 @@ var require_commands3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js var require_models3 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); @@ -18511,9 +18428,9 @@ var require_models3 = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js var require_defaultRoleAssumers = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; @@ -18545,9 +18462,9 @@ var require_defaultRoleAssumers = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js +// ../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/index.js var require_dist_cjs53 = __commonJS({ - "../../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) { + "../../../node_modules/@aws-sdk/client-sfn/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.STSServiceException = void 0; @@ -18570,28 +18487,28 @@ var require_ruleset4 = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ruleSet = void 0; - var r = "required"; var s = "fn"; var t = "argv"; var u = "ref"; - var a = "isSet"; - var b = "tree"; - var c = "error"; - var d = "endpoint"; - var e = "PartitionResult"; - var f = { [r]: false, "type": "String" }; - var g = { [r]: true, "default": false, "type": "Boolean" }; - var h = { [u]: "Endpoint" }; - var i = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }; - var j = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }; - var k = {}; - var l = { [u]: "Region" }; - var m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }; - var n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }; - var o = [i]; + var a = true; + var b = false; + var c = "String"; + var d = "PartitionResult"; + var e = "tree"; + var f = "error"; + var g = "endpoint"; + var h = { "required": true, "default": false, "type": "Boolean" }; + var i = { [u]: "Region" }; + var j = { [u]: "Endpoint" }; + var k = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }; + var l = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }; + var m = {}; + var n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: d }, "supportsFIPS"] }] }; + var o = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: d }, "supportsDualStack"] }] }; var p = [j]; - var q = [l]; - var _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [l, "us-gov-west-1"] }], endpoint: { url: "https://states.us-gov-west-1.amazonaws.com", properties: k, headers: k }, type: d }, { endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] }; + var q = [k]; + var r = [l]; + var _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [i], assign: d }], type: e, rules: [{ conditions: [{ [s]: "isSet", [t]: p }, { [s]: "parseURL", [t]: p, assign: "url" }], type: e, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [i, "us-gov-west-1"] }], endpoint: { url: "https://states.us-gov-west-1.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://states.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }; exports.ruleSet = _data; } }); @@ -18602,7 +18519,7 @@ var require_endpointResolver4 = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultEndpointResolver = void 0; - var util_endpoints_1 = require_dist_cjs18(); + var util_endpoints_1 = require_dist_cjs27(); var ruleset_1 = require_ruleset4(); var defaultEndpointResolver = (endpointParams, context = {}) => { return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { @@ -18620,10 +18537,10 @@ var require_runtimeConfig_shared4 = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; - var smithy_client_1 = require_dist_cjs35(); - var url_parser_1 = require_dist_cjs24(); - var util_base64_1 = require_dist_cjs31(); - var util_utf8_1 = require_dist_cjs13(); + var smithy_client_1 = require_dist_cjs30(); + var url_parser_1 = require_dist_cjs7(); + var util_base64_1 = require_dist_cjs44(); + var util_utf8_1 = require_dist_cjs22(); var endpointResolver_1 = require_endpointResolver4(); var getRuntimeConfig = (config) => ({ apiVersion: "2016-11-23", @@ -18650,19 +18567,19 @@ var require_runtimeConfig4 = __commonJS({ var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); var package_json_1 = tslib_1.__importDefault(require_package()); var client_sts_1 = require_dist_cjs53(); + var config_resolver_1 = require_dist_cjs3(); var credential_provider_node_1 = require_dist_cjs52(); - var util_user_agent_node_1 = require_dist_cjs42(); - var config_resolver_1 = require_dist_cjs21(); - var hash_node_1 = require_dist_cjs43(); - var middleware_retry_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs39(); - var node_http_handler_1 = require_dist_cjs33(); - var util_body_length_node_1 = require_dist_cjs44(); - var util_retry_1 = require_dist_cjs28(); + var hash_node_1 = require_dist_cjs39(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs36(); + var node_http_handler_1 = require_dist_cjs41(); + var util_body_length_node_1 = require_dist_cjs42(); + var util_retry_1 = require_dist_cjs14(); + var util_user_agent_node_1 = require_dist_cjs43(); var runtimeConfig_shared_1 = require_runtimeConfig_shared4(); - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var util_defaults_mode_node_1 = require_dist_cjs45(); - var smithy_client_2 = require_dist_cjs35(); + var smithy_client_2 = require_dist_cjs30(); var getRuntimeConfig = (config) => { (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); @@ -18699,16 +18616,16 @@ var require_SFNClient = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SFNClient = exports.__Client = void 0; - var middleware_host_header_1 = require_dist_cjs3(); - var middleware_logger_1 = require_dist_cjs4(); - var middleware_recursion_detection_1 = require_dist_cjs5(); - var middleware_signing_1 = require_dist_cjs16(); - var middleware_user_agent_1 = require_dist_cjs19(); - var config_resolver_1 = require_dist_cjs21(); - var middleware_content_length_1 = require_dist_cjs22(); - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_retry_1 = require_dist_cjs29(); - var smithy_client_1 = require_dist_cjs35(); + var config_resolver_1 = require_dist_cjs3(); + var middleware_content_length_1 = require_dist_cjs5(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_host_header_1 = require_dist_cjs10(); + var middleware_logger_1 = require_dist_cjs11(); + var middleware_recursion_detection_1 = require_dist_cjs12(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_signing_1 = require_dist_cjs25(); + var middleware_user_agent_1 = require_dist_cjs28(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__Client", { enumerable: true, get: function() { return smithy_client_1.Client; } }); @@ -18748,7 +18665,7 @@ var require_SFNServiceException = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SFNServiceException = exports.__ServiceException = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function() { return smithy_client_1.ServiceException; } }); @@ -18767,9 +18684,9 @@ var require_models_04 = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/models/models_0.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.ExecutionStartedEventDetailsFilterSensitiveLog = exports.ExecutionFailedEventDetailsFilterSensitiveLog = exports.ExecutionAbortedEventDetailsFilterSensitiveLog = exports.GetActivityTaskOutputFilterSensitiveLog = exports.DescribeStateMachineForExecutionOutputFilterSensitiveLog = exports.DescribeStateMachineAliasOutputFilterSensitiveLog = exports.DescribeStateMachineOutputFilterSensitiveLog = exports.DescribeExecutionOutputFilterSensitiveLog = exports.CreateStateMachineAliasInputFilterSensitiveLog = exports.CreateStateMachineInputFilterSensitiveLog = exports.ActivityTimedOutEventDetailsFilterSensitiveLog = exports.ActivitySucceededEventDetailsFilterSensitiveLog = exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog = exports.ActivityScheduledEventDetailsFilterSensitiveLog = exports.ActivityFailedEventDetailsFilterSensitiveLog = exports.MissingRequiredParameter = exports.SyncExecutionStatus = exports.InvalidExecutionInput = exports.ExecutionLimitExceeded = exports.ExecutionAlreadyExists = exports.InvalidOutput = exports.TaskTimedOut = exports.TaskDoesNotExist = exports.InvalidToken = exports.HistoryEventType = exports.StateMachineDoesNotExist = exports.StateMachineStatus = exports.MapRunStatus = exports.ExecutionDoesNotExist = exports.ExecutionStatus = exports.ServiceQuotaExceededException = exports.ResourceNotFound = exports.ValidationException = exports.ValidationExceptionReason = exports.StateMachineTypeNotSupported = exports.StateMachineLimitExceeded = exports.StateMachineDeleting = exports.StateMachineAlreadyExists = exports.InvalidTracingConfiguration = exports.InvalidLoggingConfiguration = exports.InvalidDefinition = exports.InvalidArn = exports.StateMachineType = exports.LogLevel = exports.ConflictException = exports.TooManyTags = exports.InvalidName = exports.ActivityWorkerLimitExceeded = exports.ActivityLimitExceeded = exports.ActivityDoesNotExist = void 0; - exports.UpdateStateMachineAliasInputFilterSensitiveLog = exports.UpdateStateMachineInputFilterSensitiveLog = exports.StopExecutionInputFilterSensitiveLog = exports.StartSyncExecutionOutputFilterSensitiveLog = exports.StartSyncExecutionInputFilterSensitiveLog = exports.StartExecutionInputFilterSensitiveLog = exports.SendTaskSuccessInputFilterSensitiveLog = exports.SendTaskFailureInputFilterSensitiveLog = exports.PublishStateMachineVersionInputFilterSensitiveLog = exports.GetExecutionHistoryOutputFilterSensitiveLog = exports.HistoryEventFilterSensitiveLog = exports.TaskTimedOutEventDetailsFilterSensitiveLog = exports.TaskSucceededEventDetailsFilterSensitiveLog = exports.TaskSubmittedEventDetailsFilterSensitiveLog = exports.TaskSubmitFailedEventDetailsFilterSensitiveLog = exports.TaskStartFailedEventDetailsFilterSensitiveLog = exports.TaskScheduledEventDetailsFilterSensitiveLog = exports.TaskFailedEventDetailsFilterSensitiveLog = exports.StateExitedEventDetailsFilterSensitiveLog = exports.StateEnteredEventDetailsFilterSensitiveLog = exports.MapRunFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog = exports.ExecutionTimedOutEventDetailsFilterSensitiveLog = exports.ExecutionSucceededEventDetailsFilterSensitiveLog = void 0; - var smithy_client_1 = require_dist_cjs35(); + exports.LambdaFunctionScheduledEventDetailsFilterSensitiveLog = exports.LambdaFunctionFailedEventDetailsFilterSensitiveLog = exports.ExecutionTimedOutEventDetailsFilterSensitiveLog = exports.ExecutionSucceededEventDetailsFilterSensitiveLog = exports.ExecutionStartedEventDetailsFilterSensitiveLog = exports.ExecutionFailedEventDetailsFilterSensitiveLog = exports.ExecutionAbortedEventDetailsFilterSensitiveLog = exports.GetActivityTaskOutputFilterSensitiveLog = exports.DescribeStateMachineForExecutionOutputFilterSensitiveLog = exports.DescribeStateMachineOutputFilterSensitiveLog = exports.DescribeExecutionOutputFilterSensitiveLog = exports.CreateStateMachineInputFilterSensitiveLog = exports.ActivityTimedOutEventDetailsFilterSensitiveLog = exports.ActivitySucceededEventDetailsFilterSensitiveLog = exports.ActivityScheduleFailedEventDetailsFilterSensitiveLog = exports.ActivityScheduledEventDetailsFilterSensitiveLog = exports.ActivityFailedEventDetailsFilterSensitiveLog = exports.MissingRequiredParameter = exports.SyncExecutionStatus = exports.InvalidExecutionInput = exports.ExecutionLimitExceeded = exports.ExecutionAlreadyExists = exports.InvalidOutput = exports.TaskTimedOut = exports.TaskDoesNotExist = exports.InvalidToken = exports.HistoryEventType = exports.StateMachineDoesNotExist = exports.StateMachineStatus = exports.ResourceNotFound = exports.MapRunStatus = exports.ExecutionDoesNotExist = exports.ExecutionStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.StateMachineTypeNotSupported = exports.StateMachineLimitExceeded = exports.StateMachineDeleting = exports.StateMachineAlreadyExists = exports.InvalidTracingConfiguration = exports.InvalidLoggingConfiguration = exports.InvalidDefinition = exports.InvalidArn = exports.StateMachineType = exports.LogLevel = exports.TooManyTags = exports.InvalidName = exports.ActivityWorkerLimitExceeded = exports.ActivityLimitExceeded = exports.ActivityDoesNotExist = void 0; + exports.UpdateStateMachineInputFilterSensitiveLog = exports.StopExecutionInputFilterSensitiveLog = exports.StartSyncExecutionOutputFilterSensitiveLog = exports.StartSyncExecutionInputFilterSensitiveLog = exports.StartExecutionInputFilterSensitiveLog = exports.SendTaskSuccessInputFilterSensitiveLog = exports.SendTaskFailureInputFilterSensitiveLog = exports.GetExecutionHistoryOutputFilterSensitiveLog = exports.HistoryEventFilterSensitiveLog = exports.TaskTimedOutEventDetailsFilterSensitiveLog = exports.TaskSucceededEventDetailsFilterSensitiveLog = exports.TaskSubmittedEventDetailsFilterSensitiveLog = exports.TaskSubmitFailedEventDetailsFilterSensitiveLog = exports.TaskStartFailedEventDetailsFilterSensitiveLog = exports.TaskScheduledEventDetailsFilterSensitiveLog = exports.TaskFailedEventDetailsFilterSensitiveLog = exports.StateExitedEventDetailsFilterSensitiveLog = exports.StateEnteredEventDetailsFilterSensitiveLog = exports.MapRunFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionTimedOutEventDetailsFilterSensitiveLog = exports.LambdaFunctionSucceededEventDetailsFilterSensitiveLog = exports.LambdaFunctionStartFailedEventDetailsFilterSensitiveLog = exports.LambdaFunctionScheduleFailedEventDetailsFilterSensitiveLog = void 0; + var smithy_client_1 = require_dist_cjs30(); var SFNServiceException_1 = require_SFNServiceException(); var ActivityDoesNotExist = class extends SFNServiceException_1.SFNServiceException { constructor(opts) { @@ -18837,19 +18754,6 @@ var require_models_04 = __commonJS({ } }; exports.TooManyTags = TooManyTags; - var ConflictException = class extends SFNServiceException_1.SFNServiceException { - constructor(opts) { - super({ - name: "ConflictException", - $fault: "client", - ...opts - }); - this.name = "ConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ConflictException.prototype); - } - }; - exports.ConflictException = ConflictException; exports.LogLevel = { ALL: "ALL", ERROR: "ERROR", @@ -18967,7 +18871,6 @@ var require_models_04 = __commonJS({ exports.ValidationExceptionReason = { API_DOES_NOT_SUPPORT_LABELED_ARNS: "API_DOES_NOT_SUPPORT_LABELED_ARNS", CANNOT_UPDATE_COMPLETED_MAP_RUN: "CANNOT_UPDATE_COMPLETED_MAP_RUN", - INVALID_ROUTING_CONFIGURATION: "INVALID_ROUTING_CONFIGURATION", MISSING_REQUIRED_PARAMETER: "MISSING_REQUIRED_PARAMETER" }; var ValidationException = class extends SFNServiceException_1.SFNServiceException { @@ -18984,33 +18887,6 @@ var require_models_04 = __commonJS({ } }; exports.ValidationException = ValidationException; - var ResourceNotFound = class extends SFNServiceException_1.SFNServiceException { - constructor(opts) { - super({ - name: "ResourceNotFound", - $fault: "client", - ...opts - }); - this.name = "ResourceNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFound.prototype); - this.resourceName = opts.resourceName; - } - }; - exports.ResourceNotFound = ResourceNotFound; - var ServiceQuotaExceededException = class extends SFNServiceException_1.SFNServiceException { - constructor(opts) { - super({ - name: "ServiceQuotaExceededException", - $fault: "client", - ...opts - }); - this.name = "ServiceQuotaExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype); - } - }; - exports.ServiceQuotaExceededException = ServiceQuotaExceededException; exports.ExecutionStatus = { ABORTED: "ABORTED", FAILED: "FAILED", @@ -19037,6 +18913,20 @@ var require_models_04 = __commonJS({ RUNNING: "RUNNING", SUCCEEDED: "SUCCEEDED" }; + var ResourceNotFound = class extends SFNServiceException_1.SFNServiceException { + constructor(opts) { + super({ + name: "ResourceNotFound", + $fault: "client", + ...opts + }); + this.name = "ResourceNotFound"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceNotFound.prototype); + this.resourceName = opts.resourceName; + } + }; + exports.ResourceNotFound = ResourceNotFound; exports.StateMachineStatus = { ACTIVE: "ACTIVE", DELETING: "DELETING" @@ -19254,15 +19144,9 @@ var require_models_04 = __commonJS({ exports.ActivityTimedOutEventDetailsFilterSensitiveLog = ActivityTimedOutEventDetailsFilterSensitiveLog; var CreateStateMachineInputFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }, - ...obj.versionDescription && { versionDescription: smithy_client_1.SENSITIVE_STRING } + ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING } }); exports.CreateStateMachineInputFilterSensitiveLog = CreateStateMachineInputFilterSensitiveLog; - var CreateStateMachineAliasInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } - }); - exports.CreateStateMachineAliasInputFilterSensitiveLog = CreateStateMachineAliasInputFilterSensitiveLog; var DescribeExecutionOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.input && { input: smithy_client_1.SENSITIVE_STRING }, @@ -19273,15 +19157,9 @@ var require_models_04 = __commonJS({ exports.DescribeExecutionOutputFilterSensitiveLog = DescribeExecutionOutputFilterSensitiveLog; var DescribeStateMachineOutputFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }, - ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } + ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING } }); exports.DescribeStateMachineOutputFilterSensitiveLog = DescribeStateMachineOutputFilterSensitiveLog; - var DescribeStateMachineAliasOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } - }); - exports.DescribeStateMachineAliasOutputFilterSensitiveLog = DescribeStateMachineAliasOutputFilterSensitiveLog; var DescribeStateMachineForExecutionOutputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING } @@ -19496,11 +19374,6 @@ var require_models_04 = __commonJS({ ...obj.events && { events: obj.events.map((item) => (0, exports.HistoryEventFilterSensitiveLog)(item)) } }); exports.GetExecutionHistoryOutputFilterSensitiveLog = GetExecutionHistoryOutputFilterSensitiveLog; - var PublishStateMachineVersionInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } - }); - exports.PublishStateMachineVersionInputFilterSensitiveLog = PublishStateMachineVersionInputFilterSensitiveLog; var SendTaskFailureInputFilterSensitiveLog = (obj) => ({ ...obj, ...obj.error && { error: smithy_client_1.SENSITIVE_STRING }, @@ -19538,15 +19411,9 @@ var require_models_04 = __commonJS({ exports.StopExecutionInputFilterSensitiveLog = StopExecutionInputFilterSensitiveLog; var UpdateStateMachineInputFilterSensitiveLog = (obj) => ({ ...obj, - ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING }, - ...obj.versionDescription && { versionDescription: smithy_client_1.SENSITIVE_STRING } + ...obj.definition && { definition: smithy_client_1.SENSITIVE_STRING } }); exports.UpdateStateMachineInputFilterSensitiveLog = UpdateStateMachineInputFilterSensitiveLog; - var UpdateStateMachineAliasInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.description && { description: smithy_client_1.SENSITIVE_STRING } - }); - exports.UpdateStateMachineAliasInputFilterSensitiveLog = UpdateStateMachineAliasInputFilterSensitiveLog; } }); @@ -19555,10 +19422,10 @@ var require_Aws_json1_0 = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/protocols/Aws_json1_0.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.de_ListActivitiesCommand = exports.de_GetExecutionHistoryCommand = exports.de_GetActivityTaskCommand = exports.de_DescribeStateMachineForExecutionCommand = exports.de_DescribeStateMachineAliasCommand = exports.de_DescribeStateMachineCommand = exports.de_DescribeMapRunCommand = exports.de_DescribeExecutionCommand = exports.de_DescribeActivityCommand = exports.de_DeleteStateMachineVersionCommand = exports.de_DeleteStateMachineAliasCommand = exports.de_DeleteStateMachineCommand = exports.de_DeleteActivityCommand = exports.de_CreateStateMachineAliasCommand = exports.de_CreateStateMachineCommand = exports.de_CreateActivityCommand = exports.se_UpdateStateMachineAliasCommand = exports.se_UpdateStateMachineCommand = exports.se_UpdateMapRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopExecutionCommand = exports.se_StartSyncExecutionCommand = exports.se_StartExecutionCommand = exports.se_SendTaskSuccessCommand = exports.se_SendTaskHeartbeatCommand = exports.se_SendTaskFailureCommand = exports.se_PublishStateMachineVersionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStateMachineVersionsCommand = exports.se_ListStateMachinesCommand = exports.se_ListStateMachineAliasesCommand = exports.se_ListMapRunsCommand = exports.se_ListExecutionsCommand = exports.se_ListActivitiesCommand = exports.se_GetExecutionHistoryCommand = exports.se_GetActivityTaskCommand = exports.se_DescribeStateMachineForExecutionCommand = exports.se_DescribeStateMachineAliasCommand = exports.se_DescribeStateMachineCommand = exports.se_DescribeMapRunCommand = exports.se_DescribeExecutionCommand = exports.se_DescribeActivityCommand = exports.se_DeleteStateMachineVersionCommand = exports.se_DeleteStateMachineAliasCommand = exports.se_DeleteStateMachineCommand = exports.se_DeleteActivityCommand = exports.se_CreateStateMachineAliasCommand = exports.se_CreateStateMachineCommand = exports.se_CreateActivityCommand = void 0; - exports.de_UpdateStateMachineAliasCommand = exports.de_UpdateStateMachineCommand = exports.de_UpdateMapRunCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopExecutionCommand = exports.de_StartSyncExecutionCommand = exports.de_StartExecutionCommand = exports.de_SendTaskSuccessCommand = exports.de_SendTaskHeartbeatCommand = exports.de_SendTaskFailureCommand = exports.de_PublishStateMachineVersionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStateMachineVersionsCommand = exports.de_ListStateMachinesCommand = exports.de_ListStateMachineAliasesCommand = exports.de_ListMapRunsCommand = exports.de_ListExecutionsCommand = void 0; - var protocol_http_1 = require_dist_cjs2(); - var smithy_client_1 = require_dist_cjs35(); + exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopExecutionCommand = exports.de_StartSyncExecutionCommand = exports.de_StartExecutionCommand = exports.de_SendTaskSuccessCommand = exports.de_SendTaskHeartbeatCommand = exports.de_SendTaskFailureCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStateMachinesCommand = exports.de_ListMapRunsCommand = exports.de_ListExecutionsCommand = exports.de_ListActivitiesCommand = exports.de_GetExecutionHistoryCommand = exports.de_GetActivityTaskCommand = exports.de_DescribeStateMachineForExecutionCommand = exports.de_DescribeStateMachineCommand = exports.de_DescribeMapRunCommand = exports.de_DescribeExecutionCommand = exports.de_DescribeActivityCommand = exports.de_DeleteStateMachineCommand = exports.de_DeleteActivityCommand = exports.de_CreateStateMachineCommand = exports.de_CreateActivityCommand = exports.se_UpdateStateMachineCommand = exports.se_UpdateMapRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopExecutionCommand = exports.se_StartSyncExecutionCommand = exports.se_StartExecutionCommand = exports.se_SendTaskSuccessCommand = exports.se_SendTaskHeartbeatCommand = exports.se_SendTaskFailureCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStateMachinesCommand = exports.se_ListMapRunsCommand = exports.se_ListExecutionsCommand = exports.se_ListActivitiesCommand = exports.se_GetExecutionHistoryCommand = exports.se_GetActivityTaskCommand = exports.se_DescribeStateMachineForExecutionCommand = exports.se_DescribeStateMachineCommand = exports.se_DescribeMapRunCommand = exports.se_DescribeExecutionCommand = exports.se_DescribeActivityCommand = exports.se_DeleteStateMachineCommand = exports.se_DeleteActivityCommand = exports.se_CreateStateMachineCommand = exports.se_CreateActivityCommand = void 0; + exports.de_UpdateStateMachineCommand = exports.de_UpdateMapRunCommand = void 0; + var smithy_client_1 = require_dist_cjs30(); + var protocol_http_1 = require_dist_cjs33(); var models_0_1 = require_models_04(); var SFNServiceException_1 = require_SFNServiceException(); var se_CreateActivityCommand = async (input, context) => { @@ -19575,13 +19442,6 @@ var require_Aws_json1_0 = __commonJS({ return buildHttpRpcRequest(context, headers, "/", void 0, body); }; exports.se_CreateStateMachineCommand = se_CreateStateMachineCommand; - var se_CreateStateMachineAliasCommand = async (input, context) => { - const headers = sharedHeaders("CreateStateMachineAlias"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_CreateStateMachineAliasCommand = se_CreateStateMachineAliasCommand; var se_DeleteActivityCommand = async (input, context) => { const headers = sharedHeaders("DeleteActivity"); let body; @@ -19596,20 +19456,6 @@ var require_Aws_json1_0 = __commonJS({ return buildHttpRpcRequest(context, headers, "/", void 0, body); }; exports.se_DeleteStateMachineCommand = se_DeleteStateMachineCommand; - var se_DeleteStateMachineAliasCommand = async (input, context) => { - const headers = sharedHeaders("DeleteStateMachineAlias"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_DeleteStateMachineAliasCommand = se_DeleteStateMachineAliasCommand; - var se_DeleteStateMachineVersionCommand = async (input, context) => { - const headers = sharedHeaders("DeleteStateMachineVersion"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_DeleteStateMachineVersionCommand = se_DeleteStateMachineVersionCommand; var se_DescribeActivityCommand = async (input, context) => { const headers = sharedHeaders("DescribeActivity"); let body; @@ -19638,13 +19484,6 @@ var require_Aws_json1_0 = __commonJS({ return buildHttpRpcRequest(context, headers, "/", void 0, body); }; exports.se_DescribeStateMachineCommand = se_DescribeStateMachineCommand; - var se_DescribeStateMachineAliasCommand = async (input, context) => { - const headers = sharedHeaders("DescribeStateMachineAlias"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_DescribeStateMachineAliasCommand = se_DescribeStateMachineAliasCommand; var se_DescribeStateMachineForExecutionCommand = async (input, context) => { const headers = sharedHeaders("DescribeStateMachineForExecution"); let body; @@ -19687,13 +19526,6 @@ var require_Aws_json1_0 = __commonJS({ return buildHttpRpcRequest(context, headers, "/", void 0, body); }; exports.se_ListMapRunsCommand = se_ListMapRunsCommand; - var se_ListStateMachineAliasesCommand = async (input, context) => { - const headers = sharedHeaders("ListStateMachineAliases"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_ListStateMachineAliasesCommand = se_ListStateMachineAliasesCommand; var se_ListStateMachinesCommand = async (input, context) => { const headers = sharedHeaders("ListStateMachines"); let body; @@ -19701,13 +19533,6 @@ var require_Aws_json1_0 = __commonJS({ return buildHttpRpcRequest(context, headers, "/", void 0, body); }; exports.se_ListStateMachinesCommand = se_ListStateMachinesCommand; - var se_ListStateMachineVersionsCommand = async (input, context) => { - const headers = sharedHeaders("ListStateMachineVersions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_ListStateMachineVersionsCommand = se_ListStateMachineVersionsCommand; var se_ListTagsForResourceCommand = async (input, context) => { const headers = sharedHeaders("ListTagsForResource"); let body; @@ -19715,13 +19540,6 @@ var require_Aws_json1_0 = __commonJS({ return buildHttpRpcRequest(context, headers, "/", void 0, body); }; exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand; - var se_PublishStateMachineVersionCommand = async (input, context) => { - const headers = sharedHeaders("PublishStateMachineVersion"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_PublishStateMachineVersionCommand = se_PublishStateMachineVersionCommand; var se_SendTaskFailureCommand = async (input, context) => { const headers = sharedHeaders("SendTaskFailure"); let body; @@ -19798,14 +19616,7 @@ var require_Aws_json1_0 = __commonJS({ body = JSON.stringify((0, smithy_client_1._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body); }; - exports.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand; - var se_UpdateStateMachineAliasCommand = async (input, context) => { - const headers = sharedHeaders("UpdateStateMachineAlias"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", void 0, body); - }; - exports.se_UpdateStateMachineAliasCommand = se_UpdateStateMachineAliasCommand; + exports.se_UpdateStateMachineCommand = se_UpdateStateMachineCommand; var de_CreateActivityCommand = async (output, context) => { if (output.statusCode >= 300) { return de_CreateActivityCommandError(output, context); @@ -19866,9 +19677,6 @@ var require_Aws_json1_0 = __commonJS({ }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InvalidArn": case "com.amazonaws.sfn#InvalidArn": throw await de_InvalidArnRes(parsedOutput, context); @@ -19899,60 +19707,6 @@ var require_Aws_json1_0 = __commonJS({ case "TooManyTags": case "com.amazonaws.sfn#TooManyTags": throw await de_TooManyTagsRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; - var de_CreateStateMachineAliasCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateStateMachineAliasCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateStateMachineAliasOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_CreateStateMachineAliasCommand = de_CreateStateMachineAliasCommand; - var de_CreateStateMachineAliasCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "InvalidName": - case "com.amazonaws.sfn#InvalidName": - throw await de_InvalidNameRes(parsedOutput, context); - case "ResourceNotFound": - case "com.amazonaws.sfn#ResourceNotFound": - throw await de_ResourceNotFoundRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.sfn#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); - case "StateMachineDeleting": - case "com.amazonaws.sfn#StateMachineDeleting": - throw await de_StateMachineDeletingRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -20031,87 +19785,6 @@ var require_Aws_json1_0 = __commonJS({ }); } }; - var de_DeleteStateMachineAliasCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteStateMachineAliasCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_DeleteStateMachineAliasCommand = de_DeleteStateMachineAliasCommand; - var de_DeleteStateMachineAliasCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "ResourceNotFound": - case "com.amazonaws.sfn#ResourceNotFound": - throw await de_ResourceNotFoundRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; - var de_DeleteStateMachineVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteStateMachineVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_DeleteStateMachineVersionCommand = de_DeleteStateMachineVersionCommand; - var de_DeleteStateMachineVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; var de_DescribeActivityCommand = async (output, context) => { if (output.statusCode >= 300) { return de_DescribeActivityCommandError(output, context); @@ -20256,45 +19929,6 @@ var require_Aws_json1_0 = __commonJS({ }); } }; - var de_DescribeStateMachineAliasCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeStateMachineAliasCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeStateMachineAliasOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_DescribeStateMachineAliasCommand = de_DescribeStateMachineAliasCommand; - var de_DescribeStateMachineAliasCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "ResourceNotFound": - case "com.amazonaws.sfn#ResourceNotFound": - throw await de_ResourceNotFoundRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; var de_DescribeStateMachineForExecutionCommand = async (output, context) => { if (output.statusCode >= 300) { return de_DescribeStateMachineForExecutionCommandError(output, context); @@ -20529,51 +20163,6 @@ var require_Aws_json1_0 = __commonJS({ }); } }; - var de_ListStateMachineAliasesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListStateMachineAliasesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListStateMachineAliasesOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_ListStateMachineAliasesCommand = de_ListStateMachineAliasesCommand; - var de_ListStateMachineAliasesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "InvalidToken": - case "com.amazonaws.sfn#InvalidToken": - throw await de_InvalidTokenRes(parsedOutput, context); - case "ResourceNotFound": - case "com.amazonaws.sfn#ResourceNotFound": - throw await de_ResourceNotFoundRes(parsedOutput, context); - case "StateMachineDeleting": - case "com.amazonaws.sfn#StateMachineDeleting": - throw await de_StateMachineDeletingRes(parsedOutput, context); - case "StateMachineDoesNotExist": - case "com.amazonaws.sfn#StateMachineDoesNotExist": - throw await de_StateMachineDoesNotExistRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; var de_ListStateMachinesCommand = async (output, context) => { if (output.statusCode >= 300) { return de_ListStateMachinesCommandError(output, context); @@ -20597,82 +20186,7 @@ var require_Aws_json1_0 = __commonJS({ switch (errorCode) { case "InvalidToken": case "com.amazonaws.sfn#InvalidToken": - throw await de_InvalidTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; - var de_ListStateMachineVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListStateMachineVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListStateMachineVersionsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_ListStateMachineVersionsCommand = de_ListStateMachineVersionsCommand; - var de_ListStateMachineVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "InvalidToken": - case "com.amazonaws.sfn#InvalidToken": - throw await de_InvalidTokenRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; - var de_ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; - var de_ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "ResourceNotFound": - case "com.amazonaws.sfn#ResourceNotFound": - throw await de_ResourceNotFoundRes(parsedOutput, context); + throw await de_InvalidTokenRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -20682,45 +20196,33 @@ var require_Aws_json1_0 = __commonJS({ }); } }; - var de_PublishStateMachineVersionCommand = async (output, context) => { + var de_ListTagsForResourceCommand = async (output, context) => { if (output.statusCode >= 300) { - return de_PublishStateMachineVersionCommandError(output, context); + return de_ListTagsForResourceCommandError(output, context); } const data = await parseBody(output.body, context); let contents = {}; - contents = de_PublishStateMachineVersionOutput(data, context); + contents = (0, smithy_client_1._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response; }; - exports.de_PublishStateMachineVersionCommand = de_PublishStateMachineVersionCommand; - var de_PublishStateMachineVersionCommandError = async (output, context) => { + exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; + var de_ListTagsForResourceCommandError = async (output, context) => { const parsedOutput = { ...output, body: await parseErrorBody(output.body, context) }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InvalidArn": case "com.amazonaws.sfn#InvalidArn": throw await de_InvalidArnRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.sfn#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); - case "StateMachineDeleting": - case "com.amazonaws.sfn#StateMachineDeleting": - throw await de_StateMachineDeletingRes(parsedOutput, context); - case "StateMachineDoesNotExist": - case "com.amazonaws.sfn#StateMachineDoesNotExist": - throw await de_StateMachineDoesNotExistRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); + case "ResourceNotFound": + case "com.amazonaws.sfn#ResourceNotFound": + throw await de_ResourceNotFoundRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ @@ -21126,9 +20628,6 @@ var require_Aws_json1_0 = __commonJS({ }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); case "InvalidArn": case "com.amazonaws.sfn#InvalidArn": throw await de_InvalidArnRes(parsedOutput, context); @@ -21144,9 +20643,6 @@ var require_Aws_json1_0 = __commonJS({ case "MissingRequiredParameter": case "com.amazonaws.sfn#MissingRequiredParameter": throw await de_MissingRequiredParameterRes(parsedOutput, context); - case "ServiceQuotaExceededException": - case "com.amazonaws.sfn#ServiceQuotaExceededException": - throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "StateMachineDeleting": case "com.amazonaws.sfn#StateMachineDeleting": throw await de_StateMachineDeletingRes(parsedOutput, context); @@ -21165,48 +20661,6 @@ var require_Aws_json1_0 = __commonJS({ }); } }; - var de_UpdateStateMachineAliasCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateStateMachineAliasCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateStateMachineAliasOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return response; - }; - exports.de_UpdateStateMachineAliasCommand = de_UpdateStateMachineAliasCommand; - var de_UpdateStateMachineAliasCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ConflictException": - case "com.amazonaws.sfn#ConflictException": - throw await de_ConflictExceptionRes(parsedOutput, context); - case "InvalidArn": - case "com.amazonaws.sfn#InvalidArn": - throw await de_InvalidArnRes(parsedOutput, context); - case "ResourceNotFound": - case "com.amazonaws.sfn#ResourceNotFound": - throw await de_ResourceNotFoundRes(parsedOutput, context); - case "ValidationException": - case "com.amazonaws.sfn#ValidationException": - throw await de_ValidationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode - }); - } - }; var de_ActivityDoesNotExistRes = async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, smithy_client_1._json)(body); @@ -21234,15 +20688,6 @@ var require_Aws_json1_0 = __commonJS({ }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; - var de_ConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; var de_ExecutionAlreadyExistsRes = async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, smithy_client_1._json)(body); @@ -21360,15 +20805,6 @@ var require_Aws_json1_0 = __commonJS({ }); return (0, smithy_client_1.decorateServiceException)(exception, body); }; - var de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ServiceQuotaExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; var de_StateMachineAlreadyExistsRes = async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, smithy_client_1._json)(body); @@ -21477,17 +20913,10 @@ var require_Aws_json1_0 = __commonJS({ creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) }); }; - var de_CreateStateMachineAliasOutput = (output, context) => { - return (0, smithy_client_1.take)(output, { - creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineAliasArn: smithy_client_1.expectString - }); - }; var de_CreateStateMachineOutput = (output, context) => { return (0, smithy_client_1.take)(output, { creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineArn: smithy_client_1.expectString, - stateMachineVersionArn: smithy_client_1.expectString + stateMachineArn: smithy_client_1.expectString }); }; var de_DescribeActivityOutput = (output, context) => { @@ -21509,9 +20938,7 @@ var require_Aws_json1_0 = __commonJS({ output: smithy_client_1.expectString, outputDetails: smithy_client_1._json, startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineAliasArn: smithy_client_1.expectString, stateMachineArn: smithy_client_1.expectString, - stateMachineVersionArn: smithy_client_1.expectString, status: smithy_client_1.expectString, stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), traceHeader: smithy_client_1.expectString @@ -21531,16 +20958,6 @@ var require_Aws_json1_0 = __commonJS({ toleratedFailurePercentage: smithy_client_1.limitedParseFloat32 }); }; - var de_DescribeStateMachineAliasOutput = (output, context) => { - return (0, smithy_client_1.take)(output, { - creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - description: smithy_client_1.expectString, - name: smithy_client_1.expectString, - routingConfiguration: smithy_client_1._json, - stateMachineAliasArn: smithy_client_1.expectString, - updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) - }); - }; var de_DescribeStateMachineForExecutionOutput = (output, context) => { return (0, smithy_client_1.take)(output, { definition: smithy_client_1.expectString, @@ -21548,7 +20965,6 @@ var require_Aws_json1_0 = __commonJS({ loggingConfiguration: smithy_client_1._json, mapRunArn: smithy_client_1.expectString, name: smithy_client_1.expectString, - revisionId: smithy_client_1.expectString, roleArn: smithy_client_1.expectString, stateMachineArn: smithy_client_1.expectString, tracingConfiguration: smithy_client_1._json, @@ -21559,11 +20975,9 @@ var require_Aws_json1_0 = __commonJS({ return (0, smithy_client_1.take)(output, { creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), definition: smithy_client_1.expectString, - description: smithy_client_1.expectString, label: smithy_client_1.expectString, loggingConfiguration: smithy_client_1._json, name: smithy_client_1.expectString, - revisionId: smithy_client_1.expectString, roleArn: smithy_client_1.expectString, stateMachineArn: smithy_client_1.expectString, status: smithy_client_1.expectString, @@ -21584,9 +20998,7 @@ var require_Aws_json1_0 = __commonJS({ mapRunArn: smithy_client_1.expectString, name: smithy_client_1.expectString, startDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineAliasArn: smithy_client_1.expectString, stateMachineArn: smithy_client_1.expectString, - stateMachineVersionArn: smithy_client_1.expectString, status: smithy_client_1.expectString, stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) }); @@ -21663,24 +21075,12 @@ var require_Aws_json1_0 = __commonJS({ nextToken: smithy_client_1.expectString }); }; - var de_ListStateMachineAliasesOutput = (output, context) => { - return (0, smithy_client_1.take)(output, { - nextToken: smithy_client_1.expectString, - stateMachineAliases: (_) => de_StateMachineAliasList(_, context) - }); - }; var de_ListStateMachinesOutput = (output, context) => { return (0, smithy_client_1.take)(output, { nextToken: smithy_client_1.expectString, stateMachines: (_) => de_StateMachineList(_, context) }); }; - var de_ListStateMachineVersionsOutput = (output, context) => { - return (0, smithy_client_1.take)(output, { - nextToken: smithy_client_1.expectString, - stateMachineVersions: (_) => de_StateMachineVersionList(_, context) - }); - }; var de_MapRunList = (output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_MapRunListItem(entry, context); @@ -21696,12 +21096,6 @@ var require_Aws_json1_0 = __commonJS({ stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) }); }; - var de_PublishStateMachineVersionOutput = (output, context) => { - return (0, smithy_client_1.take)(output, { - creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineVersionArn: smithy_client_1.expectString - }); - }; var de_StartExecutionOutput = (output, context) => { return (0, smithy_client_1.take)(output, { executionArn: smithy_client_1.expectString, @@ -21726,18 +21120,6 @@ var require_Aws_json1_0 = __commonJS({ traceHeader: smithy_client_1.expectString }); }; - var de_StateMachineAliasList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - return de_StateMachineAliasListItem(entry, context); - }); - return retVal; - }; - var de_StateMachineAliasListItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineAliasArn: smithy_client_1.expectString - }); - }; var de_StateMachineList = (output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_StateMachineListItem(entry, context); @@ -21752,32 +21134,13 @@ var require_Aws_json1_0 = __commonJS({ type: smithy_client_1.expectString }); }; - var de_StateMachineVersionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - return de_StateMachineVersionListItem(entry, context); - }); - return retVal; - }; - var de_StateMachineVersionListItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - stateMachineVersionArn: smithy_client_1.expectString - }); - }; var de_StopExecutionOutput = (output, context) => { return (0, smithy_client_1.take)(output, { stopDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) }); }; - var de_UpdateStateMachineAliasOutput = (output, context) => { - return (0, smithy_client_1.take)(output, { - updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) - }); - }; var de_UpdateStateMachineOutput = (output, context) => { return (0, smithy_client_1.take)(output, { - revisionId: smithy_client_1.expectString, - stateMachineVersionArn: smithy_client_1.expectString, updateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))) }); }; @@ -21787,7 +21150,13 @@ var require_Aws_json1_0 = __commonJS({ extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"] }); - var collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); var throwDefaultError = (0, smithy_client_1.withBaseException)(SFNServiceException_1.SFNServiceException); var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); @@ -21862,9 +21231,9 @@ var require_CreateActivityCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateActivityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -21888,171 +21257,7 @@ var require_CreateActivityCommand = __commonJS({ const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const clientName = "SFNClient"; - const commandName = "CreateActivityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_CreateActivityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_CreateActivityCommand)(output, context); - } - }; - exports.CreateActivityCommand = CreateActivityCommand; - } -}); - -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineAliasCommand.js -var require_CreateStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CreateStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_04(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateStateMachineAliasCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateStateMachineAliasCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "CreateStateMachineAliasCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateStateMachineAliasInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_CreateStateMachineAliasCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_CreateStateMachineAliasCommand)(output, context); - } - }; - exports.CreateStateMachineAliasCommand = CreateStateMachineAliasCommand; - } -}); - -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js -var require_CreateStateMachineCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.CreateStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_04(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateStateMachineCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateStateMachineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "CreateStateMachineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateStateMachineInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_CreateStateMachineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_CreateStateMachineCommand)(output, context); - } - }; - exports.CreateStateMachineCommand = CreateStateMachineCommand; - } -}); - -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js -var require_DeleteActivityCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteActivityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteActivityCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteActivityCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "DeleteActivityCommand"; + const commandName = "CreateActivityCommand"; const handlerExecutionContext = { logger, clientName, @@ -22064,30 +21269,31 @@ var require_DeleteActivityCommand = __commonJS({ return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_json1_0_1.se_DeleteActivityCommand)(input, context); + return (0, Aws_json1_0_1.se_CreateActivityCommand)(input, context); } deserialize(output, context) { - return (0, Aws_json1_0_1.de_DeleteActivityCommand)(output, context); + return (0, Aws_json1_0_1.de_CreateActivityCommand)(output, context); } }; - exports.DeleteActivityCommand = DeleteActivityCommand; + exports.CreateActivityCommand = CreateActivityCommand; } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineAliasCommand.js -var require_DeleteStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineAliasCommand.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js +var require_CreateStateMachineCommand = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/CreateStateMachineCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + exports.CreateStateMachineCommand = exports.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); + var models_0_1 = require_models_04(); var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteStateMachineAliasCommand = class extends smithy_client_1.Command { + var CreateStateMachineCommand = class extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -22102,46 +21308,46 @@ var require_DeleteStateMachineAliasCommand = __commonJS({ } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteStateMachineAliasCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateStateMachineCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const clientName = "SFNClient"; - const commandName = "DeleteStateMachineAliasCommand"; + const commandName = "CreateStateMachineCommand"; const handlerExecutionContext = { logger, clientName, commandName, - inputFilterSensitiveLog: (_) => _, + inputFilterSensitiveLog: models_0_1.CreateStateMachineInputFilterSensitiveLog, outputFilterSensitiveLog: (_) => _ }; const { requestHandler } = configuration; return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_json1_0_1.se_DeleteStateMachineAliasCommand)(input, context); + return (0, Aws_json1_0_1.se_CreateStateMachineCommand)(input, context); } deserialize(output, context) { - return (0, Aws_json1_0_1.de_DeleteStateMachineAliasCommand)(output, context); + return (0, Aws_json1_0_1.de_CreateStateMachineCommand)(output, context); } }; - exports.DeleteStateMachineAliasCommand = DeleteStateMachineAliasCommand; + exports.CreateStateMachineCommand = CreateStateMachineCommand; } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js -var require_DeleteStateMachineCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js +var require_DeleteActivityCommand = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteActivityCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + exports.DeleteActivityCommand = exports.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteStateMachineCommand = class extends smithy_client_1.Command { + var DeleteActivityCommand = class extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -22156,11 +21362,11 @@ var require_DeleteStateMachineCommand = __commonJS({ } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteStateMachineCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteActivityCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const clientName = "SFNClient"; - const commandName = "DeleteStateMachineCommand"; + const commandName = "DeleteActivityCommand"; const handlerExecutionContext = { logger, clientName, @@ -22172,30 +21378,30 @@ var require_DeleteStateMachineCommand = __commonJS({ return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_json1_0_1.se_DeleteStateMachineCommand)(input, context); + return (0, Aws_json1_0_1.se_DeleteActivityCommand)(input, context); } deserialize(output, context) { - return (0, Aws_json1_0_1.de_DeleteStateMachineCommand)(output, context); + return (0, Aws_json1_0_1.de_DeleteActivityCommand)(output, context); } }; - exports.DeleteStateMachineCommand = DeleteStateMachineCommand; + exports.DeleteActivityCommand = DeleteActivityCommand; } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineVersionCommand.js -var require_DeleteStateMachineVersionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineVersionCommand.js"(exports) { +// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js +var require_DeleteStateMachineCommand = __commonJS({ + "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DeleteStateMachineCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); - exports.DeleteStateMachineVersionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + exports.DeleteStateMachineCommand = exports.$Command = void 0; + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteStateMachineVersionCommand = class extends smithy_client_1.Command { + var DeleteStateMachineCommand = class extends smithy_client_1.Command { static getEndpointParameterInstructions() { return { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, @@ -22210,11 +21416,11 @@ var require_DeleteStateMachineVersionCommand = __commonJS({ } resolveMiddleware(clientStack, configuration, options) { this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteStateMachineVersionCommand.getEndpointParameterInstructions())); + this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteStateMachineCommand.getEndpointParameterInstructions())); const stack = clientStack.concat(this.middlewareStack); const { logger } = configuration; const clientName = "SFNClient"; - const commandName = "DeleteStateMachineVersionCommand"; + const commandName = "DeleteStateMachineCommand"; const handlerExecutionContext = { logger, clientName, @@ -22226,13 +21432,13 @@ var require_DeleteStateMachineVersionCommand = __commonJS({ return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); } serialize(input, context) { - return (0, Aws_json1_0_1.se_DeleteStateMachineVersionCommand)(input, context); + return (0, Aws_json1_0_1.se_DeleteStateMachineCommand)(input, context); } deserialize(output, context) { - return (0, Aws_json1_0_1.de_DeleteStateMachineVersionCommand)(output, context); + return (0, Aws_json1_0_1.de_DeleteStateMachineCommand)(output, context); } }; - exports.DeleteStateMachineVersionCommand = DeleteStateMachineVersionCommand; + exports.DeleteStateMachineCommand = DeleteStateMachineCommand; } }); @@ -22242,9 +21448,9 @@ var require_DescribeActivityCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DescribeActivityCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22296,9 +21502,9 @@ var require_DescribeExecutionCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DescribeExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22351,9 +21557,9 @@ var require_DescribeMapRunCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DescribeMapRunCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22399,70 +21605,15 @@ var require_DescribeMapRunCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineAliasCommand.js -var require_DescribeStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.DescribeStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_04(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeStateMachineAliasCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeStateMachineAliasCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "DescribeStateMachineAliasCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeStateMachineAliasOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_DescribeStateMachineAliasCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_DescribeStateMachineAliasCommand)(output, context); - } - }; - exports.DescribeStateMachineAliasCommand = DescribeStateMachineAliasCommand; - } -}); - // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineCommand.js var require_DescribeStateMachineCommand = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/DescribeStateMachineCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DescribeStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22515,9 +21666,9 @@ var require_DescribeStateMachineForExecutionCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DescribeStateMachineForExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22570,9 +21721,9 @@ var require_GetActivityTaskCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetActivityTaskCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22625,9 +21776,9 @@ var require_GetExecutionHistoryCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetExecutionHistoryCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22680,9 +21831,9 @@ var require_ListActivitiesCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListActivitiesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22734,9 +21885,9 @@ var require_ListExecutionsCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListExecutionsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22788,9 +21939,9 @@ var require_ListMapRunsCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListMapRunsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22836,69 +21987,15 @@ var require_ListMapRunsCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineAliasesCommand.js -var require_ListStateMachineAliasesCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineAliasesCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListStateMachineAliasesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListStateMachineAliasesCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListStateMachineAliasesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "ListStateMachineAliasesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_ListStateMachineAliasesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_ListStateMachineAliasesCommand)(output, context); - } - }; - exports.ListStateMachineAliasesCommand = ListStateMachineAliasesCommand; - } -}); - // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachinesCommand.js var require_ListStateMachinesCommand = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachinesCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListStateMachinesCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -22944,69 +22041,15 @@ var require_ListStateMachinesCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineVersionsCommand.js -var require_ListStateMachineVersionsCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListStateMachineVersionsCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ListStateMachineVersionsCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListStateMachineVersionsCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListStateMachineVersionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "ListStateMachineVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_ListStateMachineVersionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_ListStateMachineVersionsCommand)(output, context); - } - }; - exports.ListStateMachineVersionsCommand = ListStateMachineVersionsCommand; - } -}); - // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListTagsForResourceCommand.js var require_ListTagsForResourceCommand = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/ListTagsForResourceCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListTagsForResourceCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23052,70 +22095,15 @@ var require_ListTagsForResourceCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/PublishStateMachineVersionCommand.js -var require_PublishStateMachineVersionCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/PublishStateMachineVersionCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.PublishStateMachineVersionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_04(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var PublishStateMachineVersionCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PublishStateMachineVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "PublishStateMachineVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PublishStateMachineVersionInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_PublishStateMachineVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_PublishStateMachineVersionCommand)(output, context); - } - }; - exports.PublishStateMachineVersionCommand = PublishStateMachineVersionCommand; - } -}); - // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskFailureCommand.js var require_SendTaskFailureCommand = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/SendTaskFailureCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SendTaskFailureCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23168,9 +22156,9 @@ var require_SendTaskHeartbeatCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SendTaskHeartbeatCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23222,9 +22210,9 @@ var require_SendTaskSuccessCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SendTaskSuccessCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23277,9 +22265,9 @@ var require_StartExecutionCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StartExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23332,9 +22320,9 @@ var require_StartSyncExecutionCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StartSyncExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23387,9 +22375,9 @@ var require_StopExecutionCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StopExecutionCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23442,9 +22430,9 @@ var require_TagResourceCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TagResourceCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23496,9 +22484,9 @@ var require_UntagResourceCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UntagResourceCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23550,9 +22538,9 @@ var require_UpdateMapRunCommand = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateMapRunCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23598,70 +22586,15 @@ var require_UpdateMapRunCommand = __commonJS({ } }); -// ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineAliasCommand.js -var require_UpdateStateMachineAliasCommand = __commonJS({ - "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineAliasCommand.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.UpdateStateMachineAliasCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); - Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { - return smithy_client_1.Command; - } }); - var models_0_1 = require_models_04(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateStateMachineAliasCommand = class extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateStateMachineAliasCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SFNClient"; - const commandName = "UpdateStateMachineAliasCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateStateMachineAliasInputFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _ - }; - const { requestHandler } = configuration; - return stack.resolve((request2) => requestHandler.handle(request2.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.se_UpdateStateMachineAliasCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.de_UpdateStateMachineAliasCommand)(output, context); - } - }; - exports.UpdateStateMachineAliasCommand = UpdateStateMachineAliasCommand; - } -}); - // ../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineCommand.js var require_UpdateStateMachineCommand = __commonJS({ "../../../node_modules/@aws-sdk/client-sfn/dist-cjs/commands/UpdateStateMachineCommand.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateStateMachineCommand = exports.$Command = void 0; - var middleware_endpoint_1 = require_dist_cjs26(); - var middleware_serde_1 = require_dist_cjs25(); - var smithy_client_1 = require_dist_cjs35(); + var middleware_endpoint_1 = require_dist_cjs9(); + var middleware_serde_1 = require_dist_cjs8(); + var smithy_client_1 = require_dist_cjs30(); Object.defineProperty(exports, "$Command", { enumerable: true, get: function() { return smithy_client_1.Command; } }); @@ -23714,18 +22647,14 @@ var require_SFN = __commonJS({ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SFN = void 0; - var smithy_client_1 = require_dist_cjs35(); + var smithy_client_1 = require_dist_cjs30(); var CreateActivityCommand_1 = require_CreateActivityCommand(); - var CreateStateMachineAliasCommand_1 = require_CreateStateMachineAliasCommand(); var CreateStateMachineCommand_1 = require_CreateStateMachineCommand(); var DeleteActivityCommand_1 = require_DeleteActivityCommand(); - var DeleteStateMachineAliasCommand_1 = require_DeleteStateMachineAliasCommand(); var DeleteStateMachineCommand_1 = require_DeleteStateMachineCommand(); - var DeleteStateMachineVersionCommand_1 = require_DeleteStateMachineVersionCommand(); var DescribeActivityCommand_1 = require_DescribeActivityCommand(); var DescribeExecutionCommand_1 = require_DescribeExecutionCommand(); var DescribeMapRunCommand_1 = require_DescribeMapRunCommand(); - var DescribeStateMachineAliasCommand_1 = require_DescribeStateMachineAliasCommand(); var DescribeStateMachineCommand_1 = require_DescribeStateMachineCommand(); var DescribeStateMachineForExecutionCommand_1 = require_DescribeStateMachineForExecutionCommand(); var GetActivityTaskCommand_1 = require_GetActivityTaskCommand(); @@ -23733,11 +22662,8 @@ var require_SFN = __commonJS({ var ListActivitiesCommand_1 = require_ListActivitiesCommand(); var ListExecutionsCommand_1 = require_ListExecutionsCommand(); var ListMapRunsCommand_1 = require_ListMapRunsCommand(); - var ListStateMachineAliasesCommand_1 = require_ListStateMachineAliasesCommand(); var ListStateMachinesCommand_1 = require_ListStateMachinesCommand(); - var ListStateMachineVersionsCommand_1 = require_ListStateMachineVersionsCommand(); var ListTagsForResourceCommand_1 = require_ListTagsForResourceCommand(); - var PublishStateMachineVersionCommand_1 = require_PublishStateMachineVersionCommand(); var SendTaskFailureCommand_1 = require_SendTaskFailureCommand(); var SendTaskHeartbeatCommand_1 = require_SendTaskHeartbeatCommand(); var SendTaskSuccessCommand_1 = require_SendTaskSuccessCommand(); @@ -23747,33 +22673,25 @@ var require_SFN = __commonJS({ var TagResourceCommand_1 = require_TagResourceCommand(); var UntagResourceCommand_1 = require_UntagResourceCommand(); var UpdateMapRunCommand_1 = require_UpdateMapRunCommand(); - var UpdateStateMachineAliasCommand_1 = require_UpdateStateMachineAliasCommand(); var UpdateStateMachineCommand_1 = require_UpdateStateMachineCommand(); var SFNClient_1 = require_SFNClient(); var commands = { CreateActivityCommand: CreateActivityCommand_1.CreateActivityCommand, CreateStateMachineCommand: CreateStateMachineCommand_1.CreateStateMachineCommand, - CreateStateMachineAliasCommand: CreateStateMachineAliasCommand_1.CreateStateMachineAliasCommand, DeleteActivityCommand: DeleteActivityCommand_1.DeleteActivityCommand, DeleteStateMachineCommand: DeleteStateMachineCommand_1.DeleteStateMachineCommand, - DeleteStateMachineAliasCommand: DeleteStateMachineAliasCommand_1.DeleteStateMachineAliasCommand, - DeleteStateMachineVersionCommand: DeleteStateMachineVersionCommand_1.DeleteStateMachineVersionCommand, DescribeActivityCommand: DescribeActivityCommand_1.DescribeActivityCommand, DescribeExecutionCommand: DescribeExecutionCommand_1.DescribeExecutionCommand, DescribeMapRunCommand: DescribeMapRunCommand_1.DescribeMapRunCommand, DescribeStateMachineCommand: DescribeStateMachineCommand_1.DescribeStateMachineCommand, - DescribeStateMachineAliasCommand: DescribeStateMachineAliasCommand_1.DescribeStateMachineAliasCommand, DescribeStateMachineForExecutionCommand: DescribeStateMachineForExecutionCommand_1.DescribeStateMachineForExecutionCommand, GetActivityTaskCommand: GetActivityTaskCommand_1.GetActivityTaskCommand, GetExecutionHistoryCommand: GetExecutionHistoryCommand_1.GetExecutionHistoryCommand, ListActivitiesCommand: ListActivitiesCommand_1.ListActivitiesCommand, ListExecutionsCommand: ListExecutionsCommand_1.ListExecutionsCommand, ListMapRunsCommand: ListMapRunsCommand_1.ListMapRunsCommand, - ListStateMachineAliasesCommand: ListStateMachineAliasesCommand_1.ListStateMachineAliasesCommand, ListStateMachinesCommand: ListStateMachinesCommand_1.ListStateMachinesCommand, - ListStateMachineVersionsCommand: ListStateMachineVersionsCommand_1.ListStateMachineVersionsCommand, ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand, - PublishStateMachineVersionCommand: PublishStateMachineVersionCommand_1.PublishStateMachineVersionCommand, SendTaskFailureCommand: SendTaskFailureCommand_1.SendTaskFailureCommand, SendTaskHeartbeatCommand: SendTaskHeartbeatCommand_1.SendTaskHeartbeatCommand, SendTaskSuccessCommand: SendTaskSuccessCommand_1.SendTaskSuccessCommand, @@ -23783,8 +22701,7 @@ var require_SFN = __commonJS({ TagResourceCommand: TagResourceCommand_1.TagResourceCommand, UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand, UpdateMapRunCommand: UpdateMapRunCommand_1.UpdateMapRunCommand, - UpdateStateMachineCommand: UpdateStateMachineCommand_1.UpdateStateMachineCommand, - UpdateStateMachineAliasCommand: UpdateStateMachineAliasCommand_1.UpdateStateMachineAliasCommand + UpdateStateMachineCommand: UpdateStateMachineCommand_1.UpdateStateMachineCommand }; var SFN2 = class extends SFNClient_1.SFNClient { }; @@ -23800,16 +22717,12 @@ var require_commands4 = __commonJS({ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports)); tslib_1.__exportStar(require_CreateActivityCommand(), exports); - tslib_1.__exportStar(require_CreateStateMachineAliasCommand(), exports); tslib_1.__exportStar(require_CreateStateMachineCommand(), exports); tslib_1.__exportStar(require_DeleteActivityCommand(), exports); - tslib_1.__exportStar(require_DeleteStateMachineAliasCommand(), exports); tslib_1.__exportStar(require_DeleteStateMachineCommand(), exports); - tslib_1.__exportStar(require_DeleteStateMachineVersionCommand(), exports); tslib_1.__exportStar(require_DescribeActivityCommand(), exports); tslib_1.__exportStar(require_DescribeExecutionCommand(), exports); tslib_1.__exportStar(require_DescribeMapRunCommand(), exports); - tslib_1.__exportStar(require_DescribeStateMachineAliasCommand(), exports); tslib_1.__exportStar(require_DescribeStateMachineCommand(), exports); tslib_1.__exportStar(require_DescribeStateMachineForExecutionCommand(), exports); tslib_1.__exportStar(require_GetActivityTaskCommand(), exports); @@ -23817,11 +22730,8 @@ var require_commands4 = __commonJS({ tslib_1.__exportStar(require_ListActivitiesCommand(), exports); tslib_1.__exportStar(require_ListExecutionsCommand(), exports); tslib_1.__exportStar(require_ListMapRunsCommand(), exports); - tslib_1.__exportStar(require_ListStateMachineAliasesCommand(), exports); - tslib_1.__exportStar(require_ListStateMachineVersionsCommand(), exports); tslib_1.__exportStar(require_ListStateMachinesCommand(), exports); tslib_1.__exportStar(require_ListTagsForResourceCommand(), exports); - tslib_1.__exportStar(require_PublishStateMachineVersionCommand(), exports); tslib_1.__exportStar(require_SendTaskFailureCommand(), exports); tslib_1.__exportStar(require_SendTaskHeartbeatCommand(), exports); tslib_1.__exportStar(require_SendTaskSuccessCommand(), exports); @@ -23831,7 +22741,6 @@ var require_commands4 = __commonJS({ tslib_1.__exportStar(require_TagResourceCommand(), exports); tslib_1.__exportStar(require_UntagResourceCommand(), exports); tslib_1.__exportStar(require_UpdateMapRunCommand(), exports); - tslib_1.__exportStar(require_UpdateStateMachineAliasCommand(), exports); tslib_1.__exportStar(require_UpdateStateMachineCommand(), exports); } }); @@ -24124,8 +23033,8 @@ var require_lib2 = __commonJS({ conversions["void"] = function() { return void 0; }; - conversions["boolean"] = function(val2) { - return !!val2; + conversions["boolean"] = function(val) { + return !!val; }; conversions["byte"] = createNumberConversion(8, { unsigned: false }); conversions["octet"] = createNumberConversion(8, { unsigned: true }); @@ -24258,15 +23167,15 @@ var require_tr46 = __commonJS({ return s.normalize("NFC"); }).join("\0"); } - function findStatus(val2) { + function findStatus(val) { var start = 0; var end = mappingTable.length - 1; while (start <= end) { var mid = Math.floor((start + end) / 2); var target = mappingTable[mid]; - if (target[0][0] <= val2 && target[0][1] >= val2) { + if (target[0][0] <= val && target[0][1] >= val) { return target; - } else if (target[0][0] > val2) { + } else if (target[0][0] > val) { end = mid - 1; } else { start = mid + 1; @@ -27397,11 +26306,11 @@ var require_dbcs_codec = __commonJS({ var skipEncodeChars = {}; if (codecOptions.encodeSkipVals) for (var i2 = 0; i2 < codecOptions.encodeSkipVals.length; i2++) { - var val2 = codecOptions.encodeSkipVals[i2]; - if (typeof val2 === "number") - skipEncodeChars[val2] = true; + var val = codecOptions.encodeSkipVals[i2]; + if (typeof val === "number") + skipEncodeChars[val] = true; else - for (var j = val2.from; j <= val2.to; j++) + for (var j = val.from; j <= val.to; j++) skipEncodeChars[j] = true; } this._fillEncodeTable(0, 0, skipEncodeChars); @@ -27426,12 +26335,12 @@ var require_dbcs_codec = __commonJS({ bytes.push(0); var node = this.decodeTables[0]; for (var i2 = bytes.length - 1; i2 > 0; i2--) { - var val2 = node[bytes[i2]]; - if (val2 == UNASSIGNED) { + var val = node[bytes[i2]]; + if (val == UNASSIGNED) { node[bytes[i2]] = NODE_START - this.decodeTables.length; this.decodeTables.push(node = UNASSIGNED_NODE.slice(0)); - } else if (val2 <= NODE_START) { - node = this.decodeTables[NODE_START - val2]; + } else if (val <= NODE_START) { + node = this.decodeTables[NODE_START - val]; } else throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16)); } @@ -27736,13 +26645,13 @@ var require_dbcs_codec = __commonJS({ this.nodeIdx = 0; return ret; }; - function findIdx(table, val2) { - if (table[0] > val2) + function findIdx(table, val) { + if (table[0] > val) return -1; var l = 0, r = table.length; while (l < r - 1) { var mid = l + (r - l + 1 >> 1); - if (table[mid] <= val2) + if (table[mid] <= val) l = mid; else r = mid; @@ -30277,14 +29186,14 @@ var require_lib4 = __commonJS({ continue; } if (Array.isArray(obj[name])) { - for (const val2 of obj[name]) { - if (invalidHeaderCharRegex.test(val2)) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { continue; } if (headers[MAP][name] === void 0) { - headers[MAP][name] = [val2]; + headers[MAP][name] = [val]; } else { - headers[MAP][name].push(val2); + headers[MAP][name].push(val); } } } else if (!invalidHeaderCharRegex.test(obj[name])) { diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.assets.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.assets.json index 83c220c631d22..e7baac2e926f4 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.assets.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.assets.json @@ -1,15 +1,15 @@ { "version": "32.0.0", "files": { - "3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f": { + "89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c": { "source": { - "path": "asset.3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f", + "path": "asset.89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f.zip", + "objectKey": "89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } @@ -40,7 +40,7 @@ } } }, - "b8d63bca6d8095b500c49847ba4f19b705ee5740c296edff462481b6bd196e33": { + "70642f45881f6c5e6f6ba034e522d681914c99d3a9e8c89c9779faf8e508b2f9": { "source": { "path": "canary-one.template.json", "packaging": "file" @@ -48,7 +48,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "b8d63bca6d8095b500c49847ba4f19b705ee5740c296edff462481b6bd196e33.json", + "objectKey": "70642f45881f6c5e6f6ba034e522d681914c99d3a9e8c89c9779faf8e508b2f9.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.template.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.template.json index 09f84dc39130d..a8ab6db3e97c3 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.template.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/canary-one.template.json @@ -112,7 +112,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "3e6ea85c994cf2198f02e67a9e98e8f23456efa8bd72dd55b3a86454c4db9d5f.zip" + "S3Key": "89c643a8a6c919d906e0b1cb079b0c5e131cf3cc19c05126f90fc118647fb08c.zip" }, "Timeout": 900, "MemorySize": 128, @@ -573,6 +573,14 @@ } } ] + }, + "LifecycleConfiguration": { + "Rules": [ + { + "ExpirationInDays": 30, + "Status": "Enabled" + } + ] } }, "UpdateReplacePolicy": "Retain", diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/manifest.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/manifest.json index 3eff82caf821e..f0e073fa23022 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/manifest.json @@ -17,7 +17,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b8d63bca6d8095b500c49847ba4f19b705ee5740c296edff462481b6bd196e33.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/70642f45881f6c5e6f6ba034e522d681914c99d3a9e8c89c9779faf8e508b2f9.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -292,7 +292,7 @@ "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", - "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/802ff37ba76829d10db21bce3564f84bf2d4fb57f7db19c7e2534fb1dce44680.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5c382b4e425866a69d59a5cffba84fb128c5482ea37a4da5b0ddb7a5a803d15e.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/tree.json b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/tree.json index 18b993094bbc3..fb13efc597c1b 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.js.snapshot/tree.json @@ -836,6 +836,14 @@ } } ] + }, + "lifecycleConfiguration": { + "rules": [ + { + "expirationInDays": 30, + "status": "Enabled" + } + ] } } }, diff --git a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.ts b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.ts index bedce14d157af..80b09bcb9a4b7 100644 --- a/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.ts +++ b/packages/@aws-cdk/aws-synthetics-alpha/test/integ.canary.ts @@ -60,6 +60,11 @@ const zipAsset = new Canary(stack, 'ZipAsset', { handler: 'canary.handler', code: Code.fromAsset(path.join(__dirname, 'canary.zip')), }), + artifactsBucketLifecycleRules: [ + { + expiration: cdk.Duration.days(30), + }, + ], runtime: Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0, });