diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json index 6f93a5abf9e3b..f32c30d5e2f4c 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.assets.json @@ -1,5 +1,5 @@ { - "version": "35.0.0", + "version": "36.0.0", "files": { "df6156f884f46480078633afbd0b768581022c5e444c5f72752980280ae15bd9": { "source": { @@ -14,7 +14,7 @@ } } }, - "994f8c7abe2b3f6c8d3781397e390db9d07e0616825c3e71bccb9375e210fa3a": { + "8deae8f4c1da113072818007e731a323c8dd62c3021d881a84352b2bf0901604": { "source": { "path": "LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "994f8c7abe2b3f6c8d3781397e390db9d07e0616825c3e71bccb9375e210fa3a.json", + "objectKey": "8deae8f4c1da113072818007e731a323c8dd62c3021d881a84352b2bf0901604.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json index 70399a9693963..24597a0e813e4 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/LambdaNodeJsLatestIntegDefaultTestDeployAssertD40B5C28.template.json @@ -27,7 +27,7 @@ } }, "flattenResponse": "false", - "salt": "1701907107878" + "salt": "1703938182122" }, "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete" diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/index.js similarity index 99% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/index.js index 5cbde8fe437d2..ac04e6bc45069 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/index.js +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/index.js @@ -26,7 +26,7 @@ ${(0,Gl.toHex)(s)}`}getCanonicalPath({path:n}){if(this.uriEscapePath){let t=[];f `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}hr.prototype.build=function(e){return this.options.preserveOrder?TY(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};hr.prototype.j2x=function(e,n){let t="",r="";for(let o in e)if(!(typeof e[o]>"u"))if(e[o]===null)o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",n);else if(typeof e[o]!="object"){let s=this.isAttribute(o);if(s)t+=this.buildAttrPairStr(s,""+e[o]);else if(o===this.options.textNodeName){let c=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(c)}else r+=this.buildTextValNode(e[o],o,"",n)}else if(Array.isArray(e[o])){let s=e[o].length,c="";for(let i=0;i"u"||(u===null?o[0]==="?"?r+=this.indentate(n)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+o+"/"+this.tagEndChar:typeof u=="object"?this.options.oneListGroup?c+=this.j2x(u,n+1).val:c+=this.processTextOrObjNode(u,o,n):c+=this.buildTextValNode(u,o,"",n))}this.options.oneListGroup&&(c=this.buildObjectNode(c,o,"",n)),r+=c}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let s=Object.keys(e[o]),c=s.length;for(let i=0;i"+e+o:this.options.commentPropName!==!1&&n===this.options.commentPropName&&s.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+"<"+n+t+s+this.tagEndChar+e+this.indentate(r)+o}};hr.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 o=this.options.tagValueProcessor(n,e);return o=this.replaceEntitiesValue(o),o===""?this.indentate(r)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(r)+"<"+n+t+">"+o+"0&&this.options.processEntities)for(let n=0;n{"use strict";var FY=Uh(),LY=VT(),jY=eq();tq.exports={XMLParser:LY,XMLValidator:FY,XMLBuilder:jY}});var Mn=m(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.de_GetSessionTokenCommand=_e.de_GetFederationTokenCommand=_e.de_GetCallerIdentityCommand=_e.de_GetAccessKeyInfoCommand=_e.de_DecodeAuthorizationMessageCommand=_e.de_AssumeRoleWithWebIdentityCommand=_e.de_AssumeRoleWithSAMLCommand=_e.de_AssumeRoleCommand=_e.se_GetSessionTokenCommand=_e.se_GetFederationTokenCommand=_e.se_GetCallerIdentityCommand=_e.se_GetAccessKeyInfoCommand=_e.se_DecodeAuthorizationMessageCommand=_e.se_AssumeRoleWithWebIdentityCommand=_e.se_AssumeRoleWithSAMLCommand=_e.se_AssumeRoleCommand=void 0;var UY=we(),ee=E(),zY=Wh(),Cr=gr(),GY=$m(),HY=async(e,n)=>{let t=br,r;return r=vr({...y9(e,n),Action:"AssumeRole",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_AssumeRoleCommand=HY;var $Y=async(e,n)=>{let t=br,r;return r=vr({...g9(e,n),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_AssumeRoleWithSAMLCommand=$Y;var KY=async(e,n)=>{let t=br,r;return r=vr({...h9(e,n),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_AssumeRoleWithWebIdentityCommand=KY;var VY=async(e,n)=>{let t=br,r;return r=vr({...C9(e,n),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_DecodeAuthorizationMessageCommand=VY;var XY=async(e,n)=>{let t=br,r;return r=vr({...S9(e,n),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_GetAccessKeyInfoCommand=XY;var WY=async(e,n)=>{let t=br,r;return r=vr({...E9(e,n),Action:"GetCallerIdentity",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_GetCallerIdentityCommand=WY;var YY=async(e,n)=>{let t=br,r;return r=vr({...b9(e,n),Action:"GetFederationToken",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_GetFederationTokenCommand=YY;var QY=async(e,n)=>{let t=br,r;return r=vr({...P9(e,n),Action:"GetSessionToken",Version:"2011-06-15"}),Er(n,t,"/",void 0,r)};_e.se_GetSessionTokenCommand=QY;var JY=async(e,n)=>{if(e.statusCode>=300)return ZY(e,n);let t=await qn(e.body,n),r={};return r=I9(t.AssumeRoleResult,n),{$metadata:rt(e),...r}};_e.de_AssumeRoleCommand=JY;var ZY=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Yh(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Vm(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Xm(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Ic(t,n);default:let o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})}},e9=async(e,n)=>{if(e.statusCode>=300)return t9(e,n);let t=await qn(e.body,n),r={};return r=R9(t.AssumeRoleWithSAMLResult,n),{$metadata:rt(e),...r}};_e.de_AssumeRoleWithSAMLCommand=e9;var t9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Yh(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await nq(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await rq(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Vm(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Xm(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Ic(t,n);default:let o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})}},n9=async(e,n)=>{if(e.statusCode>=300)return r9(e,n);let t=await qn(e.body,n),r={};return r=N9(t.AssumeRoleWithWebIdentityResult,n),{$metadata:rt(e),...r}};_e.de_AssumeRoleWithWebIdentityCommand=n9;var r9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body);switch(r){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Yh(t,n);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await f9(t,n);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await nq(t,n);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await rq(t,n);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Vm(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Xm(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Ic(t,n);default:let o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})}},o9=async(e,n)=>{if(e.statusCode>=300)return s9(e,n);let t=await qn(e.body,n),r={};return r=O9(t.DecodeAuthorizationMessageResult,n),{$metadata:rt(e),...r}};_e.de_DecodeAuthorizationMessageCommand=o9;var s9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body);switch(r){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await _9(t,n);default:let o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})}},i9=async(e,n)=>{if(e.statusCode>=300)return a9(e,n);let t=await qn(e.body,n),r={};return r=M9(t.GetAccessKeyInfoResult,n),{$metadata:rt(e),...r}};_e.de_GetAccessKeyInfoCommand=i9;var a9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body),o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})},c9=async(e,n)=>{if(e.statusCode>=300)return d9(e,n);let t=await qn(e.body,n),r={};return r=B9(t.GetCallerIdentityResult,n),{$metadata:rt(e),...r}};_e.de_GetCallerIdentityCommand=c9;var d9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body),o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})},l9=async(e,n)=>{if(e.statusCode>=300)return u9(e,n);let t=await qn(e.body,n),r={};return r=D9(t.GetFederationTokenResult,n),{$metadata:rt(e),...r}};_e.de_GetFederationTokenCommand=l9;var u9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body);switch(r){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Vm(t,n);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Xm(t,n);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Ic(t,n);default:let o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})}},m9=async(e,n)=>{if(e.statusCode>=300)return p9(e,n);let t=await qn(e.body,n),r={};return r=F9(t.GetSessionTokenResult,n),{$metadata:rt(e),...r}};_e.de_GetSessionTokenCommand=m9;var p9=async(e,n)=>{let t={...e,body:await Pr(e.body,n)},r=xr(e,t.body);switch(r){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Ic(t,n);default:let o=t.body;return Sr({output:e,parsedBody:o.Error,errorCode:r})}},Yh=async(e,n)=>{let t=e.body,r=T9(t.Error,n),o=new Cr.ExpiredTokenException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},f9=async(e,n)=>{let t=e.body,r=L9(t.Error,n),o=new Cr.IDPCommunicationErrorException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},nq=async(e,n)=>{let t=e.body,r=j9(t.Error,n),o=new Cr.IDPRejectedClaimException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},_9=async(e,n)=>{let t=e.body,r=U9(t.Error,n),o=new Cr.InvalidAuthorizationMessageException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},rq=async(e,n)=>{let t=e.body,r=z9(t.Error,n),o=new Cr.InvalidIdentityTokenException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},Vm=async(e,n)=>{let t=e.body,r=G9(t.Error,n),o=new Cr.MalformedPolicyDocumentException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},Xm=async(e,n)=>{let t=e.body,r=H9(t.Error,n),o=new Cr.PackedPolicyTooLargeException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},Ic=async(e,n)=>{let t=e.body,r=$9(t.Error,n),o=new Cr.RegionDisabledException({$metadata:rt(e),...r});return(0,ee.decorateServiceException)(o,t)},y9=(e,n)=>{var r,o,s,c;let t={};if(e.RoleArn!=null&&(t.RoleArn=e.RoleArn),e.RoleSessionName!=null&&(t.RoleSessionName=e.RoleSessionName),e.PolicyArns!=null){let i=Wm(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(i).forEach(([u,l])=>{let a=`PolicyArns.${u}`;t[a]=l})}if(e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let i=oq(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(i).forEach(([u,l])=>{let a=`Tags.${u}`;t[a]=l})}if(e.TransitiveTagKeys!=null){let i=A9(e.TransitiveTagKeys,n);((s=e.TransitiveTagKeys)==null?void 0:s.length)===0&&(t.TransitiveTagKeys=[]),Object.entries(i).forEach(([u,l])=>{let a=`TransitiveTagKeys.${u}`;t[a]=l})}if(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),e.ProvidedContexts!=null){let i=w9(e.ProvidedContexts,n);((c=e.ProvidedContexts)==null?void 0:c.length)===0&&(t.ProvidedContexts=[]),Object.entries(i).forEach(([u,l])=>{let a=`ProvidedContexts.${u}`;t[a]=l})}return t},g9=(e,n)=>{var r;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 o=Wm(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},h9=(e,n)=>{var r;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 o=Wm(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(o).forEach(([s,c])=>{let i=`PolicyArns.${s}`;t[i]=c})}return e.Policy!=null&&(t.Policy=e.Policy),e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),t},C9=(e,n)=>{let t={};return e.EncodedMessage!=null&&(t.EncodedMessage=e.EncodedMessage),t},S9=(e,n)=>{let t={};return e.AccessKeyId!=null&&(t.AccessKeyId=e.AccessKeyId),t},E9=(e,n)=>({}),b9=(e,n)=>{var r,o;let t={};if(e.Name!=null&&(t.Name=e.Name),e.Policy!=null&&(t.Policy=e.Policy),e.PolicyArns!=null){let s=Wm(e.PolicyArns,n);((r=e.PolicyArns)==null?void 0:r.length)===0&&(t.PolicyArns=[]),Object.entries(s).forEach(([c,i])=>{let u=`PolicyArns.${c}`;t[u]=i})}if(e.DurationSeconds!=null&&(t.DurationSeconds=e.DurationSeconds),e.Tags!=null){let s=oq(e.Tags,n);((o=e.Tags)==null?void 0:o.length)===0&&(t.Tags=[]),Object.entries(s).forEach(([c,i])=>{let u=`Tags.${c}`;t[u]=i})}return t},P9=(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},Wm=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=v9(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},v9=(e,n)=>{let t={};return e.arn!=null&&(t.arn=e.arn),t},x9=(e,n)=>{let t={};return e.ProviderArn!=null&&(t.ProviderArn=e.ProviderArn),e.ContextAssertion!=null&&(t.ContextAssertion=e.ContextAssertion),t},w9=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=x9(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},k9=(e,n)=>{let t={};return e.Key!=null&&(t.Key=e.Key),e.Value!=null&&(t.Value=e.Value),t},A9=(e,n)=>{let t={},r=1;for(let o of e)o!==null&&(t[`member.${r}`]=o,r++);return t},oq=(e,n)=>{let t={},r=1;for(let o of e){if(o===null)continue;let s=k9(o,n);Object.entries(s).forEach(([c,i])=>{t[`member.${r}.${c}`]=i}),r++}return t},Qh=(e,n)=>{let t={};return e.AssumedRoleId!==void 0&&(t.AssumedRoleId=(0,ee.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(t.Arn=(0,ee.expectString)(e.Arn)),t},I9=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Rc(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Qh(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ee.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,ee.expectString)(e.SourceIdentity)),t},R9=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Rc(e.Credentials,n)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Qh(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ee.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(t.Subject=(0,ee.expectString)(e.Subject)),e.SubjectType!==void 0&&(t.SubjectType=(0,ee.expectString)(e.SubjectType)),e.Issuer!==void 0&&(t.Issuer=(0,ee.expectString)(e.Issuer)),e.Audience!==void 0&&(t.Audience=(0,ee.expectString)(e.Audience)),e.NameQualifier!==void 0&&(t.NameQualifier=(0,ee.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,ee.expectString)(e.SourceIdentity)),t},N9=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Rc(e.Credentials,n)),e.SubjectFromWebIdentityToken!==void 0&&(t.SubjectFromWebIdentityToken=(0,ee.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(t.AssumedRoleUser=Qh(e.AssumedRoleUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ee.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(t.Provider=(0,ee.expectString)(e.Provider)),e.Audience!==void 0&&(t.Audience=(0,ee.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(t.SourceIdentity=(0,ee.expectString)(e.SourceIdentity)),t},Rc=(e,n)=>{let t={};return e.AccessKeyId!==void 0&&(t.AccessKeyId=(0,ee.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(t.SecretAccessKey=(0,ee.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(t.SessionToken=(0,ee.expectString)(e.SessionToken)),e.Expiration!==void 0&&(t.Expiration=(0,ee.expectNonNull)((0,ee.parseRfc3339DateTimeWithOffset)(e.Expiration))),t},O9=(e,n)=>{let t={};return e.DecodedMessage!==void 0&&(t.DecodedMessage=(0,ee.expectString)(e.DecodedMessage)),t},T9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},q9=(e,n)=>{let t={};return e.FederatedUserId!==void 0&&(t.FederatedUserId=(0,ee.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(t.Arn=(0,ee.expectString)(e.Arn)),t},M9=(e,n)=>{let t={};return e.Account!==void 0&&(t.Account=(0,ee.expectString)(e.Account)),t},B9=(e,n)=>{let t={};return e.UserId!==void 0&&(t.UserId=(0,ee.expectString)(e.UserId)),e.Account!==void 0&&(t.Account=(0,ee.expectString)(e.Account)),e.Arn!==void 0&&(t.Arn=(0,ee.expectString)(e.Arn)),t},D9=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Rc(e.Credentials,n)),e.FederatedUser!==void 0&&(t.FederatedUser=q9(e.FederatedUser,n)),e.PackedPolicySize!==void 0&&(t.PackedPolicySize=(0,ee.strictParseInt32)(e.PackedPolicySize)),t},F9=(e,n)=>{let t={};return e.Credentials!==void 0&&(t.Credentials=Rc(e.Credentials,n)),t},L9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},j9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},U9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},z9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},G9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},H9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},$9=(e,n)=>{let t={};return e.message!==void 0&&(t.message=(0,ee.expectString)(e.message)),t},rt=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"]}),K9=(e,n)=>(0,ee.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Sr=(0,ee.withBaseException)(GY.STSServiceException),Er=async(e,n,t,r,o)=>{let{hostname:s,protocol:c="https",port:i,path:u}=await e.endpoint(),l={protocol:c,hostname:s,port:i,method:"POST",path:u.endsWith("/")?u.slice(0,-1)+t:u+t,headers:n};return r!==void 0&&(l.hostname=r),o!==void 0&&(l.body=o),new UY.HttpRequest(l)},br={"content-type":"application/x-www-form-urlencoded"},qn=(e,n)=>K9(e,n).then(t=>{if(t.length){let r=new zY.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 o=r.parse(t),s="#text",c=Object.keys(o)[0],i=o[c];return i[s]&&(i[c]=i[s],delete i[s]),(0,ee.getValueFromTextNode)(i)}return{}}),Pr=async(e,n)=>{let t=await qn(e,n);return t.Error&&(t.Error.message=t.Error.message??t.Error.Message),t},vr=e=>Object.entries(e).map(([n,t])=>(0,ee.extendedEncodeURIComponent)(n)+"="+(0,ee.extendedEncodeURIComponent)(t)).join("&"),xr=(e,n)=>{var t;if(((t=n.Error)==null?void 0:t.Code)!==void 0)return n.Error.Code;if(e.statusCode==404)return"NotFound"}});var Ym=m(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.AssumeRoleCommand=Zo.$Command=void 0;var V9=kn(),X9=x(),W9=w(),iq=E();Object.defineProperty(Zo,"$Command",{enumerable:!0,get:function(){return iq.Command}});var Y9=v(),Q9=gr(),sq=Mn(),Jh=class e extends iq.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,W9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,X9.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,V9.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:Q9.AssumeRoleResponseFilterSensitiveLog,[Y9.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRole"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,sq.se_AssumeRoleCommand)(n,t)}deserialize(n,t){return(0,sq.de_AssumeRoleCommand)(n,t)}};Zo.AssumeRoleCommand=Jh});var Qm=m(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.AssumeRoleWithWebIdentityCommand=es.$Command=void 0;var J9=x(),Z9=w(),dq=E();Object.defineProperty(es,"$Command",{enumerable:!0,get:function(){return dq.Command}});var e7=v(),aq=gr(),cq=Mn(),Zh=class e extends dq.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,Z9.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,J9.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:aq.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:aq.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,[e7.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithWebIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,cq.se_AssumeRoleWithWebIdentityCommand)(n,t)}deserialize(n,t){return(0,cq.de_AssumeRoleWithWebIdentityCommand)(n,t)}};es.AssumeRoleWithWebIdentityCommand=Zh});var eC=m(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.decorateDefaultCredentialProvider=rn.getDefaultRoleAssumerWithWebIdentity=rn.getDefaultRoleAssumer=void 0;var t7=Ym(),n7=Qm(),lq="us-east-1",uq=e=>typeof e!="function"?e===void 0?lq:e:async()=>{try{return await e()}catch{return lq}},r7=(e,n)=>{let t,r;return async(o,s)=>{if(r=o,!t){let{logger:i,region:u,requestHandler:l}=e;t=new n({logger:i,credentialDefaultProvider:()=>async()=>r,region:uq(u||e.region),...l?{requestHandler:l}:{}})}let{Credentials:c}=await t.send(new t7.AssumeRoleCommand(s));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}};rn.getDefaultRoleAssumer=r7;var o7=(e,n)=>{let t;return async r=>{if(!t){let{logger:s,region:c,requestHandler:i}=e;t=new n({logger:s,region:uq(c||e.region),...i?{requestHandler:i}:{}})}let{Credentials:o}=await t.send(new n7.AssumeRoleWithWebIdentityCommand(r));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};rn.getDefaultRoleAssumerWithWebIdentity=o7;var s7=e=>n=>e({roleAssumer:(0,rn.getDefaultRoleAssumer)(n,n.stsClientCtor),roleAssumerWithWebIdentity:(0,rn.getDefaultRoleAssumerWithWebIdentity)(n,n.stsClientCtor),...n});rn.decorateDefaultCredentialProvider=s7});var mq=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.fromEnv=ot.ENV_EXPIRATION=ot.ENV_SESSION=ot.ENV_SECRET=ot.ENV_KEY=void 0;var i7=Ce();ot.ENV_KEY="AWS_ACCESS_KEY_ID";ot.ENV_SECRET="AWS_SECRET_ACCESS_KEY";ot.ENV_SESSION="AWS_SESSION_TOKEN";ot.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var a7=()=>async()=>{let e=process.env[ot.ENV_KEY],n=process.env[ot.ENV_SECRET],t=process.env[ot.ENV_SESSION],r=process.env[ot.ENV_EXPIRATION];if(e&&n)return{accessKeyId:e,secretAccessKey:n,...t&&{sessionToken:t},...r&&{expiration:new Date(r)}};throw new i7.CredentialsProviderError("Unable to find environment variable credentials.")};ot.fromEnv=a7});var nC=m(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});var c7=(z(),j(U));c7.__exportStar(mq(),tC)});var Zm=m(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.httpRequest=void 0;var rC=Ce(),d7=require("buffer"),l7=require("http");function u7(e){return new Promise((n,t)=>{var r;let o=(0,l7.request)({method:"GET",...e,hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")});o.on("error",s=>{t(Object.assign(new rC.ProviderError("Unable to connect to instance metadata service"),s)),o.destroy()}),o.on("timeout",()=>{t(new rC.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:c=400}=s;(c<200||300<=c)&&(t(Object.assign(new rC.ProviderError("Error response received from instance metadata service"),{statusCode:c})),o.destroy());let i=[];s.on("data",u=>{i.push(u)}),s.on("end",()=>{n(d7.Buffer.concat(i)),o.destroy()})}),o.end()})}Jm.httpRequest=u7});var oC=m(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.fromImdsCredentials=ts.isImdsCredentials=void 0;var m7=e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";ts.isImdsCredentials=m7;var p7=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});ts.fromImdsCredentials=p7});var ep=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 f7=({maxRetries:e=on.DEFAULT_MAX_RETRIES,timeout:n=on.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:n});on.providerConfigFromInit=f7});var sC=m(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.retry=void 0;var _7=(e,n)=>{let t=e();for(let r=0;r{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.fromContainerMetadata=He.ENV_CMDS_AUTH_TOKEN=He.ENV_CMDS_RELATIVE_URI=He.ENV_CMDS_FULL_URI=void 0;var np=Ce(),y7=require("url"),g7=Zm(),pq=oC(),h7=ep(),C7=sC();He.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";He.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";He.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var S7=(e={})=>{let{timeout:n,maxRetries:t}=(0,h7.providerConfigFromInit)(e);return()=>(0,C7.retry)(async()=>{let r=await x7(),o=JSON.parse(await E7(n,r));if(!(0,pq.isImdsCredentials)(o))throw new np.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,pq.fromImdsCredentials)(o)},t)};He.fromContainerMetadata=S7;var E7=async(e,n)=>(process.env[He.ENV_CMDS_AUTH_TOKEN]&&(n.headers={...n.headers,Authorization:process.env[He.ENV_CMDS_AUTH_TOKEN]}),(await(0,g7.httpRequest)({...n,timeout:e})).toString()),b7="169.254.170.2",P7={localhost:!0,"127.0.0.1":!0},v7={"http:":!0,"https:":!0},x7=async()=>{if(process.env[He.ENV_CMDS_RELATIVE_URI])return{hostname:b7,path:process.env[He.ENV_CMDS_RELATIVE_URI]};if(process.env[He.ENV_CMDS_FULL_URI]){let e=(0,y7.parse)(process.env[He.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in P7))throw new np.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in v7))throw new np.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 np.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${He.ENV_CMDS_RELATIVE_URI} or ${He.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var _q=m(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.InstanceMetadataV1FallbackError=void 0;var w7=Ce(),iC=class e extends w7.CredentialsProviderError{constructor(n,t=!0){super(n,t),this.tryNextLink=t,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,e.prototype)}};rp.InstanceMetadataV1FallbackError=iC});var yq=m(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.Endpoint=void 0;var k7;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(k7=Nc.Endpoint||(Nc.Endpoint={}))});var gq=m(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.ENDPOINT_CONFIG_OPTIONS=sn.CONFIG_ENDPOINT_NAME=sn.ENV_ENDPOINT_NAME=void 0;sn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";sn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";sn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[sn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[sn.CONFIG_ENDPOINT_NAME],default:void 0}});var aC=m(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.EndpointMode=void 0;var A7;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(A7=Oc.EndpointMode||(Oc.EndpointMode={}))});var hq=m(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.ENDPOINT_MODE_CONFIG_OPTIONS=an.CONFIG_ENDPOINT_MODE_NAME=an.ENV_ENDPOINT_MODE_NAME=void 0;var I7=aC();an.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";an.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";an.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[an.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[an.CONFIG_ENDPOINT_MODE_NAME],default:I7.EndpointMode.IPv4}});var dC=m(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.getInstanceMetadataEndpoint=void 0;var Sq=en(),R7=Zr(),Cq=yq(),N7=gq(),cC=aC(),O7=hq(),T7=async()=>(0,R7.parseUrl)(await q7()||await M7());op.getInstanceMetadataEndpoint=T7;var q7=async()=>(0,Sq.loadConfig)(N7.ENDPOINT_CONFIG_OPTIONS)(),M7=async()=>{let e=await(0,Sq.loadConfig)(O7.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case cC.EndpointMode.IPv4:return Cq.Endpoint.IPv4;case cC.EndpointMode.IPv6:return Cq.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(cC.EndpointMode)}`)}}});var Eq=m(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.getExtendedInstanceMetadataCredentials=void 0;var B7=5*60,D7=5*60,F7="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",L7=(e,n)=>{var t;let r=B7+Math.floor(Math.random()*D7),o=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: "+F7);let s=(t=e.originalExpiration)!==null&&t!==void 0?t:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:o}};sp.getExtendedInstanceMetadataCredentials=L7});var Pq=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.staticStabilityProvider=void 0;var bq=Eq(),j7=(e,n={})=>{let t=(n==null?void 0:n.logger)||console,r;return async()=>{let o;try{o=await e(),o.expiration&&o.expiration.getTime(){"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.fromInstanceMetadata=void 0;var U7=en(),Aq=Ce(),z7=_q(),uC=Zm(),vq=oC(),G7=ep(),xq=sC(),H7=dC(),$7=Pq(),Iq="/latest/meta-data/iam/security-credentials/",K7="/latest/api/token",lC="AWS_EC2_METADATA_V1_DISABLED",wq="ec2_metadata_v1_disabled",kq="x-aws-ec2-metadata-token",V7=(e={})=>(0,$7.staticStabilityProvider)(X7(e),{logger:e.logger});ap.fromInstanceMetadata=V7;var X7=e=>{let n=!1,{logger:t,profile:r}=e,{timeout:o,maxRetries:s}=(0,G7.providerConfigFromInit)(e),c=async(i,u)=>{var l;if(n||((l=u.headers)===null||l===void 0?void 0:l[kq])==null){let y=!1,C=!1,b=await(0,U7.loadConfig)({environmentVariableSelector:A=>{let k=A[lC];if(C=!!k&&k!=="false",k===void 0)throw new Aq.CredentialsProviderError(`${lC} not set in env, checking config file next.`);return C},configFileSelector:A=>{let k=A[wq];return y=!!k&&k!=="false",y},default:!1},{profile:r})();if(e.ec2MetadataV1Disabled||b){let A=[];throw e.ec2MetadataV1Disabled&&A.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),y&&A.push(`config file profile (${wq})`),C&&A.push(`process environment variable (${lC})`),new z7.InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${A.join(", ")}].`)}}let _=(await(0,xq.retry)(async()=>{let y;try{y=await Y7(u)}catch(C){throw C.statusCode===401&&(n=!1),C}return y},i)).trim();return(0,xq.retry)(async()=>{let y;try{y=await Q7(_,u)}catch(C){throw C.statusCode===401&&(n=!1),C}return y},i)};return async()=>{let i=await(0,H7.getInstanceMetadataEndpoint)();if(n)return t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),c(s,{...i,timeout:o});{let u;try{u=(await W7({...i,timeout:o})).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(n=!0),t==null||t.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),c(s,{...i,timeout:o})}return c(s,{...i,headers:{[kq]:u},timeout:o})}}},W7=async e=>(0,uC.httpRequest)({...e,path:K7,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Y7=async e=>(await(0,uC.httpRequest)({...e,path:Iq})).toString(),Q7=async(e,n)=>{let t=JSON.parse((await(0,uC.httpRequest)({...n,path:Iq+e})).toString());if(!(0,vq.isImdsCredentials)(t))throw new Aq.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,vq.fromImdsCredentials)(t)}});var Oq=m(Nq=>{"use strict";Object.defineProperty(Nq,"__esModule",{value:!0})});var dp=m(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.getInstanceMetadataEndpoint=cn.httpRequest=void 0;var cp=(z(),j(U));cp.__exportStar(fq(),cn);cp.__exportStar(Rq(),cn);cp.__exportStar(ep(),cn);cp.__exportStar(Oq(),cn);var J7=Zm();Object.defineProperty(cn,"httpRequest",{enumerable:!0,get:function(){return J7.httpRequest}});var Z7=dC();Object.defineProperty(cn,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Z7.getInstanceMetadataEndpoint}})});var qq=m(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.resolveCredentialSource=void 0;var eQ=nC(),Tq=dp(),tQ=Ce(),nQ=(e,n)=>{let t={EcsContainer:Tq.fromContainerMetadata,Ec2InstanceMetadata:Tq.fromInstanceMetadata,Environment:eQ.fromEnv};if(e in t)return t[e]();throw new tQ.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};lp.resolveCredentialSource=nQ});var Mq=m(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.resolveAssumeRoleCredentials=ns.isAssumeRoleProfile=void 0;var mC=Ce(),rQ=Dt(),oQ=qq(),sQ=pC(),iQ=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&&(aQ(e)||cQ(e));ns.isAssumeRoleProfile=iQ;var aQ=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",cQ=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",dQ=async(e,n,t,r={})=>{let o=n[e];if(!t.roleAssumer)throw new mC.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=o;if(s&&s in r)throw new mC.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,rQ.getProfileName)(t)}. Profiles visited: `+Object.keys(r).join(", "),!1);let c=s?(0,sQ.resolveProfileData)(s,n,t,{...r,[s]:!0}):(0,oQ.resolveCredentialSource)(o.credential_source,e)(),i={RoleArn:o.role_arn,RoleSessionName:o.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:o.external_id,DurationSeconds:parseInt(o.duration_seconds||"3600",10)},{mfa_serial:u}=o;if(u){if(!t.mfaCodeProvider)throw new mC.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)};ns.resolveAssumeRoleCredentials=dQ});var Bq=m(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.getValidatedProcessCredentials=void 0;var lQ=(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(mp,"__esModule",{value:!0});mp.resolveProcessCredentials=void 0;var fC=Ce(),uQ=require("child_process"),mQ=require("util"),pQ=Bq(),fQ=async(e,n)=>{let t=n[e];if(n[e]){let r=t.credential_process;if(r!==void 0){let o=(0,mQ.promisify)(uQ.exec);try{let{stdout:s}=await o(r),c;try{c=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,pQ.getValidatedProcessCredentials)(e,c)}catch(s){throw new fC.CredentialsProviderError(s.message)}}else throw new fC.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new fC.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};mp.resolveProcessCredentials=fQ});var Lq=m(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.fromProcess=void 0;var Fq=Dt(),_Q=Dq(),yQ=(e={})=>async()=>{let n=await(0,Fq.parseKnownFiles)(e);return(0,_Q.resolveProcessCredentials)((0,Fq.getProfileName)(e),n)};pp.fromProcess=yQ});var yC=m(_C=>{"use strict";Object.defineProperty(_C,"__esModule",{value:!0});var gQ=(z(),j(U));gQ.__exportStar(Lq(),_C)});var jq=m(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.resolveProcessCredentials=rs.isProcessProfile=void 0;var hQ=yC(),CQ=e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string";rs.isProcessProfile=CQ;var SQ=async(e,n)=>(0,hQ.fromProcess)({...e,profile:n})();rs.resolveProcessCredentials=SQ});var gC=m(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.isSsoProfile=void 0;var EQ=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");fp.isSsoProfile=EQ});var Uq=m(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.resolveClientEndpointParameters=void 0;var bQ=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"});_p.resolveClientEndpointParameters=bQ});var zq=m((cOe,PQ)=>{PQ.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.421.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.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0",tslib:"^2.5.0"},devDependencies:{"@smithy/service-client-documentation-generator":"^2.0.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"}}});var Hq=m((yp,Gq)=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.isCrtAvailable=void 0;var vQ=()=>{try{return typeof require=="function"&&typeof Gq<"u"&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};yp.isCrtAvailable=vQ});var Tc=m(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.defaultUserAgent=dn.UA_APP_ID_INI_NAME=dn.UA_APP_ID_ENV_NAME=void 0;var xQ=en(),$q=require("os"),hC=require("process"),wQ=Hq();dn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";dn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var kQ=({serviceId:e,clientVersion:n})=>{let t=[["aws-sdk-js",n],["ua","2.0"],[`os/${(0,$q.platform)()}`,(0,$q.release)()],["lang/js"],["md/nodejs",`${hC.versions.node}`]],r=(0,wQ.isCrtAvailable)();r&&t.push(r),e&&t.push([`api/${e}`,n]),hC.env.AWS_EXECUTION_ENV&&t.push([`exec-env/${hC.env.AWS_EXECUTION_ENV}`]);let o=(0,xQ.loadConfig)({environmentVariableSelector:c=>c[dn.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[dn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let c=await o;s=c?[...t,[`app/${c}`]]:[...t]}return s}};dn.defaultUserAgent=kQ});var qc=m(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.Hash=void 0;var CC=Gr(),AQ=Pt(),IQ=require("buffer"),Kq=require("crypto"),SC=class{constructor(n,t){this.algorithmIdentifier=n,this.secret=t,this.reset()}update(n,t){this.hash.update((0,AQ.toUint8Array)(Vq(n,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,Kq.createHmac)(this.algorithmIdentifier,Vq(this.secret)):(0,Kq.createHash)(this.algorithmIdentifier)}};gp.Hash=SC;function Vq(e,n){return IQ.Buffer.isBuffer(e)?e:typeof e=="string"?(0,CC.fromString)(e,n):ArrayBuffer.isView(e)?(0,CC.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,CC.fromArrayBuffer)(e)}});var Wq=m(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.calculateBodyLength=void 0;var Xq=require("fs"),RQ=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.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,Xq.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,Xq.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};hp.calculateBodyLength=RQ});var Mc=m(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});var NQ=(z(),j(U));NQ.__exportStar(Wq(),EC)});var c1=m(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.ruleSet=void 0;var s1="required",Dn="fn",Fn="argv",ss="ref",Yq="isSet",Bn="tree",os="error",Bc="endpoint",bC="PartitionResult",Qq={[s1]:!1,type:"String"},Jq={[s1]:!0,default:!1,type:"Boolean"},Zq={[ss]:"Endpoint"},i1={[Dn]:"booleanEquals",[Fn]:[{[ss]:"UseFIPS"},!0]},a1={[Dn]:"booleanEquals",[Fn]:[{[ss]:"UseDualStack"},!0]},ln={},e1={[Dn]:"booleanEquals",[Fn]:[!0,{[Dn]:"getAttr",[Fn]:[{[ss]:bC},"supportsFIPS"]}]},t1={[Dn]:"booleanEquals",[Fn]:[!0,{[Dn]:"getAttr",[Fn]:[{[ss]:bC},"supportsDualStack"]}]},n1=[i1],r1=[a1],o1=[{[ss]:"Region"}],OQ={version:"1.0",parameters:{Region:Qq,UseDualStack:Jq,UseFIPS:Jq,Endpoint:Qq},rules:[{conditions:[{[Dn]:Yq,[Fn]:[Zq]}],type:Bn,rules:[{conditions:n1,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:os},{conditions:r1,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:os},{endpoint:{url:Zq,properties:ln,headers:ln},type:Bc}]},{conditions:[{[Dn]:Yq,[Fn]:o1}],type:Bn,rules:[{conditions:[{[Dn]:"aws.partition",[Fn]:o1,assign:bC}],type:Bn,rules:[{conditions:[i1,a1],type:Bn,rules:[{conditions:[e1,t1],type:Bn,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ln,headers:ln},type:Bc}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:os}]},{conditions:n1,type:Bn,rules:[{conditions:[e1],type:Bn,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ln,headers:ln},type:Bc}]},{error:"FIPS is enabled but this partition does not support FIPS",type:os}]},{conditions:r1,type:Bn,rules:[{conditions:[t1],type:Bn,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ln,headers:ln},type:Bc}]},{error:"DualStack is enabled but this partition does not support DualStack",type:os}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:ln,headers:ln},type:Bc}]}]},{error:"Invalid Configuration: Missing Region",type:os}]};Cp.ruleSet=OQ});var d1=m(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.defaultEndpointResolver=void 0;var TQ=Ko(),qQ=c1(),MQ=(e,n={})=>(0,TQ.resolveEndpoint)(qQ.ruleSet,{endpointParams:e,logger:n.logger});Sp.defaultEndpointResolver=MQ});var m1=m(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.getRuntimeConfig=void 0;var BQ=E(),DQ=Zr(),l1=Po(),u1=Pt(),FQ=d1(),LQ=e=>({apiVersion:"2019-06-10",base64Decoder:(e==null?void 0:e.base64Decoder)??l1.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??l1.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??FQ.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new BQ.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"SSO",urlParser:(e==null?void 0:e.urlParser)??DQ.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??u1.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??u1.toUtf8});Ep.getRuntimeConfig=LQ});var p1=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.IMDS_REGION_PATH=ft.DEFAULTS_MODE_OPTIONS=ft.ENV_IMDS_DISABLED=ft.AWS_DEFAULT_REGION_ENV=ft.AWS_REGION_ENV=ft.AWS_EXECUTION_ENV=void 0;ft.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";ft.AWS_REGION_ENV="AWS_REGION";ft.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";ft.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";ft.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];ft.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var f1=m(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var jQ="AWS_DEFAULTS_MODE",UQ="defaults_mode";bp.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[jQ],configFileSelector:e=>e[UQ],default:"legacy"}});var g1=m(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.resolveDefaultsModeConfig=void 0;var zQ=Qt(),_1=dp(),y1=en(),GQ=Ce(),wr=p1(),HQ=f1(),$Q=({region:e=(0,y1.loadConfig)(zQ.NODE_REGION_CONFIG_OPTIONS),defaultsMode:n=(0,y1.loadConfig)(HQ.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,GQ.memoize)(async()=>{let t=typeof n=="function"?await n():n;switch(t==null?void 0:t.toLowerCase()){case"auto":return KQ(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${wr.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${t}`)}});Pp.resolveDefaultsModeConfig=$Q;var KQ=async e=>{if(e){let n=typeof e=="function"?await e():e,t=await VQ();return t?n===t?"in-region":"cross-region":"standard"}return"standard"},VQ=async()=>{var e;if(process.env[wr.AWS_EXECUTION_ENV]&&(process.env[wr.AWS_REGION_ENV]||process.env[wr.AWS_DEFAULT_REGION_ENV]))return(e=process.env[wr.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[wr.AWS_DEFAULT_REGION_ENV];if(!process.env[wr.ENV_IMDS_DISABLED])try{let n=await(0,_1.getInstanceMetadataEndpoint)();return(await(0,_1.httpRequest)({...n,path:wr.IMDS_REGION_PATH})).toString()}catch{}}});var Dc=m(PC=>{"use strict";Object.defineProperty(PC,"__esModule",{value:!0});var XQ=(z(),j(U));XQ.__exportStar(g1(),PC)});var S1=m(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.getRuntimeConfig=void 0;var WQ=(z(),j(U)),YQ=WQ.__importDefault(zq()),QQ=Tc(),vp=Qt(),JQ=qc(),h1=On(),Fc=en(),C1=wo(),ZQ=Mc(),eJ=Rt(),tJ=m1(),nJ=E(),rJ=Dc(),oJ=E(),sJ=e=>{(0,oJ.emitWarningIfUnsupportedVersion)(process.version);let n=(0,rJ.resolveDefaultsModeConfig)(e),t=()=>n().then(nJ.loadConfigsForDefaultMode),r=(0,tJ.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??ZQ.calculateBodyLength,defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,QQ.defaultUserAgent)({serviceId:r.serviceId,clientVersion:YQ.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Fc.loadConfig)(h1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Fc.loadConfig)(vp.NODE_REGION_CONFIG_OPTIONS,vp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new C1.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Fc.loadConfig)({...h1.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||eJ.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??JQ.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??C1.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Fc.loadConfig)(vp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Fc.loadConfig)(vp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};xp.getRuntimeConfig=sJ});var E1=m(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.resolveAwsRegionExtensionConfiguration=is.getAwsRegionExtensionConfiguration=void 0;var iJ=e=>{let n=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");let t=e.region;return typeof t=="string"?t:t()};return{setRegion(t){n=t},region(){return n}}};is.getAwsRegionExtensionConfiguration=iJ;var aJ=e=>({region:e.region()});is.resolveAwsRegionExtensionConfiguration=aJ});var b1=m(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.NODE_REGION_CONFIG_FILE_OPTIONS=Nt.NODE_REGION_CONFIG_OPTIONS=Nt.REGION_INI_NAME=Nt.REGION_ENV_NAME=void 0;Nt.REGION_ENV_NAME="AWS_REGION";Nt.REGION_INI_NAME="region";Nt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Nt.REGION_ENV_NAME],configFileSelector:e=>e[Nt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Nt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var vC=m(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.isFipsRegion=void 0;var cJ=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));wp.isFipsRegion=cJ});var P1=m(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.getRealRegion=void 0;var dJ=vC(),lJ=e=>(0,dJ.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;kp.getRealRegion=lJ});var x1=m(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.resolveRegionConfig=void 0;var v1=P1(),uJ=vC(),mJ=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,v1.getRealRegion)(n);let r=await n();return(0,v1.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof n=="string"?n:await n();return(0,uJ.isFipsRegion)(r)?!0:typeof t!="function"?Promise.resolve(!!t):t()}}};Ap.resolveRegionConfig=mJ});var k1=m(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var w1=(z(),j(U));w1.__exportStar(b1(),Ip);w1.__exportStar(x1(),Ip)});var Np=m(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var A1=(z(),j(U));A1.__exportStar(E1(),Rp);A1.__exportStar(k1(),Rp)});var O1=m(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.resolveRuntimeExtensions=void 0;var I1=Np(),R1=we(),N1=E(),xC=e=>e,pJ=(e,n)=>{let t={...xC((0,I1.getAwsRegionExtensionConfiguration)(e)),...xC((0,N1.getDefaultExtensionConfiguration)(e)),...xC((0,R1.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,I1.resolveAwsRegionExtensionConfiguration)(t),...(0,N1.resolveDefaultRuntimeConfig)(t),...(0,R1.resolveHttpHandlerRuntimeConfig)(t)}};Op.resolveRuntimeExtensions=pJ});var Lc=m(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.SSOClient=as.__Client=void 0;var T1=Ka(),fJ=Va(),_J=Xa(),q1=pc(),yJ=Qt(),gJ=gc(),hJ=x(),M1=On(),B1=E();Object.defineProperty(as,"__Client",{enumerable:!0,get:function(){return B1.Client}});var CJ=Uq(),SJ=S1(),EJ=O1(),wC=class extends B1.Client{constructor(...[n]){let t=(0,SJ.getRuntimeConfig)(n||{}),r=(0,CJ.resolveClientEndpointParameters)(t),o=(0,yJ.resolveRegionConfig)(r),s=(0,hJ.resolveEndpointConfig)(o),c=(0,M1.resolveRetryConfig)(s),i=(0,T1.resolveHostHeaderConfig)(c),u=(0,q1.resolveUserAgentConfig)(i),l=(0,EJ.resolveRuntimeExtensions)(u,(n==null?void 0:n.extensions)||[]);super(l),this.config=l,this.middlewareStack.use((0,M1.getRetryPlugin)(this.config)),this.middlewareStack.use((0,gJ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,T1.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,fJ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,_J.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,q1.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};as.SSOClient=wC});var Tp=m(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.SSOServiceException=cs.__ServiceException=void 0;var D1=E();Object.defineProperty(cs,"__ServiceException",{enumerable:!0,get:function(){return D1.ServiceException}});var kC=class e extends D1.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};cs.SSOServiceException=kC});var ao=m(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.LogoutRequestFilterSensitiveLog=Re.ListAccountsRequestFilterSensitiveLog=Re.ListAccountRolesRequestFilterSensitiveLog=Re.GetRoleCredentialsResponseFilterSensitiveLog=Re.RoleCredentialsFilterSensitiveLog=Re.GetRoleCredentialsRequestFilterSensitiveLog=Re.UnauthorizedException=Re.TooManyRequestsException=Re.ResourceNotFoundException=Re.InvalidRequestException=void 0;var ds=E(),qp=Tp(),AC=class e extends qp.SSOServiceException{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};Re.InvalidRequestException=AC;var IC=class e extends qp.SSOServiceException{constructor(n){super({name:"ResourceNotFoundException",$fault:"client",...n}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};Re.ResourceNotFoundException=IC;var RC=class e extends qp.SSOServiceException{constructor(n){super({name:"TooManyRequestsException",$fault:"client",...n}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};Re.TooManyRequestsException=RC;var NC=class e extends qp.SSOServiceException{constructor(n){super({name:"UnauthorizedException",$fault:"client",...n}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};Re.UnauthorizedException=NC;var bJ=e=>({...e,...e.accessToken&&{accessToken:ds.SENSITIVE_STRING}});Re.GetRoleCredentialsRequestFilterSensitiveLog=bJ;var PJ=e=>({...e,...e.secretAccessKey&&{secretAccessKey:ds.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:ds.SENSITIVE_STRING}});Re.RoleCredentialsFilterSensitiveLog=PJ;var vJ=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,Re.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});Re.GetRoleCredentialsResponseFilterSensitiveLog=vJ;var xJ=e=>({...e,...e.accessToken&&{accessToken:ds.SENSITIVE_STRING}});Re.ListAccountRolesRequestFilterSensitiveLog=xJ;var wJ=e=>({...e,...e.accessToken&&{accessToken:ds.SENSITIVE_STRING}});Re.ListAccountsRequestFilterSensitiveLog=wJ;var kJ=e=>({...e,...e.accessToken&&{accessToken:ds.SENSITIVE_STRING}});Re.LogoutRequestFilterSensitiveLog=kJ});var jc=m($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.de_LogoutCommand=$e.de_ListAccountsCommand=$e.de_ListAccountRolesCommand=$e.de_GetRoleCredentialsCommand=$e.se_LogoutCommand=$e.se_ListAccountsCommand=$e.se_ListAccountRolesCommand=$e.se_GetRoleCredentialsCommand=void 0;var Mp=we(),te=E(),Bp=ao(),AJ=Tp(),IJ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,te.map)({},Up,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,u=(0,te.map)({role_name:[,(0,te.expectNonNull)(e.roleName,"roleName")],account_id:[,(0,te.expectNonNull)(e.accountId,"accountId")]}),l;return new Mp.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};$e.se_GetRoleCredentialsCommand=IJ;var RJ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,te.map)({},Up,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,u=(0,te.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,te.expectNonNull)(e.accountId,"accountId")]}),l;return new Mp.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};$e.se_ListAccountRolesCommand=RJ;var NJ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,te.map)({},Up,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,u=(0,te.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),l;return new Mp.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};$e.se_ListAccountsCommand=NJ;var OJ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,te.map)({},Up,{"x-amz-sso_bearer_token":e.accessToken}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,u;return new Mp.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})};$e.se_LogoutCommand=OJ;var TJ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qJ(e,n);let t=(0,te.map)({$metadata:kr(e)}),r=(0,te.expectNonNull)((0,te.expectObject)(await zp(e.body,n)),"body"),o=(0,te.take)(r,{roleCredentials:te._json});return Object.assign(t,o),t};$e.de_GetRoleCredentialsCommand=TJ;var qJ=async(e,n)=>{let t={...e,body:await Gp(e.body,n)},r=Hp(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Fp(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await OC(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Lp(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await jp(t,n);default:let o=t.body;return Dp({output:e,parsedBody:o,errorCode:r})}},MJ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return BJ(e,n);let t=(0,te.map)({$metadata:kr(e)}),r=(0,te.expectNonNull)((0,te.expectObject)(await zp(e.body,n)),"body"),o=(0,te.take)(r,{nextToken:te.expectString,roleList:te._json});return Object.assign(t,o),t};$e.de_ListAccountRolesCommand=MJ;var BJ=async(e,n)=>{let t={...e,body:await Gp(e.body,n)},r=Hp(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Fp(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await OC(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Lp(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await jp(t,n);default:let o=t.body;return Dp({output:e,parsedBody:o,errorCode:r})}},DJ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return FJ(e,n);let t=(0,te.map)({$metadata:kr(e)}),r=(0,te.expectNonNull)((0,te.expectObject)(await zp(e.body,n)),"body"),o=(0,te.take)(r,{accountList:te._json,nextToken:te.expectString});return Object.assign(t,o),t};$e.de_ListAccountsCommand=DJ;var FJ=async(e,n)=>{let t={...e,body:await Gp(e.body,n)},r=Hp(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Fp(t,n);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await OC(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Lp(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await jp(t,n);default:let o=t.body;return Dp({output:e,parsedBody:o,errorCode:r})}},LJ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return jJ(e,n);let t=(0,te.map)({$metadata:kr(e)});return await(0,te.collectBody)(e.body,n),t};$e.de_LogoutCommand=LJ;var jJ=async(e,n)=>{let t={...e,body:await Gp(e.body,n)},r=Hp(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Fp(t,n);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Lp(t,n);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await jp(t,n);default:let o=t.body;return Dp({output:e,parsedBody:o,errorCode:r})}},Dp=(0,te.withBaseException)(AJ.SSOServiceException),Fp=async(e,n)=>{let t=(0,te.map)({}),r=e.body,o=(0,te.take)(r,{message:te.expectString});Object.assign(t,o);let s=new Bp.InvalidRequestException({$metadata:kr(e),...t});return(0,te.decorateServiceException)(s,e.body)},OC=async(e,n)=>{let t=(0,te.map)({}),r=e.body,o=(0,te.take)(r,{message:te.expectString});Object.assign(t,o);let s=new Bp.ResourceNotFoundException({$metadata:kr(e),...t});return(0,te.decorateServiceException)(s,e.body)},Lp=async(e,n)=>{let t=(0,te.map)({}),r=e.body,o=(0,te.take)(r,{message:te.expectString});Object.assign(t,o);let s=new Bp.TooManyRequestsException({$metadata:kr(e),...t});return(0,te.decorateServiceException)(s,e.body)},jp=async(e,n)=>{let t=(0,te.map)({}),r=e.body,o=(0,te.take)(r,{message:te.expectString});Object.assign(t,o);let s=new Bp.UnauthorizedException({$metadata:kr(e),...t});return(0,te.decorateServiceException)(s,e.body)},kr=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"]}),UJ=(e,n)=>(0,te.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Up=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),zp=(e,n)=>UJ(e,n).then(t=>t.length?JSON.parse(t):{}),Gp=async(e,n)=>{let t=await zp(e,n);return t.message=t.message??t.Message,t},Hp=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;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},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)}});var qC=m(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.GetRoleCredentialsCommand=ls.$Command=void 0;var zJ=x(),GJ=w(),j1=E();Object.defineProperty(ls,"$Command",{enumerable:!0,get:function(){return j1.Command}});var HJ=v(),F1=ao(),L1=jc(),TC=class e extends j1.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,GJ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,zJ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:F1.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:F1.GetRoleCredentialsResponseFilterSensitiveLog,[HJ.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"GetRoleCredentials"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,L1.se_GetRoleCredentialsCommand)(n,t)}deserialize(n,t){return(0,L1.de_GetRoleCredentialsCommand)(n,t)}};ls.GetRoleCredentialsCommand=TC});var $p=m(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.ListAccountRolesCommand=us.$Command=void 0;var $J=x(),KJ=w(),z1=E();Object.defineProperty(us,"$Command",{enumerable:!0,get:function(){return z1.Command}});var VJ=v(),XJ=ao(),U1=jc(),MC=class e extends z1.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,KJ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,$J.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:XJ.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[VJ.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccountRoles"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,U1.se_ListAccountRolesCommand)(n,t)}deserialize(n,t){return(0,U1.de_ListAccountRolesCommand)(n,t)}};us.ListAccountRolesCommand=MC});var Kp=m(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.ListAccountsCommand=ms.$Command=void 0;var WJ=x(),YJ=w(),H1=E();Object.defineProperty(ms,"$Command",{enumerable:!0,get:function(){return H1.Command}});var QJ=v(),JJ=ao(),G1=jc(),BC=class e extends H1.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,YJ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,WJ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:JJ.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[QJ.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"ListAccounts"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,G1.se_ListAccountsCommand)(n,t)}deserialize(n,t){return(0,G1.de_ListAccountsCommand)(n,t)}};ms.ListAccountsCommand=BC});var FC=m(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.LogoutCommand=ps.$Command=void 0;var ZJ=x(),eZ=w(),K1=E();Object.defineProperty(ps,"$Command",{enumerable:!0,get:function(){return K1.Command}});var tZ=v(),nZ=ao(),$1=jc(),DC=class e extends K1.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,eZ.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,ZJ.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:nZ.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:a=>a,[tZ.SMITHY_CONTEXT_KEY]:{service:"SWBPortalService",operation:"Logout"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,$1.se_LogoutCommand)(n,t)}deserialize(n,t){return(0,$1.de_LogoutCommand)(n,t)}};ps.LogoutCommand=DC});var V1=m(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.SSO=void 0;var rZ=E(),oZ=qC(),sZ=$p(),iZ=Kp(),aZ=FC(),cZ=Lc(),dZ={GetRoleCredentialsCommand:oZ.GetRoleCredentialsCommand,ListAccountRolesCommand:sZ.ListAccountRolesCommand,ListAccountsCommand:iZ.ListAccountsCommand,LogoutCommand:aZ.LogoutCommand},Vp=class extends cZ.SSOClient{};Xp.SSO=Vp;(0,rZ.createAggregatedClient)(dZ,Vp)});var X1=m(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Wp=(z(),j(U));Wp.__exportStar(qC(),fs);Wp.__exportStar($p(),fs);Wp.__exportStar(Kp(),fs);Wp.__exportStar(FC(),fs)});var Y1=m(W1=>{"use strict";Object.defineProperty(W1,"__esModule",{value:!0})});var Q1=m(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.paginateListAccountRoles=void 0;var lZ=$p(),uZ=Lc(),mZ=async(e,n,...t)=>await e.send(new lZ.ListAccountRolesCommand(n),...t);async function*pZ(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof uZ.SSOClient)s=await mZ(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Yp.paginateListAccountRoles=pZ});var J1=m(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.paginateListAccounts=void 0;var fZ=Kp(),_Z=Lc(),yZ=async(e,n,...t)=>await e.send(new fZ.ListAccountsCommand(n),...t);async function*gZ(e,n,...t){let r=e.startingToken||void 0,o=!0,s;for(;o;){if(n.nextToken=r,n.maxResults=e.pageSize,e.client instanceof _Z.SSOClient)s=await yZ(e.client,n,...t);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let c=r;r=s.nextToken,o=!!(r&&(!e.stopOnSameToken||r!==c))}return void 0}Qp.paginateListAccounts=gZ});var Z1=m(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});var LC=(z(),j(U));LC.__exportStar(Y1(),Uc);LC.__exportStar(Q1(),Uc);LC.__exportStar(J1(),Uc)});var eM=m(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});var hZ=(z(),j(U));hZ.__exportStar(ao(),jC)});var tM=m(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.SSOServiceException=void 0;var zc=(z(),j(U));zc.__exportStar(Lc(),Ln);zc.__exportStar(V1(),Ln);zc.__exportStar(X1(),Ln);zc.__exportStar(Z1(),Ln);zc.__exportStar(eM(),Ln);var CZ=Tp();Object.defineProperty(Ln,"SSOServiceException",{enumerable:!0,get:function(){return CZ.SSOServiceException}})});var ef=m(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.UnsupportedGrantTypeException=Ee.UnauthorizedClientException=Ee.SlowDownException=Ee.SSOOIDCClient=Ee.InvalidScopeException=Ee.InvalidRequestException=Ee.InvalidClientException=Ee.InternalServerException=Ee.ExpiredTokenException=Ee.CreateTokenCommand=Ee.AuthorizationPendingException=Ee.AccessDeniedException=void 0;var nM=Ka(),SZ=Va(),EZ=Xa(),rM=pc(),bZ=Qt(),PZ=gc(),vZ=x(),oM=On(),xZ=E(),wZ=e=>{var n,t;return{...e,useDualstackEndpoint:(n=e.useDualstackEndpoint)!==null&&n!==void 0?n:!1,useFipsEndpoint:(t=e.useFipsEndpoint)!==null&&t!==void 0?t:!1,defaultSigningName:"awsssooidc"}},kZ={version:"3.387.0"},AZ=Tc(),Jp=Qt(),IZ=qc(),sM=On(),Gc=en(),iM=wo(),RZ=Mc(),NZ=Rt(),OZ=E(),TZ=Zr(),aM=Po(),cM=Pt(),qZ=Ko(),yM="required",jn="fn",Un="argv",_s="ref",UC="PartitionResult",un="tree",Hc="error",$c="endpoint",dM={[yM]:!1,type:"String"},lM={[yM]:!0,default:!1,type:"Boolean"},gM={[_s]:"Endpoint"},hM={[jn]:"booleanEquals",[Un]:[{[_s]:"UseFIPS"},!0]},CM={[jn]:"booleanEquals",[Un]:[{[_s]:"UseDualStack"},!0]},mn={},uM={[jn]:"booleanEquals",[Un]:[!0,{[jn]:"getAttr",[Un]:[{[_s]:UC},"supportsFIPS"]}]},mM={[jn]:"booleanEquals",[Un]:[!0,{[jn]:"getAttr",[Un]:[{[_s]:UC},"supportsDualStack"]}]},pM=[gM],fM=[hM],_M=[CM],MZ={version:"1.0",parameters:{Region:dM,UseDualStack:lM,UseFIPS:lM,Endpoint:dM},rules:[{conditions:[{[jn]:"aws.partition",[Un]:[{[_s]:"Region"}],assign:UC}],type:un,rules:[{conditions:[{[jn]:"isSet",[Un]:pM},{[jn]:"parseURL",[Un]:pM,assign:"url"}],type:un,rules:[{conditions:fM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Hc},{type:un,rules:[{conditions:_M,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Hc},{endpoint:{url:gM,properties:mn,headers:mn},type:$c}]}]},{conditions:[hM,CM],type:un,rules:[{conditions:[uM,mM],type:un,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mn,headers:mn},type:$c}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Hc}]},{conditions:fM,type:un,rules:[{conditions:[uM],type:un,rules:[{type:un,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:mn,headers:mn},type:$c}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:Hc}]},{conditions:_M,type:un,rules:[{conditions:[mM],type:un,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:mn,headers:mn},type:$c}]},{error:"DualStack is enabled but this partition does not support DualStack",type:Hc}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:mn,headers:mn},type:$c}]}]},BZ=MZ,DZ=(e,n={})=>(0,qZ.resolveEndpoint)(BZ,{endpointParams:e,logger:n.logger}),FZ=e=>{var n,t,r,o,s,c,i,u,l;return{apiVersion:"2019-06-10",base64Decoder:(n=e==null?void 0:e.base64Decoder)!==null&&n!==void 0?n:aM.fromBase64,base64Encoder:(t=e==null?void 0:e.base64Encoder)!==null&&t!==void 0?t:aM.toBase64,disableHostPrefix:(r=e==null?void 0:e.disableHostPrefix)!==null&&r!==void 0?r:!1,endpointProvider:(o=e==null?void 0:e.endpointProvider)!==null&&o!==void 0?o:DZ,logger:(s=e==null?void 0:e.logger)!==null&&s!==void 0?s:new OZ.NoOpLogger,serviceId:(c=e==null?void 0:e.serviceId)!==null&&c!==void 0?c:"SSO OIDC",urlParser:(i=e==null?void 0:e.urlParser)!==null&&i!==void 0?i:TZ.parseUrl,utf8Decoder:(u=e==null?void 0:e.utf8Decoder)!==null&&u!==void 0?u:cM.fromUtf8,utf8Encoder:(l=e==null?void 0:e.utf8Encoder)!==null&&l!==void 0?l:cM.toUtf8}},LZ=E(),jZ=Dc(),UZ=E(),zZ=e=>{var n,t,r,o,s,c,i,u,l,a;(0,UZ.emitWarningIfUnsupportedVersion)(process.version);let _=(0,jZ.resolveDefaultsModeConfig)(e),y=()=>_().then(LZ.loadConfigsForDefaultMode),C=FZ(e);return{...C,...e,runtime:"node",defaultsMode:_,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:RZ.calculateBodyLength,defaultUserAgentProvider:(t=e==null?void 0:e.defaultUserAgentProvider)!==null&&t!==void 0?t:(0,AZ.defaultUserAgent)({serviceId:C.serviceId,clientVersion:kZ.version}),maxAttempts:(r=e==null?void 0:e.maxAttempts)!==null&&r!==void 0?r:(0,Gc.loadConfig)(sM.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Gc.loadConfig)(Jp.NODE_REGION_CONFIG_OPTIONS,Jp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e==null?void 0:e.requestHandler)!==null&&s!==void 0?s:new iM.NodeHttpHandler(y),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Gc.loadConfig)({...sM.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await y()).retryMode||NZ.DEFAULT_RETRY_MODE}),sha256:(i=e==null?void 0:e.sha256)!==null&&i!==void 0?i:IZ.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:iM.streamCollector,useDualstackEndpoint:(l=e==null?void 0:e.useDualstackEndpoint)!==null&&l!==void 0?l:(0,Gc.loadConfig)(Jp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(a=e==null?void 0:e.useFipsEndpoint)!==null&&a!==void 0?a:(0,Gc.loadConfig)(Jp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}},SM=class extends xZ.Client{constructor(...[e]){let n=zZ(e||{}),t=wZ(n),r=(0,bZ.resolveRegionConfig)(t),o=(0,vZ.resolveEndpointConfig)(r),s=(0,oM.resolveRetryConfig)(o),c=(0,nM.resolveHostHeaderConfig)(s),i=(0,rM.resolveUserAgentConfig)(c);super(i),this.config=i,this.middlewareStack.use((0,oM.getRetryPlugin)(this.config)),this.middlewareStack.use((0,PZ.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,nM.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,SZ.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,EZ.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,rM.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ee.SSOOIDCClient=SM;var GZ=E(),HZ=x(),$Z=w(),KZ=E(),zC=we(),O=E(),VZ=E(),St=class EM extends VZ.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,EM.prototype)}},bM=class PM extends St{constructor(n){super({name:"AccessDeniedException",$fault:"client",...n}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,PM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.AccessDeniedException=bM;var vM=class xM extends St{constructor(n){super({name:"AuthorizationPendingException",$fault:"client",...n}),this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,xM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.AuthorizationPendingException=vM;var wM=class kM extends St{constructor(n){super({name:"ExpiredTokenException",$fault:"client",...n}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,kM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.ExpiredTokenException=wM;var AM=class IM extends St{constructor(n){super({name:"InternalServerException",$fault:"server",...n}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,IM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.InternalServerException=AM;var RM=class NM extends St{constructor(n){super({name:"InvalidClientException",$fault:"client",...n}),this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,NM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.InvalidClientException=RM;var XZ=class OM extends St{constructor(n){super({name:"InvalidGrantException",$fault:"client",...n}),this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,OM.prototype),this.error=n.error,this.error_description=n.error_description}},TM=class qM extends St{constructor(n){super({name:"InvalidRequestException",$fault:"client",...n}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,qM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.InvalidRequestException=TM;var MM=class BM extends St{constructor(n){super({name:"InvalidScopeException",$fault:"client",...n}),this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,BM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.InvalidScopeException=MM;var DM=class FM extends St{constructor(n){super({name:"SlowDownException",$fault:"client",...n}),this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,FM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.SlowDownException=DM;var LM=class jM extends St{constructor(n){super({name:"UnauthorizedClientException",$fault:"client",...n}),this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,jM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.UnauthorizedClientException=LM;var UM=class zM extends St{constructor(n){super({name:"UnsupportedGrantTypeException",$fault:"client",...n}),this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,zM.prototype),this.error=n.error,this.error_description=n.error_description}};Ee.UnsupportedGrantTypeException=UM;var WZ=class GM extends St{constructor(n){super({name:"InvalidClientMetadataException",$fault:"client",...n}),this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,GM.prototype),this.error=n.error,this.error_description=n.error_description}},YZ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/token`,u;return u=JSON.stringify((0,O.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:l=>(0,O._json)(l)})),new zC.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},QZ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/client/register`,u;return u=JSON.stringify((0,O.take)(e,{clientName:[],clientType:[],scopes:l=>(0,O._json)(l)})),new zC.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},JZ=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/json"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/device_authorization`,u;return u=JSON.stringify((0,O.take)(e,{clientId:[],clientSecret:[],startUrl:[]})),new zC.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,body:u})},ZZ=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return eee(e,n);let t=(0,O.map)({$metadata:ct(e)}),r=(0,O.expectNonNull)((0,O.expectObject)(await Zp(e.body,n)),"body"),o=(0,O.take)(r,{accessToken:O.expectString,expiresIn:O.expectInt32,idToken:O.expectString,refreshToken:O.expectString,tokenType:O.expectString});return Object.assign(t,o),t},eee=async(e,n)=>{let t={...e,body:await KC(e.body,n)},r=VC(e,t.body);switch(r){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await see(t,n);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await iee(t,n);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await aee(t,n);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await HC(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await HM(t,n);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await dee(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await $C(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await $M(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await KM(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await VM(t,n);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await lee(t,n);default:let o=t.body;return GC({output:e,parsedBody:o,errorCode:r})}},tee=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return nee(e,n);let t=(0,O.map)({$metadata:ct(e)}),r=(0,O.expectNonNull)((0,O.expectObject)(await Zp(e.body,n)),"body"),o=(0,O.take)(r,{authorizationEndpoint:O.expectString,clientId:O.expectString,clientIdIssuedAt:O.expectLong,clientSecret:O.expectString,clientSecretExpiresAt:O.expectLong,tokenEndpoint:O.expectString});return Object.assign(t,o),t},nee=async(e,n)=>{let t={...e,body:await KC(e.body,n)},r=VC(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await HC(t,n);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await cee(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await $C(t,n);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await $M(t,n);default:let o=t.body;return GC({output:e,parsedBody:o,errorCode:r})}},ree=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return oee(e,n);let t=(0,O.map)({$metadata:ct(e)}),r=(0,O.expectNonNull)((0,O.expectObject)(await Zp(e.body,n)),"body"),o=(0,O.take)(r,{deviceCode:O.expectString,expiresIn:O.expectInt32,interval:O.expectInt32,userCode:O.expectString,verificationUri:O.expectString,verificationUriComplete:O.expectString});return Object.assign(t,o),t},oee=async(e,n)=>{let t={...e,body:await KC(e.body,n)},r=VC(e,t.body);switch(r){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await HC(t,n);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await HM(t,n);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await $C(t,n);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await KM(t,n);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await VM(t,n);default:let o=t.body;return GC({output:e,parsedBody:o,errorCode:r})}},GC=(0,O.withBaseException)(St),see=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new bM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},iee=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new vM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},aee=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new wM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},HC=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new AM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},HM=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new RM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},cee=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new WZ({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},dee=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new XZ({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},$C=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new TM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},$M=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new MM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},KM=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new DM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},VM=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new LM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},lee=async(e,n)=>{let t=(0,O.map)({}),r=e.body,o=(0,O.take)(r,{error:O.expectString,error_description:O.expectString});Object.assign(t,o);let s=new UM({$metadata:ct(e),...t});return(0,O.decorateServiceException)(s,e.body)},ct=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"]}},uee=(e,n)=>(0,O.collectBody)(e,n).then(t=>n.utf8Encoder(t)),Zp=(e,n)=>uee(e,n).then(t=>t.length?JSON.parse(t):{}),KC=async(e,n)=>{var t;let r=await Zp(e,n);return r.message=(t=r.message)!==null&&t!==void 0?t:r.Message,r},VC=(e,n)=>{let t=(s,c)=>Object.keys(s).find(i=>i.toLowerCase()===c.toLowerCase()),r=s=>{let c=s;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},o=t(e.headers,"x-amzn-errortype");if(o!==void 0)return r(e.headers[o]);if(n.code!==void 0)return r(n.code);if(n.__type!==void 0)return r(n.__type)},XM=class WM extends KZ.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,$Z.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,HZ.getEndpointPlugin)(t,WM.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"CreateTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return YZ(n,t)}deserialize(n,t){return ZZ(n,t)}};Ee.CreateTokenCommand=XM;var mee=x(),pee=w(),fee=E(),_ee=class YM extends fee.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,pee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mee.getEndpointPlugin)(t,YM.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"RegisterClientCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return QZ(n,t)}deserialize(n,t){return tee(n,t)}},yee=x(),gee=w(),hee=E(),Cee=class QM extends hee.Command{constructor(n){super(),this.input=n}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(n,t,r){this.middlewareStack.use((0,gee.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yee.getEndpointPlugin)(t,QM.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"SSOOIDCClient",commandName:"StartDeviceAuthorizationCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return JZ(n,t)}deserialize(n,t){return ree(n,t)}},See={CreateTokenCommand:XM,RegisterClientCommand:_ee,StartDeviceAuthorizationCommand:Cee},Eee=class extends SM{};(0,GZ.createAggregatedClient)(See,Eee)});var tf=m(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.REFRESH_MESSAGE=ys.EXPIRE_WINDOW_MS=void 0;ys.EXPIRE_WINDOW_MS=5*60*1e3;ys.REFRESH_MESSAGE="To refresh this SSO session run 'aws sso login' with the corresponding profile."});var JM=m(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.getSsoOidcClient=void 0;var bee=ef(),XC={},Pee=e=>{if(XC[e])return XC[e];let n=new bee.SSOOIDCClient({region:e});return XC[e]=n,n};nf.getSsoOidcClient=Pee});var ZM=m(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.getNewSsoOidcToken=void 0;var vee=ef(),xee=JM(),wee=(e,n)=>(0,xee.getSsoOidcClient)(n).send(new vee.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}));rf.getNewSsoOidcToken=wee});var eB=m(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.validateTokenExpiry=void 0;var kee=Ce(),Aee=tf(),Iee=e=>{if(e.expiration&&e.expiration.getTime(){"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.validateTokenKey=void 0;var Ree=Ce(),Nee=tf(),Oee=(e,n,t=!1)=>{if(typeof n>"u")throw new Ree.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${Nee.REFRESH_MESSAGE}`,!1)};sf.validateTokenKey=Oee});var nB=m(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.writeSSOTokenToFile=void 0;var Tee=Dt(),qee=require("fs"),{writeFile:Mee}=qee.promises,Bee=(e,n)=>{let t=(0,Tee.getSSOTokenFilepath)(e),r=JSON.stringify(n,null,2);return Mee(t,r)};af.writeSSOTokenToFile=Bee});var WC=m(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.fromSso=void 0;var Kc=Ce(),cf=Dt(),rB=tf(),Dee=ZM(),oB=eB(),co=tB(),Fee=nB(),sB=new Date(0),Lee=(e={})=>async()=>{let n=await(0,cf.parseKnownFiles)(e),t=(0,cf.getProfileName)(e),r=n[t];if(r){if(!r.sso_session)throw new Kc.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`)}else throw new Kc.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);let o=r.sso_session,c=(await(0,cf.loadSsoSessionData)(e))[o];if(!c)throw new Kc.TokenProviderError(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let C of["sso_start_url","sso_region"])if(!c[C])throw new Kc.TokenProviderError(`Sso session '${o}' is missing required property '${C}'.`,!1);let i=c.sso_start_url,u=c.sso_region,l;try{l=await(0,cf.getSSOTokenFromFile)(o)}catch{throw new Kc.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${rB.REFRESH_MESSAGE}`,!1)}(0,co.validateTokenKey)("accessToken",l.accessToken),(0,co.validateTokenKey)("expiresAt",l.expiresAt);let{accessToken:a,expiresAt:_}=l,y={token:a,expiration:new Date(_)};if(y.expiration.getTime()-Date.now()>rB.EXPIRE_WINDOW_MS)return y;if(Date.now()-sB.getTime()<30*1e3)return(0,oB.validateTokenExpiry)(y),y;(0,co.validateTokenKey)("clientId",l.clientId,!0),(0,co.validateTokenKey)("clientSecret",l.clientSecret,!0),(0,co.validateTokenKey)("refreshToken",l.refreshToken,!0);try{sB.setTime(Date.now());let C=await(0,Dee.getNewSsoOidcToken)(l,u);(0,co.validateTokenKey)("accessToken",C.accessToken),(0,co.validateTokenKey)("expiresIn",C.expiresIn);let b=new Date(Date.now()+C.expiresIn*1e3);try{await(0,Fee.writeSSOTokenToFile)(o,{...l,accessToken:C.accessToken,expiresAt:b.toISOString(),refreshToken:C.refreshToken})}catch{}return{token:C.accessToken,expiration:b}}catch{return(0,oB.validateTokenExpiry)(y),y}};df.fromSso=Lee});var iB=m(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.fromStatic=void 0;var jee=Ce(),Uee=({token:e})=>async()=>{if(!e||!e.token)throw new jee.TokenProviderError("Please pass a valid token to fromStatic",!1);return e};lf.fromStatic=Uee});var aB=m(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.nodeProvider=void 0;var YC=Ce(),zee=WC(),Gee=(e={})=>(0,YC.memoize)((0,YC.chain)((0,zee.fromSso)(e),async()=>{throw new YC.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);uf.nodeProvider=Gee});var cB=m(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var mf=(z(),j(U));mf.__exportStar(ef(),gs);mf.__exportStar(WC(),gs);mf.__exportStar(iB(),gs);mf.__exportStar(aB(),gs)});var lB=m(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.resolveSSOCredentials=void 0;var dB=tM(),Hee=cB(),Vc=Ce(),$ee=Dt(),Xc=!1,Kee=async({ssoStartUrl:e,ssoSession:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:c})=>{let i,u="To refresh this SSO session run aws sso login with the corresponding profile.";if(n)try{let k=await(0,Hee.fromSso)({profile:c})();i={accessToken:k.token,expiresAt:new Date(k.expiration).toISOString()}}catch(k){throw new Vc.CredentialsProviderError(k.message,Xc)}else try{i=await(0,$ee.getSSOTokenFromFile)(e)}catch{throw new Vc.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${u}`,Xc)}if(new Date(i.expiresAt).getTime()-Date.now()<=0)throw new Vc.CredentialsProviderError(`The SSO session associated with this profile has expired. ${u}`,Xc);let{accessToken:l}=i,a=s||new dB.SSOClient({region:r}),_;try{_=await a.send(new dB.GetRoleCredentialsCommand({accountId:t,roleName:o,accessToken:l}))}catch(k){throw Vc.CredentialsProviderError.from(k,Xc)}let{roleCredentials:{accessKeyId:y,secretAccessKey:C,sessionToken:b,expiration:A}={}}=_;if(!y||!C||!b||!A)throw new Vc.CredentialsProviderError("SSO returns an invalid temporary credential.",Xc);return{accessKeyId:y,secretAccessKey:C,sessionToken:b,expiration:new Date(A)}};pf.resolveSSOCredentials=Kee});var QC=m(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.validateSsoProfile=void 0;var Vee=Ce(),Xee=e=>{let{sso_start_url:n,sso_account_id:t,sso_region:r,sso_role_name:o}=e;if(!n||!t||!r||!o)throw new Vee.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};ff.validateSsoProfile=Xee});var mB=m(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.fromSSO=void 0;var Wc=Ce(),JC=Dt(),Wee=gC(),uB=lB(),Yee=QC(),Qee=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:c}=e,i=(0,JC.getProfileName)(e);if(!n&&!t&&!r&&!o&&!c){let l=(await(0,JC.parseKnownFiles)(e))[i];if(!l)throw new Wc.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,Wee.isSsoProfile)(l))throw new Wc.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let k=(await(0,JC.loadSsoSessionData)(e))[l.sso_session],K=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==k.sso_region)throw new Wc.CredentialsProviderError("Conflicting SSO region"+K,!1);if(n&&n!==k.sso_start_url)throw new Wc.CredentialsProviderError("Conflicting SSO start_url"+K,!1);l.sso_region=k.sso_region,l.sso_start_url=k.sso_start_url}let{sso_start_url:a,sso_account_id:_,sso_region:y,sso_role_name:C,sso_session:b}=(0,Yee.validateSsoProfile)(l);return(0,uB.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:b,ssoAccountId:_,ssoRegion:y,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!n||!t||!r||!o)throw new Wc.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,uB.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};_f.fromSSO=Qee});var fB=m(pB=>{"use strict";Object.defineProperty(pB,"__esModule",{value:!0})});var gf=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var yf=(z(),j(U));yf.__exportStar(mB(),hs);yf.__exportStar(gC(),hs);yf.__exportStar(fB(),hs);yf.__exportStar(QC(),hs)});var yB=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.resolveSsoCredentials=Cs.isSsoProfile=void 0;var _B=gf(),Jee=gf();Object.defineProperty(Cs,"isSsoProfile",{enumerable:!0,get:function(){return Jee.isSsoProfile}});var Zee=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,_B.validateSsoProfile)(e);return(0,_B.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};Cs.resolveSsoCredentials=Zee});var gB=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveStaticCredentials=Ss.isStaticCredsProfile=void 0;var ete=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;Ss.isStaticCredsProfile=ete;var tte=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});Ss.resolveStaticCredentials=tte});var ZC=m(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.fromWebToken=void 0;var nte=Ce(),rte=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new nte.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:o,PolicyArns:s,Policy:c,DurationSeconds:i})};hf.fromWebToken=rte});var hB=m(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.fromTokenFile=void 0;var ote=Ce(),ste=require("fs"),ite=ZC(),ate="AWS_WEB_IDENTITY_TOKEN_FILE",cte="AWS_ROLE_ARN",dte="AWS_ROLE_SESSION_NAME",lte=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[ate],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[cte],c=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[dte];if(!o||!s)throw new ote.CredentialsProviderError("Web identity configuration not specified");return(0,ite.fromWebToken)({...e,webIdentityToken:(0,ste.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:c})()};Cf.fromTokenFile=lte});var eS=m(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var CB=(z(),j(U));CB.__exportStar(hB(),Sf);CB.__exportStar(ZC(),Sf)});var SB=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveWebIdentityCredentials=Es.isWebIdentityProfile=void 0;var ute=eS(),mte=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;Es.isWebIdentityProfile=mte;var pte=async(e,n)=>(0,ute.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();Es.resolveWebIdentityCredentials=pte});var pC=m(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.resolveProfileData=void 0;var fte=Ce(),EB=Mq(),bB=jq(),PB=yB(),Ef=gB(),vB=SB(),_te=async(e,n,t,r={})=>{let o=n[e];if(Object.keys(r).length>0&&(0,Ef.isStaticCredsProfile)(o))return(0,Ef.resolveStaticCredentials)(o);if((0,EB.isAssumeRoleProfile)(o))return(0,EB.resolveAssumeRoleCredentials)(e,n,t,r);if((0,Ef.isStaticCredsProfile)(o))return(0,Ef.resolveStaticCredentials)(o);if((0,vB.isWebIdentityProfile)(o))return(0,vB.resolveWebIdentityCredentials)(o,t);if((0,bB.isProcessProfile)(o))return(0,bB.resolveProcessCredentials)(t,e);if((0,PB.isSsoProfile)(o))return(0,PB.resolveSsoCredentials)(o);throw new fte.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};bf.resolveProfileData=_te});var wB=m(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.fromIni=void 0;var xB=Dt(),yte=pC(),gte=(e={})=>async()=>{let n=await(0,xB.parseKnownFiles)(e);return(0,yte.resolveProfileData)((0,xB.getProfileName)(e),n,e)};Pf.fromIni=gte});var kB=m(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});var hte=(z(),j(U));hte.__exportStar(wB(),tS)});var AB=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.remoteProvider=lo.ENV_IMDS_DISABLED=void 0;var vf=dp(),Cte=Ce();lo.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Ste=e=>process.env[vf.ENV_CMDS_RELATIVE_URI]||process.env[vf.ENV_CMDS_FULL_URI]?(0,vf.fromContainerMetadata)(e):process.env[lo.ENV_IMDS_DISABLED]?async()=>{throw new Cte.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,vf.fromInstanceMetadata)(e);lo.remoteProvider=Ste});var IB=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.defaultProvider=void 0;var Ete=nC(),bte=kB(),Pte=yC(),vte=gf(),xte=eS(),nS=Ce(),wte=Dt(),kte=AB(),Ate=(e={})=>(0,nS.memoize)((0,nS.chain)(...e.profile||process.env[wte.ENV_PROFILE]?[]:[(0,Ete.fromEnv)()],(0,vte.fromSSO)(e),(0,bte.fromIni)(e),(0,Pte.fromProcess)(e),(0,xte.fromTokenFile)(e),(0,kte.remoteProvider)(e),async()=>{throw new nS.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);xf.defaultProvider=Ate});var oS=m(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});var Ite=(z(),j(U));Ite.__exportStar(IB(),rS)});var QB=m(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.ruleSet=void 0;var UB="required",ie="type",ge="fn",he="argv",Ar="ref",RB=!1,Rte=!0,uo="booleanEquals",pn="tree",Qe="stringEquals",zB="sigv4",GB="sts",HB="us-east-1",Ae="endpoint",NB="https://sts.{Region}.{PartitionResult#dnsSuffix}",bs="error",iS="getAttr",OB={[UB]:!1,[ie]:"String"},sS={[UB]:!0,default:!1,[ie]:"Boolean"},$B={[Ar]:"Endpoint"},TB={[ge]:"isSet",[he]:[{[Ar]:"Region"}]},Je={[Ar]:"Region"},qB={[ge]:"aws.partition",[he]:[Je],assign:"PartitionResult"},KB={[Ar]:"UseFIPS"},VB={[Ar]:"UseDualStack"},st={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:zB,signingName:GB,signingRegion:HB}]},headers:{}},Et={},MB={conditions:[{[ge]:Qe,[he]:[Je,"aws-global"]}],[Ae]:st,[ie]:Ae},XB={[ge]:uo,[he]:[KB,!0]},WB={[ge]:uo,[he]:[VB,!0]},BB={[ge]:uo,[he]:[!0,{[ge]:iS,[he]:[{[Ar]:"PartitionResult"},"supportsFIPS"]}]},YB={[Ar]:"PartitionResult"},DB={[ge]:uo,[he]:[!0,{[ge]:iS,[he]:[YB,"supportsDualStack"]}]},FB=[{[ge]:"isSet",[he]:[$B]}],LB=[XB],jB=[WB],Nte={version:"1.0",parameters:{Region:OB,UseDualStack:sS,UseFIPS:sS,Endpoint:OB,UseGlobalEndpoint:sS},rules:[{conditions:[{[ge]:uo,[he]:[{[Ar]:"UseGlobalEndpoint"},Rte]},{[ge]:"not",[he]:FB},TB,qB,{[ge]:uo,[he]:[KB,RB]},{[ge]:uo,[he]:[VB,RB]}],[ie]:pn,rules:[{conditions:[{[ge]:Qe,[he]:[Je,"ap-northeast-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"ap-south-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"ap-southeast-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"ap-southeast-2"]}],endpoint:st,[ie]:Ae},MB,{conditions:[{[ge]:Qe,[he]:[Je,"ca-central-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-central-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-north-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-west-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-west-2"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-west-3"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"sa-east-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,HB]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"us-east-2"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"us-west-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"us-west-2"]}],endpoint:st,[ie]:Ae},{endpoint:{url:NB,properties:{authSchemes:[{name:zB,signingName:GB,signingRegion:"{Region}"}]},headers:Et},[ie]:Ae}]},{conditions:FB,[ie]:pn,rules:[{conditions:LB,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[ie]:bs},{conditions:jB,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[ie]:bs},{endpoint:{url:$B,properties:Et,headers:Et},[ie]:Ae}]},{conditions:[TB],[ie]:pn,rules:[{conditions:[qB],[ie]:pn,rules:[{conditions:[XB,WB],[ie]:pn,rules:[{conditions:[BB,DB],[ie]:pn,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Et,headers:Et},[ie]:Ae}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[ie]:bs}]},{conditions:LB,[ie]:pn,rules:[{conditions:[BB],[ie]:pn,rules:[{conditions:[{[ge]:Qe,[he]:["aws-us-gov",{[ge]:iS,[he]:[YB,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Et,headers:Et},[ie]:Ae},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Et,headers:Et},[ie]:Ae}]},{error:"FIPS is enabled but this partition does not support FIPS",[ie]:bs}]},{conditions:jB,[ie]:pn,rules:[{conditions:[DB],[ie]:pn,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Et,headers:Et},[ie]:Ae}]},{error:"DualStack is enabled but this partition does not support DualStack",[ie]:bs}]},MB,{endpoint:{url:NB,properties:Et,headers:Et},[ie]:Ae}]}]},{error:"Invalid Configuration: Missing Region",[ie]:bs}]};wf.ruleSet=Nte});var JB=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.defaultEndpointResolver=void 0;var Ote=Ko(),Tte=QB(),qte=(e,n={})=>(0,Ote.resolveEndpoint)(Tte.ruleSet,{endpointParams:e,logger:n.logger});kf.defaultEndpointResolver=qte});var tD=m(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.getRuntimeConfig=void 0;var Mte=E(),Bte=Zr(),ZB=Po(),eD=Pt(),Dte=JB(),Fte=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??ZB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??ZB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??Dte.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new Mte.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??Bte.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??eD.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??eD.toUtf8});Af.getRuntimeConfig=Fte});var oD=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.getRuntimeConfig=void 0;var Lte=(z(),j(U)),jte=Lte.__importDefault(vT()),Ute=eC(),zte=oS(),Gte=Tc(),If=Qt(),Hte=qc(),nD=On(),Yc=en(),rD=wo(),$te=Mc(),Kte=Rt(),Vte=tD(),Xte=E(),Wte=Dc(),Yte=E(),Qte=e=>{(0,Yte.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Wte.resolveDefaultsModeConfig)(e),t=()=>n().then(Xte.loadConfigsForDefaultMode),r=(0,Vte.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??$te.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,Ute.decorateDefaultCredentialProvider)(zte.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Gte.defaultUserAgent)({serviceId:r.serviceId,clientVersion:jte.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Yc.loadConfig)(nD.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Yc.loadConfig)(If.NODE_REGION_CONFIG_OPTIONS,If.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new rD.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Yc.loadConfig)({...nD.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Kte.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??Hte.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??rD.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Yc.loadConfig)(If.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Yc.loadConfig)(If.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Rf.getRuntimeConfig=Qte});var cD=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.resolveRuntimeExtensions=void 0;var sD=Np(),iD=we(),aD=E(),aS=e=>e,Jte=(e,n)=>{let t={...aS((0,sD.getAwsRegionExtensionConfiguration)(e)),...aS((0,aD.getDefaultExtensionConfiguration)(e)),...aS((0,iD.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,sD.resolveAwsRegionExtensionConfiguration)(t),...(0,aD.resolveDefaultRuntimeConfig)(t),...(0,iD.resolveHttpHandlerRuntimeConfig)(t)}};Nf.resolveRuntimeExtensions=Jte});var Of=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.STSClient=Ps.__Client=void 0;var dD=Ka(),Zte=Va(),ene=Xa(),tne=bT(),lD=pc(),nne=Qt(),rne=gc(),one=x(),uD=On(),mD=E();Object.defineProperty(Ps,"__Client",{enumerable:!0,get:function(){return mD.Client}});var sne=PT(),ine=oD(),ane=cD(),cS=class e extends mD.Client{constructor(...[n]){let t=(0,ine.getRuntimeConfig)(n||{}),r=(0,sne.resolveClientEndpointParameters)(t),o=(0,nne.resolveRegionConfig)(r),s=(0,one.resolveEndpointConfig)(o),c=(0,uD.resolveRetryConfig)(s),i=(0,dD.resolveHostHeaderConfig)(c),u=(0,tne.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,lD.resolveUserAgentConfig)(u),a=(0,ane.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(a),this.config=a,this.middlewareStack.use((0,uD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,rne.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,dD.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Zte.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,ene.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,lD.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ps.STSClient=cS});var lS=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.AssumeRoleWithSAMLCommand=vs.$Command=void 0;var cne=x(),dne=w(),_D=E();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return _D.Command}});var lne=v(),pD=gr(),fD=Mn(),dS=class e extends _D.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,dne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cne.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:pD.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:pD.AssumeRoleWithSAMLResponseFilterSensitiveLog,[lne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fD.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,fD.de_AssumeRoleWithSAMLCommand)(n,t)}};vs.AssumeRoleWithSAMLCommand=dS});var mS=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.DecodeAuthorizationMessageCommand=xs.$Command=void 0;var une=kn(),mne=x(),pne=w(),gD=E();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return gD.Command}});var fne=v(),yD=Mn(),uS=class e extends gD.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,pne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,une.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[fne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yD.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,yD.de_DecodeAuthorizationMessageCommand)(n,t)}};xs.DecodeAuthorizationMessageCommand=uS});var fS=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetAccessKeyInfoCommand=ws.$Command=void 0;var _ne=kn(),yne=x(),gne=w(),CD=E();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return CD.Command}});var hne=v(),hD=Mn(),pS=class e extends CD.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,gne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,_ne.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hD.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,hD.de_GetAccessKeyInfoCommand)(n,t)}};ws.GetAccessKeyInfoCommand=pS});var yS=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetCallerIdentityCommand=ks.$Command=void 0;var Cne=kn(),Sne=x(),Ene=w(),ED=E();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return ED.Command}});var bne=v(),SD=Mn(),_S=class e extends ED.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,Ene.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cne.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SD.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,SD.de_GetCallerIdentityCommand)(n,t)}};ks.GetCallerIdentityCommand=_S});var hS=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetFederationTokenCommand=As.$Command=void 0;var Pne=kn(),vne=x(),xne=w(),PD=E();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return PD.Command}});var wne=v(),kne=gr(),bD=Mn(),gS=class e extends PD.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,xne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Pne.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:kne.GetFederationTokenResponseFilterSensitiveLog,[wne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bD.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,bD.de_GetFederationTokenCommand)(n,t)}};As.GetFederationTokenCommand=gS});var SS=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.GetSessionTokenCommand=Is.$Command=void 0;var Ane=kn(),Ine=x(),Rne=w(),xD=E();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return xD.Command}});var Nne=v(),One=gr(),vD=Mn(),CS=class e extends xD.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,Rne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ine.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ane.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:One.GetSessionTokenResponseFilterSensitiveLog,[Nne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vD.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,vD.de_GetSessionTokenCommand)(n,t)}};Is.GetSessionTokenCommand=CS});var wD=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.STS=void 0;var Tne=E(),qne=Ym(),Mne=lS(),Bne=Qm(),Dne=mS(),Fne=fS(),Lne=yS(),jne=hS(),Une=SS(),zne=Of(),Gne={AssumeRoleCommand:qne.AssumeRoleCommand,AssumeRoleWithSAMLCommand:Mne.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:Bne.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:Dne.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:Fne.GetAccessKeyInfoCommand,GetCallerIdentityCommand:Lne.GetCallerIdentityCommand,GetFederationTokenCommand:jne.GetFederationTokenCommand,GetSessionTokenCommand:Une.GetSessionTokenCommand},Tf=class extends zne.STSClient{};qf.STS=Tf;(0,Tne.createAggregatedClient)(Gne,Tf)});var kD=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});var Ir=(z(),j(U));Ir.__exportStar(Ym(),fn);Ir.__exportStar(lS(),fn);Ir.__exportStar(Qm(),fn);Ir.__exportStar(mS(),fn);Ir.__exportStar(fS(),fn);Ir.__exportStar(yS(),fn);Ir.__exportStar(hS(),fn);Ir.__exportStar(SS(),fn)});var AD=m(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});var Hne=(z(),j(U));Hne.__exportStar(gr(),ES)});var OD=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.decorateDefaultCredentialProvider=_n.getDefaultRoleAssumerWithWebIdentity=_n.getDefaultRoleAssumer=void 0;var ID=eC(),RD=Of(),ND=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,$ne=(e={},n)=>(0,ID.getDefaultRoleAssumer)(e,ND(RD.STSClient,n));_n.getDefaultRoleAssumer=$ne;var Kne=(e={},n)=>(0,ID.getDefaultRoleAssumerWithWebIdentity)(e,ND(RD.STSClient,n));_n.getDefaultRoleAssumerWithWebIdentity=Kne;var Vne=e=>n=>e({roleAssumer:(0,_n.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,_n.getDefaultRoleAssumerWithWebIdentity)(n),...n});_n.decorateDefaultCredentialProvider=Vne});var TD=m(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.STSServiceException=void 0;var Qc=(z(),j(U));Qc.__exportStar(Of(),zn);Qc.__exportStar(wD(),zn);Qc.__exportStar(kD(),zn);Qc.__exportStar(AD(),zn);Qc.__exportStar(OD(),zn);var Xne=$m();Object.defineProperty(zn,"STSServiceException",{enumerable:!0,get:function(){return Xne.STSServiceException}})});var qD=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var Mf=fc();yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Mf.booleanSelector)(e,yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,Mf.SelectorType.ENV),configFileSelector:e=>(0,Mf.booleanSelector)(e,yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,Mf.SelectorType.CONFIG),default:!1}});var MD=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.NODE_USE_ARN_REGION_CONFIG_OPTIONS=gn.NODE_USE_ARN_REGION_INI_NAME=gn.NODE_USE_ARN_REGION_ENV_NAME=void 0;var Bf=fc();gn.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";gn.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";gn.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Bf.booleanSelector)(e,gn.NODE_USE_ARN_REGION_ENV_NAME,Bf.SelectorType.ENV),configFileSelector:e=>(0,Bf.booleanSelector)(e,gn.NODE_USE_ARN_REGION_INI_NAME,Bf.SelectorType.CONFIG),default:!1}});var vS=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.validateMrapAlias=re.validateNoFIPS=re.validateNoDualstack=re.getArnResources=re.validateCustomEndpoint=re.validateDNSHostLabel=re.validateAccountId=re.validateRegionalClient=re.validateRegion=re.validatePartition=re.validateOutpostService=re.validateS3Service=re.validateService=re.validateArnEndpointOptions=re.getSuffixForArnEndpoint=re.getSuffix=re.isDnsCompatibleBucketName=re.isBucketNameOptions=re.S3_HOSTNAME_PATTERN=re.DOT_PATTERN=void 0;var Wne=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Yne=/(\d+\.){3}\d+/,Qne=/\.\./;re.DOT_PATTERN=/\./;re.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var BD=/^s3(-external-1)?\.amazonaws\.com$/,PS="amazonaws.com",Jne=e=>typeof e.bucketName=="string";re.isBucketNameOptions=Jne;var Zne=e=>Wne.test(e)&&!Yne.test(e)&&!Qne.test(e);re.isDnsCompatibleBucketName=Zne;var DD=e=>{let n=e.match(re.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},ere=e=>BD.test(e)?["us-east-1",PS]:DD(e);re.getSuffix=ere;var tre=e=>BD.test(e)?[e.replace(`.${PS}`,""),PS]:DD(e);re.getSuffixForArnEndpoint=tre;var nre=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")};re.validateArnEndpointOptions=nre;var rre=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")};re.validateService=rre;var ore=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};re.validateS3Service=ore;var sre=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};re.validateOutpostService=sre;var ire=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};re.validatePartition=ire;var are=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!bS(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&&!bS(e,n.clientRegion||"")&&!bS(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};re.validateRegion=are;var cre=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};re.validateRegionalClient=cre;var bS=(e,n)=>e===n,dre=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};re.validateAccountId=dre;var lre=(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!=null&&n.tlsCompatible&&re.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};re.validateDNSHostLabel=lre;var ure=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")}};re.validateCustomEndpoint=ure;var mre=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[o,s,c]=r;return{outpostId:o,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};re.getArnResources=mre;var pre=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};re.validateNoDualstack=pre;var fre=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};re.validateNoFIPS=fre;var _re=e=>{try{e.split(".").forEach(n=>{(0,re.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};re.validateMrapAlias=_re});var xS=m(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.bucketHostname=void 0;var Se=vS(),yre=e=>((0,Se.validateCustomEndpoint)(e),(0,Se.isBucketNameOptions)(e)?gre(e):hre(e));Df.bucketHostname=yre;var gre=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,Se.getSuffix)(t);return c||!(0,Se.isDnsCompatibleBucketName)(r)||i&&Se.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${a}`:o&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},hre=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,Se.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,Se.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:c,tlsCompatible:u});let{service:_,partition:y,accountId:C,region:b,resource:A}=l;(0,Se.validateService)(_),(0,Se.validatePartition)(y,{clientPartition:a}),(0,Se.validateAccountId)(C);let{accesspointName:k,outpostId:K}=(0,Se.getArnResources)(A);return _==="s3-object-lambda"?Cre({...e,tlsCompatible:u,bucketName:l,accesspointName:k,hostnameSuffix:o}):b===""?Sre({...e,clientRegion:r,mrapAlias:k,hostnameSuffix:o}):K?Ere({...e,clientRegion:r,outpostId:K,accesspointName:k,hostnameSuffix:o}):bre({...e,clientRegion:r,accesspointName:k,hostnameSuffix:o})},Cre=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:_}=i;(0,Se.validateRegionalClient)(o),(0,Se.validateRegion)(a,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,Se.validateNoDualstack)(e);let y=`${c}-${l}`;(0,Se.validateDNSHostLabel)(y,{tlsCompatible:t});let C=r?a:o,b=r?a:s;return{bucketEndpoint:!0,hostname:`${y}.${_}${n?"-fips":""}.${C}.${u}`,signingRegion:b,signingService:_}},Sre=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,Se.validateMrapAlias)(r),(0,Se.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},Ere=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,Se.validateRegionalClient)(n),(0,Se.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let _=`${u}-${r.accountId}`;(0,Se.validateDNSHostLabel)(_,{tlsCompatible:i});let y=e?r.region:n,C=e?r.region:t;return(0,Se.validateOutpostService)(r.service),(0,Se.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,Se.validateNoDualstack)(s),(0,Se.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${_}.${o}`}${l?"":`.s3-outposts.${y}`}.${a}`,signingRegion:C,signingService:"s3-outposts"}},bre=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,Se.validateRegionalClient)(n),(0,Se.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:s});let a=`${i}-${r.accountId}`;(0,Se.validateDNSHostLabel)(a,{tlsCompatible:c});let _=e?r.region:n,y=e?r.region:t;return(0,Se.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${_}`}.${l}`,signingRegion:y}}});var jD=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getBucketEndpointPlugin=hn.bucketEndpointMiddlewareOptions=hn.bucketEndpointMiddleware=void 0;var FD=$y(),Pre=we(),LD=xS(),vre=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,c=r.request;if(Pre.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if((0,FD.validate)(o)){let i=(0,FD.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:_,signingRegion:y=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},C=await e.useArnRegion(),{hostname:b,bucketEndpoint:A,signingRegion:k,signingService:K}=(0,LD.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:C,clientPartition:_,clientSigningRegion:y,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});k&&k!==y&&(t.signing_region=k),K&&K!=="s3"&&(t.signing_service=K),c.hostname=b,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:_}=(0,LD.bucketHostname)({bucketName:o,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,s=_}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};hn.bucketEndpointMiddleware=vre;hn.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var xre=e=>({applyToStack:n=>{n.addRelativeTo((0,hn.bucketEndpointMiddleware)(e),hn.bucketEndpointMiddlewareOptions)}});hn.getBucketEndpointPlugin=xre});var UD=m(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.resolveBucketEndpointConfig=void 0;function wre(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}Ff.resolveBucketEndpointConfig=wre});var zD=m(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.validateNoFIPS=ve.validateNoDualstack=ve.validateDNSHostLabel=ve.validateRegion=ve.validateAccountId=ve.validatePartition=ve.validateOutpostService=ve.getSuffixForArnEndpoint=ve.getArnResources=void 0;var Jc=(z(),j(U));Jc.__exportStar(qD(),ve);Jc.__exportStar(MD(),ve);Jc.__exportStar(jD(),ve);Jc.__exportStar(xS(),ve);Jc.__exportStar(UD(),ve);var Gn=vS();Object.defineProperty(ve,"getArnResources",{enumerable:!0,get:function(){return Gn.getArnResources}});Object.defineProperty(ve,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return Gn.getSuffixForArnEndpoint}});Object.defineProperty(ve,"validateOutpostService",{enumerable:!0,get:function(){return Gn.validateOutpostService}});Object.defineProperty(ve,"validatePartition",{enumerable:!0,get:function(){return Gn.validatePartition}});Object.defineProperty(ve,"validateAccountId",{enumerable:!0,get:function(){return Gn.validateAccountId}});Object.defineProperty(ve,"validateRegion",{enumerable:!0,get:function(){return Gn.validateRegion}});Object.defineProperty(ve,"validateDNSHostLabel",{enumerable:!0,get:function(){return Gn.validateDNSHostLabel}});Object.defineProperty(ve,"validateNoDualstack",{enumerable:!0,get:function(){return Gn.validateNoDualstack}});Object.defineProperty(ve,"validateNoFIPS",{enumerable:!0,get:function(){return Gn.validateNoFIPS}})});var GD=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getChunkedStream=void 0;function kre(e){let n=0,t=0,r=null,o=null,s=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,_=0;for(;_{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.getMessageUnmarshaller=Rs.getUnmarshalledStream=void 0;function Are(e,n){let t=HD(n.deserializer,n.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let r of e){let o=n.eventStreamCodec.decode(r),s=await t(o);s!==void 0&&(yield s)}}}}Rs.getUnmarshalledStream=Are;function HD(e,n){return async function(t){let{value:r}=t.headers[":message-type"];if(r==="error"){let o=new Error(t.headers[":error-message"].value||"UnknownError");throw o.name=t.headers[":error-code"].value,o}else if(r==="exception"){let o=t.headers[":exception-type"].value,s={[o]:t},c=await e(s);if(c.$unknown){let i=new Error(n(t.body));throw i.name=o,i}throw c[o]}else if(r==="event"){let o={[t.headers[":event-type"].value]:t},s=await e(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`)}}Rs.getMessageUnmarshaller=HD});var kS=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.EventStreamMarshaller=void 0;var Zc=mg(),Ire=GD(),Rre=$D(),wS=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.eventStreamCodec=new Zc.EventStreamCodec(n,t),this.utfEncoder=n}deserialize(n,t){let r=(0,Ire.getChunkedStream)(n);return new Zc.SmithyMessageDecoderStream({messageStream:new Zc.MessageDecoderStream({inputStream:r,decoder:this.eventStreamCodec}),deserializer:(0,Rre.getMessageUnmarshaller)(t,this.utfEncoder)})}serialize(n,t){return new Zc.MessageEncoderStream({messageStream:new Zc.SmithyMessageEncoderStream({inputStream:n,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};jf.EventStreamMarshaller=wS});var KD=m(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.eventStreamSerdeProvider=void 0;var Nre=kS(),Ore=e=>new Nre.EventStreamMarshaller(e);Uf.eventStreamSerdeProvider=Ore});var XD=m(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var VD=(z(),j(U));VD.__exportStar(kS(),zf);VD.__exportStar(KD(),zf)});var WD=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.readabletoIterable=void 0;async function*Tre(e){let n=!1,t=!1,r=new Array;for(e.on("error",o=>{if(n||(n=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{n=!0});!t;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),t=n&&r.length===0}}Gf.readabletoIterable=Tre});var IS=m(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.EventStreamMarshaller=void 0;var qre=XD(),Mre=require("stream"),Bre=WD(),AS=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new qre.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:(0,Bre.readabletoIterable)(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return Mre.Readable.from(this.universalMarshaller.serialize(n,t))}};Hf.EventStreamMarshaller=AS});var YD=m($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.eventStreamSerdeProvider=void 0;var Dre=IS(),Fre=e=>new Dre.EventStreamMarshaller(e);$f.eventStreamSerdeProvider=Fre});var JD=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var QD=(z(),j(U));QD.__exportStar(IS(),Kf);QD.__exportStar(YD(),Kf)});var NS=m(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.HashCalculator=void 0;var Lre=Pt(),jre=require("stream"),RS=class extends jre.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,Lre.toUint8Array)(n))}catch(o){return r(o)}r()}};Vf.HashCalculator=RS});var ZD=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.fileStreamHasher=void 0;var Ure=require("fs"),zre=NS(),Gre=(e,n)=>new Promise((t,r)=>{if(!Hre(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,Ure.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,c=new zre.HashCalculator(s);o.pipe(c),o.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){s.digest().then(t).catch(r)})});Xf.fileStreamHasher=Gre;var Hre=e=>typeof e.path=="string"});var eF=m(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.readableStreamHasher=void 0;var $re=NS(),Kre=(e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new $re.HashCalculator(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",c=>{r.end(),s(c)}),r.on("error",s),r.on("finish",()=>{t.digest().then(o).catch(s)})})};Wf.readableStreamHasher=Kre});var nF=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var tF=(z(),j(U));tF.__exportStar(ZD(),Yf);tF.__exportStar(eF(),Yf)});var Jf=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.signatureV4CrtContainer=void 0;Qf.signatureV4CrtContainer={CrtSignerV4:null}});var rF=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.loadCrt=void 0;var Vre=Jf();function Xre(){if(!Vre.signatureV4CrtContainer.CrtSignerV4)try{if(typeof require=="function"){let e=require,n="@aws-sdk/signature-v4-crt";e.call(null,n),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};ff.validateSsoProfile=Xee});var mB=m(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.fromSSO=void 0;var Wc=Ce(),JC=Dt(),Wee=gC(),uB=lB(),Yee=QC(),Qee=(e={})=>async()=>{let{ssoStartUrl:n,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,ssoSession:c}=e,i=(0,JC.getProfileName)(e);if(!n&&!t&&!r&&!o&&!c){let l=(await(0,JC.parseKnownFiles)(e))[i];if(!l)throw new Wc.CredentialsProviderError(`Profile ${i} was not found.`);if(!(0,Wee.isSsoProfile)(l))throw new Wc.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`);if(l!=null&&l.sso_session){let k=(await(0,JC.loadSsoSessionData)(e))[l.sso_session],K=` configurations in profile ${i} and sso-session ${l.sso_session}`;if(r&&r!==k.sso_region)throw new Wc.CredentialsProviderError("Conflicting SSO region"+K,!1);if(n&&n!==k.sso_start_url)throw new Wc.CredentialsProviderError("Conflicting SSO start_url"+K,!1);l.sso_region=k.sso_region,l.sso_start_url=k.sso_start_url}let{sso_start_url:a,sso_account_id:_,sso_region:y,sso_role_name:C,sso_session:b}=(0,Yee.validateSsoProfile)(l);return(0,uB.resolveSSOCredentials)({ssoStartUrl:a,ssoSession:b,ssoAccountId:_,ssoRegion:y,ssoRoleName:C,ssoClient:s,profile:i})}else{if(!n||!t||!r||!o)throw new Wc.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,uB.resolveSSOCredentials)({ssoStartUrl:n,ssoSession:c,ssoAccountId:t,ssoRegion:r,ssoRoleName:o,ssoClient:s,profile:i})}};_f.fromSSO=Qee});var fB=m(pB=>{"use strict";Object.defineProperty(pB,"__esModule",{value:!0})});var gf=m(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var yf=(z(),j(U));yf.__exportStar(mB(),hs);yf.__exportStar(gC(),hs);yf.__exportStar(fB(),hs);yf.__exportStar(QC(),hs)});var yB=m(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.resolveSsoCredentials=Cs.isSsoProfile=void 0;var _B=gf(),Jee=gf();Object.defineProperty(Cs,"isSsoProfile",{enumerable:!0,get:function(){return Jee.isSsoProfile}});var Zee=e=>{let{sso_start_url:n,sso_account_id:t,sso_session:r,sso_region:o,sso_role_name:s}=(0,_B.validateSsoProfile)(e);return(0,_B.fromSSO)({ssoStartUrl:n,ssoAccountId:t,ssoSession:r,ssoRegion:o,ssoRoleName:s})()};Cs.resolveSsoCredentials=Zee});var gB=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveStaticCredentials=Ss.isStaticCredsProfile=void 0;var ete=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;Ss.isStaticCredsProfile=ete;var tte=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});Ss.resolveStaticCredentials=tte});var ZC=m(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.fromWebToken=void 0;var nte=Ce(),rte=e=>()=>{let{roleArn:n,roleSessionName:t,webIdentityToken:r,providerId:o,policyArns:s,policy:c,durationSeconds:i,roleAssumerWithWebIdentity:u}=e;if(!u)throw new nte.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:o,PolicyArns:s,Policy:c,DurationSeconds:i})};hf.fromWebToken=rte});var hB=m(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.fromTokenFile=void 0;var ote=Ce(),ste=require("fs"),ite=ZC(),ate="AWS_WEB_IDENTITY_TOKEN_FILE",cte="AWS_ROLE_ARN",dte="AWS_ROLE_SESSION_NAME",lte=(e={})=>async()=>{var n,t,r;let o=(n=e==null?void 0:e.webIdentityTokenFile)!==null&&n!==void 0?n:process.env[ate],s=(t=e==null?void 0:e.roleArn)!==null&&t!==void 0?t:process.env[cte],c=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[dte];if(!o||!s)throw new ote.CredentialsProviderError("Web identity configuration not specified");return(0,ite.fromWebToken)({...e,webIdentityToken:(0,ste.readFileSync)(o,{encoding:"ascii"}),roleArn:s,roleSessionName:c})()};Cf.fromTokenFile=lte});var eS=m(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var CB=(z(),j(U));CB.__exportStar(hB(),Sf);CB.__exportStar(ZC(),Sf)});var SB=m(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveWebIdentityCredentials=Es.isWebIdentityProfile=void 0;var ute=eS(),mte=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;Es.isWebIdentityProfile=mte;var pte=async(e,n)=>(0,ute.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity})();Es.resolveWebIdentityCredentials=pte});var pC=m(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.resolveProfileData=void 0;var fte=Ce(),EB=Mq(),bB=jq(),PB=yB(),Ef=gB(),vB=SB(),_te=async(e,n,t,r={})=>{let o=n[e];if(Object.keys(r).length>0&&(0,Ef.isStaticCredsProfile)(o))return(0,Ef.resolveStaticCredentials)(o);if((0,EB.isAssumeRoleProfile)(o))return(0,EB.resolveAssumeRoleCredentials)(e,n,t,r);if((0,Ef.isStaticCredsProfile)(o))return(0,Ef.resolveStaticCredentials)(o);if((0,vB.isWebIdentityProfile)(o))return(0,vB.resolveWebIdentityCredentials)(o,t);if((0,bB.isProcessProfile)(o))return(0,bB.resolveProcessCredentials)(t,e);if((0,PB.isSsoProfile)(o))return(0,PB.resolveSsoCredentials)(o);throw new fte.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};bf.resolveProfileData=_te});var wB=m(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.fromIni=void 0;var xB=Dt(),yte=pC(),gte=(e={})=>async()=>{let n=await(0,xB.parseKnownFiles)(e);return(0,yte.resolveProfileData)((0,xB.getProfileName)(e),n,e)};Pf.fromIni=gte});var kB=m(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});var hte=(z(),j(U));hte.__exportStar(wB(),tS)});var AB=m(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.remoteProvider=lo.ENV_IMDS_DISABLED=void 0;var vf=dp(),Cte=Ce();lo.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Ste=e=>process.env[vf.ENV_CMDS_RELATIVE_URI]||process.env[vf.ENV_CMDS_FULL_URI]?(0,vf.fromContainerMetadata)(e):process.env[lo.ENV_IMDS_DISABLED]?async()=>{throw new Cte.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,vf.fromInstanceMetadata)(e);lo.remoteProvider=Ste});var IB=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.defaultProvider=void 0;var Ete=nC(),bte=kB(),Pte=yC(),vte=gf(),xte=eS(),nS=Ce(),wte=Dt(),kte=AB(),Ate=(e={})=>(0,nS.memoize)((0,nS.chain)(...e.profile||process.env[wte.ENV_PROFILE]?[]:[(0,Ete.fromEnv)()],(0,vte.fromSSO)(e),(0,bte.fromIni)(e),(0,Pte.fromProcess)(e),(0,xte.fromTokenFile)(e),(0,kte.remoteProvider)(e),async()=>{throw new nS.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);xf.defaultProvider=Ate});var oS=m(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});var Ite=(z(),j(U));Ite.__exportStar(IB(),rS)});var QB=m(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.ruleSet=void 0;var UB="required",ie="type",ge="fn",he="argv",Ar="ref",RB=!1,Rte=!0,uo="booleanEquals",pn="tree",Qe="stringEquals",zB="sigv4",GB="sts",HB="us-east-1",Ae="endpoint",NB="https://sts.{Region}.{PartitionResult#dnsSuffix}",bs="error",iS="getAttr",OB={[UB]:!1,[ie]:"String"},sS={[UB]:!0,default:!1,[ie]:"Boolean"},$B={[Ar]:"Endpoint"},TB={[ge]:"isSet",[he]:[{[Ar]:"Region"}]},Je={[Ar]:"Region"},qB={[ge]:"aws.partition",[he]:[Je],assign:"PartitionResult"},KB={[Ar]:"UseFIPS"},VB={[Ar]:"UseDualStack"},st={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:zB,signingName:GB,signingRegion:HB}]},headers:{}},Et={},MB={conditions:[{[ge]:Qe,[he]:[Je,"aws-global"]}],[Ae]:st,[ie]:Ae},XB={[ge]:uo,[he]:[KB,!0]},WB={[ge]:uo,[he]:[VB,!0]},BB={[ge]:uo,[he]:[!0,{[ge]:iS,[he]:[{[Ar]:"PartitionResult"},"supportsFIPS"]}]},YB={[Ar]:"PartitionResult"},DB={[ge]:uo,[he]:[!0,{[ge]:iS,[he]:[YB,"supportsDualStack"]}]},FB=[{[ge]:"isSet",[he]:[$B]}],LB=[XB],jB=[WB],Nte={version:"1.0",parameters:{Region:OB,UseDualStack:sS,UseFIPS:sS,Endpoint:OB,UseGlobalEndpoint:sS},rules:[{conditions:[{[ge]:uo,[he]:[{[Ar]:"UseGlobalEndpoint"},Rte]},{[ge]:"not",[he]:FB},TB,qB,{[ge]:uo,[he]:[KB,RB]},{[ge]:uo,[he]:[VB,RB]}],[ie]:pn,rules:[{conditions:[{[ge]:Qe,[he]:[Je,"ap-northeast-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"ap-south-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"ap-southeast-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"ap-southeast-2"]}],endpoint:st,[ie]:Ae},MB,{conditions:[{[ge]:Qe,[he]:[Je,"ca-central-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-central-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-north-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-west-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-west-2"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"eu-west-3"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"sa-east-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,HB]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"us-east-2"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"us-west-1"]}],endpoint:st,[ie]:Ae},{conditions:[{[ge]:Qe,[he]:[Je,"us-west-2"]}],endpoint:st,[ie]:Ae},{endpoint:{url:NB,properties:{authSchemes:[{name:zB,signingName:GB,signingRegion:"{Region}"}]},headers:Et},[ie]:Ae}]},{conditions:FB,[ie]:pn,rules:[{conditions:LB,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[ie]:bs},{conditions:jB,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[ie]:bs},{endpoint:{url:$B,properties:Et,headers:Et},[ie]:Ae}]},{conditions:[TB],[ie]:pn,rules:[{conditions:[qB],[ie]:pn,rules:[{conditions:[XB,WB],[ie]:pn,rules:[{conditions:[BB,DB],[ie]:pn,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Et,headers:Et},[ie]:Ae}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[ie]:bs}]},{conditions:LB,[ie]:pn,rules:[{conditions:[BB],[ie]:pn,rules:[{conditions:[{[ge]:Qe,[he]:["aws-us-gov",{[ge]:iS,[he]:[YB,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Et,headers:Et},[ie]:Ae},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Et,headers:Et},[ie]:Ae}]},{error:"FIPS is enabled but this partition does not support FIPS",[ie]:bs}]},{conditions:jB,[ie]:pn,rules:[{conditions:[DB],[ie]:pn,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Et,headers:Et},[ie]:Ae}]},{error:"DualStack is enabled but this partition does not support DualStack",[ie]:bs}]},MB,{endpoint:{url:NB,properties:Et,headers:Et},[ie]:Ae}]}]},{error:"Invalid Configuration: Missing Region",[ie]:bs}]};wf.ruleSet=Nte});var JB=m(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.defaultEndpointResolver=void 0;var Ote=Ko(),Tte=QB(),qte=(e,n={})=>(0,Ote.resolveEndpoint)(Tte.ruleSet,{endpointParams:e,logger:n.logger});kf.defaultEndpointResolver=qte});var tD=m(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.getRuntimeConfig=void 0;var Mte=E(),Bte=Zr(),ZB=Po(),eD=Pt(),Dte=JB(),Fte=e=>({apiVersion:"2011-06-15",base64Decoder:(e==null?void 0:e.base64Decoder)??ZB.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??ZB.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??Dte.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new Mte.NoOpLogger,serviceId:(e==null?void 0:e.serviceId)??"STS",urlParser:(e==null?void 0:e.urlParser)??Bte.parseUrl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??eD.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??eD.toUtf8});Af.getRuntimeConfig=Fte});var oD=m(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.getRuntimeConfig=void 0;var Lte=(z(),j(U)),jte=Lte.__importDefault(vT()),Ute=eC(),zte=oS(),Gte=Tc(),If=Qt(),Hte=qc(),nD=On(),Yc=en(),rD=wo(),$te=Mc(),Kte=Rt(),Vte=tD(),Xte=E(),Wte=Dc(),Yte=E(),Qte=e=>{(0,Yte.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Wte.resolveDefaultsModeConfig)(e),t=()=>n().then(Xte.loadConfigsForDefaultMode),r=(0,Vte.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??$te.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,Ute.decorateDefaultCredentialProvider)(zte.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,Gte.defaultUserAgent)({serviceId:r.serviceId,clientVersion:jte.default.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Yc.loadConfig)(nD.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(e==null?void 0:e.region)??(0,Yc.loadConfig)(If.NODE_REGION_CONFIG_OPTIONS,If.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new rD.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Yc.loadConfig)({...nD.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Kte.DEFAULT_RETRY_MODE}),sha256:(e==null?void 0:e.sha256)??Hte.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??rD.streamCollector,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Yc.loadConfig)(If.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Yc.loadConfig)(If.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};Rf.getRuntimeConfig=Qte});var cD=m(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.resolveRuntimeExtensions=void 0;var sD=Np(),iD=we(),aD=E(),aS=e=>e,Jte=(e,n)=>{let t={...aS((0,sD.getAwsRegionExtensionConfiguration)(e)),...aS((0,aD.getDefaultExtensionConfiguration)(e)),...aS((0,iD.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,sD.resolveAwsRegionExtensionConfiguration)(t),...(0,aD.resolveDefaultRuntimeConfig)(t),...(0,iD.resolveHttpHandlerRuntimeConfig)(t)}};Nf.resolveRuntimeExtensions=Jte});var Of=m(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.STSClient=Ps.__Client=void 0;var dD=Ka(),Zte=Va(),ene=Xa(),tne=bT(),lD=pc(),nne=Qt(),rne=gc(),one=x(),uD=On(),mD=E();Object.defineProperty(Ps,"__Client",{enumerable:!0,get:function(){return mD.Client}});var sne=PT(),ine=oD(),ane=cD(),cS=class e extends mD.Client{constructor(...[n]){let t=(0,ine.getRuntimeConfig)(n||{}),r=(0,sne.resolveClientEndpointParameters)(t),o=(0,nne.resolveRegionConfig)(r),s=(0,one.resolveEndpointConfig)(o),c=(0,uD.resolveRetryConfig)(s),i=(0,dD.resolveHostHeaderConfig)(c),u=(0,tne.resolveStsAuthConfig)(i,{stsClientCtor:e}),l=(0,lD.resolveUserAgentConfig)(u),a=(0,ane.resolveRuntimeExtensions)(l,(n==null?void 0:n.extensions)||[]);super(a),this.config=a,this.middlewareStack.use((0,uD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,rne.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,dD.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Zte.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,ene.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,lD.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Ps.STSClient=cS});var lS=m(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.AssumeRoleWithSAMLCommand=vs.$Command=void 0;var cne=x(),dne=w(),_D=E();Object.defineProperty(vs,"$Command",{enumerable:!0,get:function(){return _D.Command}});var lne=v(),pD=gr(),fD=Mn(),dS=class e extends _D.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,dne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,cne.getEndpointPlugin)(t,e.getEndpointParameterInstructions()));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:pD.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:pD.AssumeRoleWithSAMLResponseFilterSensitiveLog,[lne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"AssumeRoleWithSAML"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,fD.se_AssumeRoleWithSAMLCommand)(n,t)}deserialize(n,t){return(0,fD.de_AssumeRoleWithSAMLCommand)(n,t)}};vs.AssumeRoleWithSAMLCommand=dS});var mS=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.DecodeAuthorizationMessageCommand=xs.$Command=void 0;var une=kn(),mne=x(),pne=w(),gD=E();Object.defineProperty(xs,"$Command",{enumerable:!0,get:function(){return gD.Command}});var fne=v(),yD=Mn(),uS=class e extends gD.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,pne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,mne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,une.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[fne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"DecodeAuthorizationMessage"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,yD.se_DecodeAuthorizationMessageCommand)(n,t)}deserialize(n,t){return(0,yD.de_DecodeAuthorizationMessageCommand)(n,t)}};xs.DecodeAuthorizationMessageCommand=uS});var fS=m(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GetAccessKeyInfoCommand=ws.$Command=void 0;var _ne=kn(),yne=x(),gne=w(),CD=E();Object.defineProperty(ws,"$Command",{enumerable:!0,get:function(){return CD.Command}});var hne=v(),hD=Mn(),pS=class e extends CD.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,gne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,yne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,_ne.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[hne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetAccessKeyInfo"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,hD.se_GetAccessKeyInfoCommand)(n,t)}deserialize(n,t){return(0,hD.de_GetAccessKeyInfoCommand)(n,t)}};ws.GetAccessKeyInfoCommand=pS});var yS=m(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.GetCallerIdentityCommand=ks.$Command=void 0;var Cne=kn(),Sne=x(),Ene=w(),ED=E();Object.defineProperty(ks,"$Command",{enumerable:!0,get:function(){return ED.Command}});var bne=v(),SD=Mn(),_S=class e extends ED.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,Ene.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Sne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Cne.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:a=>a,[bne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetCallerIdentity"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,SD.se_GetCallerIdentityCommand)(n,t)}deserialize(n,t){return(0,SD.de_GetCallerIdentityCommand)(n,t)}};ks.GetCallerIdentityCommand=_S});var hS=m(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.GetFederationTokenCommand=As.$Command=void 0;var Pne=kn(),vne=x(),xne=w(),PD=E();Object.defineProperty(As,"$Command",{enumerable:!0,get:function(){return PD.Command}});var wne=v(),kne=gr(),bD=Mn(),gS=class e extends PD.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,xne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,vne.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Pne.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:kne.GetFederationTokenResponseFilterSensitiveLog,[wne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetFederationToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,bD.se_GetFederationTokenCommand)(n,t)}deserialize(n,t){return(0,bD.de_GetFederationTokenCommand)(n,t)}};As.GetFederationTokenCommand=gS});var SS=m(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.GetSessionTokenCommand=Is.$Command=void 0;var Ane=kn(),Ine=x(),Rne=w(),xD=E();Object.defineProperty(Is,"$Command",{enumerable:!0,get:function(){return xD.Command}});var Nne=v(),One=gr(),vD=Mn(),CS=class e extends xD.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,Rne.getSerdePlugin)(t,this.serialize,this.deserialize)),this.middlewareStack.use((0,Ine.getEndpointPlugin)(t,e.getEndpointParameterInstructions())),this.middlewareStack.use((0,Ane.getAwsAuthPlugin)(t));let o=n.concat(this.middlewareStack),{logger:s}=t,u={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:a=>a,outputFilterSensitiveLog:One.GetSessionTokenResponseFilterSensitiveLog,[Nne.SMITHY_CONTEXT_KEY]:{service:"AWSSecurityTokenServiceV20110615",operation:"GetSessionToken"}},{requestHandler:l}=t;return o.resolve(a=>l.handle(a.request,r||{}),u)}serialize(n,t){return(0,vD.se_GetSessionTokenCommand)(n,t)}deserialize(n,t){return(0,vD.de_GetSessionTokenCommand)(n,t)}};Is.GetSessionTokenCommand=CS});var wD=m(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.STS=void 0;var Tne=E(),qne=Ym(),Mne=lS(),Bne=Qm(),Dne=mS(),Fne=fS(),Lne=yS(),jne=hS(),Une=SS(),zne=Of(),Gne={AssumeRoleCommand:qne.AssumeRoleCommand,AssumeRoleWithSAMLCommand:Mne.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:Bne.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:Dne.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:Fne.GetAccessKeyInfoCommand,GetCallerIdentityCommand:Lne.GetCallerIdentityCommand,GetFederationTokenCommand:jne.GetFederationTokenCommand,GetSessionTokenCommand:Une.GetSessionTokenCommand},Tf=class extends zne.STSClient{};qf.STS=Tf;(0,Tne.createAggregatedClient)(Gne,Tf)});var kD=m(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});var Ir=(z(),j(U));Ir.__exportStar(Ym(),fn);Ir.__exportStar(lS(),fn);Ir.__exportStar(Qm(),fn);Ir.__exportStar(mS(),fn);Ir.__exportStar(fS(),fn);Ir.__exportStar(yS(),fn);Ir.__exportStar(hS(),fn);Ir.__exportStar(SS(),fn)});var AD=m(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});var Hne=(z(),j(U));Hne.__exportStar(gr(),ES)});var OD=m(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.decorateDefaultCredentialProvider=_n.getDefaultRoleAssumerWithWebIdentity=_n.getDefaultRoleAssumer=void 0;var ID=eC(),RD=Of(),ND=(e,n)=>n?class extends e{constructor(r){super(r);for(let o of n)this.middlewareStack.use(o)}}:e,$ne=(e={},n)=>(0,ID.getDefaultRoleAssumer)(e,ND(RD.STSClient,n));_n.getDefaultRoleAssumer=$ne;var Kne=(e={},n)=>(0,ID.getDefaultRoleAssumerWithWebIdentity)(e,ND(RD.STSClient,n));_n.getDefaultRoleAssumerWithWebIdentity=Kne;var Vne=e=>n=>e({roleAssumer:(0,_n.getDefaultRoleAssumer)(n),roleAssumerWithWebIdentity:(0,_n.getDefaultRoleAssumerWithWebIdentity)(n),...n});_n.decorateDefaultCredentialProvider=Vne});var TD=m(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.STSServiceException=void 0;var Qc=(z(),j(U));Qc.__exportStar(Of(),zn);Qc.__exportStar(wD(),zn);Qc.__exportStar(kD(),zn);Qc.__exportStar(AD(),zn);Qc.__exportStar(OD(),zn);var Xne=$m();Object.defineProperty(zn,"STSServiceException",{enumerable:!0,get:function(){return Xne.STSServiceException}})});var qD=m(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS=yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME=yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME=void 0;var Mf=fc();yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME="AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME="s3_disable_multiregion_access_points";yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Mf.booleanSelector)(e,yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,Mf.SelectorType.ENV),configFileSelector:e=>(0,Mf.booleanSelector)(e,yn.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,Mf.SelectorType.CONFIG),default:!1}});var MD=m(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.NODE_USE_ARN_REGION_CONFIG_OPTIONS=gn.NODE_USE_ARN_REGION_INI_NAME=gn.NODE_USE_ARN_REGION_ENV_NAME=void 0;var Bf=fc();gn.NODE_USE_ARN_REGION_ENV_NAME="AWS_S3_USE_ARN_REGION";gn.NODE_USE_ARN_REGION_INI_NAME="s3_use_arn_region";gn.NODE_USE_ARN_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Bf.booleanSelector)(e,gn.NODE_USE_ARN_REGION_ENV_NAME,Bf.SelectorType.ENV),configFileSelector:e=>(0,Bf.booleanSelector)(e,gn.NODE_USE_ARN_REGION_INI_NAME,Bf.SelectorType.CONFIG),default:!1}});var vS=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.validateMrapAlias=re.validateNoFIPS=re.validateNoDualstack=re.getArnResources=re.validateCustomEndpoint=re.validateDNSHostLabel=re.validateAccountId=re.validateRegionalClient=re.validateRegion=re.validatePartition=re.validateOutpostService=re.validateS3Service=re.validateService=re.validateArnEndpointOptions=re.getSuffixForArnEndpoint=re.getSuffix=re.isDnsCompatibleBucketName=re.isBucketNameOptions=re.S3_HOSTNAME_PATTERN=re.DOT_PATTERN=void 0;var Wne=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Yne=/(\d+\.){3}\d+/,Qne=/\.\./;re.DOT_PATTERN=/\./;re.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;var BD=/^s3(-external-1)?\.amazonaws\.com$/,PS="amazonaws.com",Jne=e=>typeof e.bucketName=="string";re.isBucketNameOptions=Jne;var Zne=e=>Wne.test(e)&&!Yne.test(e)&&!Qne.test(e);re.isDnsCompatibleBucketName=Zne;var DD=e=>{let n=e.match(re.S3_HOSTNAME_PATTERN);return[n[4],e.replace(new RegExp(`^${n[0]}`),"")]},ere=e=>BD.test(e)?["us-east-1",PS]:DD(e);re.getSuffix=ere;var tre=e=>BD.test(e)?[e.replace(`.${PS}`,""),PS]:DD(e);re.getSuffixForArnEndpoint=tre;var nre=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")};re.validateArnEndpointOptions=nre;var rre=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")};re.validateService=rre;var ore=e=>{if(e!=="s3")throw new Error("Expect 's3' in Accesspoint ARN service component")};re.validateS3Service=ore;var sre=e=>{if(e!=="s3-outposts")throw new Error("Expect 's3-posts' in Outpost ARN service component")};re.validateOutpostService=sre;var ire=(e,n)=>{if(e!==n.clientPartition)throw new Error(`Partition in ARN is incompatible, got "${e}" but expected "${n.clientPartition}"`)};re.validatePartition=ire;var are=(e,n)=>{if(e==="")throw new Error("ARN region is empty");if(n.useFipsEndpoint)if(n.allowFipsRegion){if(!bS(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&&!bS(e,n.clientRegion||"")&&!bS(e,n.clientSigningRegion||""))throw new Error(`Region in ARN is incompatible, got ${e} but expected ${n.clientRegion}`)};re.validateRegion=are;var cre=e=>{if(["s3-external-1","aws-global"].includes(e))throw new Error(`Client region ${e} is not regional`)};re.validateRegionalClient=cre;var bS=(e,n)=>e===n,dre=e=>{if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")};re.validateAccountId=dre;var lre=(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!=null&&n.tlsCompatible&&re.DOT_PATTERN.test(e))throw new Error(`Invalid DNS label ${e}`)};re.validateDNSHostLabel=lre;var ure=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")}};re.validateCustomEndpoint=ure;var mre=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[o,s,c]=r;return{outpostId:o,accesspointName:c}}else throw new Error(`ARN resource should begin with 'accesspoint${n}' or 'outpost${n}'`)};re.getArnResources=mre;var pre=e=>{if(e)throw new Error("Dualstack endpoint is not supported with Outpost or Multi-region Access Point ARN.")};re.validateNoDualstack=pre;var fre=e=>{if(e)throw new Error("FIPS region is not supported with Outpost.")};re.validateNoFIPS=fre;var _re=e=>{try{e.split(".").forEach(n=>{(0,re.validateDNSHostLabel)(n)})}catch{throw new Error(`"${e}" is not a DNS compatible name.`)}};re.validateMrapAlias=_re});var xS=m(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.bucketHostname=void 0;var Se=vS(),yre=e=>((0,Se.validateCustomEndpoint)(e),(0,Se.isBucketNameOptions)(e)?gre(e):hre(e));Df.bucketHostname=yre;var gre=({accelerateEndpoint:e=!1,clientRegion:n,baseHostname:t,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,pathStyleEndpoint:c=!1,tlsCompatible:i=!0,isCustomEndpoint:u=!1})=>{let[l,a]=u?[n,t]:(0,Se.getSuffix)(t);return c||!(0,Se.isDnsCompatibleBucketName)(r)||i&&Se.DOT_PATTERN.test(r)?{bucketEndpoint:!1,hostname:o?`s3.dualstack.${l}.${a}`:t}:(e?t=`s3-accelerate${o?".dualstack":""}.${a}`:o&&(t=`s3.dualstack.${l}.${a}`),{bucketEndpoint:!0,hostname:`${r}.${t}`})},hre=e=>{let{isCustomEndpoint:n,baseHostname:t,clientRegion:r}=e,o=n?t:(0,Se.getSuffixForArnEndpoint)(t)[1],{pathStyleEndpoint:s,accelerateEndpoint:c=!1,fipsEndpoint:i=!1,tlsCompatible:u=!0,bucketName:l,clientPartition:a="aws"}=e;(0,Se.validateArnEndpointOptions)({pathStyleEndpoint:s,accelerateEndpoint:c,tlsCompatible:u});let{service:_,partition:y,accountId:C,region:b,resource:A}=l;(0,Se.validateService)(_),(0,Se.validatePartition)(y,{clientPartition:a}),(0,Se.validateAccountId)(C);let{accesspointName:k,outpostId:K}=(0,Se.getArnResources)(A);return _==="s3-object-lambda"?Cre({...e,tlsCompatible:u,bucketName:l,accesspointName:k,hostnameSuffix:o}):b===""?Sre({...e,clientRegion:r,mrapAlias:k,hostnameSuffix:o}):K?Ere({...e,clientRegion:r,outpostId:K,accesspointName:k,hostnameSuffix:o}):bre({...e,clientRegion:r,accesspointName:k,hostnameSuffix:o})},Cre=({dualstackEndpoint:e=!1,fipsEndpoint:n=!1,tlsCompatible:t=!0,useArnRegion:r,clientRegion:o,clientSigningRegion:s=o,accesspointName:c,bucketName:i,hostnameSuffix:u})=>{let{accountId:l,region:a,service:_}=i;(0,Se.validateRegionalClient)(o),(0,Se.validateRegion)(a,{useArnRegion:r,clientRegion:o,clientSigningRegion:s,allowFipsRegion:!0,useFipsEndpoint:n}),(0,Se.validateNoDualstack)(e);let y=`${c}-${l}`;(0,Se.validateDNSHostLabel)(y,{tlsCompatible:t});let C=r?a:o,b=r?a:s;return{bucketEndpoint:!0,hostname:`${y}.${_}${n?"-fips":""}.${C}.${u}`,signingRegion:b,signingService:_}},Sre=({disableMultiregionAccessPoints:e,dualstackEndpoint:n=!1,isCustomEndpoint:t,mrapAlias:r,hostnameSuffix:o})=>{if(e===!0)throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");return(0,Se.validateMrapAlias)(r),(0,Se.validateNoDualstack)(n),{bucketEndpoint:!0,hostname:`${r}${t?"":".accesspoint.s3-global"}.${o}`,signingRegion:"*"}},Ere=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,outpostId:o,dualstackEndpoint:s=!1,fipsEndpoint:c=!1,tlsCompatible:i=!0,accesspointName:u,isCustomEndpoint:l,hostnameSuffix:a})=>{(0,Se.validateRegionalClient)(n),(0,Se.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,useFipsEndpoint:c});let _=`${u}-${r.accountId}`;(0,Se.validateDNSHostLabel)(_,{tlsCompatible:i});let y=e?r.region:n,C=e?r.region:t;return(0,Se.validateOutpostService)(r.service),(0,Se.validateDNSHostLabel)(o,{tlsCompatible:i}),(0,Se.validateNoDualstack)(s),(0,Se.validateNoFIPS)(c),{bucketEndpoint:!0,hostname:`${`${_}.${o}`}${l?"":`.s3-outposts.${y}`}.${a}`,signingRegion:C,signingService:"s3-outposts"}},bre=({useArnRegion:e,clientRegion:n,clientSigningRegion:t=n,bucketName:r,dualstackEndpoint:o=!1,fipsEndpoint:s=!1,tlsCompatible:c=!0,accesspointName:i,isCustomEndpoint:u,hostnameSuffix:l})=>{(0,Se.validateRegionalClient)(n),(0,Se.validateRegion)(r.region,{useArnRegion:e,clientRegion:n,clientSigningRegion:t,allowFipsRegion:!0,useFipsEndpoint:s});let a=`${i}-${r.accountId}`;(0,Se.validateDNSHostLabel)(a,{tlsCompatible:c});let _=e?r.region:n,y=e?r.region:t;return(0,Se.validateS3Service)(r.service),{bucketEndpoint:!0,hostname:`${a}${u?"":`.s3-accesspoint${s?"-fips":""}${o?".dualstack":""}.${_}`}.${l}`,signingRegion:y}}});var jD=m(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.getBucketEndpointPlugin=hn.bucketEndpointMiddlewareOptions=hn.bucketEndpointMiddleware=void 0;var FD=$y(),Pre=we(),LD=xS(),vre=e=>(n,t)=>async r=>{let{Bucket:o}=r.input,s=e.bucketEndpoint,c=r.request;if(Pre.HttpRequest.isInstance(c)){if(e.bucketEndpoint)c.hostname=o;else if((0,FD.validate)(o)){let i=(0,FD.parse)(o),u=await e.region(),l=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{partition:_,signingRegion:y=u}=await e.regionInfoProvider(u,{useDualstackEndpoint:l,useFipsEndpoint:a})||{},C=await e.useArnRegion(),{hostname:b,bucketEndpoint:A,signingRegion:k,signingService:K}=(0,LD.bucketHostname)({bucketName:i,baseHostname:c.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:l,fipsEndpoint:a,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:c.protocol==="https:",useArnRegion:C,clientPartition:_,clientSigningRegion:y,clientRegion:u,isCustomEndpoint:e.isCustomEndpoint,disableMultiregionAccessPoints:await e.disableMultiregionAccessPoints()});k&&k!==y&&(t.signing_region=k),K&&K!=="s3"&&(t.signing_service=K),c.hostname=b,s=A}else{let i=await e.region(),u=await e.useDualstackEndpoint(),l=await e.useFipsEndpoint(),{hostname:a,bucketEndpoint:_}=(0,LD.bucketHostname)({bucketName:o,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,s=_}s&&(c.path=c.path.replace(/^(\/)?[^\/]+/,""),c.path===""&&(c.path="/"))}return n({...r,request:c})};hn.bucketEndpointMiddleware=vre;hn.bucketEndpointMiddlewareOptions={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0};var xre=e=>({applyToStack:n=>{n.addRelativeTo((0,hn.bucketEndpointMiddleware)(e),hn.bucketEndpointMiddlewareOptions)}});hn.getBucketEndpointPlugin=xre});var UD=m(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.resolveBucketEndpointConfig=void 0;function wre(e){let{bucketEndpoint:n=!1,forcePathStyle:t=!1,useAccelerateEndpoint:r=!1,useArnRegion:o=!1,disableMultiregionAccessPoints:s=!1}=e;return{...e,bucketEndpoint:n,forcePathStyle:t,useAccelerateEndpoint:r,useArnRegion:typeof o=="function"?o:()=>Promise.resolve(o),disableMultiregionAccessPoints:typeof s=="function"?s:()=>Promise.resolve(s)}}Ff.resolveBucketEndpointConfig=wre});var zD=m(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.validateNoFIPS=ve.validateNoDualstack=ve.validateDNSHostLabel=ve.validateRegion=ve.validateAccountId=ve.validatePartition=ve.validateOutpostService=ve.getSuffixForArnEndpoint=ve.getArnResources=void 0;var Jc=(z(),j(U));Jc.__exportStar(qD(),ve);Jc.__exportStar(MD(),ve);Jc.__exportStar(jD(),ve);Jc.__exportStar(xS(),ve);Jc.__exportStar(UD(),ve);var Gn=vS();Object.defineProperty(ve,"getArnResources",{enumerable:!0,get:function(){return Gn.getArnResources}});Object.defineProperty(ve,"getSuffixForArnEndpoint",{enumerable:!0,get:function(){return Gn.getSuffixForArnEndpoint}});Object.defineProperty(ve,"validateOutpostService",{enumerable:!0,get:function(){return Gn.validateOutpostService}});Object.defineProperty(ve,"validatePartition",{enumerable:!0,get:function(){return Gn.validatePartition}});Object.defineProperty(ve,"validateAccountId",{enumerable:!0,get:function(){return Gn.validateAccountId}});Object.defineProperty(ve,"validateRegion",{enumerable:!0,get:function(){return Gn.validateRegion}});Object.defineProperty(ve,"validateDNSHostLabel",{enumerable:!0,get:function(){return Gn.validateDNSHostLabel}});Object.defineProperty(ve,"validateNoDualstack",{enumerable:!0,get:function(){return Gn.validateNoDualstack}});Object.defineProperty(ve,"validateNoFIPS",{enumerable:!0,get:function(){return Gn.validateNoFIPS}})});var GD=m(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getChunkedStream=void 0;function kre(e){let n=0,t=0,r=null,o=null,s=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,_=0;for(;_{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.getMessageUnmarshaller=Rs.getUnmarshalledStream=void 0;function Are(e,n){let t=HD(n.deserializer,n.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let r of e){let o=n.eventStreamCodec.decode(r),s=await t(o);s!==void 0&&(yield s)}}}}Rs.getUnmarshalledStream=Are;function HD(e,n){return async function(t){let{value:r}=t.headers[":message-type"];if(r==="error"){let o=new Error(t.headers[":error-message"].value||"UnknownError");throw o.name=t.headers[":error-code"].value,o}else if(r==="exception"){let o=t.headers[":exception-type"].value,s={[o]:t},c=await e(s);if(c.$unknown){let i=new Error(n(t.body));throw i.name=o,i}throw c[o]}else if(r==="event"){let o={[t.headers[":event-type"].value]:t},s=await e(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${t.headers[":event-type"].value}`)}}Rs.getMessageUnmarshaller=HD});var kS=m(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.EventStreamMarshaller=void 0;var Zc=mg(),Ire=GD(),Rre=$D(),wS=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.eventStreamCodec=new Zc.EventStreamCodec(n,t),this.utfEncoder=n}deserialize(n,t){let r=(0,Ire.getChunkedStream)(n);return new Zc.SmithyMessageDecoderStream({messageStream:new Zc.MessageDecoderStream({inputStream:r,decoder:this.eventStreamCodec}),deserializer:(0,Rre.getMessageUnmarshaller)(t,this.utfEncoder)})}serialize(n,t){return new Zc.MessageEncoderStream({messageStream:new Zc.SmithyMessageEncoderStream({inputStream:n,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};jf.EventStreamMarshaller=wS});var KD=m(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.eventStreamSerdeProvider=void 0;var Nre=kS(),Ore=e=>new Nre.EventStreamMarshaller(e);Uf.eventStreamSerdeProvider=Ore});var XD=m(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var VD=(z(),j(U));VD.__exportStar(kS(),zf);VD.__exportStar(KD(),zf)});var WD=m(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.readabletoIterable=void 0;async function*Tre(e){let n=!1,t=!1,r=new Array;for(e.on("error",o=>{if(n||(n=!0),o)throw o}),e.on("data",o=>{r.push(o)}),e.on("end",()=>{n=!0});!t;){let o=await new Promise(s=>setTimeout(()=>s(r.shift()),0));o&&(yield o),t=n&&r.length===0}}Gf.readabletoIterable=Tre});var IS=m(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.EventStreamMarshaller=void 0;var qre=XD(),Mre=require("stream"),Bre=WD(),AS=class{constructor({utf8Encoder:n,utf8Decoder:t}){this.universalMarshaller=new qre.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:n})}deserialize(n,t){let r=typeof n[Symbol.asyncIterator]=="function"?n:(0,Bre.readabletoIterable)(n);return this.universalMarshaller.deserialize(r,t)}serialize(n,t){return Mre.Readable.from(this.universalMarshaller.serialize(n,t))}};Hf.EventStreamMarshaller=AS});var YD=m($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.eventStreamSerdeProvider=void 0;var Dre=IS(),Fre=e=>new Dre.EventStreamMarshaller(e);$f.eventStreamSerdeProvider=Fre});var JD=m(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var QD=(z(),j(U));QD.__exportStar(IS(),Kf);QD.__exportStar(YD(),Kf)});var NS=m(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.HashCalculator=void 0;var Lre=Pt(),jre=require("stream"),RS=class extends jre.Writable{constructor(n,t){super(t),this.hash=n}_write(n,t,r){try{this.hash.update((0,Lre.toUint8Array)(n))}catch(o){return r(o)}r()}};Vf.HashCalculator=RS});var ZD=m(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.fileStreamHasher=void 0;var Ure=require("fs"),zre=NS(),Gre=(e,n)=>new Promise((t,r)=>{if(!Hre(n)){r(new Error("Unable to calculate hash for non-file streams."));return}let o=(0,Ure.createReadStream)(n.path,{start:n.start,end:n.end}),s=new e,c=new zre.HashCalculator(s);o.pipe(c),o.on("error",i=>{c.end(),r(i)}),c.on("error",r),c.on("finish",function(){s.digest().then(t).catch(r)})});Xf.fileStreamHasher=Gre;var Hre=e=>typeof e.path=="string"});var eF=m(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.readableStreamHasher=void 0;var $re=NS(),Kre=(e,n)=>{if(n.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let t=new e,r=new $re.HashCalculator(t);return n.pipe(r),new Promise((o,s)=>{n.on("error",c=>{r.end(),s(c)}),r.on("error",s),r.on("finish",()=>{t.digest().then(o).catch(s)})})};Wf.readableStreamHasher=Kre});var nF=m(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var tF=(z(),j(U));tF.__exportStar(ZD(),Yf);tF.__exportStar(eF(),Yf)});var Jf=m(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.signatureV4CrtContainer=void 0;Qf.signatureV4CrtContainer={CrtSignerV4:null}});var rF=m(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.loadCrt=void 0;var Vre=Jf();function Xre(){if(!Vre.signatureV4CrtContainer.CrtSignerV4)try{typeof require=="function"&&(require.call(null,"@aws-sdk/signature-v4-crt"),process.emitWarning(`The package @aws-sdk/signature-v4-crt has been loaded dynamically. To avoid this warning, please explicitly import the package in your application with: import "@aws-sdk/signature-v4-crt"; // ESM @@ -36,7 +36,7 @@ In a future version of the AWS SDK for JavaScript (v3), this warning will become an error and dynamic loading will not be available. See https://github.com/aws/aws-sdk-js-v3/issues/5229. -`)}}catch{}}Zf.loadCrt=Xre});var oF=m(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.SignatureV4MultiRegion=void 0;var Wre=vg(),Yre=rF(),Qre=Jf(),OS=class{constructor(n){this.sigv4Signer=new Wre.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=null;try{if((0,Yre.loadCrt)(),n=Qre.signatureV4CrtContainer.CrtSignerV4,typeof n!="function")throw new Error}catch(t){throw t.message=`${t.message} +`))}catch{}}Zf.loadCrt=Xre});var oF=m(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.SignatureV4MultiRegion=void 0;var Wre=vg(),Yre=rF(),Qre=Jf(),OS=class{constructor(n){this.sigv4Signer=new Wre.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=null;try{if((0,Yre.loadCrt)(),n=Qre.signatureV4CrtContainer.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}};e_.SignatureV4MultiRegion=OS});var iF=m(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});var sF=(z(),j(U));sF.__exportStar(oF(),t_);sF.__exportStar(Jf(),t_)});var gL=m(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.ruleSet=void 0;var sE="required",g="type",S="conditions",I="fn",R="argv",se="ref",Ze="assign",W="url",Y="properties",$n="authSchemes",Kn="disableDoubleEncoding",Vn="signingName",Or="signingRegion",Q="headers",aF=!1,Cn=!0,Sn="isSet",G="tree",it="booleanEquals",X="error",s_="aws.partition",Te="stringEquals",Be="getAttr",Ot="name",ed="substring",eL="hardwareType",tL="regionPrefix",cF="bucketAliasSuffix",nE="outpostId",mo="isValidHostLabel",Lt="not",nL="parseURL",iE="s3-outposts",H="endpoint",dF="aws.isVirtualHostableS3Bucket",Os="s3",rL="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",oL="{url#scheme}://{Bucket}.{url#authority}{url#path}",sL="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",lF="https://{Bucket}.s3.{partitionResult#dnsSuffix}",iL="aws.parseArn",aL="bucketArn",cL="arnType",i_="",aE="s3-object-lambda",dL="accesspoint",cE="accessPointName",uF="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",mF="mrapPartition",pF="outpostType",fF="arnPrefix",lL="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",_F="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",rE="{url#scheme}://{url#authority}{url#path}",yF="https://s3.{partitionResult#dnsSuffix}",TS={[sE]:!1,[g]:"String"},Ns={[sE]:!0,default:!1,[g]:"Boolean"},qS={[sE]:!1,[g]:"Boolean"},Ft={[I]:it,[R]:[{[se]:"Accelerate"},!0]},Ie={[I]:it,[R]:[{[se]:"UseFIPS"},!0]},be={[I]:it,[R]:[{[se]:"UseDualStack"},!0]},Me={[I]:Sn,[R]:[{[se]:"Endpoint"}]},uL={[I]:s_,[R]:[{[se]:"Region"}],[Ze]:"partitionResult"},gF={[I]:Te,[R]:[{[I]:Be,[R]:[{[se]:"partitionResult"},Ot]},"aws-cn"]},mL={[I]:Sn,[R]:[{[se]:"Bucket"}]},Hn={[se]:"Bucket"},hF={[se]:eL},CF={[S]:[{[I]:Lt,[R]:[Me]}],[X]:"Expected a endpoint to be specified but no endpoint was found",[g]:X},oe={[I]:Lt,[R]:[Me]},dt={[I]:nL,[R]:[{[se]:"Endpoint"}],[Ze]:"url"},n_={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:iE,[Or]:"{Region}"}]},de={},MS={[I]:it,[R]:[{[se]:"ForcePathStyle"},!1]},Jre={[se]:"ForcePathStyle"},je={[I]:it,[R]:[{[se]:"Accelerate"},!1]},ze={[I]:Te,[R]:[{[se]:"Region"},"aws-global"]},Ke={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:Os,[Or]:"us-east-1"}]},pe={[I]:Lt,[R]:[ze]},Ve={[I]:it,[R]:[{[se]:"UseGlobalEndpoint"},!0]},SF={[W]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Y]:{[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:Os,[Or]:"{Region}"}]},[Q]:{}},Ue={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:Os,[Or]:"{Region}"}]},Xe={[I]:it,[R]:[{[se]:"UseGlobalEndpoint"},!1]},ue={[I]:it,[R]:[{[se]:"UseDualStack"},!1]},EF={[W]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},ae={[I]:it,[R]:[{[se]:"UseFIPS"},!1]},bF={[W]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},PF={[W]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},BS={[I]:it,[R]:[{[I]:Be,[R]:[{[se]:"url"},"isIp"]},!0]},pL={[se]:"url"},DS={[I]:it,[R]:[{[I]:Be,[R]:[pL,"isIp"]},!1]},FS={[W]:rL,[Y]:Ue,[Q]:{}},oE={[W]:oL,[Y]:Ue,[Q]:{}},vF={[H]:oE,[g]:H},LS={[W]:sL,[Y]:Ue,[Q]:{}},xF={[W]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},r_={[X]:"Invalid region: region was not a valid DNS name.",[g]:X},_t={[se]:aL},fL={[se]:cL},jS={[I]:Be,[R]:[_t,"service"]},dE={[se]:cE},wF={[S]:[be],[X]:"S3 Object Lambda does not support Dual-stack",[g]:X},kF={[S]:[Ft],[X]:"S3 Object Lambda does not support S3 Accelerate",[g]:X},AF={[S]:[{[I]:Sn,[R]:[{[se]:"DisableAccessPoints"}]},{[I]:it,[R]:[{[se]:"DisableAccessPoints"},!0]}],[X]:"Access points are not supported for this operation",[g]:X},US={[S]:[{[I]:Sn,[R]:[{[se]:"UseArnRegion"}]},{[I]:it,[R]:[{[se]:"UseArnRegion"},!1]},{[I]:Lt,[R]:[{[I]:Te,[R]:[{[I]:Be,[R]:[_t,"region"]},"{Region}"]}]}],[X]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[g]:X},_L={[I]:Be,[R]:[{[se]:"bucketPartition"},Ot]},yL={[I]:Be,[R]:[_t,"accountId"]},zS={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:aE,[Or]:"{bucketArn#region}"}]},IF={[X]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[g]:X},GS={[X]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[g]:X},HS={[X]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[g]:X},$S={[X]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[g]:X},RF={[X]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[g]:X},NF={[X]:"Invalid ARN: Expected a resource of the format `accesspoint:` but no name was provided",[g]:X},td={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:Os,[Or]:"{bucketArn#region}"}]},OF={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:iE,[Or]:"{bucketArn#region}"}]},TF={[I]:iL,[R]:[Hn]},qF={[W]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ue,[Q]:{}},MF={[W]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ue,[Q]:{}},BF={[W]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ue,[Q]:{}},KS={[W]:lL,[Y]:Ue,[Q]:{}},DF={[W]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ue,[Q]:{}},FF={[se]:"UseObjectLambdaEndpoint"},VS={[$n]:[{[Kn]:!0,[Ot]:"sigv4",[Vn]:aE,[Or]:"{Region}"}]},LF={[W]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},jF={[W]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},UF={[W]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},XS={[W]:rE,[Y]:Ue,[Q]:{}},zF={[W]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[Y]:Ue,[Q]:{}},WS=[{[se]:"Region"}],Zre=[{[se]:"Endpoint"}],GF=[Hn],HF=[{[I]:mo,[R]:[{[se]:nE},!1]}],$F=[{[I]:Te,[R]:[{[se]:tL},"beta"]}],nd=[Me,dt],KF=[mL],Rr=[uL],VF=[{[I]:mo,[R]:[{[se]:"Region"},!1]}],Nr=[{[I]:Te,[R]:[{[se]:"Region"},"us-east-1"]}],YS=[{[I]:Te,[R]:[fL,dL]}],XF=[{[I]:Be,[R]:[_t,"resourceId[1]"],[Ze]:cE},{[I]:Lt,[R]:[{[I]:Te,[R]:[dE,i_]}]}],eoe=[_t,"resourceId[1]"],WF=[be],QS=[Ft],JS=[{[I]:Lt,[R]:[{[I]:Te,[R]:[{[I]:Be,[R]:[_t,"region"]},i_]}]}],YF=[{[I]:Lt,[R]:[{[I]:Sn,[R]:[{[I]:Be,[R]:[_t,"resourceId[2]"]}]}]}],toe=[_t,"resourceId[2]"],ZS=[{[I]:s_,[R]:[{[I]:Be,[R]:[_t,"region"]}],[Ze]:"bucketPartition"}],QF=[{[I]:Te,[R]:[_L,{[I]:Be,[R]:[{[se]:"partitionResult"},Ot]}]}],eE=[{[I]:mo,[R]:[{[I]:Be,[R]:[_t,"region"]},!0]}],tE=[{[I]:mo,[R]:[yL,!1]}],JF=[{[I]:mo,[R]:[dE,!1]}],o_=[Ie],ZF=[{[I]:mo,[R]:[{[se]:"Region"},!0]}],noe={version:"1.0",parameters:{Bucket:TS,Region:TS,UseFIPS:Ns,UseDualStack:Ns,Endpoint:TS,ForcePathStyle:Ns,Accelerate:Ns,UseGlobalEndpoint:Ns,UseObjectLambdaEndpoint:qS,DisableAccessPoints:qS,DisableMultiRegionAccessPoints:Ns,UseArnRegion:qS},rules:[{[S]:[{[I]:Sn,[R]:WS}],[g]:G,rules:[{[S]:[Ft,Ie],error:"Accelerate cannot be used with FIPS",[g]:X},{[S]:[be,Me],error:"Cannot set dual-stack in combination with a custom endpoint.",[g]:X},{[S]:[Me,Ie],error:"A custom endpoint cannot be combined with FIPS",[g]:X},{[S]:[Me,Ft],error:"A custom endpoint cannot be combined with S3 Accelerate",[g]:X},{[S]:[Ie,uL,gF],error:"Partition does not support FIPS",[g]:X},{[S]:[mL,{[I]:ed,[R]:[Hn,49,50,Cn],[Ze]:eL},{[I]:ed,[R]:[Hn,8,12,Cn],[Ze]:tL},{[I]:ed,[R]:[Hn,0,7,Cn],[Ze]:cF},{[I]:ed,[R]:[Hn,32,49,Cn],[Ze]:nE},{[I]:s_,[R]:WS,[Ze]:"regionPartition"},{[I]:Te,[R]:[{[se]:cF},"--op-s3"]}],[g]:G,rules:[{[S]:HF,[g]:G,rules:[{[S]:[{[I]:Te,[R]:[hF,"e"]}],[g]:G,rules:[{[S]:$F,[g]:G,rules:[CF,{[S]:nd,endpoint:{[W]:"https://{Bucket}.ec2.{url#authority}",[Y]:n_,[Q]:de},[g]:H}]},{endpoint:{[W]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Y]:n_,[Q]:de},[g]:H}]},{[S]:[{[I]:Te,[R]:[hF,"o"]}],[g]:G,rules:[{[S]:$F,[g]:G,rules:[CF,{[S]:nd,endpoint:{[W]:"https://{Bucket}.op-{outpostId}.{url#authority}",[Y]:n_,[Q]:de},[g]:H}]},{endpoint:{[W]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[Y]:n_,[Q]:de},[g]:H}]},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[g]:X}]},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[g]:X}]},{[S]:KF,[g]:G,rules:[{[S]:[Me,{[I]:Lt,[R]:[{[I]:Sn,[R]:[{[I]:nL,[R]:Zre}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[g]:X},{[S]:[MS,{[I]:dF,[R]:[Hn,aF]}],[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:VF,[g]:G,rules:[{[S]:[Ft,gF],error:"S3 Accelerate cannot be used in this region",[g]:X},{[S]:[be,Ie,je,oe,ze],endpoint:{[W]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[be,Ie,je,oe,pe,Ve],[g]:G,rules:[{endpoint:SF,[g]:H}]},{[S]:[be,Ie,je,oe,pe,Xe],endpoint:SF,[g]:H},{[S]:[ue,Ie,je,oe,ze],endpoint:{[W]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,Ie,je,oe,pe,Ve],[g]:G,rules:[{endpoint:EF,[g]:H}]},{[S]:[ue,Ie,je,oe,pe,Xe],endpoint:EF,[g]:H},{[S]:[be,ae,Ft,oe,ze],endpoint:{[W]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[be,ae,Ft,oe,pe,Ve],[g]:G,rules:[{endpoint:bF,[g]:H}]},{[S]:[be,ae,Ft,oe,pe,Xe],endpoint:bF,[g]:H},{[S]:[be,ae,je,oe,ze],endpoint:{[W]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[be,ae,je,oe,pe,Ve],[g]:G,rules:[{endpoint:PF,[g]:H}]},{[S]:[be,ae,je,oe,pe,Xe],endpoint:PF,[g]:H},{[S]:[ue,ae,je,Me,dt,BS,ze],endpoint:{[W]:rL,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,ae,je,Me,dt,DS,ze],endpoint:{[W]:oL,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,ae,je,Me,dt,BS,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:FS,[g]:H},{endpoint:FS,[g]:H}]},{[S]:[ue,ae,je,Me,dt,DS,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:oE,[g]:H},vF]},{[S]:[ue,ae,je,Me,dt,BS,pe,Xe],endpoint:FS,[g]:H},{[S]:[ue,ae,je,Me,dt,DS,pe,Xe],endpoint:oE,[g]:H},{[S]:[ue,ae,Ft,oe,ze],endpoint:{[W]:sL,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,ae,Ft,oe,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:LS,[g]:H},{endpoint:LS,[g]:H}]},{[S]:[ue,ae,Ft,oe,pe,Xe],endpoint:LS,[g]:H},{[S]:[ue,ae,je,oe,ze],endpoint:{[W]:lF,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,ae,je,oe,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:{[W]:lF,[Y]:Ue,[Q]:de},[g]:H},{endpoint:xF,[g]:H}]},{[S]:[ue,ae,je,oe,pe,Xe],endpoint:xF,[g]:H}]},r_]}]},{[S]:[Me,dt,{[I]:Te,[R]:[{[I]:Be,[R]:[pL,"scheme"]},"http"]},{[I]:dF,[R]:[Hn,Cn]},MS,ae,ue,je],[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:VF,[g]:G,rules:[vF]},r_]}]},{[S]:[MS,{[I]:iL,[R]:GF,[Ze]:aL}],[g]:G,rules:[{[S]:[{[I]:Be,[R]:[_t,"resourceId[0]"],[Ze]:cL},{[I]:Lt,[R]:[{[I]:Te,[R]:[fL,i_]}]}],[g]:G,rules:[{[S]:[{[I]:Te,[R]:[jS,aE]}],[g]:G,rules:[{[S]:YS,[g]:G,rules:[{[S]:XF,[g]:G,rules:[wF,kF,{[S]:JS,[g]:G,rules:[AF,{[S]:YF,[g]:G,rules:[US,{[S]:ZS,[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:QF,[g]:G,rules:[{[S]:eE,[g]:G,rules:[{[S]:[{[I]:Te,[R]:[yL,i_]}],error:"Invalid ARN: Missing account id",[g]:X},{[S]:tE,[g]:G,rules:[{[S]:JF,[g]:G,rules:[{[S]:nd,endpoint:{[W]:uF,[Y]:zS,[Q]:de},[g]:H},{[S]:o_,endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:zS,[Q]:de},[g]:H},{endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:zS,[Q]:de},[g]:H}]},IF]},GS]},HS]},$S]}]}]},RF]},{error:"Invalid ARN: bucket ARN is missing a region",[g]:X}]},NF]},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[g]:X}]},{[S]:YS,[g]:G,rules:[{[S]:XF,[g]:G,rules:[{[S]:JS,[g]:G,rules:[{[S]:YS,[g]:G,rules:[{[S]:JS,[g]:G,rules:[AF,{[S]:YF,[g]:G,rules:[US,{[S]:ZS,[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:[{[I]:Te,[R]:[_L,"{partitionResult#name}"]}],[g]:G,rules:[{[S]:eE,[g]:G,rules:[{[S]:[{[I]:Te,[R]:[jS,Os]}],[g]:G,rules:[{[S]:tE,[g]:G,rules:[{[S]:JF,[g]:G,rules:[{[S]:QS,error:"Access Points do not support S3 Accelerate",[g]:X},{[S]:[Ie,be],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:td,[Q]:de},[g]:H},{[S]:[Ie,ue],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:td,[Q]:de},[g]:H},{[S]:[ae,be],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:td,[Q]:de},[g]:H},{[S]:[ae,ue,Me,dt],endpoint:{[W]:uF,[Y]:td,[Q]:de},[g]:H},{[S]:[ae,ue],endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:td,[Q]:de},[g]:H}]},IF]},GS]},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[g]:X}]},HS]},$S]}]}]},RF]}]}]},{[S]:[{[I]:mo,[R]:[dE,Cn]}],[g]:G,rules:[{[S]:WF,error:"S3 MRAP does not support dual-stack",[g]:X},{[S]:o_,error:"S3 MRAP does not support FIPS",[g]:X},{[S]:QS,error:"S3 MRAP does not support S3 Accelerate",[g]:X},{[S]:[{[I]:it,[R]:[{[se]:"DisableMultiRegionAccessPoints"},Cn]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[g]:X},{[S]:[{[I]:s_,[R]:WS,[Ze]:mF}],[g]:G,rules:[{[S]:[{[I]:Te,[R]:[{[I]:Be,[R]:[{[se]:mF},Ot]},{[I]:Be,[R]:[_t,"partition"]}]}],[g]:G,rules:[{endpoint:{[W]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[Y]:{[$n]:[{[Kn]:Cn,name:"sigv4a",[Vn]:Os,signingRegionSet:["*"]}]},[Q]:de},[g]:H}]},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[g]:X}]}]},{error:"Invalid Access Point Name",[g]:X}]},NF]},{[S]:[{[I]:Te,[R]:[jS,iE]}],[g]:G,rules:[{[S]:WF,error:"S3 Outposts does not support Dual-stack",[g]:X},{[S]:o_,error:"S3 Outposts does not support FIPS",[g]:X},{[S]:QS,error:"S3 Outposts does not support S3 Accelerate",[g]:X},{[S]:[{[I]:Sn,[R]:[{[I]:Be,[R]:[_t,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[g]:X},{[S]:[{[I]:Be,[R]:eoe,[Ze]:nE}],[g]:G,rules:[{[S]:HF,[g]:G,rules:[US,{[S]:ZS,[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:QF,[g]:G,rules:[{[S]:eE,[g]:G,rules:[{[S]:tE,[g]:G,rules:[{[S]:[{[I]:Be,[R]:toe,[Ze]:pF}],[g]:G,rules:[{[S]:[{[I]:Be,[R]:[_t,"resourceId[3]"],[Ze]:cE}],[g]:G,rules:[{[S]:[{[I]:Te,[R]:[{[se]:pF},dL]}],[g]:G,rules:[{[S]:nd,endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[Y]:OF,[Q]:de},[g]:H},{endpoint:{[W]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[Y]:OF,[Q]:de},[g]:H}]},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[g]:X}]},{error:"Invalid ARN: expected an access point name",[g]:X}]},{error:"Invalid ARN: Expected a 4-component resource",[g]:X}]},GS]},HS]},$S]}]}]},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[g]:X}]},{error:"Invalid ARN: The Outpost Id was not set",[g]:X}]},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[g]:X}]},{error:"Invalid ARN: No ARN type specified",[g]:X}]},{[S]:[{[I]:ed,[R]:[Hn,0,4,aF],[Ze]:fF},{[I]:Te,[R]:[{[se]:fF},"arn:"]},{[I]:Lt,[R]:[{[I]:Sn,[R]:[TF]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[g]:X},{[S]:[{[I]:it,[R]:[Jre,Cn]},TF],error:"Path-style addressing cannot be used with ARN buckets",[g]:X},{[S]:[{[I]:"uriEncode",[R]:GF,[Ze]:"uri_encoded_bucket"}],[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:[je],[g]:G,rules:[{[S]:[be,oe,Ie,ze],endpoint:{[W]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[be,oe,Ie,pe,Ve],[g]:G,rules:[{endpoint:qF,[g]:H}]},{[S]:[be,oe,Ie,pe,Xe],endpoint:qF,[g]:H},{[S]:[ue,oe,Ie,ze],endpoint:{[W]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,oe,Ie,pe,Ve],[g]:G,rules:[{endpoint:MF,[g]:H}]},{[S]:[ue,oe,Ie,pe,Xe],endpoint:MF,[g]:H},{[S]:[be,oe,ae,ze],endpoint:{[W]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[be,oe,ae,pe,Ve],[g]:G,rules:[{endpoint:BF,[g]:H}]},{[S]:[be,oe,ae,pe,Xe],endpoint:BF,[g]:H},{[S]:[ue,Me,dt,ae,ze],endpoint:{[W]:lL,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,Me,dt,ae,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:KS,[g]:H},{endpoint:KS,[g]:H}]},{[S]:[ue,Me,dt,ae,pe,Xe],endpoint:KS,[g]:H},{[S]:[ue,oe,ae,ze],endpoint:{[W]:_F,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ue,oe,ae,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:{[W]:_F,[Y]:Ue,[Q]:de},[g]:H},{endpoint:DF,[g]:H}]},{[S]:[ue,oe,ae,pe,Xe],endpoint:DF,[g]:H}]},{error:"Path-style addressing cannot be used with S3 Accelerate",[g]:X}]}]}]},{[S]:[{[I]:Sn,[R]:[FF]},{[I]:it,[R]:[FF,Cn]}],[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:ZF,[g]:G,rules:[wF,kF,{[S]:nd,endpoint:{[W]:rE,[Y]:VS,[Q]:de},[g]:H},{[S]:o_,endpoint:{[W]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[Y]:VS,[Q]:de},[g]:H},{endpoint:{[W]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[Y]:VS,[Q]:de},[g]:H}]},r_]}]},{[S]:[{[I]:Lt,[R]:KF}],[g]:G,rules:[{[S]:Rr,[g]:G,rules:[{[S]:ZF,[g]:G,rules:[{[S]:[Ie,be,oe,ze],endpoint:{[W]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[Ie,be,oe,pe,Ve],[g]:G,rules:[{endpoint:LF,[g]:H}]},{[S]:[Ie,be,oe,pe,Xe],endpoint:LF,[g]:H},{[S]:[Ie,ue,oe,ze],endpoint:{[W]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[Ie,ue,oe,pe,Ve],[g]:G,rules:[{endpoint:jF,[g]:H}]},{[S]:[Ie,ue,oe,pe,Xe],endpoint:jF,[g]:H},{[S]:[ae,be,oe,ze],endpoint:{[W]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[Y]:Ke,[Q]:de},[g]:H},{[S]:[ae,be,oe,pe,Ve],[g]:G,rules:[{endpoint:UF,[g]:H}]},{[S]:[ae,be,oe,pe,Xe],endpoint:UF,[g]:H},{[S]:[ae,ue,Me,dt,ze],endpoint:{[W]:rE,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ae,ue,Me,dt,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:XS,[g]:H},{endpoint:XS,[g]:H}]},{[S]:[ae,ue,Me,dt,pe,Xe],endpoint:XS,[g]:H},{[S]:[ae,ue,oe,ze],endpoint:{[W]:yF,[Y]:Ke,[Q]:de},[g]:H},{[S]:[ae,ue,oe,pe,Ve],[g]:G,rules:[{[S]:Nr,endpoint:{[W]:yF,[Y]:Ue,[Q]:de},[g]:H},{endpoint:zF,[g]:H}]},{[S]:[ae,ue,oe,pe,Xe],endpoint:zF,[g]:H}]},r_]}]}]},{error:"A region must be set when sending requests to S3.",[g]:X}]};a_.ruleSet=noe});var hL=m(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.defaultEndpointResolver=void 0;var roe=Ko(),ooe=gL(),soe=(e,n={})=>(0,roe.resolveEndpoint)(ooe.ruleSet,{endpointParams:e,logger:n.logger});c_.defaultEndpointResolver=soe});var bL=m(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.getRuntimeConfig=void 0;var ioe=iF(),aoe=E(),coe=Zr(),CL=Po(),SL=Oy(),EL=Pt(),doe=hL(),loe=e=>({apiVersion:"2006-03-01",base64Decoder:(e==null?void 0:e.base64Decoder)??CL.fromBase64,base64Encoder:(e==null?void 0:e.base64Encoder)??CL.toBase64,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??doe.defaultEndpointResolver,extensions:(e==null?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(e==null?void 0:e.getAwsChunkedEncodingStream)??SL.getAwsChunkedEncodingStream,logger:(e==null?void 0:e.logger)??new aoe.NoOpLogger,sdkStreamMixin:(e==null?void 0:e.sdkStreamMixin)??SL.sdkStreamMixin,serviceId:(e==null?void 0:e.serviceId)??"S3",signerConstructor:(e==null?void 0:e.signerConstructor)??ioe.SignatureV4MultiRegion,signingEscapePath:(e==null?void 0:e.signingEscapePath)??!1,urlParser:(e==null?void 0:e.urlParser)??coe.parseUrl,useArnRegion:(e==null?void 0:e.useArnRegion)??!1,utf8Decoder:(e==null?void 0:e.utf8Decoder)??EL.fromUtf8,utf8Encoder:(e==null?void 0:e.utf8Encoder)??EL.toUtf8});d_.getRuntimeConfig=loe});var xL=m(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.getRuntimeConfig=void 0;var uoe=(z(),j(U)),moe=uoe.__importDefault(ET()),poe=TD(),foe=oS(),_oe=zD(),yoe=Tc(),l_=Qt(),goe=JD(),lE=qc(),hoe=nF(),PL=On(),Ts=en(),vL=wo(),Coe=Mc(),Soe=Rt(),Eoe=bL(),boe=E(),Poe=Dc(),voe=E(),xoe=e=>{(0,voe.emitWarningIfUnsupportedVersion)(process.version);let n=(0,Poe.resolveDefaultsModeConfig)(e),t=()=>n().then(boe.loadConfigsForDefaultMode),r=(0,Eoe.getRuntimeConfig)(e);return{...r,...e,runtime:"node",defaultsMode:n,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??Coe.calculateBodyLength,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(0,poe.decorateDefaultCredentialProvider)(foe.defaultProvider),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??(0,yoe.defaultUserAgent)({serviceId:r.serviceId,clientVersion:moe.default.version}),eventStreamSerdeProvider:(e==null?void 0:e.eventStreamSerdeProvider)??goe.eventStreamSerdeProvider,maxAttempts:(e==null?void 0:e.maxAttempts)??(0,Ts.loadConfig)(PL.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),md5:(e==null?void 0:e.md5)??lE.Hash.bind(null,"md5"),region:(e==null?void 0:e.region)??(0,Ts.loadConfig)(l_.NODE_REGION_CONFIG_OPTIONS,l_.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(e==null?void 0:e.requestHandler)??new vL.NodeHttpHandler(t),retryMode:(e==null?void 0:e.retryMode)??(0,Ts.loadConfig)({...PL.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||Soe.DEFAULT_RETRY_MODE}),sha1:(e==null?void 0:e.sha1)??lE.Hash.bind(null,"sha1"),sha256:(e==null?void 0:e.sha256)??lE.Hash.bind(null,"sha256"),streamCollector:(e==null?void 0:e.streamCollector)??vL.streamCollector,streamHasher:(e==null?void 0:e.streamHasher)??hoe.readableStreamHasher,useArnRegion:(e==null?void 0:e.useArnRegion)??(0,Ts.loadConfig)(_oe.NODE_USE_ARN_REGION_CONFIG_OPTIONS),useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(0,Ts.loadConfig)(l_.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(0,Ts.loadConfig)(l_.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};u_.getRuntimeConfig=xoe});var IL=m(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.resolveRuntimeExtensions=void 0;var wL=Np(),kL=we(),AL=E(),uE=e=>e,woe=(e,n)=>{let t={...uE((0,wL.getAwsRegionExtensionConfiguration)(e)),...uE((0,AL.getDefaultExtensionConfiguration)(e)),...uE((0,kL.getHttpHandlerExtensionConfiguration)(e))};return n.forEach(r=>r.configure(t)),{...e,...(0,wL.resolveAwsRegionExtensionConfiguration)(t),...(0,AL.resolveDefaultRuntimeConfig)(t),...(0,kL.resolveHttpHandlerRuntimeConfig)(t)}};m_.resolveRuntimeExtensions=woe});var rd=m(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.S3Client=qs.__Client=void 0;var koe=jw(),RL=Ka(),Aoe=Va(),Ioe=Xa(),NL=To(),OL=kn(),TL=pc(),Roe=Qt(),Noe=zN(),Ooe=gc(),Toe=x(),qL=On(),ML=E();Object.defineProperty(qs,"__Client",{enumerable:!0,get:function(){return ML.Client}});var qoe=ST(),Moe=xL(),Boe=IL(),mE=class extends ML.Client{constructor(...[n]){let t=(0,Moe.getRuntimeConfig)(n||{}),r=(0,qoe.resolveClientEndpointParameters)(t),o=(0,Roe.resolveRegionConfig)(r),s=(0,Toe.resolveEndpointConfig)(o),c=(0,qL.resolveRetryConfig)(s),i=(0,RL.resolveHostHeaderConfig)(c),u=(0,OL.resolveAwsAuthConfig)(i),l=(0,NL.resolveS3Config)(u),a=(0,TL.resolveUserAgentConfig)(l),_=(0,Noe.resolveEventStreamSerdeConfig)(a),y=(0,Boe.resolveRuntimeExtensions)(_,(n==null?void 0:n.extensions)||[]);super(y),this.config=y,this.middlewareStack.use((0,qL.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Ooe.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,RL.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Aoe.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Ioe.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,OL.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,NL.getValidateBucketNamePlugin)(this.config)),this.middlewareStack.use((0,koe.getAddExpectContinuePlugin)(this.config)),this.middlewareStack.use((0,TL.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};qs.S3Client=mE});var BL=m(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.escapeAttribute=void 0;function Doe(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}p_.escapeAttribute=Doe});var DL=m(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.escapeElement=void 0;function Foe(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}f_.escapeElement=Foe});var fE=m(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.XmlText=void 0;var Loe=DL(),pE=class{constructor(n){this.value=n}toString(){return(0,Loe.escapeElement)(""+this.value)}};__.XmlText=pE});var FL=m(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0});y_.XmlNode=void 0;var joe=BL(),Uoe=fE(),_E=class e{static of(n,t,r){let o=new e(n);return t!==void 0&&o.addChildNode(new Uoe.XmlText(t)),r!==void 0&&o.withName(r),o}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 o of Object.keys(r)){let s=r[o];typeof s<"u"&&s!==null&&(t+=` ${o}="${(0,joe.escapeAttribute)(""+s)}"`)}return t+=n?`>${this.children.map(o=>o.toString()).join("")}`:"/>"}};y_.XmlNode=_E});var jL=m(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});var LL=(z(),j(U));LL.__exportStar(FL(),g_);LL.__exportStar(fE(),g_)});var od=m(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.S3ServiceException=Ms.__ServiceException=void 0;var UL=E();Object.defineProperty(Ms,"__ServiceException",{enumerable:!0,get:function(){return UL.ServiceException}});var yE=class e extends UL.ServiceException{constructor(n){super(n),Object.setPrototypeOf(this,e.prototype)}};Ms.S3ServiceException=yE});var et=m(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.ReplicationStatus=h.Protocol=h.BucketVersioningStatus=h.MFADeleteStatus=h.Payer=h.ReplicationRuleStatus=h.SseKmsEncryptedObjectsStatus=h.ReplicaModificationsStatus=h.ReplicationRuleFilter=h.ExistingObjectReplicationStatus=h.ReplicationTimeStatus=h.MetricsStatus=h.DeleteMarkerReplicationStatus=h.FilterRuleName=h.Event=h.MetricsFilter=h.BucketLogsPermission=h.ExpirationStatus=h.TransitionStorageClass=h.LifecycleRuleFilter=h.InventoryFrequency=h.InventoryOptionalField=h.InventoryIncludedObjectVersions=h.InventoryFormat=h.IntelligentTieringAccessTier=h.IntelligentTieringStatus=h.StorageClassAnalysisSchemaVersion=h.AnalyticsS3ExportFileFormat=h.AnalyticsFilter=h.ObjectOwnership=h.BucketLocationConstraint=h.BucketCannedACL=h.BucketAlreadyOwnedByYou=h.BucketAlreadyExists=h.ObjectNotInActiveTierError=h.TaggingDirective=h.StorageClass=h.ObjectLockMode=h.ObjectLockLegalHoldStatus=h.MetadataDirective=h.ChecksumAlgorithm=h.ObjectCannedACL=h.ServerSideEncryption=h.OwnerOverride=h.Permission=h.Type=h.BucketAccelerateStatus=h.NoSuchUpload=h.RequestPayer=h.RequestCharged=void 0;h.PutObjectRequestFilterSensitiveLog=h.PutObjectOutputFilterSensitiveLog=h.PutBucketInventoryConfigurationRequestFilterSensitiveLog=h.PutBucketEncryptionRequestFilterSensitiveLog=h.ListPartsRequestFilterSensitiveLog=h.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=h.HeadObjectRequestFilterSensitiveLog=h.HeadObjectOutputFilterSensitiveLog=h.GetObjectTorrentOutputFilterSensitiveLog=h.GetObjectAttributesRequestFilterSensitiveLog=h.GetObjectRequestFilterSensitiveLog=h.GetObjectOutputFilterSensitiveLog=h.GetBucketInventoryConfigurationOutputFilterSensitiveLog=h.InventoryConfigurationFilterSensitiveLog=h.InventoryDestinationFilterSensitiveLog=h.InventoryS3BucketDestinationFilterSensitiveLog=h.InventoryEncryptionFilterSensitiveLog=h.SSEKMSFilterSensitiveLog=h.GetBucketEncryptionOutputFilterSensitiveLog=h.ServerSideEncryptionConfigurationFilterSensitiveLog=h.ServerSideEncryptionRuleFilterSensitiveLog=h.ServerSideEncryptionByDefaultFilterSensitiveLog=h.CreateMultipartUploadRequestFilterSensitiveLog=h.CreateMultipartUploadOutputFilterSensitiveLog=h.CopyObjectRequestFilterSensitiveLog=h.CopyObjectOutputFilterSensitiveLog=h.CompleteMultipartUploadRequestFilterSensitiveLog=h.CompleteMultipartUploadOutputFilterSensitiveLog=h.MFADelete=h.ObjectVersionStorageClass=h.NoSuchBucket=h.OptionalObjectAttributes=h.ObjectStorageClass=h.EncodingType=h.ArchiveStatus=h.NotFound=h.ObjectLockRetentionMode=h.ObjectLockEnabled=h.ObjectAttributes=h.NoSuchKey=h.InvalidObjectState=h.ChecksumMode=void 0;var Pe=E(),Tr=od();h.RequestCharged={requester:"requester"};h.RequestPayer={requester:"requester"};var gE=class e extends Tr.S3ServiceException{constructor(n){super({name:"NoSuchUpload",$fault:"client",...n}),this.name="NoSuchUpload",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.NoSuchUpload=gE;h.BucketAccelerateStatus={Enabled:"Enabled",Suspended:"Suspended"};h.Type={AmazonCustomerByEmail:"AmazonCustomerByEmail",CanonicalUser:"CanonicalUser",Group:"Group"};h.Permission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",READ_ACP:"READ_ACP",WRITE:"WRITE",WRITE_ACP:"WRITE_ACP"};h.OwnerOverride={Destination:"Destination"};h.ServerSideEncryption={AES256:"AES256",aws_kms:"aws:kms",aws_kms_dsse:"aws:kms:dsse"};h.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"};h.ChecksumAlgorithm={CRC32:"CRC32",CRC32C:"CRC32C",SHA1:"SHA1",SHA256:"SHA256"};h.MetadataDirective={COPY:"COPY",REPLACE:"REPLACE"};h.ObjectLockLegalHoldStatus={OFF:"OFF",ON:"ON"};h.ObjectLockMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};h.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"};h.TaggingDirective={COPY:"COPY",REPLACE:"REPLACE"};var hE=class e extends Tr.S3ServiceException{constructor(n){super({name:"ObjectNotInActiveTierError",$fault:"client",...n}),this.name="ObjectNotInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.ObjectNotInActiveTierError=hE;var CE=class e extends Tr.S3ServiceException{constructor(n){super({name:"BucketAlreadyExists",$fault:"client",...n}),this.name="BucketAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.BucketAlreadyExists=CE;var SE=class e extends Tr.S3ServiceException{constructor(n){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...n}),this.name="BucketAlreadyOwnedByYou",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.BucketAlreadyOwnedByYou=SE;h.BucketCannedACL={authenticated_read:"authenticated-read",private:"private",public_read:"public-read",public_read_write:"public-read-write"};h.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_south_2:"ap-south-2",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_south_2:"eu-south-2",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"};h.ObjectOwnership={BucketOwnerEnforced:"BucketOwnerEnforced",BucketOwnerPreferred:"BucketOwnerPreferred",ObjectWriter:"ObjectWriter"};var zoe;(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])})(zoe=h.AnalyticsFilter||(h.AnalyticsFilter={}));h.AnalyticsS3ExportFileFormat={CSV:"CSV"};h.StorageClassAnalysisSchemaVersion={V_1:"V_1"};h.IntelligentTieringStatus={Disabled:"Disabled",Enabled:"Enabled"};h.IntelligentTieringAccessTier={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};h.InventoryFormat={CSV:"CSV",ORC:"ORC",Parquet:"Parquet"};h.InventoryIncludedObjectVersions={All:"All",Current:"Current"};h.InventoryOptionalField={BucketKeyStatus:"BucketKeyStatus",ChecksumAlgorithm:"ChecksumAlgorithm",ETag:"ETag",EncryptionStatus:"EncryptionStatus",IntelligentTieringAccessTier:"IntelligentTieringAccessTier",IsMultipartUploaded:"IsMultipartUploaded",LastModifiedDate:"LastModifiedDate",ObjectAccessControlList:"ObjectAccessControlList",ObjectLockLegalHoldStatus:"ObjectLockLegalHoldStatus",ObjectLockMode:"ObjectLockMode",ObjectLockRetainUntilDate:"ObjectLockRetainUntilDate",ObjectOwner:"ObjectOwner",ReplicationStatus:"ReplicationStatus",Size:"Size",StorageClass:"StorageClass"};h.InventoryFrequency={Daily:"Daily",Weekly:"Weekly"};var Goe;(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])})(Goe=h.LifecycleRuleFilter||(h.LifecycleRuleFilter={}));h.TransitionStorageClass={DEEP_ARCHIVE:"DEEP_ARCHIVE",GLACIER:"GLACIER",GLACIER_IR:"GLACIER_IR",INTELLIGENT_TIERING:"INTELLIGENT_TIERING",ONEZONE_IA:"ONEZONE_IA",STANDARD_IA:"STANDARD_IA"};h.ExpirationStatus={Disabled:"Disabled",Enabled:"Enabled"};h.BucketLogsPermission={FULL_CONTROL:"FULL_CONTROL",READ:"READ",WRITE:"WRITE"};var Hoe;(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])})(Hoe=h.MetricsFilter||(h.MetricsFilter={}));h.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"};h.FilterRuleName={prefix:"prefix",suffix:"suffix"};h.DeleteMarkerReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};h.MetricsStatus={Disabled:"Disabled",Enabled:"Enabled"};h.ReplicationTimeStatus={Disabled:"Disabled",Enabled:"Enabled"};h.ExistingObjectReplicationStatus={Disabled:"Disabled",Enabled:"Enabled"};var $oe;(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])})($oe=h.ReplicationRuleFilter||(h.ReplicationRuleFilter={}));h.ReplicaModificationsStatus={Disabled:"Disabled",Enabled:"Enabled"};h.SseKmsEncryptedObjectsStatus={Disabled:"Disabled",Enabled:"Enabled"};h.ReplicationRuleStatus={Disabled:"Disabled",Enabled:"Enabled"};h.Payer={BucketOwner:"BucketOwner",Requester:"Requester"};h.MFADeleteStatus={Disabled:"Disabled",Enabled:"Enabled"};h.BucketVersioningStatus={Enabled:"Enabled",Suspended:"Suspended"};h.Protocol={http:"http",https:"https"};h.ReplicationStatus={COMPLETE:"COMPLETE",COMPLETED:"COMPLETED",FAILED:"FAILED",PENDING:"PENDING",REPLICA:"REPLICA"};h.ChecksumMode={ENABLED:"ENABLED"};var EE=class e extends Tr.S3ServiceException{constructor(n){super({name:"InvalidObjectState",$fault:"client",...n}),this.name="InvalidObjectState",this.$fault="client",Object.setPrototypeOf(this,e.prototype),this.StorageClass=n.StorageClass,this.AccessTier=n.AccessTier}};h.InvalidObjectState=EE;var bE=class e extends Tr.S3ServiceException{constructor(n){super({name:"NoSuchKey",$fault:"client",...n}),this.name="NoSuchKey",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.NoSuchKey=bE;h.ObjectAttributes={CHECKSUM:"Checksum",ETAG:"ETag",OBJECT_PARTS:"ObjectParts",OBJECT_SIZE:"ObjectSize",STORAGE_CLASS:"StorageClass"};h.ObjectLockEnabled={Enabled:"Enabled"};h.ObjectLockRetentionMode={COMPLIANCE:"COMPLIANCE",GOVERNANCE:"GOVERNANCE"};var PE=class e extends Tr.S3ServiceException{constructor(n){super({name:"NotFound",$fault:"client",...n}),this.name="NotFound",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.NotFound=PE;h.ArchiveStatus={ARCHIVE_ACCESS:"ARCHIVE_ACCESS",DEEP_ARCHIVE_ACCESS:"DEEP_ARCHIVE_ACCESS"};h.EncodingType={url:"url"};h.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"};h.OptionalObjectAttributes={RESTORE_STATUS:"RestoreStatus"};var vE=class e extends Tr.S3ServiceException{constructor(n){super({name:"NoSuchBucket",$fault:"client",...n}),this.name="NoSuchBucket",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};h.NoSuchBucket=vE;h.ObjectVersionStorageClass={STANDARD:"STANDARD"};h.MFADelete={Disabled:"Disabled",Enabled:"Enabled"};var Koe=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING}});h.CompleteMultipartUploadOutputFilterSensitiveLog=Koe;var Voe=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING}});h.CompleteMultipartUploadRequestFilterSensitiveLog=Voe;var Xoe=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Pe.SENSITIVE_STRING}});h.CopyObjectOutputFilterSensitiveLog=Xoe;var Woe=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Pe.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Pe.SENSITIVE_STRING}});h.CopyObjectRequestFilterSensitiveLog=Woe;var Yoe=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Pe.SENSITIVE_STRING}});h.CreateMultipartUploadOutputFilterSensitiveLog=Yoe;var Qoe=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Pe.SENSITIVE_STRING}});h.CreateMultipartUploadRequestFilterSensitiveLog=Qoe;var Joe=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Pe.SENSITIVE_STRING}});h.ServerSideEncryptionByDefaultFilterSensitiveLog=Joe;var Zoe=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:(0,h.ServerSideEncryptionByDefaultFilterSensitiveLog)(e.ApplyServerSideEncryptionByDefault)}});h.ServerSideEncryptionRuleFilterSensitiveLog=Zoe;var ese=e=>({...e,...e.Rules&&{Rules:e.Rules.map(n=>(0,h.ServerSideEncryptionRuleFilterSensitiveLog)(n))}});h.ServerSideEncryptionConfigurationFilterSensitiveLog=ese;var tse=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,h.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});h.GetBucketEncryptionOutputFilterSensitiveLog=tse;var nse=e=>({...e,...e.KeyId&&{KeyId:Pe.SENSITIVE_STRING}});h.SSEKMSFilterSensitiveLog=nse;var rse=e=>({...e,...e.SSEKMS&&{SSEKMS:(0,h.SSEKMSFilterSensitiveLog)(e.SSEKMS)}});h.InventoryEncryptionFilterSensitiveLog=rse;var ose=e=>({...e,...e.Encryption&&{Encryption:(0,h.InventoryEncryptionFilterSensitiveLog)(e.Encryption)}});h.InventoryS3BucketDestinationFilterSensitiveLog=ose;var sse=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:(0,h.InventoryS3BucketDestinationFilterSensitiveLog)(e.S3BucketDestination)}});h.InventoryDestinationFilterSensitiveLog=sse;var ise=e=>({...e,...e.Destination&&{Destination:(0,h.InventoryDestinationFilterSensitiveLog)(e.Destination)}});h.InventoryConfigurationFilterSensitiveLog=ise;var ase=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,h.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});h.GetBucketInventoryConfigurationOutputFilterSensitiveLog=ase;var cse=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING}});h.GetObjectOutputFilterSensitiveLog=cse;var dse=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING}});h.GetObjectRequestFilterSensitiveLog=dse;var lse=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING}});h.GetObjectAttributesRequestFilterSensitiveLog=lse;var use=e=>({...e});h.GetObjectTorrentOutputFilterSensitiveLog=use;var mse=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING}});h.HeadObjectOutputFilterSensitiveLog=mse;var pse=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING}});h.HeadObjectRequestFilterSensitiveLog=pse;var fse=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(n=>(0,h.InventoryConfigurationFilterSensitiveLog)(n))}});h.ListBucketInventoryConfigurationsOutputFilterSensitiveLog=fse;var _se=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING}});h.ListPartsRequestFilterSensitiveLog=_se;var yse=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:(0,h.ServerSideEncryptionConfigurationFilterSensitiveLog)(e.ServerSideEncryptionConfiguration)}});h.PutBucketEncryptionRequestFilterSensitiveLog=yse;var gse=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:(0,h.InventoryConfigurationFilterSensitiveLog)(e.InventoryConfiguration)}});h.PutBucketInventoryConfigurationRequestFilterSensitiveLog=gse;var hse=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Pe.SENSITIVE_STRING}});h.PutObjectOutputFilterSensitiveLog=hse;var Cse=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Pe.SENSITIVE_STRING},...e.SSEKMSKeyId&&{SSEKMSKeyId:Pe.SENSITIVE_STRING},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Pe.SENSITIVE_STRING}});h.PutObjectRequestFilterSensitiveLog=Cse});var Mr=m(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.WriteGetObjectResponseRequestFilterSensitiveLog=Z.UploadPartCopyRequestFilterSensitiveLog=Z.UploadPartCopyOutputFilterSensitiveLog=Z.UploadPartRequestFilterSensitiveLog=Z.UploadPartOutputFilterSensitiveLog=Z.SelectObjectContentRequestFilterSensitiveLog=Z.SelectObjectContentOutputFilterSensitiveLog=Z.SelectObjectContentEventStreamFilterSensitiveLog=Z.RestoreObjectRequestFilterSensitiveLog=Z.RestoreRequestFilterSensitiveLog=Z.OutputLocationFilterSensitiveLog=Z.S3LocationFilterSensitiveLog=Z.EncryptionFilterSensitiveLog=Z.SelectObjectContentEventStream=Z.RestoreRequestType=Z.QuoteFields=Z.JSONType=Z.FileHeaderInfo=Z.CompressionType=Z.ExpressionType=Z.Tier=Z.ObjectAlreadyInActiveTierError=void 0;var qr=E(),Sse=od(),xE=class e extends Sse.S3ServiceException{constructor(n){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...n}),this.name="ObjectAlreadyInActiveTierError",this.$fault="client",Object.setPrototypeOf(this,e.prototype)}};Z.ObjectAlreadyInActiveTierError=xE;Z.Tier={Bulk:"Bulk",Expedited:"Expedited",Standard:"Standard"};Z.ExpressionType={SQL:"SQL"};Z.CompressionType={BZIP2:"BZIP2",GZIP:"GZIP",NONE:"NONE"};Z.FileHeaderInfo={IGNORE:"IGNORE",NONE:"NONE",USE:"USE"};Z.JSONType={DOCUMENT:"DOCUMENT",LINES:"LINES"};Z.QuoteFields={ALWAYS:"ALWAYS",ASNEEDED:"ASNEEDED"};Z.RestoreRequestType={SELECT:"SELECT"};var Ese;(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])})(Ese=Z.SelectObjectContentEventStream||(Z.SelectObjectContentEventStream={}));var bse=e=>({...e,...e.KMSKeyId&&{KMSKeyId:qr.SENSITIVE_STRING}});Z.EncryptionFilterSensitiveLog=bse;var Pse=e=>({...e,...e.Encryption&&{Encryption:(0,Z.EncryptionFilterSensitiveLog)(e.Encryption)}});Z.S3LocationFilterSensitiveLog=Pse;var vse=e=>({...e,...e.S3&&{S3:(0,Z.S3LocationFilterSensitiveLog)(e.S3)}});Z.OutputLocationFilterSensitiveLog=vse;var xse=e=>({...e,...e.OutputLocation&&{OutputLocation:(0,Z.OutputLocationFilterSensitiveLog)(e.OutputLocation)}});Z.RestoreRequestFilterSensitiveLog=xse;var wse=e=>({...e,...e.RestoreRequest&&{RestoreRequest:(0,Z.RestoreRequestFilterSensitiveLog)(e.RestoreRequest)}});Z.RestoreObjectRequestFilterSensitiveLog=wse;var kse=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"}};Z.SelectObjectContentEventStreamFilterSensitiveLog=kse;var Ase=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}});Z.SelectObjectContentOutputFilterSensitiveLog=Ase;var Ise=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:qr.SENSITIVE_STRING}});Z.SelectObjectContentRequestFilterSensitiveLog=Ise;var Rse=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:qr.SENSITIVE_STRING}});Z.UploadPartOutputFilterSensitiveLog=Rse;var Nse=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:qr.SENSITIVE_STRING}});Z.UploadPartRequestFilterSensitiveLog=Nse;var Ose=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:qr.SENSITIVE_STRING}});Z.UploadPartCopyOutputFilterSensitiveLog=Ose;var Tse=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:qr.SENSITIVE_STRING},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:qr.SENSITIVE_STRING}});Z.UploadPartCopyRequestFilterSensitiveLog=Tse;var qse=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:qr.SENSITIVE_STRING}});Z.WriteGetObjectResponseRequestFilterSensitiveLog=qse});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 f=jL(),q=we(),d=E(),Mse=Wh(),Tt=et(),Bse=Mr(),Dse=od(),Fse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_AbortMultipartUploadCommand=Fse;var Lse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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=KL(e.MultipartUpload,n));let a;return e.MultipartUpload!==void 0&&(a=KL(e.MultipartUpload,n),a=a.withName("CompleteMultipartUpload"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CompleteMultipartUploadCommand=Lse;var jse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(e.CopySourceIfUnmodifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfUnmodifiedSince).toString()],expires:[()=>P(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":[()=>P(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":[()=>P(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,_)=>(a[`x-amz-meta-${_.toLowerCase()}`]=e.Metadata[_],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_CopyObjectCommand=jse;var Use=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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":[()=>P(e.ObjectLockEnabledForBucket),()=>e.ObjectLockEnabledForBucket.toString()],"x-amz-object-ownership":e.ObjectOwnership}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;e.CreateBucketConfiguration!==void 0&&(u=XL(e.CreateBucketConfiguration,n));let l;return e.CreateBucketConfiguration!==void 0&&(l=XL(e.CreateBucketConfiguration,n),u='',l.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),u+=l.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,body:u})};p.se_CreateBucketCommand=Use;var zse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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:[()=>P(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":[()=>P(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":[()=>P(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,_)=>(a[`x-amz-meta-${_.toLowerCase()}`]=e.Metadata[_],a),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_CreateMultipartUploadCommand=zse;var Gse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,body:u})};p.se_DeleteBucketCommand=Gse;var Hse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketAnalyticsConfigurationCommand=Hse;var $se=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketCorsCommand=$se;var Kse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketEncryptionCommand=Kse;var Vse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketIntelligentTieringConfigurationCommand=Vse;var Xse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketInventoryConfigurationCommand=Xse;var Wse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketLifecycleCommand=Wse;var Yse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketMetricsConfigurationCommand=Yse;var Qse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketOwnershipControlsCommand=Qse;var Jse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketPolicyCommand=Jse;var Zse=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketReplicationCommand=Zse;var eie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketTaggingCommand=eie;var tie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteBucketWebsiteCommand=tie;var nie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectCommand=nie;var rie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-mfa":e.MFA,"x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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=WL(e.Delete,n));let a;return e.Delete!==void 0&&(a=WL(e.Delete,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectsCommand=rie;var oie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeleteObjectTaggingCommand=oie;var sie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"DELETE",headers:c,path:i,query:u,body:l})};p.se_DeletePublicAccessBlockCommand=sie;var iie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAccelerateConfigurationCommand=iie;var aie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAclCommand=aie;var cie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketAnalyticsConfigurationCommand=cie;var die=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketCorsCommand=die;var lie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketEncryptionCommand=lie;var uie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketIntelligentTieringConfigurationCommand=uie;var mie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketInventoryConfigurationCommand=mie;var pie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLifecycleConfigurationCommand=pie;var fie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({location:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLocationCommand=fie;var _ie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketLoggingCommand=_ie;var yie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketMetricsConfigurationCommand=yie;var gie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketNotificationConfigurationCommand=gie;var hie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketOwnershipControlsCommand=hie;var Cie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policy:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyCommand=Cie;var Sie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({policyStatus:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketPolicyStatusCommand=Sie;var Eie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketReplicationCommand=Eie;var bie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketRequestPaymentCommand=bie;var Pie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketTaggingCommand=Pie;var vie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketVersioningCommand=vie;var xie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetBucketWebsiteCommand=xie;var wie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectCommand=wie;var kie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAclCommand=kie;var Aie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-max-parts":[()=>P(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":[()=>P(e.ObjectAttributes),()=>(e.ObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectAttributesCommand=Aie;var Iie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLegalHoldCommand=Iie;var Rie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectLockConfigurationCommand=Rie;var Nie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectRetentionCommand=Nie;var Oie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTaggingCommand=Oie;var Tie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetObjectTorrentCommand=Tie;var qie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_GetPublicAccessBlockCommand=qie;var Mie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u;return new q.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,body:u})};p.se_HeadBucketCommand=Mie;var Bie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"if-match":e.IfMatch,"if-modified-since":[()=>P(e.IfModifiedSince),()=>(0,d.dateToUtcString)(e.IfModifiedSince).toString()],"if-none-match":e.IfNoneMatch,"if-unmodified-since":[()=>P(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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"HEAD",headers:c,path:i,query:u,body:l})};p.se_HeadObjectCommand=Bie;var Die=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketAnalyticsConfigurationsCommand=Die;var Fie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketIntelligentTieringConfigurationsCommand=Fie;var Lie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketInventoryConfigurationsCommand=Lie;var jie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListBucketMetricsConfigurationsCommand=jie;var Uie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`,u;return u="",new q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,body:u})};p.se_ListBucketsCommand=Uie;var zie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListMultipartUploadsCommand=zie;var Gie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsCommand=Gie;var Hie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-request-payer":e.RequestPayer,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectsV2Command=Hie;var $ie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-request-payer":e.RequestPayer,"x-amz-optional-object-attributes":[()=>P(e.OptionalObjectAttributes),()=>(e.OptionalObjectAttributes||[]).map(a=>a).join(", ")]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListObjectVersionsCommand=$ie;var Kie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"GET",headers:c,path:i,query:u,body:l})};p.se_ListPartsCommand=Kie;var Vie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({accelerate:[,""]}),l;e.AccelerateConfiguration!==void 0&&(l=zL(e.AccelerateConfiguration,n));let a;return e.AccelerateConfiguration!==void 0&&(a=zL(e.AccelerateConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAccelerateConfigurationCommand=Vie;var Xie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({acl:[,""]}),l;e.AccessControlPolicy!==void 0&&(l=h_(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=h_(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAclCommand=Xie;var Wie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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=GL(e.AnalyticsConfiguration,n));let a;return e.AnalyticsConfiguration!==void 0&&(a=GL(e.AnalyticsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketAnalyticsConfigurationCommand=Wie;var Yie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({cors:[,""]}),l;e.CORSConfiguration!==void 0&&(l=VL(e.CORSConfiguration,n));let a;return e.CORSConfiguration!==void 0&&(a=VL(e.CORSConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketCorsCommand=Yie;var Qie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({encryption:[,""]}),l;e.ServerSideEncryptionConfiguration!==void 0&&(l=cj(e.ServerSideEncryptionConfiguration,n));let a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=cj(e.ServerSideEncryptionConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketEncryptionCommand=Qie;var Jie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c={"content-type":"application/xml"},i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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=YL(e.IntelligentTieringConfiguration,n));let a;return e.IntelligentTieringConfiguration!==void 0&&(a=YL(e.IntelligentTieringConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketIntelligentTieringConfigurationCommand=Jie;var Zie=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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=QL(e.InventoryConfiguration,n));let a;return e.InventoryConfiguration!==void 0&&(a=QL(e.InventoryConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketInventoryConfigurationCommand=Zie;var eae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({lifecycle:[,""]}),l;e.LifecycleConfiguration!==void 0&&(l=HL(e.LifecycleConfiguration,n));let a;return e.LifecycleConfiguration!==void 0&&(a=HL(e.LifecycleConfiguration,n),a=a.withName("LifecycleConfiguration"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLifecycleConfigurationCommand=eae;var tae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({logging:[,""]}),l;e.BucketLoggingStatus!==void 0&&(l=$L(e.BucketLoggingStatus,n));let a;return e.BucketLoggingStatus!==void 0&&(a=$L(e.BucketLoggingStatus,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketLoggingCommand=tae;var nae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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=JL(e.MetricsConfiguration,n));let a;return e.MetricsConfiguration!==void 0&&(a=JL(e.MetricsConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketMetricsConfigurationCommand=nae;var rae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-expected-bucket-owner":e.ExpectedBucketOwner,"x-amz-skip-destination-validation":[()=>P(e.SkipDestinationValidation),()=>e.SkipDestinationValidation.toString()]}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({notification:[,""]}),l;e.NotificationConfiguration!==void 0&&(l=ZL(e.NotificationConfiguration,n));let a;return e.NotificationConfiguration!==void 0&&(a=ZL(e.NotificationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketNotificationConfigurationCommand=rae;var oae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({ownershipControls:[,""]}),l;e.OwnershipControls!==void 0&&(l=rj(e.OwnershipControls,n));let a;return e.OwnershipControls!==void 0&&(a=rj(e.OwnershipControls,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketOwnershipControlsCommand=oae;var sae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"text/plain","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-confirm-remove-self-bucket-access":[()=>P(e.ConfirmRemoveSelfBucketAccess),()=>e.ConfirmRemoveSelfBucketAccess.toString()],"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketPolicyCommand=sae;var iae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({replication:[,""]}),l;e.ReplicationConfiguration!==void 0&&(l=sj(e.ReplicationConfiguration,n));let a;return e.ReplicationConfiguration!==void 0&&(a=sj(e.ReplicationConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketReplicationCommand=iae;var aae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({requestPayment:[,""]}),l;e.RequestPaymentConfiguration!==void 0&&(l=ij(e.RequestPaymentConfiguration,n));let a;return e.RequestPaymentConfiguration!==void 0&&(a=ij(e.RequestPaymentConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketRequestPaymentCommand=aae;var cae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({tagging:[,""]}),l;e.Tagging!==void 0&&(l=sd(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=sd(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketTaggingCommand=cae;var dae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({versioning:[,""]}),l;e.VersioningConfiguration!==void 0&&(l=dj(e.VersioningConfiguration,n));let a;return e.VersioningConfiguration!==void 0&&(a=dj(e.VersioningConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketVersioningCommand=dae;var lae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({website:[,""]}),l;e.WebsiteConfiguration!==void 0&&(l=lj(e.WebsiteConfiguration,n));let a;return e.WebsiteConfiguration!==void 0&&(a=lj(e.WebsiteConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutBucketWebsiteCommand=lae;var uae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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":[()=>P(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:[()=>P(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":[()=>P(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":[()=>P(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((_,y)=>(_[`x-amz-meta-${y.toLowerCase()}`]=e.Metadata[y],_),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectCommand=uae;var mae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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=h_(e.AccessControlPolicy,n));let a;return e.AccessControlPolicy!==void 0&&(a=h_(e.AccessControlPolicy,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectAclCommand=mae;var pae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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=tj(e.LegalHold,n));let a;return e.LegalHold!==void 0&&(a=tj(e.LegalHold,n),a=a.withName("LegalHold"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLegalHoldCommand=pae;var fae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({"object-lock":[,""]}),l;e.ObjectLockConfiguration!==void 0&&(l=ej(e.ObjectLockConfiguration,n));let a;return e.ObjectLockConfiguration!==void 0&&(a=ej(e.ObjectLockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectLockConfigurationCommand=fae;var _ae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","x-amz-request-payer":e.RequestPayer,"x-amz-bypass-governance-retention":[()=>P(e.BypassGovernanceRetention),()=>e.BypassGovernanceRetention.toString()],"content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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=nj(e.Retention,n));let a;return e.Retention!==void 0&&(a=nj(e.Retention,n),a=a.withName("Retention"),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectRetentionCommand=_ae;var yae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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=sd(e.Tagging,n));let a;return e.Tagging!==void 0&&(a=sd(e.Tagging,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutObjectTaggingCommand=yae;var gae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/xml","content-md5":e.ContentMD5,"x-amz-sdk-checksum-algorithm":e.ChecksumAlgorithm,"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/`;i=(0,d.resolvedPath)(i,e,"Bucket",()=>e.Bucket,"{Bucket}",!1);let u=(0,d.map)({publicAccessBlock:[,""]}),l;e.PublicAccessBlockConfiguration!==void 0&&(l=oj(e.PublicAccessBlockConfiguration,n));let a;return e.PublicAccessBlockConfiguration!==void 0&&(a=oj(e.PublicAccessBlockConfiguration,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_PutPublicAccessBlockCommand=gae;var hae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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=aj(e.RestoreRequest,n));let a;return e.RestoreRequest!==void 0&&(a=aj(e.RestoreRequest,n),l='',a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),l+=a.toString()),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_RestoreObjectCommand=hae;var Cae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 f.XmlNode("SelectObjectContentRequest");if(a.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),e.Expression!==void 0){let _=f.XmlNode.of("Expression",e.Expression).withName("Expression");a.addChildNode(_)}if(e.ExpressionType!==void 0){let _=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");a.addChildNode(_)}if(e.InputSerialization!==void 0){let _=_j(e.InputSerialization,n).withName("InputSerialization");a.addChildNode(_)}if(e.OutputSerialization!==void 0){let _=yj(e.OutputSerialization,n).withName("OutputSerialization");a.addChildNode(_)}if(e.RequestProgress!==void 0){let _=vme(e.RequestProgress,n).withName("RequestProgress");a.addChildNode(_)}if(e.ScanRange!==void 0){let _=Ime(e.ScanRange,n).withName("ScanRange");a.addChildNode(_)}return l+=a.toString(),new q.HttpRequest({protocol:r,hostname:t,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_SelectObjectContentCommand=Cae;var Sae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"content-type":"application/octet-stream","content-length":[()=>P(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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCommand=Sae;var Eae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"x-amz-copy-source":e.CopySource,"x-amz-copy-source-if-match":e.CopySourceIfMatch,"x-amz-copy-source-if-modified-since":[()=>P(e.CopySourceIfModifiedSince),()=>(0,d.dateToUtcString)(e.CopySourceIfModifiedSince).toString()],"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch,"x-amz-copy-source-if-unmodified-since":[()=>P(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=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/{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 q.HttpRequest({protocol:r,hostname:t,port:o,method:"PUT",headers:c,path:i,query:u,body:l})};p.se_UploadPartCopyCommand=Eae;var bae=async(e,n)=>{let{hostname:t,protocol:r="https",port:o,path:s}=await n.endpoint(),c=(0,d.map)({},P,{"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":[()=>P(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":[()=>P(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":[()=>P(e.DeleteMarker),()=>e.DeleteMarker.toString()],"x-amz-fwd-header-etag":e.ETag,"x-amz-fwd-header-expires":[()=>P(e.Expires),()=>(0,d.dateToUtcString)(e.Expires).toString()],"x-amz-fwd-header-x-amz-expiration":e.Expiration,"x-amz-fwd-header-last-modified":[()=>P(e.LastModified),()=>(0,d.dateToUtcString)(e.LastModified).toString()],"x-amz-fwd-header-x-amz-missing-meta":[()=>P(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":[()=>P(e.ObjectLockRetainUntilDate),()=>(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()],"x-amz-fwd-header-x-amz-mp-parts-count":[()=>P(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":[()=>P(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":[()=>P(e.BucketKeyEnabled),()=>e.BucketKeyEnabled.toString()],...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((y,C)=>(y[`x-amz-meta-${C.toLowerCase()}`]=e.Metadata[C],y),{})}),i=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/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:_}=await n.endpoint();if(n.disableHostPrefix!==!0){if(_="{RequestRoute}."+_,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(_=_.replace("{RequestRoute}",e.RequestRoute),!(0,q.isValidHostname)(_))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return new q.HttpRequest({protocol:r,hostname:_,port:o,method:"POST",headers:c,path:i,query:u,body:l})};p.se_WriteGetObjectResponseCommand=bae;var Pae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return vae(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_AbortMultipartUploadCommand=Pae;var vae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await Yle(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},xae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wae(e,n);let t=(0,d.map)({$metadata:N(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 ne(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=xae;var wae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},kae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Aae(e,n);let t=(0,d.map)({$metadata:N(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 ne(e.body,n));return t.CopyObjectResult=upe(r,n),t};p.de_CopyObjectCommand=kae;var Aae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await Jle(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Iae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rae(e,n);let t=(0,d.map)({$metadata:N(e),Location:[,e.headers.location]});return await(0,d.collectBody)(e.body,n),t};p.de_CreateBucketCommand=Iae;var Rae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await Vle(t,n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await Xle(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Nae=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oae(e,n);let t=(0,d.map)({$metadata:N(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 ne(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=Nae;var Oae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Tae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return qae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCommand=Tae;var qae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Mae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Bae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketAnalyticsConfigurationCommand=Mae;var Bae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Dae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Fae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketCorsCommand=Dae;var Fae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Lae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return jae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketEncryptionCommand=Lae;var jae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Uae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return zae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketIntelligentTieringConfigurationCommand=Uae;var zae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Gae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Hae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketInventoryConfigurationCommand=Gae;var Hae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},$ae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Kae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketLifecycleCommand=$ae;var Kae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Vae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Xae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketMetricsConfigurationCommand=Vae;var Xae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Wae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Yae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketOwnershipControlsCommand=Wae;var Yae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Qae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return Jae(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketPolicyCommand=Qae;var Jae=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Zae=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return ece(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketReplicationCommand=Zae;var ece=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},tce=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return nce(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketTaggingCommand=tce;var nce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},rce=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return oce(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteBucketWebsiteCommand=rce;var oce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},sce=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return ice(e,n);let t=(0,d.map)({$metadata:N(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=sce;var ice=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},ace=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return cce(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.Deleted===""?t.Deleted=[]:r.Deleted!==void 0&&(t.Deleted=gpe((0,d.getArrayIfSingleItem)(r.Deleted),n)),r.Error===""?t.Errors=[]:r.Error!==void 0&&(t.Errors=wpe((0,d.getArrayIfSingleItem)(r.Error),n)),t};p.de_DeleteObjectsCommand=ace;var cce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},dce=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return lce(e,n);let t=(0,d.map)({$metadata:N(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_DeleteObjectTaggingCommand=dce;var lce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},uce=async(e,n)=>{if(e.statusCode!==204&&e.statusCode>=300)return mce(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_DeletePublicAccessBlockCommand=uce;var mce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},pce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return fce(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.Status!==void 0&&(t.Status=(0,d.expectString)(r.Status)),t};p.de_GetBucketAccelerateConfigurationCommand=pce;var fce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},_ce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Ej((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=Br(r.Owner,n)),t};p.de_GetBucketAclCommand=_ce;var yce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},gce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.AnalyticsConfiguration=hj(r,n),t};p.de_GetBucketAnalyticsConfigurationCommand=gce;var hce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Cce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Sce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.CORSRule===""?t.CORSRules=[]:r.CORSRule!==void 0&&(t.CORSRules=fpe((0,d.getArrayIfSingleItem)(r.CORSRule),n)),t};p.de_GetBucketCorsCommand=Cce;var Sce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ece=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.ServerSideEncryptionConfiguration=jfe(r,n),t};p.de_GetBucketEncryptionCommand=Ece;var bce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Pce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return vce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.IntelligentTieringConfiguration=Pj(r,n),t};p.de_GetBucketIntelligentTieringConfigurationCommand=Pce;var vce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},xce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.InventoryConfiguration=vj(r,n),t};p.de_GetBucketInventoryConfigurationCommand=xce;var wce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},kce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ace(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.Rule===""?t.Rules=[]:r.Rule!==void 0&&(t.Rules=Qpe((0,d.getArrayIfSingleItem)(r.Rule),n)),t};p.de_GetBucketLifecycleConfigurationCommand=kce;var Ace=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ice=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.LocationConstraint!==void 0&&(t.LocationConstraint=(0,d.expectString)(r.LocationConstraint)),t};p.de_GetBucketLocationCommand=Ice;var Rce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Nce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Oce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.LoggingEnabled!==void 0&&(t.LoggingEnabled=Jpe(r.LoggingEnabled,n)),t};p.de_GetBucketLoggingCommand=Nce;var Oce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Tce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.MetricsConfiguration=xj(r,n),t};p.de_GetBucketMetricsConfigurationCommand=Tce;var qce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Mce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Bce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.EventBridgeConfiguration!==void 0&&(t.EventBridgeConfiguration=kpe(r.EventBridgeConfiguration,n)),r.CloudFunctionConfiguration===""?t.LambdaFunctionConfigurations=[]:r.CloudFunctionConfiguration!==void 0&&(t.LambdaFunctionConfigurations=Kpe((0,d.getArrayIfSingleItem)(r.CloudFunctionConfiguration),n)),r.QueueConfiguration===""?t.QueueConfigurations=[]:r.QueueConfiguration!==void 0&&(t.QueueConfigurations=wfe((0,d.getArrayIfSingleItem)(r.QueueConfiguration),n)),r.TopicConfiguration===""?t.TopicConfigurations=[]:r.TopicConfiguration!==void 0&&(t.TopicConfigurations=t_e((0,d.getArrayIfSingleItem)(r.TopicConfiguration),n)),t};p.de_GetBucketNotificationConfigurationCommand=Mce;var Bce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Dce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Fce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.OwnershipControls=yfe(r,n),t};p.de_GetBucketOwnershipControlsCommand=Dce;var Fce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Lce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return jce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=await Ij(e.body,n);return t.Policy=(0,d.expectString)(r),t};p.de_GetBucketPolicyCommand=Lce;var jce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Uce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.PolicyStatus=bfe(r,n),t};p.de_GetBucketPolicyStatusCommand=Uce;var zce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Gce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.ReplicationConfiguration=Rfe(r,n),t};p.de_GetBucketReplicationCommand=Gce;var Hce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},$ce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Kce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.Payer!==void 0&&(t.Payer=(0,d.expectString)(r.Payer)),t};p.de_GetBucketRequestPaymentCommand=$ce;var Kce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Vce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=po((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetBucketTaggingCommand=Vce;var Xce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Wce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Yce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(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=Wce;var Yce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Qce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jce(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.ErrorDocument!==void 0&&(t.ErrorDocument=xpe(r.ErrorDocument,n)),r.IndexDocument!==void 0&&(t.IndexDocument=qpe(r.IndexDocument,n)),r.RedirectAllRequestsTo!==void 0&&(t.RedirectAllRequestsTo=Afe(r.RedirectAllRequestsTo,n)),r.RoutingRules===""?t.RoutingRules=[]:r.RoutingRules!==void 0&&r.RoutingRules.RoutingRule!==void 0&&(t.RoutingRules=Dfe((0,d.getArrayIfSingleItem)(r.RoutingRules.RoutingRule),n)),t};p.de_GetBucketWebsiteCommand=Qce;var Jce=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Zce=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ede(e,n);let t=(0,d.map)({$metadata:N(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(o=>o.startsWith("x-amz-meta-")).reduce((o,s)=>(o[s.substring(11)]=e.headers[s],o),{})]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectCommand=Zce;var ede=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await Wle(t,n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await C_(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},tde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return nde(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.AccessControlList===""?t.Grants=[]:r.AccessControlList!==void 0&&r.AccessControlList.Grant!==void 0&&(t.Grants=Ej((0,d.getArrayIfSingleItem)(r.AccessControlList.Grant),n)),r.Owner!==void 0&&(t.Owner=Br(r.Owner,n)),t};p.de_GetObjectAclCommand=tde;var nde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await C_(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},rde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ode(e,n);let t=(0,d.map)({$metadata:N(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 ne(e.body,n)),"body");return r.Checksum!==void 0&&(t.Checksum=ape(r.Checksum,n)),r.ETag!==void 0&&(t.ETag=(0,d.expectString)(r.ETag)),r.ObjectParts!==void 0&&(t.ObjectParts=Ope(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=rde;var ode=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await C_(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},sde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ide(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.LegalHold=lfe(r,n),t};p.de_GetObjectLegalHoldCommand=sde;var ide=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},ade=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return cde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.ObjectLockConfiguration=dfe(r,n),t};p.de_GetObjectLockConfigurationCommand=ade;var cde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},dde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return lde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.Retention=ufe(r,n),t};p.de_GetObjectRetentionCommand=dde;var lde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},ude=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return mde(e,n);let t=(0,d.map)({$metadata:N(e),VersionId:[,e.headers["x-amz-version-id"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.TagSet===""?t.TagSet=[]:r.TagSet!==void 0&&r.TagSet.Tag!==void 0&&(t.TagSet=po((0,d.getArrayIfSingleItem)(r.TagSet.Tag),n)),t};p.de_GetObjectTaggingCommand=ude;var mde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},pde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return fde(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=e.body;return n.sdkStreamMixin(r),t.Body=r,t};p.de_GetObjectTorrentCommand=pde;var fde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},_de=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectObject)(await ne(e.body,n));return t.PublicAccessBlockConfiguration=vfe(r,n),t};p.de_GetPublicAccessBlockCommand=_de;var yde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},gde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_HeadBucketCommand=gde;var hde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await mj(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Cde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Sde(e,n);let t=(0,d.map)({$metadata:N(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,o)=>(r[o.substring(11)]=e.headers[o],r),{})]});return await(0,d.collectBody)(e.body,n),t};p.de_HeadObjectCommand=Cde;var Sde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NotFound":case"com.amazonaws.s3#NotFound":throw await mj(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Ede=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return bde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.AnalyticsConfiguration===""?t.AnalyticsConfigurationList=[]:r.AnalyticsConfiguration!==void 0&&(t.AnalyticsConfigurationList=tpe((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=Ede;var bde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Pde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return vde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(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=Bpe((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=Pde;var vde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},xde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(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=Fpe((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=xde;var wde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},kde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ade(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(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=tfe((0,d.getArrayIfSingleItem)(r.MetricsConfiguration),n)),r.NextContinuationToken!==void 0&&(t.NextContinuationToken=(0,d.expectString)(r.NextContinuationToken)),t};p.de_ListBucketMetricsConfigurationsCommand=kde;var Ade=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ide=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rde(e,n);let t=(0,d.map)({$metadata:N(e)}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.Buckets===""?t.Buckets=[]:r.Buckets!==void 0&&r.Buckets.Bucket!==void 0&&(t.Buckets=ipe((0,d.getArrayIfSingleItem)(r.Buckets.Bucket),n)),r.Owner!==void 0&&(t.Owner=Br(r.Owner,n)),t};p.de_ListBucketsCommand=Ide;var Rde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Nde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ode(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(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=S_((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=ofe((0,d.getArrayIfSingleItem)(r.Upload),n)),t};p.de_ListMultipartUploadsCommand=Nde;var Ode=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Tde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qde(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=S_((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=wj((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=Tde;var qde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await uj(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Mde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Bde(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=S_((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.Contents===""?t.Contents=[]:r.Contents!==void 0&&(t.Contents=wj((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=Mde;var Bde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await uj(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Dde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Fde(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]}),r=(0,d.expectNonNull)((0,d.expectObject)(await ne(e.body,n)),"body");return r.CommonPrefixes===""?t.CommonPrefixes=[]:r.CommonPrefixes!==void 0&&(t.CommonPrefixes=S_((0,d.getArrayIfSingleItem)(r.CommonPrefixes),n)),r.DeleteMarker===""?t.DeleteMarkers=[]:r.DeleteMarker!==void 0&&(t.DeleteMarkers=Spe((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=_fe((0,d.getArrayIfSingleItem)(r.Version),n)),t};p.de_ListObjectVersionsCommand=Dde;var Fde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Lde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return jde(e,n);let t=(0,d.map)({$metadata:N(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 ne(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=bj(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=Br(r.Owner,n)),r.PartNumberMarker!==void 0&&(t.PartNumberMarker=(0,d.expectString)(r.PartNumberMarker)),r.Part===""?t.Parts=[]:r.Part!==void 0&&(t.Parts=Sfe((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=Lde;var jde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ude=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAccelerateConfigurationCommand=Ude;var zde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Gde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAclCommand=Gde;var Hde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},$de=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Kde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketAnalyticsConfigurationCommand=$de;var Kde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Vde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Xde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketCorsCommand=Vde;var Xde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Wde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Yde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketEncryptionCommand=Wde;var Yde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Qde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Jde(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketIntelligentTieringConfigurationCommand=Qde;var Jde=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Zde=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ele(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketInventoryConfigurationCommand=Zde;var ele=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},tle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return nle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLifecycleConfigurationCommand=tle;var nle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},rle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ole(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketLoggingCommand=rle;var ole=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},sle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ile(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketMetricsConfigurationCommand=sle;var ile=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},ale=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return cle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketNotificationConfigurationCommand=ale;var cle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},dle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return lle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketOwnershipControlsCommand=dle;var lle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},ule=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return mle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketPolicyCommand=ule;var mle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},ple=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return fle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketReplicationCommand=ple;var fle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},_le=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return yle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketRequestPaymentCommand=_le;var yle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},gle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return hle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketTaggingCommand=gle;var hle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Cle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Sle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketVersioningCommand=Cle;var Sle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ele=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return ble(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutBucketWebsiteCommand=Ele;var ble=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ple=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return vle(e,n);let t=(0,d.map)({$metadata:N(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=Ple;var vle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},xle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return wle(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectAclCommand=xle;var wle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await C_(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},kle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ale(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLegalHoldCommand=kle;var Ale=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ile=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rle(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectLockConfigurationCommand=Ile;var Rle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Nle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ole(e,n);let t=(0,d.map)({$metadata:N(e),RequestCharged:[,e.headers["x-amz-request-charged"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectRetentionCommand=Nle;var Ole=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Tle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return qle(e,n);let t=(0,d.map)({$metadata:N(e),VersionId:[,e.headers["x-amz-version-id"]]});return await(0,d.collectBody)(e.body,n),t};p.de_PutObjectTaggingCommand=Tle;var qle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Mle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Ble(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_PutPublicAccessBlockCommand=Mle;var Ble=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Dle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Fle(e,n);let t=(0,d.map)({$metadata:N(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=Dle;var Fle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body);switch(r){case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await Qle(t,n);default:let o=t.body;return B({output:e,parsedBody:o,errorCode:r})}},Lle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return jle(e,n);let t=(0,d.map)({$metadata:N(e)}),r=e.body;return t.Payload=Zle(r,n),t};p.de_SelectObjectContentCommand=Lle;var jle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Ule=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return zle(e,n);let t=(0,d.map)({$metadata:N(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=Ule;var zle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},Gle=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Hle(e,n);let t=(0,d.map)({$metadata:N(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 ne(e.body,n));return t.CopyPartResult=mpe(r,n),t};p.de_UploadPartCopyCommand=Gle;var Hle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},$le=async(e,n)=>{if(e.statusCode!==200&&e.statusCode>=300)return Kle(e,n);let t=(0,d.map)({$metadata:N(e)});return await(0,d.collectBody)(e.body,n),t};p.de_WriteGetObjectResponseCommand=$le;var Kle=async(e,n)=>{let t={...e,body:await D(e.body,n)},r=F(e,t.body),o=t.body;return B({output:e,parsedBody:o,errorCode:r})},B=(0,d.withBaseException)(Dse.S3ServiceException),Vle=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.BucketAlreadyExists({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},Xle=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.BucketAlreadyOwnedByYou({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},Wle=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 o=new Tt.InvalidObjectState({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},uj=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.NoSuchBucket({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},C_=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.NoSuchKey({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},Yle=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.NoSuchUpload({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},mj=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.NotFound({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},Qle=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Bse.ObjectAlreadyInActiveTierError({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},Jle=async(e,n)=>{let t=(0,d.map)({}),r=e.body,o=new Tt.ObjectNotInActiveTierError({$metadata:N(e),...t});return(0,d.decorateServiceException)(o,e.body)},Zle=(e,n)=>n.eventStreamMarshaller.deserialize(e,async t=>t.Records!=null?{Records:await rue(t.Records,n)}:t.Stats!=null?{Stats:await oue(t.Stats,n)}:t.Progress!=null?{Progress:await nue(t.Progress,n)}:t.Cont!=null?{Cont:await eue(t.Cont,n)}:t.End!=null?{End:await tue(t.End,n)}:{$unknown:e}),eue=async(e,n)=>{let t={},r=await ne(e.body,n);return Object.assign(t,lpe(r,n)),t},tue=async(e,n)=>{let t={},r=await ne(e.body,n);return Object.assign(t,Ppe(r,n)),t},nue=async(e,n)=>{let t={},r=await ne(e.body,n);return t.Details=Pfe(r,n),t},rue=async(e,n)=>{let t={};return t.Payload=e.body,t},oue=async(e,n)=>{let t={},r=await ne(e.body,n);return t.Details=Vfe(r,n),t},sue=(e,n)=>{let t=new f.XmlNode("AbortIncompleteMultipartUpload");if(e.DaysAfterInitiation!=null){let r=f.XmlNode.of("DaysAfterInitiation",String(e.DaysAfterInitiation)).withName("DaysAfterInitiation");t.addChildNode(r)}return t},zL=(e,n)=>{let t=new f.XmlNode("AccelerateConfiguration");if(e.Status!=null){let r=f.XmlNode.of("BucketAccelerateStatus",e.Status).withName("Status");t.addChildNode(r)}return t},h_=(e,n)=>{let t=new f.XmlNode("AccessControlPolicy");if(e.Grants!=null){let r=fj(e.Grants,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Owner!=null){let r=lme(e.Owner,n).withName("Owner");t.addChildNode(r)}return t},iue=(e,n)=>{let t=new f.XmlNode("AccessControlTranslation");if(e.Owner!=null){let r=f.XmlNode.of("OwnerOverride",e.Owner).withName("Owner");t.addChildNode(r)}return t},aue=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedHeader",t).withName("member")),cue=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedMethod",t).withName("member")),due=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("AllowedOrigin",t).withName("member")),lue=(e,n)=>{let t=new f.XmlNode("AnalyticsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Ds(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},GL=(e,n)=>{let t=new f.XmlNode("AnalyticsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("AnalyticsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=mue(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.StorageClassAnalysis!=null){let r=Fme(e.StorageClassAnalysis,n).withName("StorageClassAnalysis");t.addChildNode(r)}return t},uue=(e,n)=>{let t=new f.XmlNode("AnalyticsExportDestination");if(e.S3BucketDestination!=null){let r=pue(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},mue=(e,n)=>{let t=new f.XmlNode("AnalyticsFilter");return Tt.AnalyticsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Bs(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=lue(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},pue=(e,n)=>{let t=new f.XmlNode("AnalyticsS3BucketDestination");if(e.Format!=null){let r=f.XmlNode.of("AnalyticsS3ExportFileFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.BucketAccountId!=null){let r=f.XmlNode.of("AccountId",e.BucketAccountId).withName("BucketAccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},HL=(e,n)=>{let t=new f.XmlNode("BucketLifecycleConfiguration");return e.Rules!=null&&Que(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},$L=(e,n)=>{let t=new f.XmlNode("BucketLoggingStatus");if(e.LoggingEnabled!=null){let r=Jue(e.LoggingEnabled,n).withName("LoggingEnabled");t.addChildNode(r)}return t},KL=(e,n)=>{let t=new f.XmlNode("CompletedMultipartUpload");return e.Parts!=null&&_ue(e.Parts,n).map(o=>{o=o.withName("Part"),t.addChildNode(o)}),t},fue=(e,n)=>{let t=new f.XmlNode("CompletedPart");if(e.ETag!=null){let r=f.XmlNode.of("ETag",e.ETag).withName("ETag");t.addChildNode(r)}if(e.ChecksumCRC32!=null){let r=f.XmlNode.of("ChecksumCRC32",e.ChecksumCRC32).withName("ChecksumCRC32");t.addChildNode(r)}if(e.ChecksumCRC32C!=null){let r=f.XmlNode.of("ChecksumCRC32C",e.ChecksumCRC32C).withName("ChecksumCRC32C");t.addChildNode(r)}if(e.ChecksumSHA1!=null){let r=f.XmlNode.of("ChecksumSHA1",e.ChecksumSHA1).withName("ChecksumSHA1");t.addChildNode(r)}if(e.ChecksumSHA256!=null){let r=f.XmlNode.of("ChecksumSHA256",e.ChecksumSHA256).withName("ChecksumSHA256");t.addChildNode(r)}if(e.PartNumber!=null){let r=f.XmlNode.of("PartNumber",String(e.PartNumber)).withName("PartNumber");t.addChildNode(r)}return t},_ue=(e,n)=>e.filter(t=>t!=null).map(t=>fue(t,n).withName("member")),yue=(e,n)=>{let t=new f.XmlNode("Condition");if(e.HttpErrorCodeReturnedEquals!=null){let r=f.XmlNode.of("HttpErrorCodeReturnedEquals",e.HttpErrorCodeReturnedEquals).withName("HttpErrorCodeReturnedEquals");t.addChildNode(r)}if(e.KeyPrefixEquals!=null){let r=f.XmlNode.of("KeyPrefixEquals",e.KeyPrefixEquals).withName("KeyPrefixEquals");t.addChildNode(r)}return t},VL=(e,n)=>{let t=new f.XmlNode("CORSConfiguration");return e.CORSRules!=null&&hue(e.CORSRules,n).map(o=>{o=o.withName("CORSRule"),t.addChildNode(o)}),t},gue=(e,n)=>{let t=new f.XmlNode("CORSRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.AllowedHeaders!=null&&aue(e.AllowedHeaders,n).map(o=>{o=o.withName("AllowedHeader"),t.addChildNode(o)}),e.AllowedMethods!=null&&cue(e.AllowedMethods,n).map(o=>{o=o.withName("AllowedMethod"),t.addChildNode(o)}),e.AllowedOrigins!=null&&due(e.AllowedOrigins,n).map(o=>{o=o.withName("AllowedOrigin"),t.addChildNode(o)}),e.ExposeHeaders!=null&&Iue(e.ExposeHeaders,n).map(o=>{o=o.withName("ExposeHeader"),t.addChildNode(o)}),e.MaxAgeSeconds!=null){let r=f.XmlNode.of("MaxAgeSeconds",String(e.MaxAgeSeconds)).withName("MaxAgeSeconds");t.addChildNode(r)}return t},hue=(e,n)=>e.filter(t=>t!=null).map(t=>gue(t,n).withName("member")),XL=(e,n)=>{let t=new f.XmlNode("CreateBucketConfiguration");if(e.LocationConstraint!=null){let r=f.XmlNode.of("BucketLocationConstraint",e.LocationConstraint).withName("LocationConstraint");t.addChildNode(r)}return t},Cue=(e,n)=>{let t=new f.XmlNode("CSVInput");if(e.FileHeaderInfo!=null){let r=f.XmlNode.of("FileHeaderInfo",e.FileHeaderInfo).withName("FileHeaderInfo");t.addChildNode(r)}if(e.Comments!=null){let r=f.XmlNode.of("Comments",e.Comments).withName("Comments");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}if(e.AllowQuotedRecordDelimiter!=null){let r=f.XmlNode.of("AllowQuotedRecordDelimiter",String(e.AllowQuotedRecordDelimiter)).withName("AllowQuotedRecordDelimiter");t.addChildNode(r)}return t},Sue=(e,n)=>{let t=new f.XmlNode("CSVOutput");if(e.QuoteFields!=null){let r=f.XmlNode.of("QuoteFields",e.QuoteFields).withName("QuoteFields");t.addChildNode(r)}if(e.QuoteEscapeCharacter!=null){let r=f.XmlNode.of("QuoteEscapeCharacter",e.QuoteEscapeCharacter).withName("QuoteEscapeCharacter");t.addChildNode(r)}if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}if(e.FieldDelimiter!=null){let r=f.XmlNode.of("FieldDelimiter",e.FieldDelimiter).withName("FieldDelimiter");t.addChildNode(r)}if(e.QuoteCharacter!=null){let r=f.XmlNode.of("QuoteCharacter",e.QuoteCharacter).withName("QuoteCharacter");t.addChildNode(r)}return t},Eue=(e,n)=>{let t=new f.XmlNode("DefaultRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.Years!=null){let r=f.XmlNode.of("Years",String(e.Years)).withName("Years");t.addChildNode(r)}return t},WL=(e,n)=>{let t=new f.XmlNode("Delete");if(e.Objects!=null&&ame(e.Objects,n).map(o=>{o=o.withName("Object"),t.addChildNode(o)}),e.Quiet!=null){let r=f.XmlNode.of("Quiet",String(e.Quiet)).withName("Quiet");t.addChildNode(r)}return t},bue=(e,n)=>{let t=new f.XmlNode("DeleteMarkerReplication");if(e.Status!=null){let r=f.XmlNode.of("DeleteMarkerReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Pue=(e,n)=>{let t=new f.XmlNode("Destination");if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Account!=null){let r=f.XmlNode.of("AccountId",e.Account).withName("Account");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.AccessControlTranslation!=null){let r=iue(e.AccessControlTranslation,n).withName("AccessControlTranslation");t.addChildNode(r)}if(e.EncryptionConfiguration!=null){let r=xue(e.EncryptionConfiguration,n).withName("EncryptionConfiguration");t.addChildNode(r)}if(e.ReplicationTime!=null){let r=Pme(e.ReplicationTime,n).withName("ReplicationTime");t.addChildNode(r)}if(e.Metrics!=null){let r=eme(e.Metrics,n).withName("Metrics");t.addChildNode(r)}return t},vue=(e,n)=>{let t=new f.XmlNode("Encryption");if(e.EncryptionType!=null){let r=f.XmlNode.of("ServerSideEncryption",e.EncryptionType).withName("EncryptionType");t.addChildNode(r)}if(e.KMSKeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSKeyId).withName("KMSKeyId");t.addChildNode(r)}if(e.KMSContext!=null){let r=f.XmlNode.of("KMSContext",e.KMSContext).withName("KMSContext");t.addChildNode(r)}return t},xue=(e,n)=>{let t=new f.XmlNode("EncryptionConfiguration");if(e.ReplicaKmsKeyID!=null){let r=f.XmlNode.of("ReplicaKmsKeyID",e.ReplicaKmsKeyID).withName("ReplicaKmsKeyID");t.addChildNode(r)}return t},wue=(e,n)=>{let t=new f.XmlNode("ErrorDocument");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}return t},kue=(e,n)=>new f.XmlNode("EventBridgeConfiguration"),wE=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("Event",t).withName("member")),Aue=(e,n)=>{let t=new f.XmlNode("ExistingObjectReplication");if(e.Status!=null){let r=f.XmlNode.of("ExistingObjectReplicationStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Iue=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("ExposeHeader",t).withName("member")),Rue=(e,n)=>{let t=new f.XmlNode("FilterRule");if(e.Name!=null){let r=f.XmlNode.of("FilterRuleName",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("FilterRuleValue",e.Value).withName("Value");t.addChildNode(r)}return t},Nue=(e,n)=>e.filter(t=>t!=null).map(t=>Rue(t,n).withName("member")),Oue=(e,n)=>{let t=new f.XmlNode("GlacierJobParameters");if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}return t},Tue=(e,n)=>{let t=new f.XmlNode("Grant");if(e.Grantee!=null){let r=pj(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=f.XmlNode.of("Permission",e.Permission).withName("Permission");t.addChildNode(r)}return t},pj=(e,n)=>{let t=new f.XmlNode("Grantee");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.EmailAddress!=null){let r=f.XmlNode.of("EmailAddress",e.EmailAddress).withName("EmailAddress");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.URI!=null){let r=f.XmlNode.of("URI",e.URI).withName("URI");t.addChildNode(r)}return e.Type!=null&&t.addAttribute("xsi:type",e.Type),t},fj=(e,n)=>e.filter(t=>t!=null).map(t=>Tue(t,n).withName("Grant")),que=(e,n)=>{let t=new f.XmlNode("IndexDocument");if(e.Suffix!=null){let r=f.XmlNode.of("Suffix",e.Suffix).withName("Suffix");t.addChildNode(r)}return t},_j=(e,n)=>{let t=new f.XmlNode("InputSerialization");if(e.CSV!=null){let r=Cue(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.CompressionType!=null){let r=f.XmlNode.of("CompressionType",e.CompressionType).withName("CompressionType");t.addChildNode(r)}if(e.JSON!=null){let r=Gue(e.JSON,n).withName("JSON");t.addChildNode(r)}if(e.Parquet!=null){let r=pme(e.Parquet,n).withName("Parquet");t.addChildNode(r)}return t},Mue=(e,n)=>{let t=new f.XmlNode("IntelligentTieringAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Ds(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},YL=(e,n)=>{let t=new f.XmlNode("IntelligentTieringConfiguration");if(e.Id!=null){let r=f.XmlNode.of("IntelligentTieringId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=Bue(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("IntelligentTieringStatus",e.Status).withName("Status");t.addChildNode(r)}return e.Tierings!=null&&Gme(e.Tierings,n).map(o=>{o=o.withName("Tiering"),t.addChildNode(o)}),t},Bue=(e,n)=>{let t=new f.XmlNode("IntelligentTieringFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tag!=null){let r=Bs(e.Tag,n).withName("Tag");t.addChildNode(r)}if(e.And!=null){let r=Mue(e.And,n).withName("And");t.addChildNode(r)}return t},QL=(e,n)=>{let t=new f.XmlNode("InventoryConfiguration");if(e.Destination!=null){let r=Due(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.IsEnabled!=null){let r=f.XmlNode.of("IsEnabled",String(e.IsEnabled)).withName("IsEnabled");t.addChildNode(r)}if(e.Filter!=null){let r=Lue(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Id!=null){let r=f.XmlNode.of("InventoryId",e.Id).withName("Id");t.addChildNode(r)}if(e.IncludedObjectVersions!=null){let r=f.XmlNode.of("InventoryIncludedObjectVersions",e.IncludedObjectVersions).withName("IncludedObjectVersions");t.addChildNode(r)}if(e.OptionalFields!=null){let r=jue(e.OptionalFields,n),o=new f.XmlNode("OptionalFields");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Schedule!=null){let r=zue(e.Schedule,n).withName("Schedule");t.addChildNode(r)}return t},Due=(e,n)=>{let t=new f.XmlNode("InventoryDestination");if(e.S3BucketDestination!=null){let r=Uue(e.S3BucketDestination,n).withName("S3BucketDestination");t.addChildNode(r)}return t},Fue=(e,n)=>{let t=new f.XmlNode("InventoryEncryption");if(e.SSES3!=null){let r=Dme(e.SSES3,n).withName("SSE-S3");t.addChildNode(r)}if(e.SSEKMS!=null){let r=Mme(e.SSEKMS,n).withName("SSE-KMS");t.addChildNode(r)}return t},Lue=(e,n)=>{let t=new f.XmlNode("InventoryFilter");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return t},jue=(e,n)=>e.filter(t=>t!=null).map(t=>f.XmlNode.of("InventoryOptionalField",t).withName("Field")),Uue=(e,n)=>{let t=new f.XmlNode("InventoryS3BucketDestination");if(e.AccountId!=null){let r=f.XmlNode.of("AccountId",e.AccountId).withName("AccountId");t.addChildNode(r)}if(e.Bucket!=null){let r=f.XmlNode.of("BucketName",e.Bucket).withName("Bucket");t.addChildNode(r)}if(e.Format!=null){let r=f.XmlNode.of("InventoryFormat",e.Format).withName("Format");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=Fue(e.Encryption,n).withName("Encryption");t.addChildNode(r)}return t},zue=(e,n)=>{let t=new f.XmlNode("InventorySchedule");if(e.Frequency!=null){let r=f.XmlNode.of("InventoryFrequency",e.Frequency).withName("Frequency");t.addChildNode(r)}return t},Gue=(e,n)=>{let t=new f.XmlNode("JSONInput");if(e.Type!=null){let r=f.XmlNode.of("JSONType",e.Type).withName("Type");t.addChildNode(r)}return t},Hue=(e,n)=>{let t=new f.XmlNode("JSONOutput");if(e.RecordDelimiter!=null){let r=f.XmlNode.of("RecordDelimiter",e.RecordDelimiter).withName("RecordDelimiter");t.addChildNode(r)}return t},$ue=(e,n)=>{let t=new f.XmlNode("LambdaFunctionConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.LambdaFunctionArn!=null){let r=f.XmlNode.of("LambdaFunctionArn",e.LambdaFunctionArn).withName("CloudFunction");t.addChildNode(r)}if(e.Events!=null&&wE(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=kE(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},Kue=(e,n)=>e.filter(t=>t!=null).map(t=>$ue(t,n).withName("member")),Vue=(e,n)=>{let t=new f.XmlNode("LifecycleExpiration");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.ExpiredObjectDeleteMarker!=null){let r=f.XmlNode.of("ExpiredObjectDeleteMarker",String(e.ExpiredObjectDeleteMarker)).withName("ExpiredObjectDeleteMarker");t.addChildNode(r)}return t},Xue=(e,n)=>{let t=new f.XmlNode("LifecycleRule");if(e.Expiration!=null){let r=Vue(e.Expiration,n).withName("Expiration");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Yue(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ExpirationStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Transitions!=null&&Vme(e.Transitions,n).map(o=>{o=o.withName("Transition"),t.addChildNode(o)}),e.NoncurrentVersionTransitions!=null&&sme(e.NoncurrentVersionTransitions,n).map(o=>{o=o.withName("NoncurrentVersionTransition"),t.addChildNode(o)}),e.NoncurrentVersionExpiration!=null){let r=rme(e.NoncurrentVersionExpiration,n).withName("NoncurrentVersionExpiration");t.addChildNode(r)}if(e.AbortIncompleteMultipartUpload!=null){let r=sue(e.AbortIncompleteMultipartUpload,n).withName("AbortIncompleteMultipartUpload");t.addChildNode(r)}return t},Wue=(e,n)=>{let t=new f.XmlNode("LifecycleRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Ds(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.ObjectSizeGreaterThan!=null){let r=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(e.ObjectSizeGreaterThan)).withName("ObjectSizeGreaterThan");t.addChildNode(r)}if(e.ObjectSizeLessThan!=null){let r=f.XmlNode.of("ObjectSizeLessThanBytes",String(e.ObjectSizeLessThan)).withName("ObjectSizeLessThan");t.addChildNode(r)}return t},Yue=(e,n)=>{let t=new f.XmlNode("LifecycleRuleFilter");return Tt.LifecycleRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Bs(r,n).withName("Tag");t.addChildNode(o)},ObjectSizeGreaterThan:r=>{let o=f.XmlNode.of("ObjectSizeGreaterThanBytes",String(r)).withName("ObjectSizeGreaterThan");t.addChildNode(o)},ObjectSizeLessThan:r=>{let o=f.XmlNode.of("ObjectSizeLessThanBytes",String(r)).withName("ObjectSizeLessThan");t.addChildNode(o)},And:r=>{let o=Wue(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},Que=(e,n)=>e.filter(t=>t!=null).map(t=>Xue(t,n).withName("member")),Jue=(e,n)=>{let t=new f.XmlNode("LoggingEnabled");if(e.TargetBucket!=null){let r=f.XmlNode.of("TargetBucket",e.TargetBucket).withName("TargetBucket");t.addChildNode(r)}if(e.TargetGrants!=null){let r=Ume(e.TargetGrants,n),o=new f.XmlNode("TargetGrants");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.TargetPrefix!=null){let r=f.XmlNode.of("TargetPrefix",e.TargetPrefix).withName("TargetPrefix");t.addChildNode(r)}return t},Zue=(e,n)=>{let t=new f.XmlNode("MetadataEntry");if(e.Name!=null){let r=f.XmlNode.of("MetadataKey",e.Name).withName("Name");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("MetadataValue",e.Value).withName("Value");t.addChildNode(r)}return t},eme=(e,n)=>{let t=new f.XmlNode("Metrics");if(e.Status!=null){let r=f.XmlNode.of("MetricsStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.EventThreshold!=null){let r=gj(e.EventThreshold,n).withName("EventThreshold");t.addChildNode(r)}return t},tme=(e,n)=>{let t=new f.XmlNode("MetricsAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Tags!=null&&Ds(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),e.AccessPointArn!=null){let r=f.XmlNode.of("AccessPointArn",e.AccessPointArn).withName("AccessPointArn");t.addChildNode(r)}return t},JL=(e,n)=>{let t=new f.XmlNode("MetricsConfiguration");if(e.Id!=null){let r=f.XmlNode.of("MetricsId",e.Id).withName("Id");t.addChildNode(r)}if(e.Filter!=null){let r=nme(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},nme=(e,n)=>{let t=new f.XmlNode("MetricsFilter");return Tt.MetricsFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Bs(r,n).withName("Tag");t.addChildNode(o)},AccessPointArn:r=>{let o=f.XmlNode.of("AccessPointArn",r).withName("AccessPointArn");t.addChildNode(o)},And:r=>{let o=tme(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},rme=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionExpiration");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},ome=(e,n)=>{let t=new f.XmlNode("NoncurrentVersionTransition");if(e.NoncurrentDays!=null){let r=f.XmlNode.of("Days",String(e.NoncurrentDays)).withName("NoncurrentDays");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}if(e.NewerNoncurrentVersions!=null){let r=f.XmlNode.of("VersionCount",String(e.NewerNoncurrentVersions)).withName("NewerNoncurrentVersions");t.addChildNode(r)}return t},sme=(e,n)=>e.filter(t=>t!=null).map(t=>ome(t,n).withName("member")),ZL=(e,n)=>{let t=new f.XmlNode("NotificationConfiguration");if(e.TopicConfigurations!=null&&$me(e.TopicConfigurations,n).map(o=>{o=o.withName("TopicConfiguration"),t.addChildNode(o)}),e.QueueConfigurations!=null&&_me(e.QueueConfigurations,n).map(o=>{o=o.withName("QueueConfiguration"),t.addChildNode(o)}),e.LambdaFunctionConfigurations!=null&&Kue(e.LambdaFunctionConfigurations,n).map(o=>{o=o.withName("CloudFunctionConfiguration"),t.addChildNode(o)}),e.EventBridgeConfiguration!=null){let r=kue(e.EventBridgeConfiguration,n).withName("EventBridgeConfiguration");t.addChildNode(r)}return t},kE=(e,n)=>{let t=new f.XmlNode("NotificationConfigurationFilter");if(e.Key!=null){let r=kme(e.Key,n).withName("S3Key");t.addChildNode(r)}return t},ime=(e,n)=>{let t=new f.XmlNode("ObjectIdentifier");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.VersionId!=null){let r=f.XmlNode.of("ObjectVersionId",e.VersionId).withName("VersionId");t.addChildNode(r)}return t},ame=(e,n)=>e.filter(t=>t!=null).map(t=>ime(t,n).withName("member")),ej=(e,n)=>{let t=new f.XmlNode("ObjectLockConfiguration");if(e.ObjectLockEnabled!=null){let r=f.XmlNode.of("ObjectLockEnabled",e.ObjectLockEnabled).withName("ObjectLockEnabled");t.addChildNode(r)}if(e.Rule!=null){let r=cme(e.Rule,n).withName("Rule");t.addChildNode(r)}return t},tj=(e,n)=>{let t=new f.XmlNode("ObjectLockLegalHold");if(e.Status!=null){let r=f.XmlNode.of("ObjectLockLegalHoldStatus",e.Status).withName("Status");t.addChildNode(r)}return t},nj=(e,n)=>{let t=new f.XmlNode("ObjectLockRetention");if(e.Mode!=null){let r=f.XmlNode.of("ObjectLockRetentionMode",e.Mode).withName("Mode");t.addChildNode(r)}if(e.RetainUntilDate!=null){let r=f.XmlNode.of("Date",(e.RetainUntilDate.toISOString().split(".")[0]+"Z").toString()).withName("RetainUntilDate");t.addChildNode(r)}return t},cme=(e,n)=>{let t=new f.XmlNode("ObjectLockRule");if(e.DefaultRetention!=null){let r=Eue(e.DefaultRetention,n).withName("DefaultRetention");t.addChildNode(r)}return t},dme=(e,n)=>{let t=new f.XmlNode("OutputLocation");if(e.S3!=null){let r=Ame(e.S3,n).withName("S3");t.addChildNode(r)}return t},yj=(e,n)=>{let t=new f.XmlNode("OutputSerialization");if(e.CSV!=null){let r=Sue(e.CSV,n).withName("CSV");t.addChildNode(r)}if(e.JSON!=null){let r=Hue(e.JSON,n).withName("JSON");t.addChildNode(r)}return t},lme=(e,n)=>{let t=new f.XmlNode("Owner");if(e.DisplayName!=null){let r=f.XmlNode.of("DisplayName",e.DisplayName).withName("DisplayName");t.addChildNode(r)}if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}return t},rj=(e,n)=>{let t=new f.XmlNode("OwnershipControls");return e.Rules!=null&&mme(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},ume=(e,n)=>{let t=new f.XmlNode("OwnershipControlsRule");if(e.ObjectOwnership!=null){let r=f.XmlNode.of("ObjectOwnership",e.ObjectOwnership).withName("ObjectOwnership");t.addChildNode(r)}return t},mme=(e,n)=>e.filter(t=>t!=null).map(t=>ume(t,n).withName("member")),pme=(e,n)=>new f.XmlNode("ParquetInput"),oj=(e,n)=>{let t=new f.XmlNode("PublicAccessBlockConfiguration");if(e.BlockPublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicAcls)).withName("BlockPublicAcls");t.addChildNode(r)}if(e.IgnorePublicAcls!=null){let r=f.XmlNode.of("Setting",String(e.IgnorePublicAcls)).withName("IgnorePublicAcls");t.addChildNode(r)}if(e.BlockPublicPolicy!=null){let r=f.XmlNode.of("Setting",String(e.BlockPublicPolicy)).withName("BlockPublicPolicy");t.addChildNode(r)}if(e.RestrictPublicBuckets!=null){let r=f.XmlNode.of("Setting",String(e.RestrictPublicBuckets)).withName("RestrictPublicBuckets");t.addChildNode(r)}return t},fme=(e,n)=>{let t=new f.XmlNode("QueueConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.QueueArn!=null){let r=f.XmlNode.of("QueueArn",e.QueueArn).withName("Queue");t.addChildNode(r)}if(e.Events!=null&&wE(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=kE(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},_me=(e,n)=>e.filter(t=>t!=null).map(t=>fme(t,n).withName("member")),yme=(e,n)=>{let t=new f.XmlNode("Redirect");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.HttpRedirectCode!=null){let r=f.XmlNode.of("HttpRedirectCode",e.HttpRedirectCode).withName("HttpRedirectCode");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}if(e.ReplaceKeyPrefixWith!=null){let r=f.XmlNode.of("ReplaceKeyPrefixWith",e.ReplaceKeyPrefixWith).withName("ReplaceKeyPrefixWith");t.addChildNode(r)}if(e.ReplaceKeyWith!=null){let r=f.XmlNode.of("ReplaceKeyWith",e.ReplaceKeyWith).withName("ReplaceKeyWith");t.addChildNode(r)}return t},gme=(e,n)=>{let t=new f.XmlNode("RedirectAllRequestsTo");if(e.HostName!=null){let r=f.XmlNode.of("HostName",e.HostName).withName("HostName");t.addChildNode(r)}if(e.Protocol!=null){let r=f.XmlNode.of("Protocol",e.Protocol).withName("Protocol");t.addChildNode(r)}return t},hme=(e,n)=>{let t=new f.XmlNode("ReplicaModifications");if(e.Status!=null){let r=f.XmlNode.of("ReplicaModificationsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},sj=(e,n)=>{let t=new f.XmlNode("ReplicationConfiguration");if(e.Role!=null){let r=f.XmlNode.of("Role",e.Role).withName("Role");t.addChildNode(r)}return e.Rules!=null&&bme(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Cme=(e,n)=>{let t=new f.XmlNode("ReplicationRule");if(e.ID!=null){let r=f.XmlNode.of("ID",e.ID).withName("ID");t.addChildNode(r)}if(e.Priority!=null){let r=f.XmlNode.of("Priority",String(e.Priority)).withName("Priority");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Filter!=null){let r=Eme(e.Filter,n).withName("Filter");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("ReplicationRuleStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.SourceSelectionCriteria!=null){let r=qme(e.SourceSelectionCriteria,n).withName("SourceSelectionCriteria");t.addChildNode(r)}if(e.ExistingObjectReplication!=null){let r=Aue(e.ExistingObjectReplication,n).withName("ExistingObjectReplication");t.addChildNode(r)}if(e.Destination!=null){let r=Pue(e.Destination,n).withName("Destination");t.addChildNode(r)}if(e.DeleteMarkerReplication!=null){let r=bue(e.DeleteMarkerReplication,n).withName("DeleteMarkerReplication");t.addChildNode(r)}return t},Sme=(e,n)=>{let t=new f.XmlNode("ReplicationRuleAndOperator");if(e.Prefix!=null){let r=f.XmlNode.of("Prefix",e.Prefix).withName("Prefix");t.addChildNode(r)}return e.Tags!=null&&Ds(e.Tags,n).map(o=>{o=o.withName("Tag"),t.addChildNode(o)}),t},Eme=(e,n)=>{let t=new f.XmlNode("ReplicationRuleFilter");return Tt.ReplicationRuleFilter.visit(e,{Prefix:r=>{let o=f.XmlNode.of("Prefix",r).withName("Prefix");t.addChildNode(o)},Tag:r=>{let o=Bs(r,n).withName("Tag");t.addChildNode(o)},And:r=>{let o=Sme(r,n).withName("And");t.addChildNode(o)},_:(r,o)=>{if(!(o instanceof f.XmlNode||o instanceof f.XmlText))throw new Error("Unable to serialize unknown union members in XML.");t.addChildNode(new f.XmlNode(r).addChildNode(o))}}),t},bme=(e,n)=>e.filter(t=>t!=null).map(t=>Cme(t,n).withName("member")),Pme=(e,n)=>{let t=new f.XmlNode("ReplicationTime");if(e.Status!=null){let r=f.XmlNode.of("ReplicationTimeStatus",e.Status).withName("Status");t.addChildNode(r)}if(e.Time!=null){let r=gj(e.Time,n).withName("Time");t.addChildNode(r)}return t},gj=(e,n)=>{let t=new f.XmlNode("ReplicationTimeValue");if(e.Minutes!=null){let r=f.XmlNode.of("Minutes",String(e.Minutes)).withName("Minutes");t.addChildNode(r)}return t},ij=(e,n)=>{let t=new f.XmlNode("RequestPaymentConfiguration");if(e.Payer!=null){let r=f.XmlNode.of("Payer",e.Payer).withName("Payer");t.addChildNode(r)}return t},vme=(e,n)=>{let t=new f.XmlNode("RequestProgress");if(e.Enabled!=null){let r=f.XmlNode.of("EnableRequestProgress",String(e.Enabled)).withName("Enabled");t.addChildNode(r)}return t},aj=(e,n)=>{let t=new f.XmlNode("RestoreRequest");if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.GlacierJobParameters!=null){let r=Oue(e.GlacierJobParameters,n).withName("GlacierJobParameters");t.addChildNode(r)}if(e.Type!=null){let r=f.XmlNode.of("RestoreRequestType",e.Type).withName("Type");t.addChildNode(r)}if(e.Tier!=null){let r=f.XmlNode.of("Tier",e.Tier).withName("Tier");t.addChildNode(r)}if(e.Description!=null){let r=f.XmlNode.of("Description",e.Description).withName("Description");t.addChildNode(r)}if(e.SelectParameters!=null){let r=Rme(e.SelectParameters,n).withName("SelectParameters");t.addChildNode(r)}if(e.OutputLocation!=null){let r=dme(e.OutputLocation,n).withName("OutputLocation");t.addChildNode(r)}return t},xme=(e,n)=>{let t=new f.XmlNode("RoutingRule");if(e.Condition!=null){let r=yue(e.Condition,n).withName("Condition");t.addChildNode(r)}if(e.Redirect!=null){let r=yme(e.Redirect,n).withName("Redirect");t.addChildNode(r)}return t},wme=(e,n)=>e.filter(t=>t!=null).map(t=>xme(t,n).withName("RoutingRule")),kme=(e,n)=>{let t=new f.XmlNode("S3KeyFilter");return e.FilterRules!=null&&Nue(e.FilterRules,n).map(o=>{o=o.withName("FilterRule"),t.addChildNode(o)}),t},Ame=(e,n)=>{let t=new f.XmlNode("S3Location");if(e.BucketName!=null){let r=f.XmlNode.of("BucketName",e.BucketName).withName("BucketName");t.addChildNode(r)}if(e.Prefix!=null){let r=f.XmlNode.of("LocationPrefix",e.Prefix).withName("Prefix");t.addChildNode(r)}if(e.Encryption!=null){let r=vue(e.Encryption,n).withName("Encryption");t.addChildNode(r)}if(e.CannedACL!=null){let r=f.XmlNode.of("ObjectCannedACL",e.CannedACL).withName("CannedACL");t.addChildNode(r)}if(e.AccessControlList!=null){let r=fj(e.AccessControlList,n),o=new f.XmlNode("AccessControlList");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.Tagging!=null){let r=sd(e.Tagging,n).withName("Tagging");t.addChildNode(r)}if(e.UserMetadata!=null){let r=Xme(e.UserMetadata,n),o=new f.XmlNode("UserMetadata");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}if(e.StorageClass!=null){let r=f.XmlNode.of("StorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},Ime=(e,n)=>{let t=new f.XmlNode("ScanRange");if(e.Start!=null){let r=f.XmlNode.of("Start",String(e.Start)).withName("Start");t.addChildNode(r)}if(e.End!=null){let r=f.XmlNode.of("End",String(e.End)).withName("End");t.addChildNode(r)}return t},Rme=(e,n)=>{let t=new f.XmlNode("SelectParameters");if(e.InputSerialization!=null){let r=_j(e.InputSerialization,n).withName("InputSerialization");t.addChildNode(r)}if(e.ExpressionType!=null){let r=f.XmlNode.of("ExpressionType",e.ExpressionType).withName("ExpressionType");t.addChildNode(r)}if(e.Expression!=null){let r=f.XmlNode.of("Expression",e.Expression).withName("Expression");t.addChildNode(r)}if(e.OutputSerialization!=null){let r=yj(e.OutputSerialization,n).withName("OutputSerialization");t.addChildNode(r)}return t},Nme=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionByDefault");if(e.SSEAlgorithm!=null){let r=f.XmlNode.of("ServerSideEncryption",e.SSEAlgorithm).withName("SSEAlgorithm");t.addChildNode(r)}if(e.KMSMasterKeyID!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KMSMasterKeyID).withName("KMSMasterKeyID");t.addChildNode(r)}return t},cj=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionConfiguration");return e.Rules!=null&&Tme(e.Rules,n).map(o=>{o=o.withName("Rule"),t.addChildNode(o)}),t},Ome=(e,n)=>{let t=new f.XmlNode("ServerSideEncryptionRule");if(e.ApplyServerSideEncryptionByDefault!=null){let r=Nme(e.ApplyServerSideEncryptionByDefault,n).withName("ApplyServerSideEncryptionByDefault");t.addChildNode(r)}if(e.BucketKeyEnabled!=null){let r=f.XmlNode.of("BucketKeyEnabled",String(e.BucketKeyEnabled)).withName("BucketKeyEnabled");t.addChildNode(r)}return t},Tme=(e,n)=>e.filter(t=>t!=null).map(t=>Ome(t,n).withName("member")),qme=(e,n)=>{let t=new f.XmlNode("SourceSelectionCriteria");if(e.SseKmsEncryptedObjects!=null){let r=Bme(e.SseKmsEncryptedObjects,n).withName("SseKmsEncryptedObjects");t.addChildNode(r)}if(e.ReplicaModifications!=null){let r=hme(e.ReplicaModifications,n).withName("ReplicaModifications");t.addChildNode(r)}return t},Mme=(e,n)=>{let t=new f.XmlNode("SSE-KMS");if(e.KeyId!=null){let r=f.XmlNode.of("SSEKMSKeyId",e.KeyId).withName("KeyId");t.addChildNode(r)}return t},Bme=(e,n)=>{let t=new f.XmlNode("SseKmsEncryptedObjects");if(e.Status!=null){let r=f.XmlNode.of("SseKmsEncryptedObjectsStatus",e.Status).withName("Status");t.addChildNode(r)}return t},Dme=(e,n)=>new f.XmlNode("SSE-S3"),Fme=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysis");if(e.DataExport!=null){let r=Lme(e.DataExport,n).withName("DataExport");t.addChildNode(r)}return t},Lme=(e,n)=>{let t=new f.XmlNode("StorageClassAnalysisDataExport");if(e.OutputSchemaVersion!=null){let r=f.XmlNode.of("StorageClassAnalysisSchemaVersion",e.OutputSchemaVersion).withName("OutputSchemaVersion");t.addChildNode(r)}if(e.Destination!=null){let r=uue(e.Destination,n).withName("Destination");t.addChildNode(r)}return t},Bs=(e,n)=>{let t=new f.XmlNode("Tag");if(e.Key!=null){let r=f.XmlNode.of("ObjectKey",e.Key).withName("Key");t.addChildNode(r)}if(e.Value!=null){let r=f.XmlNode.of("Value",e.Value).withName("Value");t.addChildNode(r)}return t},sd=(e,n)=>{let t=new f.XmlNode("Tagging");if(e.TagSet!=null){let r=Ds(e.TagSet,n),o=new f.XmlNode("TagSet");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},Ds=(e,n)=>e.filter(t=>t!=null).map(t=>Bs(t,n).withName("Tag")),jme=(e,n)=>{let t=new f.XmlNode("TargetGrant");if(e.Grantee!=null){let r=pj(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=f.XmlNode.of("BucketLogsPermission",e.Permission).withName("Permission");t.addChildNode(r)}return t},Ume=(e,n)=>e.filter(t=>t!=null).map(t=>jme(t,n).withName("Grant")),zme=(e,n)=>{let t=new f.XmlNode("Tiering");if(e.Days!=null){let r=f.XmlNode.of("IntelligentTieringDays",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.AccessTier!=null){let r=f.XmlNode.of("IntelligentTieringAccessTier",e.AccessTier).withName("AccessTier");t.addChildNode(r)}return t},Gme=(e,n)=>e.filter(t=>t!=null).map(t=>zme(t,n).withName("member")),Hme=(e,n)=>{let t=new f.XmlNode("TopicConfiguration");if(e.Id!=null){let r=f.XmlNode.of("NotificationId",e.Id).withName("Id");t.addChildNode(r)}if(e.TopicArn!=null){let r=f.XmlNode.of("TopicArn",e.TopicArn).withName("Topic");t.addChildNode(r)}if(e.Events!=null&&wE(e.Events,n).map(o=>{o=o.withName("Event"),t.addChildNode(o)}),e.Filter!=null){let r=kE(e.Filter,n).withName("Filter");t.addChildNode(r)}return t},$me=(e,n)=>e.filter(t=>t!=null).map(t=>Hme(t,n).withName("member")),Kme=(e,n)=>{let t=new f.XmlNode("Transition");if(e.Date!=null){let r=f.XmlNode.of("Date",(e.Date.toISOString().split(".")[0]+"Z").toString()).withName("Date");t.addChildNode(r)}if(e.Days!=null){let r=f.XmlNode.of("Days",String(e.Days)).withName("Days");t.addChildNode(r)}if(e.StorageClass!=null){let r=f.XmlNode.of("TransitionStorageClass",e.StorageClass).withName("StorageClass");t.addChildNode(r)}return t},Vme=(e,n)=>e.filter(t=>t!=null).map(t=>Kme(t,n).withName("member")),Xme=(e,n)=>e.filter(t=>t!=null).map(t=>Zue(t,n).withName("MetadataEntry")),dj=(e,n)=>{let t=new f.XmlNode("VersioningConfiguration");if(e.MFADelete!=null){let r=f.XmlNode.of("MFADelete",e.MFADelete).withName("MfaDelete");t.addChildNode(r)}if(e.Status!=null){let r=f.XmlNode.of("BucketVersioningStatus",e.Status).withName("Status");t.addChildNode(r)}return t},lj=(e,n)=>{let t=new f.XmlNode("WebsiteConfiguration");if(e.ErrorDocument!=null){let r=wue(e.ErrorDocument,n).withName("ErrorDocument");t.addChildNode(r)}if(e.IndexDocument!=null){let r=que(e.IndexDocument,n).withName("IndexDocument");t.addChildNode(r)}if(e.RedirectAllRequestsTo!=null){let r=gme(e.RedirectAllRequestsTo,n).withName("RedirectAllRequestsTo");t.addChildNode(r)}if(e.RoutingRules!=null){let r=wme(e.RoutingRules,n),o=new f.XmlNode("RoutingRules");r.map(s=>{o.addChildNode(s)}),t.addChildNode(o)}return t},Wme=(e,n)=>{let t={};return e.DaysAfterInitiation!==void 0&&(t.DaysAfterInitiation=(0,d.strictParseInt32)(e.DaysAfterInitiation)),t},Yme=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=(0,d.expectString)(e.Owner)),t},Qme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Jme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Zme=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),epe=(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=po((0,d.getArrayIfSingleItem)(e.Tag),n)),t},hj=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=rpe((0,d.expectUnion)(e.Filter),n)),e.StorageClassAnalysis!==void 0&&(t.StorageClassAnalysis=Xfe(e.StorageClassAnalysis,n)),t},tpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>hj(t,n)),npe=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=ope(e.S3BucketDestination,n)),t},rpe=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Fs(e.Tag,n)}:e.And!==void 0?{And:epe(e.And,n)}:{$unknown:Object.entries(e)[0]},ope=(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},spe=(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},ipe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>spe(t,n)),ape=(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},Cj=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),cpe=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},S_=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>cpe(t,n)),dpe=(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},lpe=(e,n)=>({}),upe=(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},mpe=(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},ppe=(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=Qme((0,d.getArrayIfSingleItem)(e.AllowedHeader),n)),e.AllowedMethod===""?t.AllowedMethods=[]:e.AllowedMethod!==void 0&&(t.AllowedMethods=Jme((0,d.getArrayIfSingleItem)(e.AllowedMethod),n)),e.AllowedOrigin===""?t.AllowedOrigins=[]:e.AllowedOrigin!==void 0&&(t.AllowedOrigins=Zme((0,d.getArrayIfSingleItem)(e.AllowedOrigin),n)),e.ExposeHeader===""?t.ExposeHeaders=[]:e.ExposeHeader!==void 0&&(t.ExposeHeaders=Ipe((0,d.getArrayIfSingleItem)(e.ExposeHeader),n)),e.MaxAgeSeconds!==void 0&&(t.MaxAgeSeconds=(0,d.strictParseInt32)(e.MaxAgeSeconds)),t},fpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ppe(t,n)),_pe=(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},ype=(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},gpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ype(t,n)),hpe=(e,n)=>{let t={};return e.Owner!==void 0&&(t.Owner=Br(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},Cpe=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Spe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>hpe(t,n)),Epe=(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=Yme(e.AccessControlTranslation,n)),e.EncryptionConfiguration!==void 0&&(t.EncryptionConfiguration=bpe(e.EncryptionConfiguration,n)),e.ReplicationTime!==void 0&&(t.ReplicationTime=Mfe(e.ReplicationTime,n)),e.Metrics!==void 0&&(t.Metrics=Zpe(e.Metrics,n)),t},bpe=(e,n)=>{let t={};return e.ReplicaKmsKeyID!==void 0&&(t.ReplicaKmsKeyID=(0,d.expectString)(e.ReplicaKmsKeyID)),t},Ppe=(e,n)=>({}),vpe=(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},xpe=(e,n)=>{let t={};return e.Key!==void 0&&(t.Key=(0,d.expectString)(e.Key)),t},wpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vpe(t,n)),kpe=(e,n)=>({}),AE=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Ape=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Ipe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Rpe=(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},Npe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Rpe(t,n)),Ope=(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=Efe((0,d.getArrayIfSingleItem)(e.Part),n)),t},Tpe=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Sj(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Sj=(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},Ej=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Tpe(t,n)),qpe=(e,n)=>{let t={};return e.Suffix!==void 0&&(t.Suffix=(0,d.expectString)(e.Suffix)),t},bj=(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},Mpe=(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=po((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Pj=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter!==void 0&&(t.Filter=Dpe(e.Filter,n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Tiering===""?t.Tierings=[]:e.Tiering!==void 0&&(t.Tierings=Zfe((0,d.getArrayIfSingleItem)(e.Tiering),n)),t},Bpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Pj(t,n)),Dpe=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),e.Tag!==void 0&&(t.Tag=Fs(e.Tag,n)),e.And!==void 0&&(t.And=Mpe(e.And,n)),t},vj=(e,n)=>{let t={};return e.Destination!==void 0&&(t.Destination=Lpe(e.Destination,n)),e.IsEnabled!==void 0&&(t.IsEnabled=(0,d.parseBoolean)(e.IsEnabled)),e.Filter!==void 0&&(t.Filter=Upe(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=zpe((0,d.getArrayIfSingleItem)(e.OptionalFields.Field),n)),e.Schedule!==void 0&&(t.Schedule=Hpe(e.Schedule,n)),t},Fpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>vj(t,n)),Lpe=(e,n)=>{let t={};return e.S3BucketDestination!==void 0&&(t.S3BucketDestination=Gpe(e.S3BucketDestination,n)),t},jpe=(e,n)=>{let t={};return e["SSE-S3"]!==void 0&&(t.SSES3=Kfe(e["SSE-S3"],n)),e["SSE-KMS"]!==void 0&&(t.SSEKMS=Hfe(e["SSE-KMS"],n)),t},Upe=(e,n)=>{let t={};return e.Prefix!==void 0&&(t.Prefix=(0,d.expectString)(e.Prefix)),t},zpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>(0,d.expectString)(t)),Gpe=(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=jpe(e.Encryption,n)),t},Hpe=(e,n)=>{let t={};return e.Frequency!==void 0&&(t.Frequency=(0,d.expectString)(e.Frequency)),t},$pe=(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=AE((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=IE(e.Filter,n)),t},Kpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>$pe(t,n)),Vpe=(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},Xpe=(e,n)=>{let t={};return e.Expiration!==void 0&&(t.Expiration=Vpe(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=Ype((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=r_e((0,d.getArrayIfSingleItem)(e.Transition),n)),e.NoncurrentVersionTransition===""?t.NoncurrentVersionTransitions=[]:e.NoncurrentVersionTransition!==void 0&&(t.NoncurrentVersionTransitions=afe((0,d.getArrayIfSingleItem)(e.NoncurrentVersionTransition),n)),e.NoncurrentVersionExpiration!==void 0&&(t.NoncurrentVersionExpiration=sfe(e.NoncurrentVersionExpiration,n)),e.AbortIncompleteMultipartUpload!==void 0&&(t.AbortIncompleteMultipartUpload=Wme(e.AbortIncompleteMultipartUpload,n)),t},Wpe=(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=po((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},Ype=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Fs(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:Wpe(e.And,n)}:{$unknown:Object.entries(e)[0]},Qpe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Xpe(t,n)),Jpe=(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=Qfe((0,d.getArrayIfSingleItem)(e.TargetGrants.Grant),n)),e.TargetPrefix!==void 0&&(t.TargetPrefix=(0,d.expectString)(e.TargetPrefix)),t},Zpe=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.EventThreshold!==void 0&&(t.EventThreshold=kj(e.EventThreshold,n)),t},efe=(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=po((0,d.getArrayIfSingleItem)(e.Tag),n)),e.AccessPointArn!==void 0&&(t.AccessPointArn=(0,d.expectString)(e.AccessPointArn)),t},xj=(e,n)=>{let t={};return e.Id!==void 0&&(t.Id=(0,d.expectString)(e.Id)),e.Filter===""||e.Filter!==void 0&&(t.Filter=nfe((0,d.expectUnion)(e.Filter),n)),t},tfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>xj(t,n)),nfe=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Fs(e.Tag,n)}:e.AccessPointArn!==void 0?{AccessPointArn:(0,d.expectString)(e.AccessPointArn)}:e.And!==void 0?{And:efe(e.And,n)}:{$unknown:Object.entries(e)[0]},rfe=(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=Br(e.Owner,n)),e.Initiator!==void 0&&(t.Initiator=bj(e.Initiator,n)),e.ChecksumAlgorithm!==void 0&&(t.ChecksumAlgorithm=(0,d.expectString)(e.ChecksumAlgorithm)),t},ofe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>rfe(t,n)),sfe=(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},ife=(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},afe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ife(t,n)),IE=(e,n)=>{let t={};return e.S3Key!==void 0&&(t.Key=Ffe(e.S3Key,n)),t},cfe=(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=Cj((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=Br(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=Aj(e.RestoreStatus,n)),t},wj=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>cfe(t,n)),dfe=(e,n)=>{let t={};return e.ObjectLockEnabled!==void 0&&(t.ObjectLockEnabled=(0,d.expectString)(e.ObjectLockEnabled)),e.Rule!==void 0&&(t.Rule=mfe(e.Rule,n)),t},lfe=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},ufe=(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},mfe=(e,n)=>{let t={};return e.DefaultRetention!==void 0&&(t.DefaultRetention=_pe(e.DefaultRetention,n)),t},pfe=(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},ffe=(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=Cj((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=Br(e.Owner,n)),e.RestoreStatus!==void 0&&(t.RestoreStatus=Aj(e.RestoreStatus,n)),t},_fe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>ffe(t,n)),Br=(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},yfe=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=hfe((0,d.getArrayIfSingleItem)(e.Rule),n)),t},gfe=(e,n)=>{let t={};return e.ObjectOwnership!==void 0&&(t.ObjectOwnership=(0,d.expectString)(e.ObjectOwnership)),t},hfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>gfe(t,n)),Cfe=(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},Sfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Cfe(t,n)),Efe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>pfe(t,n)),bfe=(e,n)=>{let t={};return e.IsPublic!==void 0&&(t.IsPublic=(0,d.parseBoolean)(e.IsPublic)),t},Pfe=(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},vfe=(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},xfe=(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=AE((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=IE(e.Filter,n)),t},wfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>xfe(t,n)),kfe=(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},Afe=(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},Ife=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Rfe=(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=qfe((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Nfe=(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=Tfe((0,d.expectUnion)(e.Filter),n)),e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.SourceSelectionCriteria!==void 0&&(t.SourceSelectionCriteria=Gfe(e.SourceSelectionCriteria,n)),e.ExistingObjectReplication!==void 0&&(t.ExistingObjectReplication=Ape(e.ExistingObjectReplication,n)),e.Destination!==void 0&&(t.Destination=Epe(e.Destination,n)),e.DeleteMarkerReplication!==void 0&&(t.DeleteMarkerReplication=Cpe(e.DeleteMarkerReplication,n)),t},Ofe=(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=po((0,d.getArrayIfSingleItem)(e.Tag),n)),t},Tfe=(e,n)=>e.Prefix!==void 0?{Prefix:(0,d.expectString)(e.Prefix)}:e.Tag!==void 0?{Tag:Fs(e.Tag,n)}:e.And!==void 0?{And:Ofe(e.And,n)}:{$unknown:Object.entries(e)[0]},qfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Nfe(t,n)),Mfe=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),e.Time!==void 0&&(t.Time=kj(e.Time,n)),t},kj=(e,n)=>{let t={};return e.Minutes!==void 0&&(t.Minutes=(0,d.strictParseInt32)(e.Minutes)),t},Aj=(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},Bfe=(e,n)=>{let t={};return e.Condition!==void 0&&(t.Condition=dpe(e.Condition,n)),e.Redirect!==void 0&&(t.Redirect=kfe(e.Redirect,n)),t},Dfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Bfe(t,n)),Ffe=(e,n)=>{let t={};return e.FilterRule===""?t.FilterRules=[]:e.FilterRule!==void 0&&(t.FilterRules=Npe((0,d.getArrayIfSingleItem)(e.FilterRule),n)),t},Lfe=(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},jfe=(e,n)=>{let t={};return e.Rule===""?t.Rules=[]:e.Rule!==void 0&&(t.Rules=zfe((0,d.getArrayIfSingleItem)(e.Rule),n)),t},Ufe=(e,n)=>{let t={};return e.ApplyServerSideEncryptionByDefault!==void 0&&(t.ApplyServerSideEncryptionByDefault=Lfe(e.ApplyServerSideEncryptionByDefault,n)),e.BucketKeyEnabled!==void 0&&(t.BucketKeyEnabled=(0,d.parseBoolean)(e.BucketKeyEnabled)),t},zfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Ufe(t,n)),Gfe=(e,n)=>{let t={};return e.SseKmsEncryptedObjects!==void 0&&(t.SseKmsEncryptedObjects=$fe(e.SseKmsEncryptedObjects,n)),e.ReplicaModifications!==void 0&&(t.ReplicaModifications=Ife(e.ReplicaModifications,n)),t},Hfe=(e,n)=>{let t={};return e.KeyId!==void 0&&(t.KeyId=(0,d.expectString)(e.KeyId)),t},$fe=(e,n)=>{let t={};return e.Status!==void 0&&(t.Status=(0,d.expectString)(e.Status)),t},Kfe=(e,n)=>({}),Vfe=(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},Xfe=(e,n)=>{let t={};return e.DataExport!==void 0&&(t.DataExport=Wfe(e.DataExport,n)),t},Wfe=(e,n)=>{let t={};return e.OutputSchemaVersion!==void 0&&(t.OutputSchemaVersion=(0,d.expectString)(e.OutputSchemaVersion)),e.Destination!==void 0&&(t.Destination=npe(e.Destination,n)),t},Fs=(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},po=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Fs(t,n)),Yfe=(e,n)=>{let t={};return e.Grantee!==void 0&&(t.Grantee=Sj(e.Grantee,n)),e.Permission!==void 0&&(t.Permission=(0,d.expectString)(e.Permission)),t},Qfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Yfe(t,n)),Jfe=(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},Zfe=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>Jfe(t,n)),e_e=(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=AE((0,d.getArrayIfSingleItem)(e.Event),n)),e.Filter!==void 0&&(t.Filter=IE(e.Filter,n)),t},t_e=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>e_e(t,n)),n_e=(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},r_e=(e,n)=>(e||[]).filter(t=>t!=null).map(t=>n_e(t,n)),N=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"]}),Ij=(e,n)=>(0,d.collectBody)(e,n).then(t=>n.utf8Encoder(t)),P=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ne=(e,n)=>Ij(e,n).then(t=>{if(t.length){let r=new Mse.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",` diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/.yarn-integrity b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/.yarn-integrity similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/.yarn-integrity rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/.yarn-integrity diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/index.d.ts similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/index.d.ts rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/index.d.ts diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/index.js similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/index.js rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/index.js diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/license b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/license similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/license rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/license diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/readme.md b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/readme.md similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/node_modules/delay/readme.md rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/node_modules/delay/readme.md diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/package.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/package.json similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/package.json rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/package.json diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/yarn.lock b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/yarn.lock similarity index 100% rename from packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e/yarn.lock rename to packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664/yarn.lock diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json index 8e08dba880374..cc6b4932898e0 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.assets.json @@ -1,20 +1,20 @@ { - "version": "35.0.0", + "version": "36.0.0", "files": { - "3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e": { + "eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664": { "source": { - "path": "asset.3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e", + "path": "asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664", "packaging": "zip" }, "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e.zip", + "objectKey": "eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664.zip", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } }, - "3b9e1ec67f265577a80ab68b3d19fe304325b8341b2966fb372a3d52c5f57d4b": { + "43c4132da001603d4d9f708351bdb29917baaab8ab1d52e265f4041655b035b3": { "source": { "path": "cdk-integ-lambda-nodejs-latest.template.json", "packaging": "file" @@ -22,7 +22,7 @@ "destinations": { "current_account-current_region": { "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", - "objectKey": "3b9e1ec67f265577a80ab68b3d19fe304325b8341b2966fb372a3d52c5f57d4b.json", + "objectKey": "43c4132da001603d4d9f708351bdb29917baaab8ab1d52e265f4041655b035b3.json", "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" } } diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json index 67d3b66910130..fae0e303b954d 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk-integ-lambda-nodejs-latest.template.json @@ -38,7 +38,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e.zip" + "S3Key": "eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664.zip" }, "Environment": { "Variables": { diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk.out index c5cb2e5de6344..1f0068d32659a 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk.out +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/cdk.out @@ -1 +1 @@ -{"version":"35.0.0"} \ No newline at end of file +{"version":"36.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/integ.json index f9d4e408da6ce..ff7e45632041e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/integ.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "35.0.0", + "version": "36.0.0", "testCases": { "LambdaNodeJsLatestInteg/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json index bb9f0ef94f6fb..d39c25d29df23 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "35.0.0", + "version": "36.0.0", "artifacts": { "cdk-integ-lambda-nodejs-latest.assets": { "type": "cdk:asset-manifest", @@ -18,7 +18,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}/3b9e1ec67f265577a80ab68b3d19fe304325b8341b2966fb372a3d52c5f57d4b.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/43c4132da001603d4d9f708351bdb29917baaab8ab1d52e265f4041655b035b3.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ @@ -84,7 +84,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}/994f8c7abe2b3f6c8d3781397e390db9d07e0616825c3e71bccb9375e210fa3a.json", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8deae8f4c1da113072818007e731a323c8dd62c3021d881a84352b2bf0901604.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json index d4daa859a8a8c..23a5bf8e37e8e 100644 --- a/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot/tree.json @@ -105,7 +105,7 @@ "s3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "s3Key": "3c88aacdb6b48767fb52367e6dc0fe01602cfdc730dee4c4e3bebe0cec85ff9e.zip" + "s3Key": "eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664.zip" }, "environment": { "variables": { diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts index 804c1577b187a..46d6f79a06704 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/emr-create-cluster.ts @@ -582,6 +582,8 @@ export namespace EmrCreateCluster { /** * The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD. * + * Cannot specify both `bidPrice` and `bidPriceAsPercentageOfOnDemandPrice`. + * * @default - None */ readonly bidPrice?: string; @@ -589,6 +591,8 @@ export namespace EmrCreateCluster { /** * The bid price, as a percentage of On-Demand price. * + * Cannot specify both `bidPrice` and `bidPriceAsPercentageOfOnDemandPrice`. + * * @default - None */ readonly bidPriceAsPercentageOfOnDemandPrice?: number; @@ -727,6 +731,8 @@ export namespace EmrCreateCluster { /** * The spot provisioning timeout period in minutes. + * + * The value must be between 5 and 1440. */ readonly timeoutDurationMinutes: number; } @@ -795,6 +801,12 @@ export namespace EmrCreateCluster { /** * The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. * + * If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using `targetSpotCapacity`. + * + * At least one of `targetSpotCapacity` and `targetOnDemandCapacity` should be greater than 0. + * For a master instance fleet, only one of `targetSpotCapacity` and `targetOnDemandCapacity` can be specified, and its value + * must be 1. + * * @default No targetOnDemandCapacity */ readonly targetOnDemandCapacity?: number; @@ -802,7 +814,13 @@ export namespace EmrCreateCluster { /** * The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision * - * @default No targetSpotCapacity + * If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet using `targetOnDemandCapacity`. + * + * At least one of `targetSpotCapacity` and `targetOnDemandCapacity` should be greater than 0. + * For a master instance fleet, only one of `targetSpotCapacity` and `targetOnDemandCapacity` can be specified, and its value + * must be 1. + * + * @default No targetSpotCapacity */ readonly targetSpotCapacity?: number; } diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/private/cluster-utils.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/private/cluster-utils.ts index ea43357b433a5..4906055e0389b 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/private/cluster-utils.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/emr/private/cluster-utils.ts @@ -105,6 +105,10 @@ export function EbsConfigurationPropertyToJson(property: EmrCreateCluster.EbsCon * @param property */ export function InstanceTypeConfigPropertyToJson(property: EmrCreateCluster.InstanceTypeConfigProperty) { + if (property.bidPrice && property.bidPriceAsPercentageOfOnDemandPrice) { + throw new Error('Cannot specify both bidPrice and bidPriceAsPercentageOfOnDemandPrice'); + } + return { BidPrice: cdk.stringToCloudFormation(property.bidPrice), BidPriceAsPercentageOfOnDemandPrice: cdk.numberToCloudFormation(property.bidPriceAsPercentageOfOnDemandPrice), @@ -146,6 +150,9 @@ function SpotProvisioningSpecificationPropertyToJson(property?: EmrCreateCluster if (!property) { return undefined; } + if (!cdk.Token.isUnresolved(property.timeoutDurationMinutes) && (property.timeoutDurationMinutes < 5 || property.timeoutDurationMinutes > 1440)) { + throw new Error(`timeoutDurationMinutes must be between 5 and 1440, got ${property.timeoutDurationMinutes}`); + } return { AllocationStrategy: cdk.stringToCloudFormation(property.allocationStrategy), BlockDurationMinutes: cdk.numberToCloudFormation(property.blockDurationMinutes), @@ -160,6 +167,20 @@ function SpotProvisioningSpecificationPropertyToJson(property?: EmrCreateCluster * @param property */ export function InstanceFleetConfigPropertyToJson(property: EmrCreateCluster.InstanceFleetConfigProperty) { + if (!property.targetSpotCapacity && !property.targetOnDemandCapacity) { + throw new Error('At least one of targetSpotCapacity and targetOnDemandCapacity should be greater than 0'); + } + if (property.instanceFleetType === EmrCreateCluster.InstanceRoleType.MASTER) { + if (property.targetSpotCapacity && property.targetOnDemandCapacity) { + throw new Error('For a master instance fleet, only one of targetSpotCapacity and targetOnDemandCapacity can be specified'); + } + if (property.targetSpotCapacity && property.targetSpotCapacity !== 1) { + throw new Error(`For a master instance fleet, targetSpotCapacity cannot be a number other than 1, got ${property.targetSpotCapacity}`); + } + if (property.targetOnDemandCapacity && property.targetOnDemandCapacity !== 1) { + throw new Error(`For a master instance fleet, targetOnDemandCapacity cannot be a number other than 1, got ${property.targetOnDemandCapacity}`); + } + } return { InstanceFleetType: cdk.stringToCloudFormation(property.instanceFleetType?.valueOf()), InstanceTypeConfigs: cdk.listMapper(InstanceTypeConfigPropertyToJson)(property.instanceTypeConfigs), diff --git a/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/emr/emr-create-cluster.test.ts b/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/emr/emr-create-cluster.test.ts index 8274f08232386..69f9044056ca0 100644 --- a/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/emr/emr-create-cluster.test.ts +++ b/packages/aws-cdk-lib/aws-stepfunctions-tasks/test/emr/emr-create-cluster.test.ts @@ -896,7 +896,6 @@ test.each([ instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, instanceTypeConfigs: [{ bidPrice: '1', - bidPriceAsPercentageOfOnDemandPrice: 1, configurations: [{ classification: 'Classification', properties: { @@ -922,11 +921,10 @@ test.each([ allocationStrategy: strategy, blockDurationMinutes: 1, timeoutAction: EmrCreateCluster.SpotTimeoutAction.TERMINATE_CLUSTER, - timeoutDurationMinutes: 1, + timeoutDurationMinutes: 5, }, }, name: 'Main', - targetOnDemandCapacity: 1, targetSpotCapacity: 1, }], }, @@ -960,7 +958,6 @@ test.each([ InstanceFleetType: 'MASTER', InstanceTypeConfigs: [{ BidPrice: '1', - BidPriceAsPercentageOfOnDemandPrice: 1, Configurations: [{ Classification: 'Classification', Properties: { @@ -986,11 +983,10 @@ test.each([ AllocationStrategy: expected, BlockDurationMinutes: 1, TimeoutAction: 'TERMINATE_CLUSTER', - TimeoutDurationMinutes: 1, + TimeoutDurationMinutes: 5, }, }, Name: 'Main', - TargetOnDemandCapacity: 1, TargetSpotCapacity: 1, }], }, @@ -1013,7 +1009,6 @@ test('Create Cluster with InstanceFleet for Spot instances', () => { instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, instanceTypeConfigs: [{ bidPrice: '1', - bidPriceAsPercentageOfOnDemandPrice: 1, configurations: [{ classification: 'Classification', properties: { @@ -1038,11 +1033,10 @@ test('Create Cluster with InstanceFleet for Spot instances', () => { spotSpecification: { blockDurationMinutes: 1, timeoutAction: EmrCreateCluster.SpotTimeoutAction.TERMINATE_CLUSTER, - timeoutDurationMinutes: 1, + timeoutDurationMinutes: 5, }, }, name: 'Main', - targetOnDemandCapacity: 1, targetSpotCapacity: 1, }], }, @@ -1076,7 +1070,6 @@ test('Create Cluster with InstanceFleet for Spot instances', () => { InstanceFleetType: 'MASTER', InstanceTypeConfigs: [{ BidPrice: '1', - BidPriceAsPercentageOfOnDemandPrice: 1, Configurations: [{ Classification: 'Classification', Properties: { @@ -1101,11 +1094,10 @@ test('Create Cluster with InstanceFleet for Spot instances', () => { SpotSpecification: { BlockDurationMinutes: 1, TimeoutAction: 'TERMINATE_CLUSTER', - TimeoutDurationMinutes: 1, + TimeoutDurationMinutes: 5, }, }, Name: 'Main', - TargetOnDemandCapacity: 1, TargetSpotCapacity: 1, }], }, @@ -1128,7 +1120,6 @@ test('Create Cluster with InstanceFleet for On-Demand instances', () => { instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, instanceTypeConfigs: [{ bidPrice: '1', - bidPriceAsPercentageOfOnDemandPrice: 1, configurations: [{ classification: 'Classification', properties: { @@ -1156,7 +1147,6 @@ test('Create Cluster with InstanceFleet for On-Demand instances', () => { }, name: 'Main', targetOnDemandCapacity: 1, - targetSpotCapacity: 1, }], }, clusterRole, @@ -1189,7 +1179,6 @@ test('Create Cluster with InstanceFleet for On-Demand instances', () => { InstanceFleetType: 'MASTER', InstanceTypeConfigs: [{ BidPrice: '1', - BidPriceAsPercentageOfOnDemandPrice: 1, Configurations: [{ Classification: 'Classification', Properties: { @@ -1217,7 +1206,6 @@ test('Create Cluster with InstanceFleet for On-Demand instances', () => { }, Name: 'Main', TargetOnDemandCapacity: 1, - TargetSpotCapacity: 1, }], }, VisibleToAllUsers: true, @@ -1231,6 +1219,177 @@ test('Create Cluster with InstanceFleet for On-Demand instances', () => { }); }); +test('Throws if timeoutDurationMinutes for Spot instances is less than 5', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + launchSpecifications: { + spotSpecification: { + timeoutAction: EmrCreateCluster.SpotTimeoutAction.TERMINATE_CLUSTER, + timeoutDurationMinutes: 4, + }, + }, + name: 'Main', + targetSpotCapacity: 1, + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/timeoutDurationMinutes must be between 5 and 1440, got 4/); +}); + +test('Throws if timeoutDurationMinutes for Spot instances is greater than 1440', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + launchSpecifications: { + spotSpecification: { + timeoutAction: EmrCreateCluster.SpotTimeoutAction.TERMINATE_CLUSTER, + timeoutDurationMinutes: 1441, + }, + }, + name: 'Main', + targetSpotCapacity: 1, + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/timeoutDurationMinutes must be between 5 and 1440, got 1441/); +}); + +test('Throws if both bidPrice and bidPriceAsPercentageOfOnDemandPrice are specified', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + instanceTypeConfigs: [{ + bidPrice: '1', + bidPriceAsPercentageOfOnDemandPrice: 1, + instanceType: 'm5.xlarge', + }], + name: 'Main', + targetSpotCapacity: 1, + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/Cannot specify both bidPrice and bidPriceAsPercentageOfOnDemandPrice/); +}); + +test('Throws if neither targetSpotCapacity nor targetOnDemandCapacity is specified', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + name: 'Main', + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/At least one of targetSpotCapacity and targetOnDemandCapacity should be greater than 0/); +}); + +test('Throws if both targetSpotCapacity and targetOnDemandCapacity are specified for a master instance fleet', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + name: 'Main', + targetSpotCapacity: 1, + targetOnDemandCapacity: 1, + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/For a master instance fleet, only one of targetSpotCapacity and targetOnDemandCapacity can be specified/); +}); + +test('Throws if a number other than 1 as targetSpotCapacity is specified for a master instance fleet', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + name: 'Main', + targetSpotCapacity: 2, + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/For a master instance fleet, targetSpotCapacity cannot be a number other than 1, got 2/); +}); + +test('Throws if a number other than 1 as targetOnDemandCapacity is specified for a master instance fleet', () => { + // GIVEN + const task = new EmrCreateCluster(stack, 'Task', { + instances: { + instanceFleets: [{ + instanceFleetType: EmrCreateCluster.InstanceRoleType.MASTER, + name: 'Main', + targetOnDemandCapacity: 2, + }], + }, + clusterRole, + name: 'Cluster', + serviceRole, + integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE, + }); + + // THEN + expect(() => { + task.toStateJson(); + }).toThrow(/For a master instance fleet, targetOnDemandCapacity cannot be a number other than 1, got 2/); +}); + test('Create Cluster with InstanceGroup', () => { // WHEN const task = new EmrCreateCluster(stack, 'Task', {