@stacksjs/dns 0.64.3 → 0.64.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  // @bun
2
- var vk=Object.create;var{getPrototypeOf:jk,defineProperty:RF,getOwnPropertyNames:dk}=Object;var Ok=Object.prototype.hasOwnProperty;var u=(r,f,s)=>{s=r!=null?vk(jk(r)):{};const w=f||!r||!r.__esModule?RF(s,"default",{value:r,enumerable:!0}):s;for(let h of dk(r))if(!Ok.call(w,h))RF(w,h,{get:()=>r[h],enumerable:!0});return w};var v=(r,f)=>()=>(f||r((f={exports:{}}).exports,f),f.exports);var Sf=(r,f)=>{for(var s in f)RF(r,s,{get:f[s],enumerable:!0,configurable:!0,set:(w)=>f[s]=()=>w})};var G=(r,f)=>()=>(r&&(f=r(r=0)),f);var Pf=(r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},Xf=(r)=>{return{httpHandler:r.httpHandler()}};var _C=()=>{};var Is=v((Vu,rL)=>{var{defineProperty:$E,getOwnPropertyDescriptor:ck,getOwnPropertyNames:bk}=Object,gk=Object.prototype.hasOwnProperty,EE=(r,f)=>$E(r,"name",{value:f,configurable:!0}),_k=(r,f)=>{for(var s in f)$E(r,s,{get:f[s],enumerable:!0})},xk=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of bk(f))if(!gk.call(r,h)&&h!==s)$E(r,h,{get:()=>f[h],enumerable:!(w=ck(f,h))||w.enumerable})}return r},ek=(r)=>xk($E({},"__esModule",{value:!0}),r),xC={};_k(xC,{AlgorithmId:()=>aC,EndpointURLScheme:()=>oC,FieldPosition:()=>pC,HttpApiKeyAuthLocation:()=>nC,HttpAuthLocation:()=>eC,IniSectionType:()=>uC,RequestHandlerProtocol:()=>tC,SMITHY_CONTEXT_KEY:()=>uk,getDefaultClientConfiguration:()=>ak,resolveDefaultRuntimeConfig:()=>pk});rL.exports=ek(xC);var eC=((r)=>{return r.HEADER="header",r.QUERY="query",r})(eC||{}),nC=((r)=>{return r.HEADER="header",r.QUERY="query",r})(nC||{}),oC=((r)=>{return r.HTTP="http",r.HTTPS="https",r})(oC||{}),aC=((r)=>{return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r})(aC||{}),nk=EE((r)=>{const f=[];if(r.sha256!==void 0)f.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256});if(r.md5!=null)f.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5});return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),ok=EE((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),ak=EE((r)=>{return{...nk(r)}},"getDefaultClientConfiguration"),pk=EE((r)=>{return{...ok(r)}},"resolveDefaultRuntimeConfig"),pC=((r)=>{return r[r.HEADER=0]="HEADER",r[r.TRAILER=1]="TRAILER",r})(pC||{}),uk="__smithy_context",uC=((r)=>{return r.PROFILE="profile",r.SSO_SESSION="sso-session",r.SERVICES="services",r})(uC||{}),tC=((r)=>{return r.HTTP_0_9="http/0.9",r.HTTP_1_0="http/1.0",r.TDS_8_0="tds/8.0",r})(tC||{})});var tk;var sL=G(()=>{tk=u(Is(),1)});var fL=()=>{};function rD(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}class Qr{constructor(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:",this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/",this.username=r.username,this.password=r.password,this.fragment=r.fragment}static clone(r){const f=new Qr({...r,headers:{...r.headers}});if(f.query)f.query=rD(f.query);return f}static isInstance(r){if(!r)return!1;const f=r;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return Qr.clone(this)}}class y0{constructor(r){this.statusCode=r.statusCode,this.reason=r.reason,this.headers=r.headers||{},this.body=r.body}static isInstance(r){if(!r)return!1;const f=r;return typeof f.statusCode==="number"&&typeof f.headers==="object"}}var wL=()=>{};var ir=G(()=>{_C();sL();fL();wL()});function Yf(r){return r}var sD=(r)=>(f)=>async(s)=>{if(!Qr.isInstance(s.request))return f(s);const{request:w}=s,{handlerProtocol:h=""}=r.requestHandler.metadata||{};if(h.indexOf("h2")>=0&&!w.headers[":authority"])delete w.headers.host,w.headers[":authority"]=w.hostname+(w.port?":"+w.port:"");else if(!w.headers.host){let $=w.hostname;if(w.port!=null)$+=`:${w.port}`;w.headers.host=$}return f(s)},fD,Kf=(r)=>({applyToStack:(f)=>{f.add(sD(r),fD)}});var aw=G(()=>{ir();fD={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var wD=()=>(r,f)=>async(s)=>{try{const w=await r(s),{clientName:h,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:U}=I,C=F??f.inputFilterSensitiveLog,L=U??f.outputFilterSensitiveLog,{$metadata:z,...S}=w.output;return E?.info?.({clientName:h,commandName:$,input:C(s.input),output:L(S),metadata:z}),w}catch(w){const{clientName:h,commandName:$,logger:E,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F}=I,U=F??f.inputFilterSensitiveLog;throw E?.error?.({clientName:h,commandName:$,input:U(s.input),error:w,metadata:w.$metadata}),w}},hD,Zf=(r)=>({applyToStack:(f)=>{f.add(wD(),hD)}});var hL=G(()=>{hD={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var pw=G(()=>{hL()});var $L="X-Amzn-Trace-Id",$D="AWS_LAMBDA_FUNCTION_NAME",ED="_X_AMZN_TRACE_ID",ID=(r)=>(f)=>async(s)=>{const{request:w}=s;if(!Qr.isInstance(w)||r.runtime!=="node"||w.headers.hasOwnProperty($L))return f(s);const h=process.env[$D],$=process.env[ED],E=(I)=>typeof I==="string"&&I.length>0;if(E(h)&&E($))w.headers[$L]=$;return f({...s,request:w})},FD,lf=(r)=>({applyToStack:(f)=>{f.add(ID(r),FD)}});var uw=G(()=>{ir();FD={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});function Jf(r){return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent}}var UD,I1=(r)=>UD.test(r)||r.startsWith("[")&&r.endsWith("]");var WF=G(()=>{UD=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$")});var TD,F1=(r,f=!1)=>{if(!f)return TD.test(r);const s=r.split(".");for(let w of s)if(!F1(w))return!1;return!0};var zF=G(()=>{TD=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var ur;var IE=G(()=>{ur={}});var T0="endpoints";function Zs(r){if(typeof r!=="object"||r==null)return r;if("ref"in r)return`\$${Zs(r.ref)}`;if("fn"in r)return`${r.fn}(${(r.argv||[]).map(Zs).join(", ")})`;return JSON.stringify(r,null,2)}var U1=()=>{};var Wr;var EL=G(()=>{Wr=class Wr extends Error{constructor(r){super(r);this.name="EndpointError"}}});var IL=()=>{};var FL=()=>{};var UL=()=>{};var TL=()=>{};var GL=()=>{};var CL=()=>{};var ls=G(()=>{EL();IL();FL();UL();TL();GL();CL()});var LL=(r,f)=>r===f;var AL=(r)=>{const f=r.split("."),s=[];for(let w of f){const h=w.indexOf("[");if(h!==-1){if(w.indexOf("]")!==w.length-1)throw new Wr(`Path: '${r}' does not end with ']'`);const $=w.slice(h+1,-1);if(Number.isNaN(parseInt($)))throw new Wr(`Invalid array index: '${$}' in path: '${r}'`);if(h!==0)s.push(w.slice(0,h));s.push($)}else s.push(w)}return s};var RL=G(()=>{ls()});var FE=(r,f)=>AL(f).reduce((s,w)=>{if(typeof s!=="object")throw new Wr(`Index '${w}' in '${f}' not found in '${JSON.stringify(r)}'`);else if(Array.isArray(s))return s[parseInt(w)];return s[w]},r);var WL=G(()=>{ls();RL()});var zL=(r)=>r!=null;var SL=(r)=>!r;var UE,SF,PL=(r)=>{const f=(()=>{try{if(r instanceof URL)return r;if(typeof r==="object"&&"hostname"in r){const{hostname:z,port:S,protocol:Z="",path:D="",query:B={}}=r,Q=new URL(`${Z}//${z}${S?`:${S}`:""}${D}`);return Q.search=Object.entries(B).map(([i,x])=>`${i}=${x}`).join("&"),Q}return new URL(r)}catch(z){return null}})();if(!f)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;const s=f.href,{host:w,hostname:h,pathname:$,protocol:E,search:I}=f;if(I)return null;const F=E.slice(0,-1);if(!Object.values(UE.EndpointURLScheme).includes(F))return null;const U=I1(h),C=s.includes(`${w}:${SF[F]}`)||typeof r==="string"&&r.includes(`${w}:${SF[F]}`),L=`${w}${C?`:${SF[F]}`:""}`;return{scheme:F,authority:L,path:$,normalizedPath:$.endsWith("/")?$:`${$}/`,isIp:U}};var XL=G(()=>{UE=u(Is(),1);WF();SF={[UE.EndpointURLScheme.HTTP]:80,[UE.EndpointURLScheme.HTTPS]:443}});var YL=(r,f)=>r===f;var KL=(r,f,s,w)=>{if(f>=s||r.length<s)return null;if(!w)return r.substring(f,s);return r.substring(r.length-s,r.length-f)};var ZL=(r)=>encodeURIComponent(r).replace(/[!*'()]/g,(f)=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`);var PF=G(()=>{WL();zF();XL()});var lL;var JL=G(()=>{PF();lL={booleanEquals:LL,getAttr:FE,isSet:zL,isValidHostLabel:F1,not:SL,parseURL:PL,stringEquals:YL,substring:KL,uriEncode:ZL}});var TE=(r,f)=>{const s=[],w={...f.endpointParams,...f.referenceRecord};let h=0;while(h<r.length){const $=r.indexOf("{",h);if($===-1){s.push(r.slice(h));break}s.push(r.slice(h,$));const E=r.indexOf("}",$);if(E===-1){s.push(r.slice($));break}if(r[$+1]==="{"&&r[E+1]==="}")s.push(r.slice($+1,E)),h=E+2;const I=r.substring($+1,E);if(I.includes("#")){const[F,U]=I.split("#");s.push(FE(w[F],U))}else s.push(w[I]);h=E+1}return s.join("")};var XF=G(()=>{PF()});var QL=({ref:r},f)=>{return{...f.endpointParams,...f.referenceRecord}[r]};var m0=(r,f,s)=>{if(typeof r==="string")return TE(r,s);else if(r.fn)return GE(r,s);else if(r.ref)return QL(r,s);throw new Wr(`'${f}': ${String(r)} is not a string, function or reference.`)};var T1=G(()=>{ls();YF();XF()});var GE=({fn:r,argv:f},s)=>{const w=f.map(($)=>["boolean","number"].includes(typeof $)?$:m0($,"arg",s)),h=r.split(".");if(h[0]in ur&&h[1]!=null)return ur[h[0]][h[1]](...w);return lL[r](...w)};var YF=G(()=>{IE();JL();T1()});var ML=({assign:r,...f},s)=>{if(r&&r in s.referenceRecord)throw new Wr(`'${r}' is already defined in Reference Record.`);const w=GE(f,s);return s.logger?.debug?.(`${T0} evaluateCondition: ${Zs(f)} = ${Zs(w)}`),{result:w===""?!0:!!w,...r!=null&&{toAssign:{name:r,value:w}}}};var BL=G(()=>{U1();ls();YF()});var tw=(r=[],f)=>{const s={};for(let w of r){const{result:h,toAssign:$}=ML(w,{...f,referenceRecord:{...f.referenceRecord,...s}});if(!h)return{result:h};if($)s[$.name]=$.value,f.logger?.debug?.(`${T0} assign: ${$.name} := ${Zs($.value)}`)}return{result:!0,referenceRecord:s}};var CE=G(()=>{U1();BL()});var HL=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:h.map(($)=>{const E=m0($,"Header value entry",f);if(typeof E!=="string")throw new Wr(`Header '${w}' value '${E}' is not a string`);return E})}),{});var VL=G(()=>{ls();T1()});var KF=(r,f)=>{if(Array.isArray(r))return r.map((s)=>KF(s,f));switch(typeof r){case"string":return TE(r,f);case"object":if(r===null)throw new Wr(`Unexpected endpoint property: ${r}`);return LE(r,f);case"boolean":return r;default:throw new Wr(`Unexpected endpoint property type: ${typeof r}`)}};var kL=G(()=>{ls();XF();ZF()});var LE=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:KF(h,f)}),{});var ZF=G(()=>{kL()});var DL=(r,f)=>{const s=m0(r,"Endpoint URL",f);if(typeof s==="string")try{return new URL(s)}catch(w){throw console.error(`Failed to construct URL with ${s}`,w),w}throw new Wr(`Endpoint URL must be a string, got ${typeof s}`)};var iL=G(()=>{ls();T1()});var yL=(r,f)=>{const{conditions:s,endpoint:w}=r,{result:h,referenceRecord:$}=tw(s,f);if(!h)return;const E={...f,referenceRecord:{...f.referenceRecord,...$}},{url:I,properties:F,headers:U}=w;return f.logger?.debug?.(`${T0} Resolving endpoint from template: ${Zs(w)}`),{...U!=null&&{headers:HL(U,E)},...F!=null&&{properties:LE(F,E)},url:DL(I,E)}};var mL=G(()=>{U1();CE();VL();ZF();iL()});var NL=(r,f)=>{const{conditions:s,error:w}=r,{result:h,referenceRecord:$}=tw(s,f);if(!h)return;throw new Wr(m0(w,"Error",{...f,referenceRecord:{...f.referenceRecord,...$}}))};var qL=G(()=>{ls();CE();T1()});var vL=(r,f)=>{const{conditions:s,rules:w}=r,{result:h,referenceRecord:$}=tw(s,f);if(!h)return;return AE(w,{...f,referenceRecord:{...f.referenceRecord,...$}})};var jL=G(()=>{CE();lF()});var AE=(r,f)=>{for(let s of r)if(s.type==="endpoint"){const w=yL(s,f);if(w)return w}else if(s.type==="error")NL(s,f);else if(s.type==="tree"){const w=vL(s,f);if(w)return w}else throw new Wr(`Unknown endpoint rule: ${s}`);throw new Wr("Rules evaluation failed")};var lF=G(()=>{ls();mL();qL();jL()});var dL=G(()=>{IE();lF()});var ps=(r,f)=>{const{endpointParams:s,logger:w}=f,{parameters:h,rules:$}=r;f.logger?.debug?.(`${T0} Initial EndpointParams: ${Zs(s)}`);const E=Object.entries(h).filter(([,U])=>U.default!=null).map(([U,C])=>[U,C.default]);if(E.length>0)for(let[U,C]of E)s[U]=s[U]??C;const I=Object.entries(h).filter(([,U])=>U.required).map(([U])=>U);for(let U of I)if(s[U]==null)throw new Wr(`Missing required parameter: '${U}'`);const F=AE($,{endpointParams:s,logger:w,referenceRecord:{}});if(f.endpointParams?.Endpoint)try{const U=new URL(f.endpointParams.Endpoint),{protocol:C,port:L}=U;F.url.protocol=C,F.url.port=L}catch(U){}return f.logger?.debug?.(`${T0} Resolved endpoint: ${Zs(F)}`),F};var OL=G(()=>{U1();ls();dL()});var us=G(()=>{WF();zF();IE();OL();ls()});var JF=G(()=>{us()});var QF=(r,f=!1)=>{if(f){for(let s of r.split("."))if(!QF(s))return!1;return!0}if(!F1(r))return!1;if(r.length<3||r.length>63)return!1;if(r!==r.toLowerCase())return!1;if(I1(r))return!1;return!0};var cL=G(()=>{us();JF()});var bL=(r)=>{const f=r.split(":");if(f.length<6)return null;const[s,w,h,$,E,...I]=f;if(s!=="arn"||w===""||h===""||I.join(":")==="")return null;const F=I.map((U)=>U.split("/")).flat();return{partition:w,service:h,region:$,accountId:E,resourceId:F}};var _L;var gL=G(()=>{_L={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var CD,LD="",xL=(r)=>{const{partitions:f}=CD;for(let w of f){const{regions:h,outputs:$}=w;for(let[E,I]of Object.entries(h))if(E===r)return{...$,...I}}for(let w of f){const{regionRegex:h,outputs:$}=w;if(new RegExp(h).test(r))return{...$}}const s=f.find((w)=>w.id==="aws");if(!s)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...s.outputs}},eL=()=>LD;var MF=G(()=>{gL();CD=_L});var ts;var nL=G(()=>{us();cL();MF();ts={isVirtualHostableS3Bucket:QF,parseArn:bL,partition:xL};ur.aws=ts});var oL=G(()=>{us()});var aL=G(()=>{us()});var pL=()=>{};var uL=()=>{};var tL=()=>{};var r8=()=>{};var s8=()=>{};var f8=G(()=>{aL();pL();uL();tL();r8();s8()});var Ww=G(()=>{nL();MF();JF();oL();f8()});var BF="user-agent",RE="x-amz-user-agent",HF=" ",WE="/",w8,h8,VF="-";var $8=G(()=>{w8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,h8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});var AD=(r)=>(f,s)=>async(w)=>{const{request:h}=w;if(!Qr.isInstance(h))return f(w);const{headers:$}=h,E=s?.userAgent?.map(kF)||[],I=(await r.defaultUserAgentProvider()).map(kF),F=r?.customUserAgent?.map(kF)||[],U=eL(),C=(U?[U]:[]).concat([...I,...E,...F]).join(HF),L=[...I.filter((z)=>z.startsWith("aws-sdk-")),...F].join(HF);if(r.runtime!=="browser"){if(L)$[RE]=$[RE]?`${$[BF]} ${L}`:L;$[BF]=C}else $[RE]=C;return f({...w,request:h})},kF=(r)=>{const f=r[0].split(WE).map((E)=>E.replace(w8,VF)).join(WE),s=r[1]?.replace(h8,VF),w=f.indexOf(WE),h=f.substring(0,w);let $=f.substring(w+1);if(h==="api")$=$.toLowerCase();return[h,$,s].filter((E)=>E&&E.length>0).reduce((E,I,F)=>{switch(F){case 0:return I;case 1:return`${E}/${I}`;default:return`${E}#${I}`}},"")},RD,Qf=(r)=>({applyToStack:(f)=>{f.add(AD(r),RD)}});var E8=G(()=>{Ww();ir();$8();RD={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var rh=G(()=>{E8()});var sh=(r,f,s)=>{if(!(f in r))return;if(r[f]==="true")return!0;if(r[f]==="false")return!1;throw new Error(`Cannot load ${s} "${f}". Expected "true" or "false", got ${r[f]}.`)};var N0;var I8=G(()=>{(function(r){r.ENV="env",r.CONFIG="shared config entry"})(N0||(N0={}))});var DF=G(()=>{I8()});var WD="AWS_USE_DUALSTACK_ENDPOINT",zD="use_dualstack_endpoint",Mf;var F8=G(()=>{DF();Mf={environmentVariableSelector:(r)=>sh(r,WD,N0.ENV),configFileSelector:(r)=>sh(r,zD,N0.CONFIG),default:!1}});var SD="AWS_USE_FIPS_ENDPOINT",PD="use_fips_endpoint",Bf;var U8=G(()=>{DF();Bf={environmentVariableSelector:(r)=>sh(r,SD,N0.ENV),configFileSelector:(r)=>sh(r,PD,N0.CONFIG),default:!1}});var iF,Js=(r)=>r[iF.SMITHY_CONTEXT_KEY]||(r[iF.SMITHY_CONTEXT_KEY]={});var T8=G(()=>{iF=u(Is(),1)});var yr=(r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f};var rf=G(()=>{T8()});var G8=G(()=>{rf()});var C8=G(()=>{rf()});var L8=G(()=>{F8();U8();G8();C8()});var Qs,Hf;var A8=G(()=>{Qs={environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>r.region,default:()=>{throw new Error("Region is missing")}},Hf={preferredFile:"credentials"}});var zE=(r)=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var yF=(r)=>zE(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var R8=()=>{};var Vf=(r)=>{const{region:f,useFipsEndpoint:s}=r;if(!f)throw new Error("Region is missing");return{...r,region:async()=>{if(typeof f==="string")return yF(f);const w=await f();return yF(w)},useFipsEndpoint:async()=>{const w=typeof f==="string"?f:await f();if(zE(w))return!0;return typeof s!=="function"?Promise.resolve(!!s):s()}}};var W8=G(()=>{R8()});var z8=G(()=>{A8();W8()});var S8=()=>{};var P8=()=>{};var X8=()=>{};var Y8=G(()=>{S8();P8();X8()});var Ms=G(()=>{L8();z8();Y8()});var G1=v((jfr,J8)=>{var{defineProperty:SE,getOwnPropertyDescriptor:XD,getOwnPropertyNames:YD}=Object,KD=Object.prototype.hasOwnProperty,Z8=(r,f)=>SE(r,"name",{value:f,configurable:!0}),ZD=(r,f)=>{for(var s in f)SE(r,s,{get:f[s],enumerable:!0})},lD=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of YD(f))if(!KD.call(r,h)&&h!==s)SE(r,h,{get:()=>f[h],enumerable:!(w=XD(f,h))||w.enumerable})}return r},JD=(r)=>lD(SE({},"__esModule",{value:!0}),r),l8={};ZD(l8,{getSmithyContext:()=>QD,normalizeProvider:()=>MD});J8.exports=JD(l8);var K8=Is(),QD=Z8((r)=>r[K8.SMITHY_CONTEXT_KEY]||(r[K8.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),MD=Z8((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider")});var mF=v((dfr,V8)=>{var{defineProperty:PE,getOwnPropertyDescriptor:BD,getOwnPropertyNames:HD}=Object,VD=Object.prototype.hasOwnProperty,zw=(r,f)=>PE(r,"name",{value:f,configurable:!0}),kD=(r,f)=>{for(var s in f)PE(r,s,{get:f[s],enumerable:!0})},DD=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of HD(f))if(!VD.call(r,h)&&h!==s)PE(r,h,{get:()=>f[h],enumerable:!(w=BD(f,h))||w.enumerable})}return r},iD=(r)=>DD(PE({},"__esModule",{value:!0}),r),Q8={};kD(Q8,{CredentialsProviderError:()=>yD,ProviderError:()=>XE,TokenProviderError:()=>mD,chain:()=>ND,fromStatic:()=>qD,memoize:()=>vD});V8.exports=iD(Q8);var M8=class r extends Error{constructor(f,s=!0){var w;let h,$=!0;if(typeof s==="boolean")h=void 0,$=s;else if(s!=null&&typeof s==="object")h=s.logger,$=s.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=$,Object.setPrototypeOf(this,r.prototype),(w=h==null?void 0:h.debug)==null||w.call(h,`@smithy/property-provider ${$?"->":"(!)"} ${f}`)}static from(f,s=!0){return Object.assign(new this(f.message,s),f)}};zw(M8,"ProviderError");var XE=M8,B8=class r extends XE{constructor(f,s=!0){super(f,s);this.name="CredentialsProviderError",Object.setPrototypeOf(this,r.prototype)}};zw(B8,"CredentialsProviderError");var yD=B8,H8=class r extends XE{constructor(f,s=!0){super(f,s);this.name="TokenProviderError",Object.setPrototypeOf(this,r.prototype)}};zw(H8,"TokenProviderError");var mD=H8,ND=zw((...r)=>async()=>{if(r.length===0)throw new XE("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w==null?void 0:w.tryNextLink)continue;throw w}throw f},"chain"),qD=zw((r)=>()=>Promise.resolve(r),"fromStatic"),vD=zw((r,f,s)=>{let w,h,$,E=!1;const I=zw(async()=>{if(!h)h=r();try{w=await h,$=!0,E=!1}finally{h=void 0}return w},"coalesceProvider");if(f===void 0)return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))w=await I();return w};return async(F)=>{if(!$||(F==null?void 0:F.forceRefresh))w=await I();if(E)return w;if(s&&!s(w))return E=!0,w;if(f(w))return await I(),w;return w}},"memoize")});var fh=v((k8)=>{Object.defineProperty(k8,"__esModule",{value:!0});k8.getHomeDir=void 0;var jD=import.meta.require("os"),dD=import.meta.require("path"),NF={},OD=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},cD=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${dD.sep}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=OD();if(!NF[h])NF[h]=jD.homedir();return NF[h]};k8.getHomeDir=cD});var qF=v((i8)=>{Object.defineProperty(i8,"__esModule",{value:!0});i8.getSSOTokenFilepath=void 0;var bD=import.meta.require("crypto"),gD=import.meta.require("path"),_D=fh(),xD=(r)=>{const s=bD.createHash("sha1").update(r).digest("hex");return gD.join(_D.getHomeDir(),".aws","sso","cache",`${s}.json`)};i8.getSSOTokenFilepath=xD});var q8=v((m8)=>{Object.defineProperty(m8,"__esModule",{value:!0});m8.getSSOTokenFromFile=void 0;var eD=import.meta.require("fs"),nD=qF(),{readFile:oD}=eD.promises,aD=async(r)=>{const f=nD.getSSOTokenFilepath(r),s=await oD(f,"utf8");return JSON.parse(s)};m8.getSSOTokenFromFile=aD});var jF=v((v8)=>{Object.defineProperty(v8,"__esModule",{value:!0});v8.slurpFile=void 0;var pD=import.meta.require("fs"),{readFile:uD}=pD.promises,vF={},tD=(r,f)=>{if(!vF[r]||(f===null||f===void 0?void 0:f.ignoreCache))vF[r]=uD(r,"utf8");return vF[r]};v8.slurpFile=tD});var bF=v((_fr,L1)=>{var{defineProperty:ZE,getOwnPropertyDescriptor:ri,getOwnPropertyNames:si}=Object,fi=Object.prototype.hasOwnProperty,Bs=(r,f)=>ZE(r,"name",{value:f,configurable:!0}),wi=(r,f)=>{for(var s in f)ZE(r,s,{get:f[s],enumerable:!0})},dF=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of si(f))if(!fi.call(r,h)&&h!==s)ZE(r,h,{get:()=>f[h],enumerable:!(w=ri(f,h))||w.enumerable})}return r},cF=(r,f,s)=>(dF(r,f,"default"),s&&dF(s,f,"default")),hi=(r)=>dF(ZE({},"__esModule",{value:!0}),r),C1={};wi(C1,{CONFIG_PREFIX_SEPARATOR:()=>Sw,DEFAULT_PROFILE:()=>b8,ENV_PROFILE:()=>c8,getProfileName:()=>$i,loadSharedConfigFiles:()=>_8,loadSsoSessionData:()=>Si,parseKnownFiles:()=>Xi});L1.exports=hi(C1);cF(C1,fh(),L1.exports);var c8="AWS_PROFILE",b8="default",$i=Bs((r)=>r.profile||process.env[c8]||b8,"getProfileName");cF(C1,qF(),L1.exports);cF(C1,q8(),L1.exports);var YE=Is(),Ei=Bs((r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Sw);if(s===-1)return!1;return Object.values(YE.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Sw),$=s.substring(0,h)===YE.IniSectionType.PROFILE?s.substring(h+1):s;return f[$]=w,f},{...r.default&&{default:r.default}}),"getConfigData"),KE=import.meta.require("path"),Ii=fh(),Fi="AWS_CONFIG_FILE",g8=Bs(()=>process.env[Fi]||KE.join(Ii.getHomeDir(),".aws","config"),"getConfigFilepath"),Ui=fh(),Ti="AWS_SHARED_CREDENTIALS_FILE",Gi=Bs(()=>process.env[Ti]||KE.join(Ui.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),Ci=fh(),Li=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Ai=["__proto__","profile __proto__"],OF=Bs((r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const $=h.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){s=void 0,w=void 0;const I=$.substring(1,$.length-1),F=Li.exec(I);if(F){const[,U,,C]=F;if(Object.values(YE.IniSectionType).includes(U))s=[U,C].join(Sw)}else s=I;if(Ai.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=$.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Sw):F;f[s][C]=U}}}}return f},"parseIni"),d8=jF(),O8=Bs(()=>({}),"swallowError"),Sw=".",_8=Bs(async(r={})=>{const{filepath:f=Gi(),configFilepath:s=g8()}=r,w=Ci.getHomeDir();let $=f;if(f.startsWith("~/"))$=KE.join(w,f.slice(2));let E=s;if(s.startsWith("~/"))E=KE.join(w,s.slice(2));const I=await Promise.all([d8.slurpFile(E,{ignoreCache:r.ignoreCache}).then(OF).then(Ei).catch(O8),d8.slurpFile($,{ignoreCache:r.ignoreCache}).then(OF).catch(O8)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),Ri=Bs((r)=>Object.entries(r).filter(([f])=>f.startsWith(YE.IniSectionType.SSO_SESSION+Sw)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Sw)+1)]:w}),{}),"getSsoSessionData"),Wi=jF(),zi=Bs(()=>({}),"swallowError"),Si=Bs(async(r={})=>Wi.slurpFile(r.configFilepath??g8()).then(OF).then(Ri).catch(zi),"loadSsoSessionData"),Pi=Bs((...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f},"mergeConfigFiles"),Xi=Bs(async(r)=>{const f=await _8(r);return Pi(f.configFile,f.credentialsFile)},"parseKnownFiles")});var o8=v((xfr,n8)=>{function gF(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var{defineProperty:lE,getOwnPropertyDescriptor:Yi,getOwnPropertyNames:Ki}=Object,Zi=Object.prototype.hasOwnProperty,wh=(r,f)=>lE(r,"name",{value:f,configurable:!0}),li=(r,f)=>{for(var s in f)lE(r,s,{get:f[s],enumerable:!0})},Ji=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Ki(f))if(!Zi.call(r,h)&&h!==s)lE(r,h,{get:()=>f[h],enumerable:!(w=Yi(f,h))||w.enumerable})}return r},Qi=(r)=>Ji(lE({},"__esModule",{value:!0}),r),e8={};li(e8,{loadConfig:()=>ki});n8.exports=Qi(e8);var A1=mF();wh(gF,"getSelectorName");var Mi=wh((r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new A1.CredentialsProviderError(s.message||`Not found in ENV: ${gF(r.toString())}`,{logger:f})}},"fromEnv"),x8=bF(),Bi=wh((r,{preferredFile:f="config",...s}={})=>async()=>{const w=x8.getProfileName(s),{configFile:h,credentialsFile:$}=await x8.loadSharedConfigFiles(s),E=$[w]||{},I=h[w]||{},F=f==="config"?{...E,...I}:{...I,...E};try{const C=r(F,f==="config"?h:$);if(C===void 0)throw new Error;return C}catch(U){throw new A1.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${gF(r.toString())}`,{logger:s.logger})}},"fromSharedConfigFiles"),Hi=wh((r)=>typeof r==="function","isFunction"),Vi=wh((r)=>Hi(r)?async()=>await r():A1.fromStatic(r),"fromStatic"),ki=wh(({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>A1.memoize(A1.chain(Mi(r),Bi(f,w),Vi(s))),"loadConfig")});var sA=v((t8)=>{Object.defineProperty(t8,"__esModule",{value:!0});t8.getEndpointUrlConfig=void 0;var a8=bF(),p8="AWS_ENDPOINT_URL",u8="endpoint_url",Di=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map(($)=>$.toUpperCase()),w=f[[p8,...s].join("_")];if(w)return w;const h=f[p8];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(a8.CONFIG_PREFIX_SEPARATOR)];if(h){const $=r.split(" ").map((I)=>I.toLowerCase()),E=h[[$.join("_"),u8].join(a8.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}const w=f[u8];if(w)return w;return},default:void 0});t8.getEndpointUrlConfig=Di});var hA=v((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.getEndpointFromConfig=void 0;var ii=o8(),yi=sA(),mi=async(r)=>ii.loadConfig(yi.getEndpointUrlConfig(r))();fA.getEndpointFromConfig=mi});var FA=v((ofr,IA)=>{function EA(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var{defineProperty:JE,getOwnPropertyDescriptor:Ni,getOwnPropertyNames:qi}=Object,vi=Object.prototype.hasOwnProperty,ji=(r,f)=>JE(r,"name",{value:f,configurable:!0}),di=(r,f)=>{for(var s in f)JE(r,s,{get:f[s],enumerable:!0})},Oi=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of qi(f))if(!vi.call(r,h)&&h!==s)JE(r,h,{get:()=>f[h],enumerable:!(w=Ni(f,h))||w.enumerable})}return r},ci=(r)=>Oi(JE({},"__esModule",{value:!0}),r),$A={};di($A,{parseQueryString:()=>EA});IA.exports=ci($A);ji(EA,"parseQueryString")});var CA=v((afr,GA)=>{var{defineProperty:QE,getOwnPropertyDescriptor:bi,getOwnPropertyNames:gi}=Object,_i=Object.prototype.hasOwnProperty,xi=(r,f)=>QE(r,"name",{value:f,configurable:!0}),ei=(r,f)=>{for(var s in f)QE(r,s,{get:f[s],enumerable:!0})},ni=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of gi(f))if(!_i.call(r,h)&&h!==s)QE(r,h,{get:()=>f[h],enumerable:!(w=bi(f,h))||w.enumerable})}return r},oi=(r)=>ni(QE({},"__esModule",{value:!0}),r),UA={};ei(UA,{parseUrl:()=>TA});GA.exports=oi(UA);var ai=FA(),TA=xi((r)=>{if(typeof r==="string")return TA(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:$}=r;let E;if($)E=ai.parseQueryString($);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:E}},"parseUrl")});var xF=v((pfr,PA)=>{function SA(r,f,s){return{applyToStack:(w)=>{w.add(AA(r,s),WA),w.add(RA(r,f),zA)}}}var{defineProperty:ME,getOwnPropertyDescriptor:pi,getOwnPropertyNames:ui}=Object,ti=Object.prototype.hasOwnProperty,_F=(r,f)=>ME(r,"name",{value:f,configurable:!0}),ry=(r,f)=>{for(var s in f)ME(r,s,{get:f[s],enumerable:!0})},sy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of ui(f))if(!ti.call(r,h)&&h!==s)ME(r,h,{get:()=>f[h],enumerable:!(w=pi(f,h))||w.enumerable})}return r},fy=(r)=>sy(ME({},"__esModule",{value:!0}),r),LA={};ry(LA,{deserializerMiddleware:()=>AA,deserializerMiddlewareOption:()=>WA,getSerdePlugin:()=>SA,serializerMiddleware:()=>RA,serializerMiddlewareOption:()=>zA});PA.exports=fy(LA);var AA=_F((r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const $=await f(h,r);return{response:h,output:$}}catch($){if(Object.defineProperty($,"$response",{value:h}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}},"deserializerMiddleware"),RA=_F((r,f)=>(s,w)=>async(h)=>{var $;const E=(($=w.endpointV2)==null?void 0:$.url)&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const I=await f(h.input,{...r,endpoint:E});return s({...h,request:I})},"serializerMiddleware"),WA={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},zA={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};_F(SA,"getSerdePlugin")});var MA=v((ufr,QA)=>{var{defineProperty:HE,getOwnPropertyDescriptor:wy,getOwnPropertyNames:hy}=Object,$y=Object.prototype.hasOwnProperty,sf=(r,f)=>HE(r,"name",{value:f,configurable:!0}),Ey=(r,f)=>{for(var s in f)HE(r,s,{get:f[s],enumerable:!0})},Iy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of hy(f))if(!$y.call(r,h)&&h!==s)HE(r,h,{get:()=>f[h],enumerable:!(w=wy(f,h))||w.enumerable})}return r},Fy=(r)=>Iy(HE({},"__esModule",{value:!0}),r),YA={};Ey(YA,{endpointMiddleware:()=>lA,endpointMiddlewareOptions:()=>JA,getEndpointFromInstructions:()=>KA,getEndpointPlugin:()=>Sy,resolveEndpointConfig:()=>Py,resolveParams:()=>ZA,toEndpointV1:()=>eF});QA.exports=Fy(YA);var Uy=sf(async(r)=>{const f=(r==null?void 0:r.Bucket)||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Ay(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Ly(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},"resolveParamsForS3"),Ty=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Gy=/(\d+\.){3}\d+/,Cy=/\.\./,Ly=sf((r)=>Ty.test(r)&&!Gy.test(r)&&!Cy.test(r),"isDnsCompatibleBucketName"),Ay=sf((r)=>{const[f,s,w,,,h]=r.split(":"),$=f==="arn"&&r.split(":").length>=6,E=Boolean($&&s&&w&&h);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E},"isArnBucketName"),Ry=sf((r,f,s)=>{const w=sf(async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h},"configProvider");if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.credentialScope)??(h==null?void 0:h.CredentialScope)};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.accountId)??(h==null?void 0:h.AccountId)};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:$,hostname:E,port:I,path:F}=h;return`${$}//${E}${I?":"+I:""}${F}`}}return h};return w},"createConfigValueProvider"),Wy=hA(),XA=CA(),eF=sf((r)=>{if(typeof r==="object"){if("url"in r)return XA.parseUrl(r.url);return r}return XA.parseUrl(r)},"toEndpointV1"),KA=sf(async(r,f,s,w)=>{if(!s.endpoint){const E=await Wy.getEndpointFromConfig(s.serviceId||"");if(E)s.endpoint=()=>Promise.resolve(eF(E))}const h=await ZA(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},"getEndpointFromInstructions"),ZA=sf(async(r,f,s)=>{var w;const h={},$=((w=f==null?void 0:f.getEndpointParameterInstructions)==null?void 0:w.call(f))||{};for(let[E,I]of Object.entries($))switch(I.type){case"staticContextParams":h[E]=I.value;break;case"contextParams":h[E]=r[I.name];break;case"clientContextParams":case"builtInParams":h[E]=await Ry(I.name,E,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys($).length===0)Object.assign(h,s);if(String(s.serviceId).toLowerCase()==="s3")await Uy(h);return h},"resolveParams"),BE=G1(),lA=sf(({config:r,instructions:f})=>{return(s,w)=>async(h)=>{var $,E,I;const F=await KA(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=F,w.authSchemes=($=F.properties)==null?void 0:$.authSchemes;const U=(E=w.authSchemes)==null?void 0:E[0];if(U){w.signing_region=U.signingRegion,w.signing_service=U.signingName;const C=BE.getSmithyContext(w),L=(I=C==null?void 0:C.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:U.signingRegion,signingRegion:U.signingRegion,signing_service:U.signingName,signingName:U.signingName,signingRegionSet:U.signingRegionSet},U.properties)}return s({...h})}},"endpointMiddleware"),zy=xF(),JA={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:zy.serializerMiddlewareOption.name},Sy=sf((r,f)=>({applyToStack:(s)=>{s.addRelativeTo(lA({config:r,instructions:f}),JA)}}),"getEndpointPlugin"),Py=sf((r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>eF(await BE.normalizeProvider(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:BE.normalizeProvider(r.useDualstackEndpoint??!1),useFipsEndpoint:BE.normalizeProvider(r.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var G0=v((tfr,NA)=>{function iA(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}function mA(r){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(r)}var{defineProperty:VE,getOwnPropertyDescriptor:Xy,getOwnPropertyNames:Yy}=Object,Ky=Object.prototype.hasOwnProperty,q0=(r,f)=>VE(r,"name",{value:f,configurable:!0}),Zy=(r,f)=>{for(var s in f)VE(r,s,{get:f[s],enumerable:!0})},ly=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Yy(f))if(!Ky.call(r,h)&&h!==s)VE(r,h,{get:()=>f[h],enumerable:!(w=Xy(f,h))||w.enumerable})}return r},Jy=(r)=>ly(VE({},"__esModule",{value:!0}),r),BA={};Zy(BA,{Field:()=>By,Fields:()=>Hy,HttpRequest:()=>Vy,HttpResponse:()=>ky,IHttpRequest:()=>HA.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Qy,isValidHostname:()=>mA,resolveHttpHandlerRuntimeConfig:()=>My});NA.exports=Jy(BA);var Qy=q0((r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),My=q0((r)=>{return{httpHandler:r.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),HA=Is(),VA=class r{constructor({name:f,kind:s=HA.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=s,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((s)=>s!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}};q0(VA,"Field");var By=VA,kA=class r{constructor({fields:f=[],encoding:s="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=s}setField(f){this.entries[f.name.toLowerCase()]=f}getField(f){return this.entries[f.toLowerCase()]}removeField(f){delete this.entries[f.toLowerCase()]}getByType(f){return Object.values(this.entries).filter((s)=>s.kind===f)}};q0(kA,"Fields");var Hy=kA,DA=class r{constructor(f){this.method=f.method||"GET",this.hostname=f.hostname||"localhost",this.port=f.port,this.query=f.query||{},this.headers=f.headers||{},this.body=f.body,this.protocol=f.protocol?f.protocol.slice(-1)!==":"?`${f.protocol}:`:f.protocol:"https:",this.path=f.path?f.path.charAt(0)!=="/"?`/${f.path}`:f.path:"/",this.username=f.username,this.password=f.password,this.fragment=f.fragment}static clone(f){const s=new r({...f,headers:{...f.headers}});if(s.query)s.query=iA(s.query);return s}static isInstance(f){if(!f)return!1;const s=f;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return r.clone(this)}};q0(DA,"HttpRequest");var Vy=DA;q0(iA,"cloneQuery");var yA=class r{constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;const s=f;return typeof s.statusCode==="number"&&typeof s.headers==="object"}};q0(yA,"HttpResponse");var ky=yA;q0(mA,"isValidHostname")});var nF=v((qA)=>{function iy(r){return r&&r.__esModule?r:{default:r}}function yy(){if(kE>DE.length-16)Dy.default.randomFillSync(DE),kE=0;return DE.slice(kE,kE+=16)}Object.defineProperty(qA,"__esModule",{value:!0});qA.default=yy;var Dy=iy(import.meta.require("crypto")),DE=new Uint8Array(256),kE=DE.length});var dA=v((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.default=void 0;var Ny=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;vA.default=Ny});var R1=v((OA)=>{function vy(r){return r&&r.__esModule?r:{default:r}}function jy(r){return typeof r==="string"&&qy.default.test(r)}Object.defineProperty(OA,"__esModule",{value:!0});OA.default=void 0;var qy=vy(dA()),dy=jy;OA.default=dy});var W1=v((gA)=>{function cy(r){return r&&r.__esModule?r:{default:r}}function bA(r,f=0){return dr[r[f+0]]+dr[r[f+1]]+dr[r[f+2]]+dr[r[f+3]]+"-"+dr[r[f+4]]+dr[r[f+5]]+"-"+dr[r[f+6]]+dr[r[f+7]]+"-"+dr[r[f+8]]+dr[r[f+9]]+"-"+dr[r[f+10]]+dr[r[f+11]]+dr[r[f+12]]+dr[r[f+13]]+dr[r[f+14]]+dr[r[f+15]]}function by(r,f=0){const s=bA(r,f);if(!Oy.default(s))throw TypeError("Stringified UUID is invalid");return s}Object.defineProperty(gA,"__esModule",{value:!0});gA.default=void 0;gA.unsafeStringify=bA;var Oy=cy(R1()),dr=[];for(let r=0;r<256;++r)dr.push((r+256).toString(16).slice(1));var gy=by;gA.default=gy});var oA=v((eA)=>{function ny(r){return r&&r.__esModule?r:{default:r}}function oy(r,f,s){let w=f&&s||0;const h=f||new Array(16);r=r||{};let $=r.node||xA,E=r.clockseq!==void 0?r.clockseq:oF;if($==null||E==null){const z=r.random||(r.rng||xy.default)();if($==null)$=xA=[z[0]|1,z[1],z[2],z[3],z[4],z[5]];if(E==null)E=oF=(z[6]<<8|z[7])&16383}let I=r.msecs!==void 0?r.msecs:Date.now(),F=r.nsecs!==void 0?r.nsecs:pF+1;const U=I-aF+(F-pF)/1e4;if(U<0&&r.clockseq===void 0)E=E+1&16383;if((U<0||I>aF)&&r.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");aF=I,pF=F,oF=E,I+=12219292800000;const C=((I&268435455)*1e4+F)%4294967296;h[w++]=C>>>24&255,h[w++]=C>>>16&255,h[w++]=C>>>8&255,h[w++]=C&255;const L=I/4294967296*1e4&268435455;h[w++]=L>>>8&255,h[w++]=L&255,h[w++]=L>>>24&15|16,h[w++]=L>>>16&255,h[w++]=E>>>8|128,h[w++]=E&255;for(let z=0;z<6;++z)h[w+z]=$[z];return f||ey.unsafeStringify(h)}Object.defineProperty(eA,"__esModule",{value:!0});eA.default=void 0;var xy=ny(nF()),ey=W1(),xA,oF,aF=0,pF=0,ay=oy;eA.default=ay});var uF=v((aA)=>{function uy(r){return r&&r.__esModule?r:{default:r}}function ty(r){if(!py.default(r))throw TypeError("Invalid UUID");let f;const s=new Uint8Array(16);return s[0]=(f=parseInt(r.slice(0,8),16))>>>24,s[1]=f>>>16&255,s[2]=f>>>8&255,s[3]=f&255,s[4]=(f=parseInt(r.slice(9,13),16))>>>8,s[5]=f&255,s[6]=(f=parseInt(r.slice(14,18),16))>>>8,s[7]=f&255,s[8]=(f=parseInt(r.slice(19,23),16))>>>8,s[9]=f&255,s[10]=(f=parseInt(r.slice(24,36),16))/1099511627776&255,s[11]=f/4294967296&255,s[12]=f>>>24&255,s[13]=f>>>16&255,s[14]=f>>>8&255,s[15]=f&255,s}Object.defineProperty(aA,"__esModule",{value:!0});aA.default=void 0;var py=uy(R1()),rm=ty;aA.default=rm});var tF=v((rR)=>{function wm(r){return r&&r.__esModule?r:{default:r}}function hm(r){r=unescape(encodeURIComponent(r));const f=[];for(let s=0;s<r.length;++s)f.push(r.charCodeAt(s));return f}function $m(r,f,s){function w(h,$,E,I){var F;if(typeof h==="string")h=hm(h);if(typeof $==="string")$=fm.default($);if(((F=$)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+h.length);if(U.set($),U.set(h,$.length),U=s(U),U[6]=U[6]&15|f,U[8]=U[8]&63|128,E){I=I||0;for(let C=0;C<16;++C)E[I+C]=U[C];return E}return sm.unsafeStringify(U)}try{w.name=r}catch(h){}return w.DNS=uA,w.URL=tA,w}Object.defineProperty(rR,"__esModule",{value:!0});rR.URL=rR.DNS=void 0;rR.default=$m;var sm=W1(),fm=wm(uF()),uA="6ba7b810-9dad-11d1-80b4-00c04fd430c8";rR.DNS=uA;var tA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";rR.URL=tA});var hR=v((fR)=>{function Um(r){return r&&r.__esModule?r:{default:r}}function Tm(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Fm.default.createHash("md5").update(r).digest()}Object.defineProperty(fR,"__esModule",{value:!0});fR.default=void 0;var Fm=Um(import.meta.require("crypto")),Gm=Tm;fR.default=Gm});var FR=v((ER)=>{function $R(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(ER,"__esModule",{value:!0});ER.default=void 0;var Cm=$R(tF()),Lm=$R(hR()),Am=Cm.default("v3",48,Lm.default),Rm=Am;ER.default=Rm});var GR=v((UR)=>{function zm(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(UR,"__esModule",{value:!0});UR.default=void 0;var Wm=zm(import.meta.require("crypto")),Sm={randomUUID:Wm.default.randomUUID};UR.default=Sm});var WR=v((AR)=>{function LR(r){return r&&r.__esModule?r:{default:r}}function Ym(r,f,s){if(CR.default.randomUUID&&!f&&!r)return CR.default.randomUUID();r=r||{};const w=r.random||(r.rng||Pm.default)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,f){s=s||0;for(let h=0;h<16;++h)f[s+h]=w[h];return f}return Xm.unsafeStringify(w)}Object.defineProperty(AR,"__esModule",{value:!0});AR.default=void 0;var CR=LR(GR()),Pm=LR(nF()),Xm=W1(),Km=Ym;AR.default=Km});var PR=v((zR)=>{function lm(r){return r&&r.__esModule?r:{default:r}}function Jm(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Zm.default.createHash("sha1").update(r).digest()}Object.defineProperty(zR,"__esModule",{value:!0});zR.default=void 0;var Zm=lm(import.meta.require("crypto")),Qm=Jm;zR.default=Qm});var ZR=v((YR)=>{function XR(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(YR,"__esModule",{value:!0});YR.default=void 0;var Mm=XR(tF()),Bm=XR(PR()),Hm=Mm.default("v5",80,Bm.default),Vm=Hm;YR.default=Vm});var QR=v((lR)=>{Object.defineProperty(lR,"__esModule",{value:!0});lR.default=void 0;var km="00000000-0000-0000-0000-000000000000";lR.default=km});var HR=v((MR)=>{function im(r){return r&&r.__esModule?r:{default:r}}function ym(r){if(!Dm.default(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}Object.defineProperty(MR,"__esModule",{value:!0});MR.default=void 0;var Dm=im(R1()),mm=ym;MR.default=mm});var rU=v((ff)=>{function C0(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(ff,"__esModule",{value:!0});Object.defineProperty(ff,"NIL",{enumerable:!0,get:function(){return dm.default}});Object.defineProperty(ff,"parse",{enumerable:!0,get:function(){return gm.default}});Object.defineProperty(ff,"stringify",{enumerable:!0,get:function(){return bm.default}});Object.defineProperty(ff,"v1",{enumerable:!0,get:function(){return Nm.default}});Object.defineProperty(ff,"v3",{enumerable:!0,get:function(){return qm.default}});Object.defineProperty(ff,"v4",{enumerable:!0,get:function(){return vm.default}});Object.defineProperty(ff,"v5",{enumerable:!0,get:function(){return jm.default}});Object.defineProperty(ff,"validate",{enumerable:!0,get:function(){return cm.default}});Object.defineProperty(ff,"version",{enumerable:!0,get:function(){return Om.default}});var Nm=C0(oA()),qm=C0(FR()),vm=C0(WR()),jm=C0(ZR()),dm=C0(QR()),Om=C0(HR()),cm=C0(R1()),bm=C0(W1()),gm=C0(uF())});var sU=v((W0r,iR)=>{var{defineProperty:iE,getOwnPropertyDescriptor:_m,getOwnPropertyNames:xm}=Object,em=Object.prototype.hasOwnProperty,hh=(r,f)=>iE(r,"name",{value:f,configurable:!0}),nm=(r,f)=>{for(var s in f)iE(r,s,{get:f[s],enumerable:!0})},om=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of xm(f))if(!em.call(r,h)&&h!==s)iE(r,h,{get:()=>f[h],enumerable:!(w=_m(f,h))||w.enumerable})}return r},am=(r)=>om(iE({},"__esModule",{value:!0}),r),VR={};nm(VR,{isClockSkewCorrectedError:()=>kR,isClockSkewError:()=>wN,isRetryableByTrait:()=>fN,isServerError:()=>$N,isThrottlingError:()=>hN,isTransientError:()=>DR});iR.exports=am(VR);var pm=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],um=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],tm=["TimeoutError","RequestTimeout","RequestTimeoutException"],rN=[500,502,503,504],sN=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],fN=hh((r)=>r.$retryable!==void 0,"isRetryableByTrait"),wN=hh((r)=>pm.includes(r.name),"isClockSkewError"),kR=hh((r)=>{var f;return(f=r.$metadata)==null?void 0:f.clockSkewCorrected},"isClockSkewCorrectedError"),hN=hh((r)=>{var f,s;return((f=r.$metadata)==null?void 0:f.httpStatusCode)===429||um.includes(r.name)||((s=r.$retryable)==null?void 0:s.throttling)==!0},"isThrottlingError"),DR=hh((r)=>{var f;return kR(r)||tm.includes(r.name)||sN.includes((r==null?void 0:r.code)||"")||rN.includes(((f=r.$metadata)==null?void 0:f.httpStatusCode)||0)},"isTransientError"),$N=hh((r)=>{var f;if(((f=r.$metadata)==null?void 0:f.httpStatusCode)!==void 0){const s=r.$metadata.httpStatusCode;if(500<=s&&s<=599&&!DR(r))return!0;return!1}return!1},"isServerError")});var eR=v((z0r,xR)=>{var{defineProperty:yE,getOwnPropertyDescriptor:EN,getOwnPropertyNames:IN}=Object,FN=Object.prototype.hasOwnProperty,wf=(r,f)=>yE(r,"name",{value:f,configurable:!0}),UN=(r,f)=>{for(var s in f)yE(r,s,{get:f[s],enumerable:!0})},TN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of IN(f))if(!FN.call(r,h)&&h!==s)yE(r,h,{get:()=>f[h],enumerable:!(w=EN(f,h))||w.enumerable})}return r},GN=(r)=>TN(yE({},"__esModule",{value:!0}),r),mR={};UN(mR,{AdaptiveRetryStrategy:()=>zN,ConfiguredRetryStrategy:()=>SN,DEFAULT_MAX_ATTEMPTS:()=>fU,DEFAULT_RETRY_DELAY_BASE:()=>z1,DEFAULT_RETRY_MODE:()=>CN,DefaultRateLimiter:()=>vR,INITIAL_RETRY_TOKENS:()=>wU,INVOCATION_ID_HEADER:()=>AN,MAXIMUM_RETRY_DELAY:()=>hU,NO_RETRY_INCREMENT:()=>cR,REQUEST_HEADER:()=>RN,RETRY_COST:()=>dR,RETRY_MODES:()=>NR,StandardRetryStrategy:()=>$U,THROTTLING_RETRY_DELAY_BASE:()=>jR,TIMEOUT_RETRY_COST:()=>OR});xR.exports=GN(mR);var NR=((r)=>{return r.STANDARD="standard",r.ADAPTIVE="adaptive",r})(NR||{}),fU=3,CN="standard",LN=sU(),qR=class r{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(f==null?void 0:f.beta)??0.7,this.minCapacity=(f==null?void 0:f.minCapacity)??1,this.minFillRate=(f==null?void 0:f.minFillRate)??0.5,this.scaleConstant=(f==null?void 0:f.scaleConstant)??0.4,this.smooth=(f==null?void 0:f.smooth)??0.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const s=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,s))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const s=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s),this.lastTimestamp=f}updateClientSendingRate(f){let s;if(this.updateMeasuredRate(),LN.isThrottlingError(f)){const h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),s=Math.floor(f*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){const w=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(f){return parseFloat(f.toFixed(8))}};wf(qR,"DefaultRateLimiter");var vR=qR,z1=100,hU=20000,jR=500,wU=500,dR=5,OR=10,cR=1,AN="amz-sdk-invocation-id",RN="amz-sdk-request",WN=wf(()=>{let r=z1;return{computeNextBackoffDelay:wf((w)=>{return Math.floor(Math.min(hU,Math.random()*2**w*r))},"computeNextBackoffDelay"),setDelayBase:wf((w)=>{r=w},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),yR=wf(({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:wf(()=>f,"getRetryCount"),getRetryDelay:wf(()=>Math.min(hU,r),"getRetryDelay"),getRetryCost:wf(()=>s,"getRetryCost")}},"createDefaultRetryToken"),bR=class r{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=wU,this.retryBackoffStrategy=WN(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return yR({retryDelay:z1,retryCount:0})}async refreshRetryTokenForRetry(f,s){const w=await this.getMaxAttempts();if(this.shouldRetry(f,s,w)){const h=s.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?jR:z1);const $=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),E=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,$):$,I=this.getCapacityCost(h);return this.capacity-=I,yR({retryDelay:E,retryCount:f.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(wU,this.capacity+(f.getRetryCost()??cR))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${fU}`),fU}}shouldRetry(f,s,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(f){return f==="TRANSIENT"?OR:dR}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}};wf(bR,"StandardRetryStrategy");var $U=bR,gR=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode="adaptive";const{rateLimiter:w}=s??{};this.rateLimiter=w??new vR,this.standardRetryStrategy=new $U(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(f,s)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}};wf(gR,"AdaptiveRetryStrategy");var zN=gR,_R=class r extends $U{constructor(f,s=z1){super(typeof f==="function"?f:async()=>f);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s}async refreshRetryTokenForRetry(f,s){const w=await super.refreshRetryTokenForRetry(f,s);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}};wf(_R,"ConfiguredRetryStrategy");var SN=_R});var uR=v((S0r,pR)=>{var{defineProperty:mE,getOwnPropertyDescriptor:PN,getOwnPropertyNames:XN}=Object,YN=Object.prototype.hasOwnProperty,Hs=(r,f)=>mE(r,"name",{value:f,configurable:!0}),KN=(r,f)=>{for(var s in f)mE(r,s,{get:f[s],enumerable:!0})},ZN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of XN(f))if(!YN.call(r,h)&&h!==s)mE(r,h,{get:()=>f[h],enumerable:!(w=PN(f,h))||w.enumerable})}return r},lN=(r)=>ZN(mE({},"__esModule",{value:!0}),r),aR={};KN(aR,{constructStack:()=>EU});pR.exports=lN(aR);var Pw=Hs((r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},"getAllAliases"),v0=Hs((r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},"getMiddlewareNameWithAliases"),EU=Hs(()=>{let r=[],f=[],s=!1;const w=new Set,h=Hs((L)=>L.sort((z,S)=>nR[S.step]-nR[z.step]||oR[S.priority||"normal"]-oR[z.priority||"normal"]),"sort"),$=Hs((L)=>{let z=!1;const S=Hs((Z)=>{const D=Pw(Z.name,Z.aliases);if(D.includes(L)){z=!0;for(let B of D)w.delete(B);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},"removeByName"),E=Hs((L)=>{let z=!1;const S=Hs((Z)=>{if(Z.middleware===L){z=!0;for(let D of Pw(Z.name,Z.aliases))w.delete(D);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},"removeByReference"),I=Hs((L)=>{var z;return r.forEach((S)=>{L.add(S.middleware,{...S})}),f.forEach((S)=>{L.addRelativeTo(S.middleware,{...S})}),(z=L.identifyOnResolve)==null||z.call(L,C.identifyOnResolve()),L},"cloneTo"),F=Hs((L)=>{const z=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z},"expandRelativeMiddlewareList"),U=Hs((L=!1)=>{const z=[],S=[],Z={};return r.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Pw(Q.name,Q.aliases))Z[i]=Q;z.push(Q)}),f.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Pw(Q.name,Q.aliases))Z[i]=Q;S.push(Q)}),S.forEach((B)=>{if(B.toMiddleware){const Q=Z[B.toMiddleware];if(Q===void 0){if(L)return;throw new Error(`${B.toMiddleware} is not found when adding ${v0(B.name,B.aliases)} middleware ${B.relation} ${B.toMiddleware}`)}if(B.relation==="after")Q.after.push(B);if(B.relation==="before")Q.before.push(B)}}),h(z).map(F).reduce((B,Q)=>{return B.push(...Q),B},[])},"getMiddlewareList"),C={add:(L,z={})=>{const{name:S,override:Z,aliases:D}=z,B={step:"initialize",priority:"normal",middleware:L,...z},Q=Pw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${v0(S,D)}'`);for(let i of Q){const x=r.findIndex((hr)=>{var kr;return hr.name===i||((kr=hr.aliases)==null?void 0:kr.some((Rw)=>Rw===i))});if(x===-1)continue;const e=r[x];if(e.step!==B.step||B.priority!==e.priority)throw new Error(`"${v0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${v0(S,D)}" middleware with ${B.priority} priority in ${B.step} step.`);r.splice(x,1)}}for(let i of Q)w.add(i)}r.push(B)},addRelativeTo:(L,z)=>{const{name:S,override:Z,aliases:D}=z,B={middleware:L,...z},Q=Pw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${v0(S,D)}'`);for(let i of Q){const x=f.findIndex((hr)=>{var kr;return hr.name===i||((kr=hr.aliases)==null?void 0:kr.some((Rw)=>Rw===i))});if(x===-1)continue;const e=f[x];if(e.toMiddleware!==B.toMiddleware||e.relation!==B.relation)throw new Error(`"${v0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${v0(S,D)}" middleware ${B.relation} "${B.toMiddleware}" middleware.`);f.splice(x,1)}}for(let i of Q)w.add(i)}f.push(B)},clone:()=>I(EU()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let z=!1;const S=Hs((Z)=>{const{tags:D,name:B,aliases:Q}=Z;if(D&&D.includes(L)){const i=Pw(B,Q);for(let x of i)w.delete(x);return z=!0,!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},concat:(L)=>{var z;const S=I(EU());return S.use(L),S.identifyOnResolve(s||S.identifyOnResolve()||(((z=L.identifyOnResolve)==null?void 0:z.call(L))??!1)),S},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const z=L.step??L.relation+" "+L.toMiddleware;return v0(L.name,L.aliases)+" - "+z})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,z)=>{for(let S of U().map((Z)=>Z.middleware).reverse())L=S(L,z);if(s)console.log(C.identify());return L}};return C},"constructStack"),nR={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},oR={high:3,normal:2,low:1}});var IU=v((P0r,rW)=>{var{defineProperty:NE,getOwnPropertyDescriptor:JN,getOwnPropertyNames:QN}=Object,MN=Object.prototype.hasOwnProperty,BN=(r,f)=>NE(r,"name",{value:f,configurable:!0}),HN=(r,f)=>{for(var s in f)NE(r,s,{get:f[s],enumerable:!0})},VN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of QN(f))if(!MN.call(r,h)&&h!==s)NE(r,h,{get:()=>f[h],enumerable:!(w=JN(f,h))||w.enumerable})}return r},kN=(r)=>VN(NE({},"__esModule",{value:!0}),r),tR={};HN(tR,{isArrayBuffer:()=>DN});rW.exports=kN(tR);var DN=BN((r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]","isArrayBuffer")});var S1=v((X0r,wW)=>{var{defineProperty:qE,getOwnPropertyDescriptor:iN,getOwnPropertyNames:yN}=Object,mN=Object.prototype.hasOwnProperty,sW=(r,f)=>qE(r,"name",{value:f,configurable:!0}),NN=(r,f)=>{for(var s in f)qE(r,s,{get:f[s],enumerable:!0})},qN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of yN(f))if(!mN.call(r,h)&&h!==s)qE(r,h,{get:()=>f[h],enumerable:!(w=iN(f,h))||w.enumerable})}return r},vN=(r)=>qN(qE({},"__esModule",{value:!0}),r),fW={};NN(fW,{fromArrayBuffer:()=>dN,fromString:()=>ON});wW.exports=vN(fW);var jN=IU(),FU=import.meta.require("buffer"),dN=sW((r,f=0,s=r.byteLength-f)=>{if(!jN.isArrayBuffer(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return FU.Buffer.from(r,f,s)},"fromArrayBuffer"),ON=sW((r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?FU.Buffer.from(r,f):FU.Buffer.from(r)},"fromString")});var EW=v((hW)=>{Object.defineProperty(hW,"__esModule",{value:!0});hW.fromBase64=void 0;var cN=S1(),bN=/^[A-Za-z0-9+/]*={0,2}$/,gN=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!bN.exec(r))throw new TypeError("Invalid base64 string.");const f=cN.fromString(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};hW.fromBase64=gN});var j0=v((K0r,TW)=>{var{defineProperty:vE,getOwnPropertyDescriptor:_N,getOwnPropertyNames:xN}=Object,eN=Object.prototype.hasOwnProperty,UU=(r,f)=>vE(r,"name",{value:f,configurable:!0}),nN=(r,f)=>{for(var s in f)vE(r,s,{get:f[s],enumerable:!0})},oN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of xN(f))if(!eN.call(r,h)&&h!==s)vE(r,h,{get:()=>f[h],enumerable:!(w=_N(f,h))||w.enumerable})}return r},aN=(r)=>oN(vE({},"__esModule",{value:!0}),r),IW={};nN(IW,{fromUtf8:()=>UW,toUint8Array:()=>pN,toUtf8:()=>uN});TW.exports=aN(IW);var FW=S1(),UW=UU((r)=>{const f=FW.fromString(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),pN=UU((r)=>{if(typeof r==="string")return UW(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},"toUint8Array"),uN=UU((r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return FW.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")},"toUtf8")});var LW=v((GW)=>{Object.defineProperty(GW,"__esModule",{value:!0});GW.toBase64=void 0;var tN=S1(),rq=j0(),sq=(r)=>{let f;if(typeof r==="string")f=rq.fromUtf8(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return tN.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("base64")};GW.toBase64=sq});var dE=v((l0r,jE)=>{var{defineProperty:AW,getOwnPropertyDescriptor:fq,getOwnPropertyNames:wq}=Object,hq=Object.prototype.hasOwnProperty,TU=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of wq(f))if(!hq.call(r,h)&&h!==s)AW(r,h,{get:()=>f[h],enumerable:!(w=fq(f,h))||w.enumerable})}return r},RW=(r,f,s)=>(TU(r,f,"default"),s&&TU(s,f,"default")),$q=(r)=>TU(AW({},"__esModule",{value:!0}),r),GU={};jE.exports=$q(GU);RW(GU,EW(),jE.exports);RW(GU,LW(),jE.exports)});var SW=v((WW)=>{Object.defineProperty(WW,"__esModule",{value:!0});WW.getAwsChunkedEncodingStream=void 0;var Eq=import.meta.require("stream"),Iq=(r,f)=>{const{base64Encoder:s,bodyLengthChecker:w,checksumAlgorithmFn:h,checksumLocationName:$,streamHasher:E}=f,I=s!==void 0&&h!==void 0&&$!==void 0&&E!==void 0,F=I?E(h,r):void 0,U=new Eq.Readable({read:()=>{}});return r.on("data",(C)=>{const L=w(C)||0;U.push(`${L.toString(16)}\r\n`),U.push(C),U.push("\r\n")}),r.on("end",async()=>{if(U.push("0\r\n"),I){const C=s(await F);U.push(`${$}:${C}\r\n`),U.push("\r\n")}U.push(null)}),U};WW.getAwsChunkedEncodingStream=Iq});var LU=v((Q0r,YW)=>{var{defineProperty:OE,getOwnPropertyDescriptor:Fq,getOwnPropertyNames:Uq}=Object,Tq=Object.prototype.hasOwnProperty,CU=(r,f)=>OE(r,"name",{value:f,configurable:!0}),Gq=(r,f)=>{for(var s in f)OE(r,s,{get:f[s],enumerable:!0})},Cq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Uq(f))if(!Tq.call(r,h)&&h!==s)OE(r,h,{get:()=>f[h],enumerable:!(w=Fq(f,h))||w.enumerable})}return r},Lq=(r)=>Cq(OE({},"__esModule",{value:!0}),r),PW={};Gq(PW,{escapeUri:()=>XW,escapeUriPath:()=>Rq});YW.exports=Lq(PW);var XW=CU((r)=>encodeURIComponent(r).replace(/[!'()*]/g,Aq),"escapeUri"),Aq=CU((r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Rq=CU((r)=>r.split("/").map(XW).join("/"),"escapeUriPath")});var RU=v((M0r,lW)=>{function ZW(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=AU.escapeUri(s),Array.isArray(w))for(let h=0,$=w.length;h<$;h++)f.push(`${s}=${AU.escapeUri(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${AU.escapeUri(w)}`;f.push(h)}}return f.join("&")}var{defineProperty:cE,getOwnPropertyDescriptor:Wq,getOwnPropertyNames:zq}=Object,Sq=Object.prototype.hasOwnProperty,Pq=(r,f)=>cE(r,"name",{value:f,configurable:!0}),Xq=(r,f)=>{for(var s in f)cE(r,s,{get:f[s],enumerable:!0})},Yq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of zq(f))if(!Sq.call(r,h)&&h!==s)cE(r,h,{get:()=>f[h],enumerable:!(w=Wq(f,h))||w.enumerable})}return r},Kq=(r)=>Yq(cE({},"__esModule",{value:!0}),r),KW={};Xq(KW,{buildQueryString:()=>ZW});lW.exports=Kq(KW);var AU=LU();Pq(ZW,"buildQueryString")});var OW=v((B0r,dW)=>{async function SU(r,f,s=JW){const w=f.headers??{},h=w.Expect||w.expect;let $=-1,E=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(JW,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)iW(r,f.body)}function iW(r,f){if(f instanceof DW.Readable){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}async function jW(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}var{create:Zq,defineProperty:P1,getOwnPropertyDescriptor:lq,getOwnPropertyNames:Jq,getPrototypeOf:Qq}=Object,Mq=Object.prototype.hasOwnProperty,Jr=(r,f)=>P1(r,"name",{value:f,configurable:!0}),Bq=(r,f)=>{for(var s in f)P1(r,s,{get:f[s],enumerable:!0})},MW=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Jq(f))if(!Mq.call(r,h)&&h!==s)P1(r,h,{get:()=>f[h],enumerable:!(w=lq(f,h))||w.enumerable})}return r},Hq=(r,f,s)=>(s=r!=null?Zq(Qq(r)):{},MW(f||!r||!r.__esModule?P1(s,"default",{value:r,enumerable:!0}):s,r)),Vq=(r)=>MW(P1({},"__esModule",{value:!0}),r),BW={};Bq(BW,{DEFAULT_REQUEST_TIMEOUT:()=>mq,NodeHttp2Handler:()=>dq,NodeHttpHandler:()=>Nq,streamCollector:()=>cq});dW.exports=Vq(BW);var HW=G0(),VW=RU(),WU=import.meta.require("http"),zU=import.meta.require("https"),kq=["ECONNRESET","EPIPE","ETIMEDOUT"],kW=Jr((r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f},"getTransformedHeaders"),Dq=Jr((r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})},"setConnectionTimeout"),iq=Jr((r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})},"setSocketKeepAlive"),yq=Jr((r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),DW=import.meta.require("stream"),JW=1000;Jr(SU,"writeRequestBody");Jr(iW,"writeBody");var mq=0,yW=class r{constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(this.resolveDefaultConfig(h))}).catch(w);else s(this.resolveDefaultConfig(f))})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}static checkSocketUsage(f,s,w=console){var h,$,E;const{sockets:I,requests:F,maxSockets:U}=f;if(typeof U!=="number"||U===1/0)return s;const C=15000;if(Date.now()-C<s)return s;if(I&&F)for(let L in I){const z=((h=I[L])==null?void 0:h.length)??0,S=(($=F[L])==null?void 0:$.length)??0;if(z>=U&&S>=2*U)return(E=w==null?void 0:w.warn)==null||E.call(w,`@smithy/node-http-handler:WARN - socket usage at capacity=${z} and ${S} additional requests are enqueued.
2
+ var zD=Object.create;var{getPrototypeOf:SD,defineProperty:CF,getOwnPropertyNames:PD}=Object;var XD=Object.prototype.hasOwnProperty;var u=(r,f,s)=>{s=r!=null?zD(SD(r)):{};const w=f||!r||!r.__esModule?CF(s,"default",{value:r,enumerable:!0}):s;for(let h of PD(r))if(!XD.call(w,h))CF(w,h,{get:()=>r[h],enumerable:!0});return w};var j=(r,f)=>()=>(f||r((f={exports:{}}).exports,f),f.exports);var Af=(r,f)=>{for(var s in f)CF(r,s,{get:f[s],enumerable:!0,configurable:!0,set:(w)=>f[s]=()=>w})};var G=(r,f)=>()=>(r&&(f=r(r=0)),f);var Rf=(r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},Wf=(r)=>{return{httpHandler:r.httpHandler()}};var b4=()=>{};var $s=j((Eu,p4)=>{var{defineProperty:w$,getOwnPropertyDescriptor:YD,getOwnPropertyNames:KD}=Object,ZD=Object.prototype.hasOwnProperty,h$=(r,f)=>w$(r,"name",{value:f,configurable:!0}),MD=(r,f)=>{for(var s in f)w$(r,s,{get:f[s],enumerable:!0})},JD=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of KD(f))if(!ZD.call(r,h)&&h!==s)w$(r,h,{get:()=>f[h],enumerable:!(w=YD(f,h))||w.enumerable})}return r},QD=(r)=>JD(w$({},"__esModule",{value:!0}),r),c4={};MD(c4,{AlgorithmId:()=>e4,EndpointURLScheme:()=>x4,FieldPosition:()=>n4,HttpApiKeyAuthLocation:()=>g4,HttpAuthLocation:()=>_4,IniSectionType:()=>o4,RequestHandlerProtocol:()=>a4,SMITHY_CONTEXT_KEY:()=>DD,getDefaultClientConfiguration:()=>VD,resolveDefaultRuntimeConfig:()=>HD});p4.exports=QD(c4);var _4=((r)=>{return r.HEADER="header",r.QUERY="query",r})(_4||{}),g4=((r)=>{return r.HEADER="header",r.QUERY="query",r})(g4||{}),x4=((r)=>{return r.HTTP="http",r.HTTPS="https",r})(x4||{}),e4=((r)=>{return r.MD5="md5",r.CRC32="crc32",r.CRC32C="crc32c",r.SHA1="sha1",r.SHA256="sha256",r})(e4||{}),BD=h$((r)=>{const f=[];if(r.sha256!==void 0)f.push({algorithmId:()=>"sha256",checksumConstructor:()=>r.sha256});if(r.md5!=null)f.push({algorithmId:()=>"md5",checksumConstructor:()=>r.md5});return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),lD=h$((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),VD=h$((r)=>{return{...BD(r)}},"getDefaultClientConfiguration"),HD=h$((r)=>{return{...lD(r)}},"resolveDefaultRuntimeConfig"),n4=((r)=>{return r[r.HEADER=0]="HEADER",r[r.TRAILER=1]="TRAILER",r})(n4||{}),DD="__smithy_context",o4=((r)=>{return r.PROFILE="profile",r.SSO_SESSION="sso-session",r.SERVICES="services",r})(o4||{}),a4=((r)=>{return r.HTTP_0_9="http/0.9",r.HTTP_1_0="http/1.0",r.TDS_8_0="tds/8.0",r})(a4||{})});var kD;var u4=G(()=>{kD=u($s(),1)});var t4=()=>{};function ND(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}class Qr{constructor(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?r.protocol.slice(-1)!==":"?`${r.protocol}:`:r.protocol:"https:",this.path=r.path?r.path.charAt(0)!=="/"?`/${r.path}`:r.path:"/",this.username=r.username,this.password=r.password,this.fragment=r.fragment}static clone(r){const f=new Qr({...r,headers:{...r.headers}});if(f.query)f.query=ND(f.query);return f}static isInstance(r){if(!r)return!1;const f=r;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return Qr.clone(this)}}class Gw{constructor(r){this.statusCode=r.statusCode,this.reason=r.reason,this.headers=r.headers||{},this.body=r.body}static isInstance(r){if(!r)return!1;const f=r;return typeof f.statusCode==="number"&&typeof f.headers==="object"}}var rL=()=>{};var qr=G(()=>{b4();u4();t4();rL()});function zf(r){return r}var yD=(r)=>(f)=>async(s)=>{if(!Qr.isInstance(s.request))return f(s);const{request:w}=s,{handlerProtocol:h=""}=r.requestHandler.metadata||{};if(h.indexOf("h2")>=0&&!w.headers[":authority"])delete w.headers.host,w.headers[":authority"]=w.hostname+(w.port?":"+w.port:"");else if(!w.headers.host){let E=w.hostname;if(w.port!=null)E+=`:${w.port}`;w.headers.host=E}return f(s)},qD,Sf=(r)=>({applyToStack:(f)=>{f.add(yD(r),qD)}});var ew=G(()=>{qr();qD={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0}});var mD=()=>(r,f)=>async(s)=>{try{const w=await r(s),{clientName:h,commandName:E,logger:$,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:U}=I,C=F??f.inputFilterSensitiveLog,L=U??f.outputFilterSensitiveLog,{$metadata:z,...S}=w.output;return $?.info?.({clientName:h,commandName:E,input:C(s.input),output:L(S),metadata:z}),w}catch(w){const{clientName:h,commandName:E,logger:$,dynamoDbDocumentClientOptions:I={}}=f,{overrideInputFilterSensitiveLog:F}=I,U=F??f.inputFilterSensitiveLog;throw $?.error?.({clientName:h,commandName:E,input:U(s.input),error:w,metadata:w.$metadata}),w}},vD,Pf=(r)=>({applyToStack:(f)=>{f.add(mD(),vD)}});var sL=G(()=>{vD={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0}});var nw=G(()=>{sL()});var fL="X-Amzn-Trace-Id",jD="AWS_LAMBDA_FUNCTION_NAME",iD="_X_AMZN_TRACE_ID",dD=(r)=>(f)=>async(s)=>{const{request:w}=s;if(!Qr.isInstance(w)||r.runtime!=="node"||w.headers.hasOwnProperty(fL))return f(s);const h=process.env[jD],E=process.env[iD],$=(I)=>typeof I==="string"&&I.length>0;if($(h)&&$(E))w.headers[fL]=E;return f({...s,request:w})},OD,Xf=(r)=>({applyToStack:(f)=>{f.add(dD(r),OD)}});var ow=G(()=>{qr();OD={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});function Yf(r){return{...r,customUserAgent:typeof r.customUserAgent==="string"?[[r.customUserAgent]]:r.customUserAgent}}var bD,$1=(r)=>bD.test(r)||r.startsWith("[")&&r.endsWith("]");var LF=G(()=>{bD=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$")});var cD,I1=(r,f=!1)=>{if(!f)return cD.test(r);const s=r.split(".");for(let w of s)if(!I1(w))return!1;return!0};var AF=G(()=>{cD=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$")});var pr;var E$=G(()=>{pr={}});var U0="endpoints";function Xs(r){if(typeof r!=="object"||r==null)return r;if("ref"in r)return`\$${Xs(r.ref)}`;if("fn"in r)return`${r.fn}(${(r.argv||[]).map(Xs).join(", ")})`;return JSON.stringify(r,null,2)}var F1=()=>{};var Wr;var wL=G(()=>{Wr=class Wr extends Error{constructor(r){super(r);this.name="EndpointError"}}});var hL=()=>{};var EL=()=>{};var $L=()=>{};var IL=()=>{};var FL=()=>{};var UL=()=>{};var Ys=G(()=>{wL();hL();EL();$L();IL();FL();UL()});var TL=(r,f)=>r===f;var GL=(r)=>{const f=r.split("."),s=[];for(let w of f){const h=w.indexOf("[");if(h!==-1){if(w.indexOf("]")!==w.length-1)throw new Wr(`Path: '${r}' does not end with ']'`);const E=w.slice(h+1,-1);if(Number.isNaN(parseInt(E)))throw new Wr(`Invalid array index: '${E}' in path: '${r}'`);if(h!==0)s.push(w.slice(0,h));s.push(E)}else s.push(w)}return s};var CL=G(()=>{Ys()});var $$=(r,f)=>GL(f).reduce((s,w)=>{if(typeof s!=="object")throw new Wr(`Index '${w}' in '${f}' not found in '${JSON.stringify(r)}'`);else if(Array.isArray(s))return s[parseInt(w)];return s[w]},r);var LL=G(()=>{Ys();CL()});var AL=(r)=>r!=null;var RL=(r)=>!r;var I$,RF,WL=(r)=>{const f=(()=>{try{if(r instanceof URL)return r;if(typeof r==="object"&&"hostname"in r){const{hostname:z,port:S,protocol:K="",path:k="",query:l={}}=r,Q=new URL(`${K}//${z}${S?`:${S}`:""}${k}`);return Q.search=Object.entries(l).map(([N,x])=>`${N}=${x}`).join("&"),Q}return new URL(r)}catch(z){return null}})();if(!f)return console.error(`Unable to parse ${JSON.stringify(r)} as a whatwg URL.`),null;const s=f.href,{host:w,hostname:h,pathname:E,protocol:$,search:I}=f;if(I)return null;const F=$.slice(0,-1);if(!Object.values(I$.EndpointURLScheme).includes(F))return null;const U=$1(h),C=s.includes(`${w}:${RF[F]}`)||typeof r==="string"&&r.includes(`${w}:${RF[F]}`),L=`${w}${C?`:${RF[F]}`:""}`;return{scheme:F,authority:L,path:E,normalizedPath:E.endsWith("/")?E:`${E}/`,isIp:U}};var zL=G(()=>{I$=u($s(),1);LF();RF={[I$.EndpointURLScheme.HTTP]:80,[I$.EndpointURLScheme.HTTPS]:443}});var SL=(r,f)=>r===f;var PL=(r,f,s,w)=>{if(f>=s||r.length<s)return null;if(!w)return r.substring(f,s);return r.substring(r.length-s,r.length-f)};var XL=(r)=>encodeURIComponent(r).replace(/[!*'()]/g,(f)=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`);var WF=G(()=>{LL();AF();zL()});var YL;var KL=G(()=>{WF();YL={booleanEquals:TL,getAttr:$$,isSet:AL,isValidHostLabel:I1,not:RL,parseURL:WL,stringEquals:SL,substring:PL,uriEncode:XL}});var F$=(r,f)=>{const s=[],w={...f.endpointParams,...f.referenceRecord};let h=0;while(h<r.length){const E=r.indexOf("{",h);if(E===-1){s.push(r.slice(h));break}s.push(r.slice(h,E));const $=r.indexOf("}",E);if($===-1){s.push(r.slice(E));break}if(r[E+1]==="{"&&r[$+1]==="}")s.push(r.slice(E+1,$)),h=$+2;const I=r.substring(E+1,$);if(I.includes("#")){const[F,U]=I.split("#");s.push($$(w[F],U))}else s.push(w[I]);h=$+1}return s.join("")};var zF=G(()=>{WF()});var ZL=({ref:r},f)=>{return{...f.endpointParams,...f.referenceRecord}[r]};var H0=(r,f,s)=>{if(typeof r==="string")return F$(r,s);else if(r.fn)return U$(r,s);else if(r.ref)return ZL(r,s);throw new Wr(`'${f}': ${String(r)} is not a string, function or reference.`)};var U1=G(()=>{Ys();SF();zF()});var U$=({fn:r,argv:f},s)=>{const w=f.map((E)=>["boolean","number"].includes(typeof E)?E:H0(E,"arg",s)),h=r.split(".");if(h[0]in pr&&h[1]!=null)return pr[h[0]][h[1]](...w);return YL[r](...w)};var SF=G(()=>{E$();KL();U1()});var ML=({assign:r,...f},s)=>{if(r&&r in s.referenceRecord)throw new Wr(`'${r}' is already defined in Reference Record.`);const w=U$(f,s);return s.logger?.debug?.(`${U0} evaluateCondition: ${Xs(f)} = ${Xs(w)}`),{result:w===""?!0:!!w,...r!=null&&{toAssign:{name:r,value:w}}}};var JL=G(()=>{F1();Ys();SF()});var aw=(r=[],f)=>{const s={};for(let w of r){const{result:h,toAssign:E}=ML(w,{...f,referenceRecord:{...f.referenceRecord,...s}});if(!h)return{result:h};if(E)s[E.name]=E.value,f.logger?.debug?.(`${U0} assign: ${E.name} := ${Xs(E.value)}`)}return{result:!0,referenceRecord:s}};var T$=G(()=>{F1();JL()});var QL=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:h.map((E)=>{const $=H0(E,"Header value entry",f);if(typeof $!=="string")throw new Wr(`Header '${w}' value '${$}' is not a string`);return $})}),{});var BL=G(()=>{Ys();U1()});var PF=(r,f)=>{if(Array.isArray(r))return r.map((s)=>PF(s,f));switch(typeof r){case"string":return F$(r,f);case"object":if(r===null)throw new Wr(`Unexpected endpoint property: ${r}`);return G$(r,f);case"boolean":return r;default:throw new Wr(`Unexpected endpoint property type: ${typeof r}`)}};var lL=G(()=>{Ys();zF();XF()});var G$=(r,f)=>Object.entries(r).reduce((s,[w,h])=>({...s,[w]:PF(h,f)}),{});var XF=G(()=>{lL()});var VL=(r,f)=>{const s=H0(r,"Endpoint URL",f);if(typeof s==="string")try{return new URL(s)}catch(w){throw console.error(`Failed to construct URL with ${s}`,w),w}throw new Wr(`Endpoint URL must be a string, got ${typeof s}`)};var HL=G(()=>{Ys();U1()});var DL=(r,f)=>{const{conditions:s,endpoint:w}=r,{result:h,referenceRecord:E}=aw(s,f);if(!h)return;const $={...f,referenceRecord:{...f.referenceRecord,...E}},{url:I,properties:F,headers:U}=w;return f.logger?.debug?.(`${U0} Resolving endpoint from template: ${Xs(w)}`),{...U!=null&&{headers:QL(U,$)},...F!=null&&{properties:G$(F,$)},url:VL(I,$)}};var kL=G(()=>{F1();T$();BL();XF();HL()});var NL=(r,f)=>{const{conditions:s,error:w}=r,{result:h,referenceRecord:E}=aw(s,f);if(!h)return;throw new Wr(H0(w,"Error",{...f,referenceRecord:{...f.referenceRecord,...E}}))};var yL=G(()=>{Ys();T$();U1()});var qL=(r,f)=>{const{conditions:s,rules:w}=r,{result:h,referenceRecord:E}=aw(s,f);if(!h)return;return C$(w,{...f,referenceRecord:{...f.referenceRecord,...E}})};var mL=G(()=>{T$();YF()});var C$=(r,f)=>{for(let s of r)if(s.type==="endpoint"){const w=DL(s,f);if(w)return w}else if(s.type==="error")NL(s,f);else if(s.type==="tree"){const w=qL(s,f);if(w)return w}else throw new Wr(`Unknown endpoint rule: ${s}`);throw new Wr("Rules evaluation failed")};var YF=G(()=>{Ys();kL();yL();mL()});var vL=G(()=>{E$();YF()});var es=(r,f)=>{const{endpointParams:s,logger:w}=f,{parameters:h,rules:E}=r;f.logger?.debug?.(`${U0} Initial EndpointParams: ${Xs(s)}`);const $=Object.entries(h).filter(([,U])=>U.default!=null).map(([U,C])=>[U,C.default]);if($.length>0)for(let[U,C]of $)s[U]=s[U]??C;const I=Object.entries(h).filter(([,U])=>U.required).map(([U])=>U);for(let U of I)if(s[U]==null)throw new Wr(`Missing required parameter: '${U}'`);const F=C$(E,{endpointParams:s,logger:w,referenceRecord:{}});if(f.endpointParams?.Endpoint)try{const U=new URL(f.endpointParams.Endpoint),{protocol:C,port:L}=U;F.url.protocol=C,F.url.port=L}catch(U){}return f.logger?.debug?.(`${U0} Resolved endpoint: ${Xs(F)}`),F};var jL=G(()=>{F1();Ys();vL()});var ns=G(()=>{LF();AF();E$();jL();Ys()});var KF=G(()=>{ns()});var ZF=(r,f=!1)=>{if(f){for(let s of r.split("."))if(!ZF(s))return!1;return!0}if(!I1(r))return!1;if(r.length<3||r.length>63)return!1;if(r!==r.toLowerCase())return!1;if($1(r))return!1;return!0};var iL=G(()=>{ns();KF()});var dL=(r)=>{const f=r.split(":");if(f.length<6)return null;const[s,w,h,E,$,...I]=f;if(s!=="arn"||w===""||h===""||I.join(":")==="")return null;const F=I.map((U)=>U.split("/")).flat();return{partition:w,service:h,region:E,accountId:$,resourceId:F}};var bL;var OL=G(()=>{bL={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"}});var gD,xD="",cL=(r)=>{const{partitions:f}=gD;for(let w of f){const{regions:h,outputs:E}=w;for(let[$,I]of Object.entries(h))if($===r)return{...E,...I}}for(let w of f){const{regionRegex:h,outputs:E}=w;if(new RegExp(h).test(r))return{...E}}const s=f.find((w)=>w.id==="aws");if(!s)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...s.outputs}},_L=()=>xD;var MF=G(()=>{OL();gD=bL});var os;var gL=G(()=>{ns();iL();MF();os={isVirtualHostableS3Bucket:ZF,parseArn:dL,partition:cL};pr.aws=os});var xL=G(()=>{ns()});var eL=G(()=>{ns()});var nL=()=>{};var oL=()=>{};var aL=()=>{};var pL=()=>{};var uL=()=>{};var tL=G(()=>{eL();nL();oL();aL();pL();uL()});var Cw=G(()=>{gL();MF();KF();xL();tL()});var JF="user-agent",L$="x-amz-user-agent",QF=" ",A$="/",rA,sA,BF="-";var fA=G(()=>{rA=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,sA=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g});var eD=(r)=>(f,s)=>async(w)=>{const{request:h}=w;if(!Qr.isInstance(h))return f(w);const{headers:E}=h,$=s?.userAgent?.map(lF)||[],I=(await r.defaultUserAgentProvider()).map(lF),F=r?.customUserAgent?.map(lF)||[],U=_L(),C=(U?[U]:[]).concat([...I,...$,...F]).join(QF),L=[...I.filter((z)=>z.startsWith("aws-sdk-")),...F].join(QF);if(r.runtime!=="browser"){if(L)E[L$]=E[L$]?`${E[JF]} ${L}`:L;E[JF]=C}else E[L$]=C;return f({...w,request:h})},lF=(r)=>{const f=r[0].split(A$).map(($)=>$.replace(rA,BF)).join(A$),s=r[1]?.replace(sA,BF),w=f.indexOf(A$),h=f.substring(0,w);let E=f.substring(w+1);if(h==="api")E=E.toLowerCase();return[h,E,s].filter(($)=>$&&$.length>0).reduce(($,I,F)=>{switch(F){case 0:return I;case 1:return`${$}/${I}`;default:return`${$}#${I}`}},"")},nD,Kf=(r)=>({applyToStack:(f)=>{f.add(eD(r),nD)}});var wA=G(()=>{Cw();qr();fA();nD={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0}});var pw=G(()=>{wA()});var uw=(r,f,s)=>{if(!(f in r))return;if(r[f]==="true")return!0;if(r[f]==="false")return!1;throw new Error(`Cannot load ${s} "${f}". Expected "true" or "false", got ${r[f]}.`)};var D0;var hA=G(()=>{(function(r){r.ENV="env",r.CONFIG="shared config entry"})(D0||(D0={}))});var VF=G(()=>{hA()});var oD="AWS_USE_DUALSTACK_ENDPOINT",aD="use_dualstack_endpoint",Zf;var EA=G(()=>{VF();Zf={environmentVariableSelector:(r)=>uw(r,oD,D0.ENV),configFileSelector:(r)=>uw(r,aD,D0.CONFIG),default:!1}});var pD="AWS_USE_FIPS_ENDPOINT",uD="use_fips_endpoint",Mf;var $A=G(()=>{VF();Mf={environmentVariableSelector:(r)=>uw(r,pD,D0.ENV),configFileSelector:(r)=>uw(r,uD,D0.CONFIG),default:!1}});var HF,Ks=(r)=>r[HF.SMITHY_CONTEXT_KEY]||(r[HF.SMITHY_CONTEXT_KEY]={});var IA=G(()=>{HF=u($s(),1)});var Nr=(r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f};var as=G(()=>{IA()});var FA=G(()=>{as()});var UA=G(()=>{as()});var TA=G(()=>{EA();$A();FA();UA()});var Zs,Jf;var GA=G(()=>{Zs={environmentVariableSelector:(r)=>r.AWS_REGION,configFileSelector:(r)=>r.region,default:()=>{throw new Error("Region is missing")}},Jf={preferredFile:"credentials"}});var R$=(r)=>typeof r==="string"&&(r.startsWith("fips-")||r.endsWith("-fips"));var DF=(r)=>R$(r)?["fips-aws-global","aws-fips"].includes(r)?"us-east-1":r.replace(/fips-(dkr-|prod-)?|-fips/,""):r;var CA=()=>{};var Qf=(r)=>{const{region:f,useFipsEndpoint:s}=r;if(!f)throw new Error("Region is missing");return{...r,region:async()=>{if(typeof f==="string")return DF(f);const w=await f();return DF(w)},useFipsEndpoint:async()=>{const w=typeof f==="string"?f:await f();if(R$(w))return!0;return typeof s!=="function"?Promise.resolve(!!s):s()}}};var LA=G(()=>{CA()});var AA=G(()=>{GA();LA()});var RA=()=>{};var WA=()=>{};var zA=()=>{};var SA=G(()=>{RA();WA();zA()});var Ms=G(()=>{TA();AA();SA()});var T1=j((Afr,KA)=>{var{defineProperty:W$,getOwnPropertyDescriptor:tD,getOwnPropertyNames:rk}=Object,sk=Object.prototype.hasOwnProperty,XA=(r,f)=>W$(r,"name",{value:f,configurable:!0}),fk=(r,f)=>{for(var s in f)W$(r,s,{get:f[s],enumerable:!0})},wk=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of rk(f))if(!sk.call(r,h)&&h!==s)W$(r,h,{get:()=>f[h],enumerable:!(w=tD(f,h))||w.enumerable})}return r},hk=(r)=>wk(W$({},"__esModule",{value:!0}),r),YA={};fk(YA,{getSmithyContext:()=>Ek,normalizeProvider:()=>$k});KA.exports=hk(YA);var PA=$s(),Ek=XA((r)=>r[PA.SMITHY_CONTEXT_KEY]||(r[PA.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),$k=XA((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider")});var kF=j((Rfr,BA)=>{var{defineProperty:z$,getOwnPropertyDescriptor:Ik,getOwnPropertyNames:Fk}=Object,Uk=Object.prototype.hasOwnProperty,Lw=(r,f)=>z$(r,"name",{value:f,configurable:!0}),Tk=(r,f)=>{for(var s in f)z$(r,s,{get:f[s],enumerable:!0})},Gk=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Fk(f))if(!Uk.call(r,h)&&h!==s)z$(r,h,{get:()=>f[h],enumerable:!(w=Ik(f,h))||w.enumerable})}return r},Ck=(r)=>Gk(z$({},"__esModule",{value:!0}),r),ZA={};Tk(ZA,{CredentialsProviderError:()=>Lk,ProviderError:()=>S$,TokenProviderError:()=>Ak,chain:()=>Rk,fromStatic:()=>Wk,memoize:()=>zk});BA.exports=Ck(ZA);var MA=class r extends Error{constructor(f,s=!0){var w;let h,E=!0;if(typeof s==="boolean")h=void 0,E=s;else if(s!=null&&typeof s==="object")h=s.logger,E=s.tryNextLink??!0;super(f);this.name="ProviderError",this.tryNextLink=E,Object.setPrototypeOf(this,r.prototype),(w=h==null?void 0:h.debug)==null||w.call(h,`@smithy/property-provider ${E?"->":"(!)"} ${f}`)}static from(f,s=!0){return Object.assign(new this(f.message,s),f)}};Lw(MA,"ProviderError");var S$=MA,JA=class r extends S${constructor(f,s=!0){super(f,s);this.name="CredentialsProviderError",Object.setPrototypeOf(this,r.prototype)}};Lw(JA,"CredentialsProviderError");var Lk=JA,QA=class r extends S${constructor(f,s=!0){super(f,s);this.name="TokenProviderError",Object.setPrototypeOf(this,r.prototype)}};Lw(QA,"TokenProviderError");var Ak=QA,Rk=Lw((...r)=>async()=>{if(r.length===0)throw new S$("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w==null?void 0:w.tryNextLink)continue;throw w}throw f},"chain"),Wk=Lw((r)=>()=>Promise.resolve(r),"fromStatic"),zk=Lw((r,f,s)=>{let w,h,E,$=!1;const I=Lw(async()=>{if(!h)h=r();try{w=await h,E=!0,$=!1}finally{h=void 0}return w},"coalesceProvider");if(f===void 0)return async(F)=>{if(!E||(F==null?void 0:F.forceRefresh))w=await I();return w};return async(F)=>{if(!E||(F==null?void 0:F.forceRefresh))w=await I();if($)return w;if(s&&!s(w))return $=!0,w;if(f(w))return await I(),w;return w}},"memoize")});var tw=j((lA)=>{Object.defineProperty(lA,"__esModule",{value:!0});lA.getHomeDir=void 0;var Sk=import.meta.require("os"),Pk=import.meta.require("path"),NF={},Xk=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},Yk=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${Pk.sep}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=Xk();if(!NF[h])NF[h]=Sk.homedir();return NF[h]};lA.getHomeDir=Yk});var yF=j((HA)=>{Object.defineProperty(HA,"__esModule",{value:!0});HA.getSSOTokenFilepath=void 0;var Kk=import.meta.require("crypto"),Zk=import.meta.require("path"),Mk=tw(),Jk=(r)=>{const s=Kk.createHash("sha1").update(r).digest("hex");return Zk.join(Mk.getHomeDir(),".aws","sso","cache",`${s}.json`)};HA.getSSOTokenFilepath=Jk});var yA=j((kA)=>{Object.defineProperty(kA,"__esModule",{value:!0});kA.getSSOTokenFromFile=void 0;var Qk=import.meta.require("fs"),Bk=yF(),{readFile:lk}=Qk.promises,Vk=async(r)=>{const f=Bk.getSSOTokenFilepath(r),s=await lk(f,"utf8");return JSON.parse(s)};kA.getSSOTokenFromFile=Vk});var mF=j((qA)=>{Object.defineProperty(qA,"__esModule",{value:!0});qA.slurpFile=void 0;var Hk=import.meta.require("fs"),{readFile:Dk}=Hk.promises,qF={},kk=(r,f)=>{if(!qF[r]||(f===null||f===void 0?void 0:f.ignoreCache))qF[r]=Dk(r,"utf8");return qF[r]};qA.slurpFile=kk});var dF=j((Xfr,C1)=>{var{defineProperty:Y$,getOwnPropertyDescriptor:Nk,getOwnPropertyNames:yk}=Object,qk=Object.prototype.hasOwnProperty,Js=(r,f)=>Y$(r,"name",{value:f,configurable:!0}),mk=(r,f)=>{for(var s in f)Y$(r,s,{get:f[s],enumerable:!0})},vF=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of yk(f))if(!qk.call(r,h)&&h!==s)Y$(r,h,{get:()=>f[h],enumerable:!(w=Nk(f,h))||w.enumerable})}return r},iF=(r,f,s)=>(vF(r,f,"default"),s&&vF(s,f,"default")),vk=(r)=>vF(Y$({},"__esModule",{value:!0}),r),G1={};mk(G1,{CONFIG_PREFIX_SEPARATOR:()=>Aw,DEFAULT_PROFILE:()=>dA,ENV_PROFILE:()=>iA,getProfileName:()=>jk,loadSharedConfigFiles:()=>bA,loadSsoSessionData:()=>pk,parseKnownFiles:()=>tk});C1.exports=vk(G1);iF(G1,tw(),C1.exports);var iA="AWS_PROFILE",dA="default",jk=Js((r)=>r.profile||process.env[iA]||dA,"getProfileName");iF(G1,yF(),C1.exports);iF(G1,yA(),C1.exports);var P$=$s(),ik=Js((r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Aw);if(s===-1)return!1;return Object.values(P$.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Aw),E=s.substring(0,h)===P$.IniSectionType.PROFILE?s.substring(h+1):s;return f[E]=w,f},{...r.default&&{default:r.default}}),"getConfigData"),X$=import.meta.require("path"),dk=tw(),Ok="AWS_CONFIG_FILE",OA=Js(()=>process.env[Ok]||X$.join(dk.getHomeDir(),".aws","config"),"getConfigFilepath"),bk=tw(),ck="AWS_SHARED_CREDENTIALS_FILE",_k=Js(()=>process.env[ck]||X$.join(bk.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),gk=tw(),xk=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,ek=["__proto__","profile __proto__"],jF=Js((r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const E=h.split(/(^|\s)[;#]/)[0].trim();if(E[0]==="["&&E[E.length-1]==="]"){s=void 0,w=void 0;const I=E.substring(1,E.length-1),F=xk.exec(I);if(F){const[,U,,C]=F;if(Object.values(P$.IniSectionType).includes(U))s=[U,C].join(Aw)}else s=I;if(ek.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=E.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[E.substring(0,I).trim(),E.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Aw):F;f[s][C]=U}}}}return f},"parseIni"),vA=mF(),jA=Js(()=>({}),"swallowError"),Aw=".",bA=Js(async(r={})=>{const{filepath:f=_k(),configFilepath:s=OA()}=r,w=gk.getHomeDir();let E=f;if(f.startsWith("~/"))E=X$.join(w,f.slice(2));let $=s;if(s.startsWith("~/"))$=X$.join(w,s.slice(2));const I=await Promise.all([vA.slurpFile($,{ignoreCache:r.ignoreCache}).then(jF).then(ik).catch(jA),vA.slurpFile(E,{ignoreCache:r.ignoreCache}).then(jF).catch(jA)]);return{configFile:I[0],credentialsFile:I[1]}},"loadSharedConfigFiles"),nk=Js((r)=>Object.entries(r).filter(([f])=>f.startsWith(P$.IniSectionType.SSO_SESSION+Aw)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Aw)+1)]:w}),{}),"getSsoSessionData"),ok=mF(),ak=Js(()=>({}),"swallowError"),pk=Js(async(r={})=>ok.slurpFile(r.configFilepath??OA()).then(jF).then(nk).catch(ak),"loadSsoSessionData"),uk=Js((...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f},"mergeConfigFiles"),tk=Js(async(r)=>{const f=await bA(r);return uk(f.configFile,f.credentialsFile)},"parseKnownFiles")});var xA=j((Yfr,gA)=>{function OF(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var{defineProperty:K$,getOwnPropertyDescriptor:rN,getOwnPropertyNames:sN}=Object,fN=Object.prototype.hasOwnProperty,rh=(r,f)=>K$(r,"name",{value:f,configurable:!0}),wN=(r,f)=>{for(var s in f)K$(r,s,{get:f[s],enumerable:!0})},hN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of sN(f))if(!fN.call(r,h)&&h!==s)K$(r,h,{get:()=>f[h],enumerable:!(w=rN(f,h))||w.enumerable})}return r},EN=(r)=>hN(K$({},"__esModule",{value:!0}),r),_A={};wN(_A,{loadConfig:()=>TN});gA.exports=EN(_A);var L1=kF();rh(OF,"getSelectorName");var $N=rh((r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new L1.CredentialsProviderError(s.message||`Not found in ENV: ${OF(r.toString())}`,{logger:f})}},"fromEnv"),cA=dF(),IN=rh((r,{preferredFile:f="config",...s}={})=>async()=>{const w=cA.getProfileName(s),{configFile:h,credentialsFile:E}=await cA.loadSharedConfigFiles(s),$=E[w]||{},I=h[w]||{},F=f==="config"?{...$,...I}:{...I,...$};try{const C=r(F,f==="config"?h:E);if(C===void 0)throw new Error;return C}catch(U){throw new L1.CredentialsProviderError(U.message||`Not found in config files w/ profile [${w}]: ${OF(r.toString())}`,{logger:s.logger})}},"fromSharedConfigFiles"),FN=rh((r)=>typeof r==="function","isFunction"),UN=rh((r)=>FN(r)?async()=>await r():L1.fromStatic(r),"fromStatic"),TN=rh(({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>L1.memoize(L1.chain($N(r),IN(f,w),UN(s))),"loadConfig")});var uA=j((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.getEndpointUrlConfig=void 0;var eA=dF(),nA="AWS_ENDPOINT_URL",oA="endpoint_url",GN=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map((E)=>E.toUpperCase()),w=f[[nA,...s].join("_")];if(w)return w;const h=f[nA];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(eA.CONFIG_PREFIX_SEPARATOR)];if(h){const E=r.split(" ").map((I)=>I.toLowerCase()),$=h[[E.join("_"),oA].join(eA.CONFIG_PREFIX_SEPARATOR)];if($)return $}}const w=f[oA];if(w)return w;return},default:void 0});aA.getEndpointUrlConfig=GN});var sR=j((tA)=>{Object.defineProperty(tA,"__esModule",{value:!0});tA.getEndpointFromConfig=void 0;var CN=xA(),LN=uA(),AN=async(r)=>CN.loadConfig(LN.getEndpointUrlConfig(r))();tA.getEndpointFromConfig=AN});var ER=j((Mfr,hR)=>{function wR(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var{defineProperty:Z$,getOwnPropertyDescriptor:RN,getOwnPropertyNames:WN}=Object,zN=Object.prototype.hasOwnProperty,SN=(r,f)=>Z$(r,"name",{value:f,configurable:!0}),PN=(r,f)=>{for(var s in f)Z$(r,s,{get:f[s],enumerable:!0})},XN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of WN(f))if(!zN.call(r,h)&&h!==s)Z$(r,h,{get:()=>f[h],enumerable:!(w=RN(f,h))||w.enumerable})}return r},YN=(r)=>XN(Z$({},"__esModule",{value:!0}),r),fR={};PN(fR,{parseQueryString:()=>wR});hR.exports=YN(fR);SN(wR,"parseQueryString")});var UR=j((Jfr,FR)=>{var{defineProperty:M$,getOwnPropertyDescriptor:KN,getOwnPropertyNames:ZN}=Object,MN=Object.prototype.hasOwnProperty,JN=(r,f)=>M$(r,"name",{value:f,configurable:!0}),QN=(r,f)=>{for(var s in f)M$(r,s,{get:f[s],enumerable:!0})},BN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of ZN(f))if(!MN.call(r,h)&&h!==s)M$(r,h,{get:()=>f[h],enumerable:!(w=KN(f,h))||w.enumerable})}return r},lN=(r)=>BN(M$({},"__esModule",{value:!0}),r),$R={};QN($R,{parseUrl:()=>IR});FR.exports=lN($R);var VN=ER(),IR=JN((r)=>{if(typeof r==="string")return IR(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:E}=r;let $;if(E)$=VN.parseQueryString(E);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:$}},"parseUrl")});var cF=j((Qfr,WR)=>{function RR(r,f,s){return{applyToStack:(w)=>{w.add(GR(r,s),LR),w.add(CR(r,f),AR)}}}var{defineProperty:J$,getOwnPropertyDescriptor:HN,getOwnPropertyNames:DN}=Object,kN=Object.prototype.hasOwnProperty,bF=(r,f)=>J$(r,"name",{value:f,configurable:!0}),NN=(r,f)=>{for(var s in f)J$(r,s,{get:f[s],enumerable:!0})},yN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of DN(f))if(!kN.call(r,h)&&h!==s)J$(r,h,{get:()=>f[h],enumerable:!(w=HN(f,h))||w.enumerable})}return r},qN=(r)=>yN(J$({},"__esModule",{value:!0}),r),TR={};NN(TR,{deserializerMiddleware:()=>GR,deserializerMiddlewareOption:()=>LR,getSerdePlugin:()=>RR,serializerMiddleware:()=>CR,serializerMiddlewareOption:()=>AR});WR.exports=qN(TR);var GR=bF((r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const E=await f(h,r);return{response:h,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:h}),!("$metadata"in E)){if(E.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),CR=bF((r,f)=>(s,w)=>async(h)=>{var E;const $=((E=w.endpointV2)==null?void 0:E.url)&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!$)throw new Error("No valid endpoint provider available.");const I=await f(h.input,{...r,endpoint:$});return s({...h,request:I})},"serializerMiddleware"),LR={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},AR={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};bF(RR,"getSerdePlugin")});var MR=j((Bfr,ZR)=>{var{defineProperty:B$,getOwnPropertyDescriptor:mN,getOwnPropertyNames:vN}=Object,jN=Object.prototype.hasOwnProperty,ps=(r,f)=>B$(r,"name",{value:f,configurable:!0}),iN=(r,f)=>{for(var s in f)B$(r,s,{get:f[s],enumerable:!0})},dN=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of vN(f))if(!jN.call(r,h)&&h!==s)B$(r,h,{get:()=>f[h],enumerable:!(w=mN(f,h))||w.enumerable})}return r},ON=(r)=>dN(B$({},"__esModule",{value:!0}),r),SR={};iN(SR,{endpointMiddleware:()=>YR,endpointMiddlewareOptions:()=>KR,getEndpointFromInstructions:()=>PR,getEndpointPlugin:()=>pN,resolveEndpointConfig:()=>uN,resolveParams:()=>XR,toEndpointV1:()=>_F});ZR.exports=ON(SR);var bN=ps(async(r)=>{const f=(r==null?void 0:r.Bucket)||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(eN(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!xN(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},"resolveParamsForS3"),cN=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,_N=/(\d+\.){3}\d+/,gN=/\.\./,xN=ps((r)=>cN.test(r)&&!_N.test(r)&&!gN.test(r),"isDnsCompatibleBucketName"),eN=ps((r)=>{const[f,s,w,,,h]=r.split(":"),E=f==="arn"&&r.split(":").length>=6,$=Boolean(E&&s&&w&&h);if(E&&!$)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return $},"isArnBucketName"),nN=ps((r,f,s)=>{const w=ps(async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h},"configProvider");if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.credentialScope)??(h==null?void 0:h.CredentialScope)};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return(h==null?void 0:h.accountId)??(h==null?void 0:h.AccountId)};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:E,hostname:$,port:I,path:F}=h;return`${E}//${$}${I?":"+I:""}${F}`}}return h};return w},"createConfigValueProvider"),oN=sR(),zR=UR(),_F=ps((r)=>{if(typeof r==="object"){if("url"in r)return zR.parseUrl(r.url);return r}return zR.parseUrl(r)},"toEndpointV1"),PR=ps(async(r,f,s,w)=>{if(!s.endpoint){const $=await oN.getEndpointFromConfig(s.serviceId||"");if($)s.endpoint=()=>Promise.resolve(_F($))}const h=await XR(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},"getEndpointFromInstructions"),XR=ps(async(r,f,s)=>{var w;const h={},E=((w=f==null?void 0:f.getEndpointParameterInstructions)==null?void 0:w.call(f))||{};for(let[$,I]of Object.entries(E))switch(I.type){case"staticContextParams":h[$]=I.value;break;case"contextParams":h[$]=r[I.name];break;case"clientContextParams":case"builtInParams":h[$]=await nN(I.name,$,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(I))}if(Object.keys(E).length===0)Object.assign(h,s);if(String(s.serviceId).toLowerCase()==="s3")await bN(h);return h},"resolveParams"),Q$=T1(),YR=ps(({config:r,instructions:f})=>{return(s,w)=>async(h)=>{var E,$,I;const F=await PR(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=F,w.authSchemes=(E=F.properties)==null?void 0:E.authSchemes;const U=($=w.authSchemes)==null?void 0:$[0];if(U){w.signing_region=U.signingRegion,w.signing_service=U.signingName;const C=Q$.getSmithyContext(w),L=(I=C==null?void 0:C.selectedHttpAuthScheme)==null?void 0:I.httpAuthOption;if(L)L.signingProperties=Object.assign(L.signingProperties||{},{signing_region:U.signingRegion,signingRegion:U.signingRegion,signing_service:U.signingName,signingName:U.signingName,signingRegionSet:U.signingRegionSet},U.properties)}return s({...h})}},"endpointMiddleware"),aN=cF(),KR={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:aN.serializerMiddlewareOption.name},pN=ps((r,f)=>({applyToStack:(s)=>{s.addRelativeTo(YR({config:r,instructions:f}),KR)}}),"getEndpointPlugin"),uN=ps((r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>_F(await Q$.normalizeProvider(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:Q$.normalizeProvider(r.useDualstackEndpoint??!1),useFipsEndpoint:Q$.normalizeProvider(r.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var T0=j((lfr,NR)=>{function HR(r){return Object.keys(r).reduce((f,s)=>{const w=r[s];return{...f,[s]:Array.isArray(w)?[...w]:w}},{})}function kR(r){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(r)}var{defineProperty:l$,getOwnPropertyDescriptor:tN,getOwnPropertyNames:ry}=Object,sy=Object.prototype.hasOwnProperty,k0=(r,f)=>l$(r,"name",{value:f,configurable:!0}),fy=(r,f)=>{for(var s in f)l$(r,s,{get:f[s],enumerable:!0})},wy=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of ry(f))if(!sy.call(r,h)&&h!==s)l$(r,h,{get:()=>f[h],enumerable:!(w=tN(f,h))||w.enumerable})}return r},hy=(r)=>wy(l$({},"__esModule",{value:!0}),r),JR={};fy(JR,{Field:()=>Iy,Fields:()=>Fy,HttpRequest:()=>Uy,HttpResponse:()=>Ty,IHttpRequest:()=>QR.HttpRequest,getHttpHandlerExtensionConfiguration:()=>Ey,isValidHostname:()=>kR,resolveHttpHandlerRuntimeConfig:()=>$y});NR.exports=hy(JR);var Ey=k0((r)=>{let f=r.httpHandler;return{setHttpHandler(s){f=s},httpHandler(){return f},updateHttpClientConfig(s,w){f.updateHttpClientConfig(s,w)},httpHandlerConfigs(){return f.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),$y=k0((r)=>{return{httpHandler:r.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),QR=$s(),BR=class r{constructor({name:f,kind:s=QR.FieldPosition.HEADER,values:w=[]}){this.name=f,this.kind=s,this.values=w}add(f){this.values.push(f)}set(f){this.values=f}remove(f){this.values=this.values.filter((s)=>s!==f)}toString(){return this.values.map((f)=>f.includes(",")||f.includes(" ")?`"${f}"`:f).join(", ")}get(){return this.values}};k0(BR,"Field");var Iy=BR,lR=class r{constructor({fields:f=[],encoding:s="utf-8"}){this.entries={},f.forEach(this.setField.bind(this)),this.encoding=s}setField(f){this.entries[f.name.toLowerCase()]=f}getField(f){return this.entries[f.toLowerCase()]}removeField(f){delete this.entries[f.toLowerCase()]}getByType(f){return Object.values(this.entries).filter((s)=>s.kind===f)}};k0(lR,"Fields");var Fy=lR,VR=class r{constructor(f){this.method=f.method||"GET",this.hostname=f.hostname||"localhost",this.port=f.port,this.query=f.query||{},this.headers=f.headers||{},this.body=f.body,this.protocol=f.protocol?f.protocol.slice(-1)!==":"?`${f.protocol}:`:f.protocol:"https:",this.path=f.path?f.path.charAt(0)!=="/"?`/${f.path}`:f.path:"/",this.username=f.username,this.password=f.password,this.fragment=f.fragment}static clone(f){const s=new r({...f,headers:{...f.headers}});if(s.query)s.query=HR(s.query);return s}static isInstance(f){if(!f)return!1;const s=f;return"method"in s&&"protocol"in s&&"hostname"in s&&"path"in s&&typeof s.query==="object"&&typeof s.headers==="object"}clone(){return r.clone(this)}};k0(VR,"HttpRequest");var Uy=VR;k0(HR,"cloneQuery");var DR=class r{constructor(f){this.statusCode=f.statusCode,this.reason=f.reason,this.headers=f.headers||{},this.body=f.body}static isInstance(f){if(!f)return!1;const s=f;return typeof s.statusCode==="number"&&typeof s.headers==="object"}};k0(DR,"HttpResponse");var Ty=DR;k0(kR,"isValidHostname")});var gF=j((yR)=>{function Cy(r){return r&&r.__esModule?r:{default:r}}function Ly(){if(V$>H$.length-16)Gy.default.randomFillSync(H$),V$=0;return H$.slice(V$,V$+=16)}Object.defineProperty(yR,"__esModule",{value:!0});yR.default=Ly;var Gy=Cy(import.meta.require("crypto")),H$=new Uint8Array(256),V$=H$.length});var vR=j((qR)=>{Object.defineProperty(qR,"__esModule",{value:!0});qR.default=void 0;var Ry=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;qR.default=Ry});var A1=j((jR)=>{function zy(r){return r&&r.__esModule?r:{default:r}}function Sy(r){return typeof r==="string"&&Wy.default.test(r)}Object.defineProperty(jR,"__esModule",{value:!0});jR.default=void 0;var Wy=zy(vR()),Py=Sy;jR.default=Py});var R1=j((OR)=>{function Yy(r){return r&&r.__esModule?r:{default:r}}function dR(r,f=0){return dr[r[f+0]]+dr[r[f+1]]+dr[r[f+2]]+dr[r[f+3]]+"-"+dr[r[f+4]]+dr[r[f+5]]+"-"+dr[r[f+6]]+dr[r[f+7]]+"-"+dr[r[f+8]]+dr[r[f+9]]+"-"+dr[r[f+10]]+dr[r[f+11]]+dr[r[f+12]]+dr[r[f+13]]+dr[r[f+14]]+dr[r[f+15]]}function Ky(r,f=0){const s=dR(r,f);if(!Xy.default(s))throw TypeError("Stringified UUID is invalid");return s}Object.defineProperty(OR,"__esModule",{value:!0});OR.default=void 0;OR.unsafeStringify=dR;var Xy=Yy(A1()),dr=[];for(let r=0;r<256;++r)dr.push((r+256).toString(16).slice(1));var Zy=Ky;OR.default=Zy});var xR=j((_R)=>{function By(r){return r&&r.__esModule?r:{default:r}}function ly(r,f,s){let w=f&&s||0;const h=f||new Array(16);r=r||{};let E=r.node||cR,$=r.clockseq!==void 0?r.clockseq:xF;if(E==null||$==null){const z=r.random||(r.rng||Jy.default)();if(E==null)E=cR=[z[0]|1,z[1],z[2],z[3],z[4],z[5]];if($==null)$=xF=(z[6]<<8|z[7])&16383}let I=r.msecs!==void 0?r.msecs:Date.now(),F=r.nsecs!==void 0?r.nsecs:nF+1;const U=I-eF+(F-nF)/1e4;if(U<0&&r.clockseq===void 0)$=$+1&16383;if((U<0||I>eF)&&r.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");eF=I,nF=F,xF=$,I+=12219292800000;const C=((I&268435455)*1e4+F)%4294967296;h[w++]=C>>>24&255,h[w++]=C>>>16&255,h[w++]=C>>>8&255,h[w++]=C&255;const L=I/4294967296*1e4&268435455;h[w++]=L>>>8&255,h[w++]=L&255,h[w++]=L>>>24&15|16,h[w++]=L>>>16&255,h[w++]=$>>>8|128,h[w++]=$&255;for(let z=0;z<6;++z)h[w+z]=E[z];return f||Qy.unsafeStringify(h)}Object.defineProperty(_R,"__esModule",{value:!0});_R.default=void 0;var Jy=By(gF()),Qy=R1(),cR,xF,eF=0,nF=0,Vy=ly;_R.default=Vy});var oF=j((eR)=>{function Dy(r){return r&&r.__esModule?r:{default:r}}function ky(r){if(!Hy.default(r))throw TypeError("Invalid UUID");let f;const s=new Uint8Array(16);return s[0]=(f=parseInt(r.slice(0,8),16))>>>24,s[1]=f>>>16&255,s[2]=f>>>8&255,s[3]=f&255,s[4]=(f=parseInt(r.slice(9,13),16))>>>8,s[5]=f&255,s[6]=(f=parseInt(r.slice(14,18),16))>>>8,s[7]=f&255,s[8]=(f=parseInt(r.slice(19,23),16))>>>8,s[9]=f&255,s[10]=(f=parseInt(r.slice(24,36),16))/1099511627776&255,s[11]=f/4294967296&255,s[12]=f>>>24&255,s[13]=f>>>16&255,s[14]=f>>>8&255,s[15]=f&255,s}Object.defineProperty(eR,"__esModule",{value:!0});eR.default=void 0;var Hy=Dy(A1()),Ny=ky;eR.default=Ny});var aF=j((pR)=>{function my(r){return r&&r.__esModule?r:{default:r}}function vy(r){r=unescape(encodeURIComponent(r));const f=[];for(let s=0;s<r.length;++s)f.push(r.charCodeAt(s));return f}function jy(r,f,s){function w(h,E,$,I){var F;if(typeof h==="string")h=vy(h);if(typeof E==="string")E=qy.default(E);if(((F=E)===null||F===void 0?void 0:F.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+h.length);if(U.set(E),U.set(h,E.length),U=s(U),U[6]=U[6]&15|f,U[8]=U[8]&63|128,$){I=I||0;for(let C=0;C<16;++C)$[I+C]=U[C];return $}return yy.unsafeStringify(U)}try{w.name=r}catch(h){}return w.DNS=oR,w.URL=aR,w}Object.defineProperty(pR,"__esModule",{value:!0});pR.URL=pR.DNS=void 0;pR.default=jy;var yy=R1(),qy=my(oF()),oR="6ba7b810-9dad-11d1-80b4-00c04fd430c8";pR.DNS=oR;var aR="6ba7b811-9dad-11d1-80b4-00c04fd430c8";pR.URL=aR});var sW=j((tR)=>{function by(r){return r&&r.__esModule?r:{default:r}}function cy(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return Oy.default.createHash("md5").update(r).digest()}Object.defineProperty(tR,"__esModule",{value:!0});tR.default=void 0;var Oy=by(import.meta.require("crypto")),_y=cy;tR.default=_y});var EW=j((wW)=>{function fW(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(wW,"__esModule",{value:!0});wW.default=void 0;var gy=fW(aF()),xy=fW(sW()),ey=gy.default("v3",48,xy.default),ny=ey;wW.default=ny});var FW=j(($W)=>{function ay(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty($W,"__esModule",{value:!0});$W.default=void 0;var oy=ay(import.meta.require("crypto")),py={randomUUID:oy.default.randomUUID};$W.default=py});var LW=j((GW)=>{function TW(r){return r&&r.__esModule?r:{default:r}}function rq(r,f,s){if(UW.default.randomUUID&&!f&&!r)return UW.default.randomUUID();r=r||{};const w=r.random||(r.rng||uy.default)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,f){s=s||0;for(let h=0;h<16;++h)f[s+h]=w[h];return f}return ty.unsafeStringify(w)}Object.defineProperty(GW,"__esModule",{value:!0});GW.default=void 0;var UW=TW(FW()),uy=TW(gF()),ty=R1(),sq=rq;GW.default=sq});var WW=j((AW)=>{function wq(r){return r&&r.__esModule?r:{default:r}}function hq(r){if(Array.isArray(r))r=Buffer.from(r);else if(typeof r==="string")r=Buffer.from(r,"utf8");return fq.default.createHash("sha1").update(r).digest()}Object.defineProperty(AW,"__esModule",{value:!0});AW.default=void 0;var fq=wq(import.meta.require("crypto")),Eq=hq;AW.default=Eq});var XW=j((SW)=>{function zW(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(SW,"__esModule",{value:!0});SW.default=void 0;var $q=zW(aF()),Iq=zW(WW()),Fq=$q.default("v5",80,Iq.default),Uq=Fq;SW.default=Uq});var ZW=j((YW)=>{Object.defineProperty(YW,"__esModule",{value:!0});YW.default=void 0;var Tq="00000000-0000-0000-0000-000000000000";YW.default=Tq});var QW=j((MW)=>{function Cq(r){return r&&r.__esModule?r:{default:r}}function Lq(r){if(!Gq.default(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}Object.defineProperty(MW,"__esModule",{value:!0});MW.default=void 0;var Gq=Cq(A1()),Aq=Lq;MW.default=Aq});var pF=j((us)=>{function G0(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(us,"__esModule",{value:!0});Object.defineProperty(us,"NIL",{enumerable:!0,get:function(){return Pq.default}});Object.defineProperty(us,"parse",{enumerable:!0,get:function(){return Zq.default}});Object.defineProperty(us,"stringify",{enumerable:!0,get:function(){return Kq.default}});Object.defineProperty(us,"v1",{enumerable:!0,get:function(){return Rq.default}});Object.defineProperty(us,"v3",{enumerable:!0,get:function(){return Wq.default}});Object.defineProperty(us,"v4",{enumerable:!0,get:function(){return zq.default}});Object.defineProperty(us,"v5",{enumerable:!0,get:function(){return Sq.default}});Object.defineProperty(us,"validate",{enumerable:!0,get:function(){return Yq.default}});Object.defineProperty(us,"version",{enumerable:!0,get:function(){return Xq.default}});var Rq=G0(xR()),Wq=G0(EW()),zq=G0(LW()),Sq=G0(XW()),Pq=G0(ZW()),Xq=G0(QW()),Yq=G0(A1()),Kq=G0(R1()),Zq=G0(oF())});var uF=j((gfr,HW)=>{var{defineProperty:D$,getOwnPropertyDescriptor:Mq,getOwnPropertyNames:Jq}=Object,Qq=Object.prototype.hasOwnProperty,sh=(r,f)=>D$(r,"name",{value:f,configurable:!0}),Bq=(r,f)=>{for(var s in f)D$(r,s,{get:f[s],enumerable:!0})},lq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Jq(f))if(!Qq.call(r,h)&&h!==s)D$(r,h,{get:()=>f[h],enumerable:!(w=Mq(f,h))||w.enumerable})}return r},Vq=(r)=>lq(D$({},"__esModule",{value:!0}),r),BW={};Bq(BW,{isClockSkewCorrectedError:()=>lW,isClockSkewError:()=>mq,isRetryableByTrait:()=>qq,isServerError:()=>jq,isThrottlingError:()=>vq,isTransientError:()=>VW});HW.exports=Vq(BW);var Hq=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],Dq=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],kq=["TimeoutError","RequestTimeout","RequestTimeoutException"],Nq=[500,502,503,504],yq=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],qq=sh((r)=>r.$retryable!==void 0,"isRetryableByTrait"),mq=sh((r)=>Hq.includes(r.name),"isClockSkewError"),lW=sh((r)=>{var f;return(f=r.$metadata)==null?void 0:f.clockSkewCorrected},"isClockSkewCorrectedError"),vq=sh((r)=>{var f,s;return((f=r.$metadata)==null?void 0:f.httpStatusCode)===429||Dq.includes(r.name)||((s=r.$retryable)==null?void 0:s.throttling)==!0},"isThrottlingError"),VW=sh((r)=>{var f;return lW(r)||kq.includes(r.name)||yq.includes((r==null?void 0:r.code)||"")||Nq.includes(((f=r.$metadata)==null?void 0:f.httpStatusCode)||0)},"isTransientError"),jq=sh((r)=>{var f;if(((f=r.$metadata)==null?void 0:f.httpStatusCode)!==void 0){const s=r.$metadata.httpStatusCode;if(500<=s&&s<=599&&!VW(r))return!0;return!1}return!1},"isServerError")});var _W=j((xfr,cW)=>{var{defineProperty:k$,getOwnPropertyDescriptor:iq,getOwnPropertyNames:dq}=Object,Oq=Object.prototype.hasOwnProperty,ts=(r,f)=>k$(r,"name",{value:f,configurable:!0}),bq=(r,f)=>{for(var s in f)k$(r,s,{get:f[s],enumerable:!0})},cq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of dq(f))if(!Oq.call(r,h)&&h!==s)k$(r,h,{get:()=>f[h],enumerable:!(w=iq(f,h))||w.enumerable})}return r},_q=(r)=>cq(k$({},"__esModule",{value:!0}),r),kW={};bq(kW,{AdaptiveRetryStrategy:()=>aq,ConfiguredRetryStrategy:()=>pq,DEFAULT_MAX_ATTEMPTS:()=>tF,DEFAULT_RETRY_DELAY_BASE:()=>W1,DEFAULT_RETRY_MODE:()=>gq,DefaultRateLimiter:()=>qW,INITIAL_RETRY_TOKENS:()=>r5,INVOCATION_ID_HEADER:()=>eq,MAXIMUM_RETRY_DELAY:()=>s5,NO_RETRY_INCREMENT:()=>iW,REQUEST_HEADER:()=>nq,RETRY_COST:()=>vW,RETRY_MODES:()=>NW,StandardRetryStrategy:()=>f5,THROTTLING_RETRY_DELAY_BASE:()=>mW,TIMEOUT_RETRY_COST:()=>jW});cW.exports=_q(kW);var NW=((r)=>{return r.STANDARD="standard",r.ADAPTIVE="adaptive",r})(NW||{}),tF=3,gq="standard",xq=uF(),yW=class r{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(f==null?void 0:f.beta)??0.7,this.minCapacity=(f==null?void 0:f.minCapacity)??1,this.minFillRate=(f==null?void 0:f.minFillRate)??0.5,this.scaleConstant=(f==null?void 0:f.scaleConstant)??0.4,this.smooth=(f==null?void 0:f.smooth)??0.8;const s=this.getCurrentTimeInSeconds();this.lastThrottleTime=s,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const s=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((w)=>setTimeout(w,s))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const s=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+s),this.lastTimestamp=f}updateClientSendingRate(f){let s;if(this.updateMeasuredRate(),xq.isThrottlingError(f)){const h=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=h,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),s=this.cubicThrottle(h),this.enableTokenBucket()}else this.calculateTimeWindow(),s=this.cubicSuccess(this.getCurrentTimeInSeconds());const w=Math.min(s,2*this.measuredTxRate);this.updateTokenBucketRate(w)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),s=Math.floor(f*2)/2;if(this.requestCount++,s>this.lastTxRateBucket){const w=this.requestCount/(s-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(w*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=s}}getPrecise(f){return parseFloat(f.toFixed(8))}};ts(yW,"DefaultRateLimiter");var qW=yW,W1=100,s5=20000,mW=500,r5=500,vW=5,jW=10,iW=1,eq="amz-sdk-invocation-id",nq="amz-sdk-request",oq=ts(()=>{let r=W1;return{computeNextBackoffDelay:ts((w)=>{return Math.floor(Math.min(s5,Math.random()*2**w*r))},"computeNextBackoffDelay"),setDelayBase:ts((w)=>{r=w},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),DW=ts(({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:ts(()=>f,"getRetryCount"),getRetryDelay:ts(()=>Math.min(s5,r),"getRetryDelay"),getRetryCost:ts(()=>s,"getRetryCost")}},"createDefaultRetryToken"),dW=class r{constructor(f){this.maxAttempts=f,this.mode="standard",this.capacity=r5,this.retryBackoffStrategy=oq(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return DW({retryDelay:W1,retryCount:0})}async refreshRetryTokenForRetry(f,s){const w=await this.getMaxAttempts();if(this.shouldRetry(f,s,w)){const h=s.errorType;this.retryBackoffStrategy.setDelayBase(h==="THROTTLING"?mW:W1);const E=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),$=s.retryAfterHint?Math.max(s.retryAfterHint.getTime()-Date.now()||0,E):E,I=this.getCapacityCost(h);return this.capacity-=I,DW({retryDelay:$,retryCount:f.getRetryCount()+1,retryCost:I})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(r5,this.capacity+(f.getRetryCost()??iW))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${tF}`),tF}}shouldRetry(f,s,w){return f.getRetryCount()+1<w&&this.capacity>=this.getCapacityCost(s.errorType)&&this.isRetryableError(s.errorType)}getCapacityCost(f){return f==="TRANSIENT"?jW:vW}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}};ts(dW,"StandardRetryStrategy");var f5=dW,OW=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode="adaptive";const{rateLimiter:w}=s??{};this.rateLimiter=w??new qW,this.standardRetryStrategy=new f5(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,s){return this.rateLimiter.updateClientSendingRate(s),this.standardRetryStrategy.refreshRetryTokenForRetry(f,s)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}};ts(OW,"AdaptiveRetryStrategy");var aq=OW,bW=class r extends f5{constructor(f,s=W1){super(typeof f==="function"?f:async()=>f);if(typeof s==="number")this.computeNextBackoffDelay=()=>s;else this.computeNextBackoffDelay=s}async refreshRetryTokenForRetry(f,s){const w=await super.refreshRetryTokenForRetry(f,s);return w.getRetryDelay=()=>this.computeNextBackoffDelay(w.getRetryCount()),w}};ts(bW,"ConfiguredRetryStrategy");var pq=bW});var oW=j((efr,nW)=>{var{defineProperty:N$,getOwnPropertyDescriptor:uq,getOwnPropertyNames:tq}=Object,rm=Object.prototype.hasOwnProperty,Qs=(r,f)=>N$(r,"name",{value:f,configurable:!0}),sm=(r,f)=>{for(var s in f)N$(r,s,{get:f[s],enumerable:!0})},fm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of tq(f))if(!rm.call(r,h)&&h!==s)N$(r,h,{get:()=>f[h],enumerable:!(w=uq(f,h))||w.enumerable})}return r},wm=(r)=>fm(N$({},"__esModule",{value:!0}),r),eW={};sm(eW,{constructStack:()=>w5});nW.exports=wm(eW);var Rw=Qs((r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},"getAllAliases"),N0=Qs((r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},"getMiddlewareNameWithAliases"),w5=Qs(()=>{let r=[],f=[],s=!1;const w=new Set,h=Qs((L)=>L.sort((z,S)=>gW[S.step]-gW[z.step]||xW[S.priority||"normal"]-xW[z.priority||"normal"]),"sort"),E=Qs((L)=>{let z=!1;const S=Qs((K)=>{const k=Rw(K.name,K.aliases);if(k.includes(L)){z=!0;for(let l of k)w.delete(l);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},"removeByName"),$=Qs((L)=>{let z=!1;const S=Qs((K)=>{if(K.middleware===L){z=!0;for(let k of Rw(K.name,K.aliases))w.delete(k);return!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},"removeByReference"),I=Qs((L)=>{var z;return r.forEach((S)=>{L.add(S.middleware,{...S})}),f.forEach((S)=>{L.addRelativeTo(S.middleware,{...S})}),(z=L.identifyOnResolve)==null||z.call(L,C.identifyOnResolve()),L},"cloneTo"),F=Qs((L)=>{const z=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z},"expandRelativeMiddlewareList"),U=Qs((L=!1)=>{const z=[],S=[],K={};return r.forEach((l)=>{const Q={...l,before:[],after:[]};for(let N of Rw(Q.name,Q.aliases))K[N]=Q;z.push(Q)}),f.forEach((l)=>{const Q={...l,before:[],after:[]};for(let N of Rw(Q.name,Q.aliases))K[N]=Q;S.push(Q)}),S.forEach((l)=>{if(l.toMiddleware){const Q=K[l.toMiddleware];if(Q===void 0){if(L)return;throw new Error(`${l.toMiddleware} is not found when adding ${N0(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")Q.after.push(l);if(l.relation==="before")Q.before.push(l)}}),h(z).map(F).reduce((l,Q)=>{return l.push(...Q),l},[])},"getMiddlewareList"),C={add:(L,z={})=>{const{name:S,override:K,aliases:k}=z,l={step:"initialize",priority:"normal",middleware:L,...z},Q=Rw(S,k);if(Q.length>0){if(Q.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${N0(S,k)}'`);for(let N of Q){const x=r.findIndex((hr)=>{var Dr;return hr.name===N||((Dr=hr.aliases)==null?void 0:Dr.some((Tw)=>Tw===N))});if(x===-1)continue;const e=r[x];if(e.step!==l.step||l.priority!==e.priority)throw new Error(`"${N0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${N0(S,k)}" middleware with ${l.priority} priority in ${l.step} step.`);r.splice(x,1)}}for(let N of Q)w.add(N)}r.push(l)},addRelativeTo:(L,z)=>{const{name:S,override:K,aliases:k}=z,l={middleware:L,...z},Q=Rw(S,k);if(Q.length>0){if(Q.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${N0(S,k)}'`);for(let N of Q){const x=f.findIndex((hr)=>{var Dr;return hr.name===N||((Dr=hr.aliases)==null?void 0:Dr.some((Tw)=>Tw===N))});if(x===-1)continue;const e=f[x];if(e.toMiddleware!==l.toMiddleware||e.relation!==l.relation)throw new Error(`"${N0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${N0(S,k)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);f.splice(x,1)}}for(let N of Q)w.add(N)}f.push(l)},clone:()=>I(w5()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return E(L);else return $(L)},removeByTag:(L)=>{let z=!1;const S=Qs((K)=>{const{tags:k,name:l,aliases:Q}=K;if(k&&k.includes(L)){const N=Rw(l,Q);for(let x of N)w.delete(x);return z=!0,!1}return!0},"filterCb");return r=r.filter(S),f=f.filter(S),z},concat:(L)=>{var z;const S=I(w5());return S.use(L),S.identifyOnResolve(s||S.identifyOnResolve()||(((z=L.identifyOnResolve)==null?void 0:z.call(L))??!1)),S},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const z=L.step??L.relation+" "+L.toMiddleware;return N0(L.name,L.aliases)+" - "+z})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,z)=>{for(let S of U().map((K)=>K.middleware).reverse())L=S(L,z);if(s)console.log(C.identify());return L}};return C},"constructStack"),gW={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},xW={high:3,normal:2,low:1}});var h5=j((nfr,pW)=>{var{defineProperty:y$,getOwnPropertyDescriptor:hm,getOwnPropertyNames:Em}=Object,$m=Object.prototype.hasOwnProperty,Im=(r,f)=>y$(r,"name",{value:f,configurable:!0}),Fm=(r,f)=>{for(var s in f)y$(r,s,{get:f[s],enumerable:!0})},Um=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Em(f))if(!$m.call(r,h)&&h!==s)y$(r,h,{get:()=>f[h],enumerable:!(w=hm(f,h))||w.enumerable})}return r},Tm=(r)=>Um(y$({},"__esModule",{value:!0}),r),aW={};Fm(aW,{isArrayBuffer:()=>Gm});pW.exports=Tm(aW);var Gm=Im((r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]","isArrayBuffer")});var z1=j((ofr,rz)=>{var{defineProperty:q$,getOwnPropertyDescriptor:Cm,getOwnPropertyNames:Lm}=Object,Am=Object.prototype.hasOwnProperty,uW=(r,f)=>q$(r,"name",{value:f,configurable:!0}),Rm=(r,f)=>{for(var s in f)q$(r,s,{get:f[s],enumerable:!0})},Wm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Lm(f))if(!Am.call(r,h)&&h!==s)q$(r,h,{get:()=>f[h],enumerable:!(w=Cm(f,h))||w.enumerable})}return r},zm=(r)=>Wm(q$({},"__esModule",{value:!0}),r),tW={};Rm(tW,{fromArrayBuffer:()=>Pm,fromString:()=>Xm});rz.exports=zm(tW);var Sm=h5(),E5=import.meta.require("buffer"),Pm=uW((r,f=0,s=r.byteLength-f)=>{if(!Sm.isArrayBuffer(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return E5.Buffer.from(r,f,s)},"fromArrayBuffer"),Xm=uW((r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?E5.Buffer.from(r,f):E5.Buffer.from(r)},"fromString")});var wz=j((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.fromBase64=void 0;var Ym=z1(),Km=/^[A-Za-z0-9+/]*={0,2}$/,Zm=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Km.exec(r))throw new TypeError("Invalid base64 string.");const f=Ym.fromString(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};sz.fromBase64=Zm});var y0=j((pfr,Iz)=>{var{defineProperty:m$,getOwnPropertyDescriptor:Mm,getOwnPropertyNames:Jm}=Object,Qm=Object.prototype.hasOwnProperty,$5=(r,f)=>m$(r,"name",{value:f,configurable:!0}),Bm=(r,f)=>{for(var s in f)m$(r,s,{get:f[s],enumerable:!0})},lm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Jm(f))if(!Qm.call(r,h)&&h!==s)m$(r,h,{get:()=>f[h],enumerable:!(w=Mm(f,h))||w.enumerable})}return r},Vm=(r)=>lm(m$({},"__esModule",{value:!0}),r),hz={};Bm(hz,{fromUtf8:()=>$z,toUint8Array:()=>Hm,toUtf8:()=>Dm});Iz.exports=Vm(hz);var Ez=z1(),$z=$5((r)=>{const f=Ez.fromString(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Hm=$5((r)=>{if(typeof r==="string")return $z(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},"toUint8Array"),Dm=$5((r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Ez.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")},"toUtf8")});var Tz=j((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.toBase64=void 0;var km=z1(),Nm=y0(),ym=(r)=>{let f;if(typeof r==="string")f=Nm.fromUtf8(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return km.fromArrayBuffer(f.buffer,f.byteOffset,f.byteLength).toString("base64")};Fz.toBase64=ym});var j$=j((tfr,v$)=>{var{defineProperty:Gz,getOwnPropertyDescriptor:qm,getOwnPropertyNames:mm}=Object,vm=Object.prototype.hasOwnProperty,I5=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of mm(f))if(!vm.call(r,h)&&h!==s)Gz(r,h,{get:()=>f[h],enumerable:!(w=qm(f,h))||w.enumerable})}return r},Cz=(r,f,s)=>(I5(r,f,"default"),s&&I5(s,f,"default")),jm=(r)=>I5(Gz({},"__esModule",{value:!0}),r),F5={};v$.exports=jm(F5);Cz(F5,wz(),v$.exports);Cz(F5,Tz(),v$.exports)});var Rz=j((Lz)=>{Object.defineProperty(Lz,"__esModule",{value:!0});Lz.getAwsChunkedEncodingStream=void 0;var im=import.meta.require("stream"),dm=(r,f)=>{const{base64Encoder:s,bodyLengthChecker:w,checksumAlgorithmFn:h,checksumLocationName:E,streamHasher:$}=f,I=s!==void 0&&h!==void 0&&E!==void 0&&$!==void 0,F=I?$(h,r):void 0,U=new im.Readable({read:()=>{}});return r.on("data",(C)=>{const L=w(C)||0;U.push(`${L.toString(16)}\r\n`),U.push(C),U.push("\r\n")}),r.on("end",async()=>{if(U.push("0\r\n"),I){const C=s(await F);U.push(`${E}:${C}\r\n`),U.push("\r\n")}U.push(null)}),U};Lz.getAwsChunkedEncodingStream=dm});var T5=j((s0r,Sz)=>{var{defineProperty:i$,getOwnPropertyDescriptor:Om,getOwnPropertyNames:bm}=Object,cm=Object.prototype.hasOwnProperty,U5=(r,f)=>i$(r,"name",{value:f,configurable:!0}),_m=(r,f)=>{for(var s in f)i$(r,s,{get:f[s],enumerable:!0})},gm=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of bm(f))if(!cm.call(r,h)&&h!==s)i$(r,h,{get:()=>f[h],enumerable:!(w=Om(f,h))||w.enumerable})}return r},xm=(r)=>gm(i$({},"__esModule",{value:!0}),r),Wz={};_m(Wz,{escapeUri:()=>zz,escapeUriPath:()=>nm});Sz.exports=xm(Wz);var zz=U5((r)=>encodeURIComponent(r).replace(/[!'()*]/g,em),"escapeUri"),em=U5((r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),nm=U5((r)=>r.split("/").map(zz).join("/"),"escapeUriPath")});var C5=j((f0r,Yz)=>{function Xz(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=G5.escapeUri(s),Array.isArray(w))for(let h=0,E=w.length;h<E;h++)f.push(`${s}=${G5.escapeUri(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${G5.escapeUri(w)}`;f.push(h)}}return f.join("&")}var{defineProperty:d$,getOwnPropertyDescriptor:om,getOwnPropertyNames:am}=Object,pm=Object.prototype.hasOwnProperty,um=(r,f)=>d$(r,"name",{value:f,configurable:!0}),tm=(r,f)=>{for(var s in f)d$(r,s,{get:f[s],enumerable:!0})},rv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of am(f))if(!pm.call(r,h)&&h!==s)d$(r,h,{get:()=>f[h],enumerable:!(w=om(f,h))||w.enumerable})}return r},sv=(r)=>rv(d$({},"__esModule",{value:!0}),r),Pz={};tm(Pz,{buildQueryString:()=>Xz});Yz.exports=sv(Pz);var G5=T5();um(Xz,"buildQueryString")});var jz=j((w0r,vz)=>{async function R5(r,f,s=Kz){const w=f.headers??{},h=w.Expect||w.expect;let E=-1,$=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{E=Number(setTimeout(I,Math.max(Kz,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout(E),I()}),r.on("error",()=>{$=!0,clearTimeout(E),I()})})]);if(!$)Hz(r,f.body)}function Hz(r,f){if(f instanceof Vz.Readable){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}async function mz(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of f)E.set(I,$),$+=I.length;return E}var{create:fv,defineProperty:S1,getOwnPropertyDescriptor:wv,getOwnPropertyNames:hv,getPrototypeOf:Ev}=Object,$v=Object.prototype.hasOwnProperty,Jr=(r,f)=>S1(r,"name",{value:f,configurable:!0}),Iv=(r,f)=>{for(var s in f)S1(r,s,{get:f[s],enumerable:!0})},Mz=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of hv(f))if(!$v.call(r,h)&&h!==s)S1(r,h,{get:()=>f[h],enumerable:!(w=wv(f,h))||w.enumerable})}return r},Fv=(r,f,s)=>(s=r!=null?fv(Ev(r)):{},Mz(f||!r||!r.__esModule?S1(s,"default",{value:r,enumerable:!0}):s,r)),Uv=(r)=>Mz(S1({},"__esModule",{value:!0}),r),Jz={};Iv(Jz,{DEFAULT_REQUEST_TIMEOUT:()=>Av,NodeHttp2Handler:()=>Pv,NodeHttpHandler:()=>Rv,streamCollector:()=>Yv});vz.exports=Uv(Jz);var Qz=T0(),Bz=C5(),L5=import.meta.require("http"),A5=import.meta.require("https"),Tv=["ECONNRESET","EPIPE","ETIMEDOUT"],lz=Jr((r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f},"getTransformedHeaders"),Gv=Jr((r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})},"setConnectionTimeout"),Cv=Jr((r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})},"setSocketKeepAlive"),Lv=Jr((r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),Vz=import.meta.require("stream"),Kz=1000;Jr(R5,"writeRequestBody");Jr(Hz,"writeBody");var Av=0,Dz=class r{constructor(f){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(this.resolveDefaultConfig(h))}).catch(w);else s(this.resolveDefaultConfig(f))})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}static checkSocketUsage(f,s,w=console){var h,E,$;const{sockets:I,requests:F,maxSockets:U}=f;if(typeof U!=="number"||U===1/0)return s;const C=15000;if(Date.now()-C<s)return s;if(I&&F)for(let L in I){const z=((h=I[L])==null?void 0:h.length)??0,S=((E=F[L])==null?void 0:E.length)??0;if(z>=U&&S>=2*U)return($=w==null?void 0:w.warn)==null||$.call(w,`@smithy/node-http-handler:WARN - socket usage at capacity=${z} and ${S} additional requests are enqueued.
3
3
  See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
4
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return s}resolveDefaultConfig(f){const{requestTimeout:s,connectionTimeout:w,socketTimeout:h,httpAgent:$,httpsAgent:E}=f||{};return{connectionTimeout:w,requestTimeout:s??h,httpAgent:(()=>{if($ instanceof WU.Agent||typeof($==null?void 0:$.destroy)==="function")return $;return new WU.Agent({keepAlive:!0,maxSockets:50,...$})})(),httpsAgent:(()=>{if(E instanceof zU.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new zU.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){var f,s,w,h;(s=(f=this.config)==null?void 0:f.httpAgent)==null||s.destroy(),(h=(w=this.config)==null?void 0:w.httpsAgent)==null||h.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;let w;return new Promise((h,$)=>{let E=void 0;const I=Jr(async(i)=>{await E,clearTimeout(w),h(i)},"resolve"),F=Jr(async(i)=>{await E,clearTimeout(w),$(i)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(s==null?void 0:s.aborted){const i=new Error("Request aborted");i.name="AbortError",F(i);return}const U=f.protocol==="https:",C=U?this.config.httpsAgent:this.config.httpAgent;w=setTimeout(()=>{this.socketWarningTimestamp=r.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const L=VW.buildQueryString(f.query||{});let z=void 0;if(f.username!=null||f.password!=null){const i=f.username??"",x=f.password??"";z=`${i}:${x}`}let S=f.path;if(L)S+=`?${L}`;if(f.fragment)S+=`#${f.fragment}`;const Z={headers:f.headers,host:f.hostname,method:f.method,path:S,port:f.port,agent:C,auth:z},B=(U?zU.request:WU.request)(Z,(i)=>{const x=new HW.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:kW(i.headers),body:i});I({response:x})});if(B.on("error",(i)=>{if(kq.includes(i.code))F(Object.assign(i,{name:"TimeoutError"}));else F(i)}),Dq(B,F,this.config.connectionTimeout),yq(B,F,this.config.requestTimeout),s){const i=Jr(()=>{B.destroy();const x=new Error("Request aborted");x.name="AbortError",F(x)},"onAbort");if(typeof s.addEventListener==="function"){const x=s;x.addEventListener("abort",i,{once:!0}),B.once("close",()=>x.removeEventListener("abort",i))}else s.onabort=i}const Q=Z.agent;if(typeof Q==="object"&&"keepAlive"in Q)iq(B,{keepAlive:Q.keepAlive,keepAliveMsecs:Q.keepAliveMsecs});E=SU(B,f,this.config.requestTimeout).catch((i)=>{return clearTimeout(w),$(i)})})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}};Jr(yW,"NodeHttpHandler");var Nq=yW,QW=import.meta.require("http2"),qq=Hq(import.meta.require("http2")),mW=class r{constructor(f){this.sessions=[],this.sessions=f??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(f){this.sessions.push(f)}contains(f){return this.sessions.includes(f)}remove(f){this.sessions=this.sessions.filter((s)=>s!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let s of this.sessions)if(s===f){if(!s.destroyed)s.destroy()}}};Jr(mW,"NodeHttp2ConnectionPool");var vq=mW,NW=class r{constructor(f){if(this.sessionCache=new Map,this.config=f,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(f,s){const w=this.getUrlString(f),h=this.sessionCache.get(w);if(h){const F=h.poll();if(F&&!this.config.disableConcurrency)return F}const $=qq.default.connect(w);if(this.config.maxConcurrency)$.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});$.unref();const E=Jr(()=>{$.destroy(),this.deleteSession(w,$)},"destroySessionCb");if($.on("goaway",E),$.on("error",E),$.on("frameError",E),$.on("close",()=>this.deleteSession(w,$)),s.requestTimeout)$.setTimeout(s.requestTimeout,E);const I=this.sessionCache.get(w)||new vq;return I.offerLast($),this.sessionCache.set(w,I),$}deleteSession(f,s){const w=this.sessionCache.get(f);if(!w)return;if(!w.contains(s))return;w.remove(s),this.sessionCache.set(f,w)}release(f,s){var w;const h=this.getUrlString(f);(w=this.sessionCache.get(h))==null||w.offerLast(s)}destroy(){for(let[f,s]of this.sessionCache){for(let w of s){if(!w.destroyed)w.destroy();s.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=f}setDisableConcurrentStreams(f){this.config.disableConcurrency=f}getUrlString(f){return f.destination.toString()}};Jr(NW,"NodeHttp2ConnectionManager");var jq=NW,qW=class r{constructor(f){this.metadata={handlerProtocol:"h2"},this.connectionManager=new jq({}),this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(h||{})}).catch(w);else s(f||{})})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}destroy(){this.connectionManager.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:w,disableConcurrentStreams:h}=this.config;return new Promise(($,E)=>{var I;let F=!1,U=void 0;const C=Jr(async(lr)=>{await U,$(lr)},"resolve"),L=Jr(async(lr)=>{await U,E(lr)},"reject");if(s==null?void 0:s.aborted){F=!0;const lr=new Error("Request aborted");lr.name="AbortError",L(lr);return}const{hostname:z,method:S,port:Z,protocol:D,query:B}=f;let Q="";if(f.username!=null||f.password!=null){const lr=f.username??"",as=f.password??"";Q=`${lr}:${as}@`}const i=`${D}//${Q}${z}${Z?`:${Z}`:""}`,x={destination:new URL(i)},e=this.connectionManager.lease(x,{requestTimeout:(I=this.config)==null?void 0:I.sessionTimeout,disableConcurrentStreams:h||!1}),hr=Jr((lr)=>{if(h)this.destroySession(e);F=!0,L(lr)},"rejectWithDestroy"),kr=VW.buildQueryString(B||{});let Rw=f.path;if(kr)Rw+=`?${kr}`;if(f.fragment)Rw+=`#${f.fragment}`;const Ks=e.request({...f.headers,[QW.constants.HTTP2_HEADER_PATH]:Rw,[QW.constants.HTTP2_HEADER_METHOD]:S});if(e.ref(),Ks.on("response",(lr)=>{const as=new HW.HttpResponse({statusCode:lr[":status"]||-1,headers:kW(lr),body:Ks});if(F=!0,C({response:as}),h)e.close(),this.connectionManager.deleteSession(i,e)}),w)Ks.setTimeout(w,()=>{Ks.close();const lr=new Error(`Stream timed out because of no activity for ${w} ms`);lr.name="TimeoutError",hr(lr)});if(s){const lr=Jr(()=>{Ks.close();const as=new Error("Request aborted");as.name="AbortError",hr(as)},"onAbort");if(typeof s.addEventListener==="function"){const as=s;as.addEventListener("abort",lr,{once:!0}),Ks.once("close",()=>as.removeEventListener("abort",lr))}else s.onabort=lr}Ks.on("frameError",(lr,as,qk)=>{hr(new Error(`Frame type id ${lr} in stream id ${qk} has failed with code ${as}.`))}),Ks.on("error",hr),Ks.on("aborted",()=>{hr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Ks.rstCode}.`))}),Ks.on("close",()=>{if(e.unref(),h)e.destroy();if(!F)hr(new Error("Unexpected error: http2 request did not get a response"))}),U=SU(Ks,f,w)})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}destroySession(f){if(!f.destroyed)f.destroy()}};Jr(qW,"NodeHttp2Handler");var dq=qW,vW=class r extends DW.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(f,s,w){this.bufferedBytes.push(f),w()}};Jr(vW,"Collector");var Oq=vW,cq=Jr((r)=>{if(bq(r))return jW(r);return new Promise((f,s)=>{const w=new Oq;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},"streamCollector"),bq=Jr((r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream,"isReadableStreamInstance");Jr(jW,"collectReadableStream")});var aW=v((H0r,oW)=>{function gW(r=0){return new Promise((f,s)=>{if(r)setTimeout(()=>{const w=new Error(`Request did not complete within ${r} ms`);w.name="TimeoutError",s(w)},r)})}async function xW(r){const f=await nW(r),s=uq.fromBase64(f);return new Uint8Array(s)}async function eW(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}function nW(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",$=h.indexOf(","),E=$>-1?$+1:h.length;f(h.substring(E))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var{defineProperty:gE,getOwnPropertyDescriptor:gq,getOwnPropertyNames:_q}=Object,xq=Object.prototype.hasOwnProperty,L0=(r,f)=>gE(r,"name",{value:f,configurable:!0}),eq=(r,f)=>{for(var s in f)gE(r,s,{get:f[s],enumerable:!0})},nq=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of _q(f))if(!xq.call(r,h)&&h!==s)gE(r,h,{get:()=>f[h],enumerable:!(w=gq(f,h))||w.enumerable})}return r},oq=(r)=>nq(gE({},"__esModule",{value:!0}),r),bW={};eq(bW,{FetchHttpHandler:()=>pq,keepAliveSupport:()=>bE,streamCollector:()=>tq});oW.exports=oq(bW);var cW=G0(),aq=RU();L0(gW,"requestTimeout");var bE={supported:void 0},_W=class r{static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}constructor(f){if(typeof f==="function")this.configProvider=f().then((s)=>s||{});else this.config=f??{},this.configProvider=Promise.resolve(this.config);if(bE.supported===void 0)bE.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;const w=this.config.requestTimeout,h=this.config.keepAlive===!0,$=this.config.credentials;if(s==null?void 0:s.aborted){const Q=new Error("Request aborted");return Q.name="AbortError",Promise.reject(Q)}let E=f.path;const I=aq.buildQueryString(f.query||{});if(I)E+=`?${I}`;if(f.fragment)E+=`#${f.fragment}`;let F="";if(f.username!=null||f.password!=null){const Q=f.username??"",i=f.password??"";F=`${Q}:${i}@`}const{port:U,method:C}=f,L=`${f.protocol}//${F}${f.hostname}${U?`:${U}`:""}${E}`,z=C==="GET"||C==="HEAD"?void 0:f.body,S={body:z,headers:new Headers(f.headers),method:C,credentials:$};if(z)S.duplex="half";if(typeof AbortController!=="undefined")S.signal=s;if(bE.supported)S.keepalive=h;let Z=L0(()=>{},"removeSignalEventListener");const D=new Request(L,S),B=[fetch(D).then((Q)=>{const i=Q.headers,x={};for(let hr of i.entries())x[hr[0]]=hr[1];if(Q.body==null)return Q.blob().then((hr)=>({response:new cW.HttpResponse({headers:x,reason:Q.statusText,statusCode:Q.status,body:hr})}));return{response:new cW.HttpResponse({headers:x,reason:Q.statusText,statusCode:Q.status,body:Q.body})}}),gW(w)];if(s)B.push(new Promise((Q,i)=>{const x=L0(()=>{const e=new Error("Request aborted");e.name="AbortError",i(e)},"onAbort");if(typeof s.addEventListener==="function"){const e=s;e.addEventListener("abort",x,{once:!0}),Z=L0(()=>e.removeEventListener("abort",x),"removeSignalEventListener")}else s.onabort=x}));return Promise.race(B).finally(Z)}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return w[f]=s,w})}httpHandlerConfigs(){return this.config??{}}};L0(_W,"FetchHttpHandler");var pq=_W,uq=dE(),tq=L0((r)=>{if(typeof Blob==="function"&&r instanceof Blob)return xW(r);return eW(r)},"streamCollector");L0(xW,"collectBlob");L0(eW,"collectStream");L0(nW,"readToBase64")});var xE=v((V0r,fz)=>{function rz(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const f=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2){const w=r.slice(s,s+2).toLowerCase();if(w in PU)f[s/2]=PU[w];else throw new Error(`Cannot decode unrecognized sequence ${w} as hexadecimal`)}return f}function sz(r){let f="";for(let s=0;s<r.byteLength;s++)f+=tW[r[s]];return f}var{defineProperty:_E,getOwnPropertyDescriptor:rv,getOwnPropertyNames:sv}=Object,fv=Object.prototype.hasOwnProperty,pW=(r,f)=>_E(r,"name",{value:f,configurable:!0}),wv=(r,f)=>{for(var s in f)_E(r,s,{get:f[s],enumerable:!0})},hv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of sv(f))if(!fv.call(r,h)&&h!==s)_E(r,h,{get:()=>f[h],enumerable:!(w=rv(f,h))||w.enumerable})}return r},$v=(r)=>hv(_E({},"__esModule",{value:!0}),r),uW={};wv(uW,{fromHex:()=>rz,toHex:()=>sz});fz.exports=$v(uW);var tW={},PU={};for(let r=0;r<256;r++){let f=r.toString(16).toLowerCase();if(f.length===1)f=`0${f}`;tW[r]=f,PU[f]=r}pW(rz,"fromHex");pW(sz,"toHex")});var X1=v((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});wz.isReadableStream=void 0;var Ev=(r)=>{var f;return typeof ReadableStream==="function"&&(((f=r===null||r===void 0?void 0:r.constructor)===null||f===void 0?void 0:f.name)===ReadableStream.name||r instanceof ReadableStream)};wz.isReadableStream=Ev});var Tz=v((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.sdkStreamMixin=void 0;var Iv=aW(),Fv=dE(),Uv=xE(),Tv=j0(),$z=X1(),Ez="The stream has already been transformed.",Gv=(r)=>{var f,s;if(!Iz(r)&&!$z.isReadableStream(r)){const E=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let w=!1;const h=async()=>{if(w)throw new Error(Ez);return w=!0,await Iv.streamCollector(r)},$=(E)=>{if(typeof E.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return E.stream()};return Object.assign(r,{transformToByteArray:h,transformToString:async(E)=>{const I=await h();if(E==="base64")return Fv.toBase64(I);else if(E==="hex")return Uv.toHex(I);else if(E===void 0||E==="utf8"||E==="utf-8")return Tv.toUtf8(I);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(I);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(w)throw new Error(Ez);if(w=!0,Iz(r))return $(r);else if($z.isReadableStream(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})};Fz.sdkStreamMixin=Gv;var Iz=(r)=>typeof Blob==="function"&&r instanceof Blob});var Az=v((Cz)=>{Object.defineProperty(Cz,"__esModule",{value:!0});Cz.sdkStreamMixin=void 0;var Cv=OW(),Lv=S1(),XU=import.meta.require("stream"),Av=import.meta.require("util"),Rv=Tz(),Gz="The stream has already been transformed.",Wv=(r)=>{var f,s;if(!(r instanceof XU.Readable))try{return Rv.sdkStreamMixin(r)}catch($){const E=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let w=!1;const h=async()=>{if(w)throw new Error(Gz);return w=!0,await Cv.streamCollector(r)};return Object.assign(r,{transformToByteArray:h,transformToString:async($)=>{const E=await h();if($===void 0||Buffer.isEncoding($))return Lv.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString($);else return new Av.TextDecoder($).decode(E)},transformToWebStream:()=>{if(w)throw new Error(Gz);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof XU.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return w=!0,XU.Readable.toWeb(r)}})};Cz.sdkStreamMixin=Wv});var zz=v((Rz)=>{async function zv(r){if(typeof r.stream==="function")r=r.stream();return r.tee()}Object.defineProperty(Rz,"__esModule",{value:!0});Rz.splitStream=void 0;Rz.splitStream=zv});var Yz=v((Pz)=>{async function Xv(r){if(Pv.isReadableStream(r))return Sv.splitStream(r);const f=new Sz.PassThrough,s=new Sz.PassThrough;return r.pipe(f),r.pipe(s),[f,s]}Object.defineProperty(Pz,"__esModule",{value:!0});Pz.splitStream=void 0;var Sz=import.meta.require("stream"),Sv=zz(),Pv=X1();Pz.splitStream=Xv});var lz=v((Kz)=>{async function Yv(r,f){var s;let w=0;const h=[],$=r.getReader();let E=!1;while(!E){const{done:U,value:C}=await $.read();if(C)h.push(C),w+=(s=C===null||C===void 0?void 0:C.byteLength)!==null&&s!==void 0?s:0;if(w>=f)break;E=U}$.releaseLock();const I=new Uint8Array(Math.min(f,w));let F=0;for(let U of h){if(U.byteLength>I.byteLength-F){I.set(U.subarray(0,I.byteLength-F),F);break}else I.set(U,F);F+=U.length}return I}Object.defineProperty(Kz,"__esModule",{value:!0});Kz.headStream=void 0;Kz.headStream=Yv});var Bz=v((Qz)=>{Object.defineProperty(Qz,"__esModule",{value:!0});Qz.headStream=void 0;var Kv=import.meta.require("stream"),Zv=lz(),lv=X1(),Jv=(r,f)=>{if(lv.isReadableStream(r))return Zv.headStream(r,f);return new Promise((s,w)=>{const h=new Jz;h.limit=f,r.pipe(h),r.on("error",($)=>{h.end(),w($)}),h.on("error",w),h.on("finish",function(){const $=new Uint8Array(Buffer.concat(this.buffers));s($)})})};Qz.headStream=Jv;class Jz extends Kv.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(r,f,s){var w;if(this.buffers.push(r),this.bytesBuffered+=(w=r.byteLength)!==null&&w!==void 0?w:0,this.bytesBuffered>=this.limit){const h=this.bytesBuffered-this.limit,$=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=$.subarray(0,$.byteLength-h),this.emit("finish")}s()}}});var yz=v((v0r,Yw)=>{function kz(r,f="utf-8"){if(f==="base64")return Hz.toBase64(r);return Vz.toUtf8(r)}function Dz(r,f){if(f==="base64")return KU.mutate(Hz.fromBase64(r));return KU.mutate(Vz.fromUtf8(r))}var{defineProperty:eE,getOwnPropertyDescriptor:Qv,getOwnPropertyNames:Mv}=Object,Bv=Object.prototype.hasOwnProperty,ZU=(r,f)=>eE(r,"name",{value:f,configurable:!0}),Hv=(r,f)=>{for(var s in f)eE(r,s,{get:f[s],enumerable:!0})},YU=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Mv(f))if(!Bv.call(r,h)&&h!==s)eE(r,h,{get:()=>f[h],enumerable:!(w=Qv(f,h))||w.enumerable})}return r},Y1=(r,f,s)=>(YU(r,f,"default"),s&&YU(s,f,"default")),Vv=(r)=>YU(eE({},"__esModule",{value:!0}),r),Xw={};Hv(Xw,{Uint8ArrayBlobAdapter:()=>KU});Yw.exports=Vv(Xw);var Hz=dE(),Vz=j0();ZU(kz,"transformToString");ZU(Dz,"transformFromString");var iz=class r extends Uint8Array{static fromString(f,s="utf-8"){switch(typeof f){case"string":return Dz(f,s);default:throw new Error(`Unsupported conversion from ${typeof f} to Uint8ArrayBlobAdapter.`)}}static mutate(f){return Object.setPrototypeOf(f,r.prototype),f}transformToString(f="utf-8"){return kz(this,f)}};ZU(iz,"Uint8ArrayBlobAdapter");var KU=iz;Y1(Xw,SW(),Yw.exports);Y1(Xw,Az(),Yw.exports);Y1(Xw,Yz(),Yw.exports);Y1(Xw,Bz(),Yw.exports);Y1(Xw,X1(),Yw.exports)});var Fh=v((j0r,wS)=>{function nz(r){const f=r.getUTCFullYear(),s=r.getUTCMonth(),w=r.getUTCDay(),h=r.getUTCDate(),$=r.getUTCHours(),E=r.getUTCMinutes(),I=r.getUTCSeconds(),F=h<10?`0${h}`:`${h}`,U=$<10?`0${$}`:`${$}`,C=E<10?`0${E}`:`${E}`,L=I<10?`0${I}`:`${I}`;return`${hj[w]}, ${F} ${yU[s]} ${f} ${U}:${C}:${L} GMT`}function aE(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}function mU(r,f,s){let w,h,$;if(typeof f==="undefined"&&typeof s==="undefined")w={},$=r;else if(w=r,typeof f==="function")return h=f,$=s,qj(w,h,$);else $=f;for(let E of Object.keys($)){if(!Array.isArray($[E])){w[E]=$[E];continue}sS(w,null,$,E)}return w}function fS(r,f,s){if(s<=0||!Number.isInteger(s))throw new Error("Invalid number of delimiters ("+s+") for splitEvery.");const w=r.split(f);if(s===1)return w;const h=[];let $="";for(let E=0;E<w.length;E++){if($==="")$=w[E];else $+=f+w[E];if((E+1)%s===0)h.push($),$=""}if($!=="")h.push($);return h}var{defineProperty:pE,getOwnPropertyDescriptor:kv,getOwnPropertyNames:Dv}=Object,iv=Object.prototype.hasOwnProperty,q=(r,f)=>pE(r,"name",{value:f,configurable:!0}),yv=(r,f)=>{for(var s in f)pE(r,s,{get:f[s],enumerable:!0})},mv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Dv(f))if(!iv.call(r,h)&&h!==s)pE(r,h,{get:()=>f[h],enumerable:!(w=kv(f,h))||w.enumerable})}return r},Nv=(r)=>mv(pE({},"__esModule",{value:!0}),r),Nz={};yv(Nz,{Client:()=>vv,Command:()=>Oz,LazyJsonString:()=>yj,NoOpLogger:()=>qv,SENSITIVE_STRING:()=>Ov,ServiceException:()=>Kj,StringWrapper:()=>Q1,_json:()=>VU,collectBody:()=>jv,convertMap:()=>mj,createAggregatedClient:()=>cv,dateToUtcString:()=>nz,decorateServiceException:()=>az,emitWarningIfUnsupportedVersion:()=>Qj,expectBoolean:()=>gv,expectByte:()=>HU,expectFloat32:()=>nE,expectInt:()=>xv,expectInt32:()=>MU,expectLong:()=>l1,expectNonNull:()=>nv,expectNumber:()=>Z1,expectObject:()=>bz,expectShort:()=>BU,expectString:()=>ov,expectUnion:()=>av,extendedEncodeURIComponent:()=>aE,getArrayIfSingleItem:()=>ij,getDefaultClientConfiguration:()=>kj,getDefaultExtensionConfiguration:()=>uz,getValueFromTextNode:()=>tz,handleFloat:()=>tv,limitedParseDouble:()=>iU,limitedParseFloat:()=>rj,limitedParseFloat32:()=>sj,loadConfigsForDefaultMode:()=>Jj,logger:()=>J1,map:()=>mU,parseBoolean:()=>bv,parseEpochTimestamp:()=>Lj,parseRfc3339DateTime:()=>Ej,parseRfc3339DateTimeWithOffset:()=>Fj,parseRfc7231DateTime:()=>Cj,resolveDefaultRuntimeConfig:()=>Dj,resolvedPath:()=>dj,serializeDateTime:()=>cj,serializeFloat:()=>Oj,splitEvery:()=>fS,strictParseByte:()=>ez,strictParseDouble:()=>DU,strictParseFloat:()=>pv,strictParseFloat32:()=>gz,strictParseInt:()=>fj,strictParseInt32:()=>wj,strictParseLong:()=>xz,strictParseShort:()=>$h,take:()=>Nj,throwDefaultError:()=>pz,withBaseException:()=>Zj});wS.exports=Nv(Nz);var qz=class r{trace(){}debug(){}info(){}warn(){}error(){}};q(qz,"NoOpLogger");var qv=qz,vz=uR(),jz=class r{constructor(f){this.middlewareStack=vz.constructStack(),this.config=f}send(f,s,w){const h=typeof s!=="function"?s:void 0,$=typeof s==="function"?s:w,E=f.resolveMiddleware(this.middlewareStack,this.config,h);if($)E(f).then((I)=>$(null,I.output),(I)=>$(I)).catch(()=>{});else return E(f).then((I)=>I.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};q(jz,"Client");var vv=jz,lU=yz(),jv=q(async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return lU.Uint8ArrayBlobAdapter.mutate(r);if(!r)return lU.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const s=f.streamCollector(r);return lU.Uint8ArrayBlobAdapter.mutate(await s)},"collectBody"),QU=Is(),dz=class r{constructor(){this.middlewareStack=vz.constructStack()}static classBuilder(){return new dv}resolveMiddlewareWithContext(f,s,w,{middlewareFn:h,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,smithyContext:U,additionalContext:C,CommandCtor:L}){for(let B of h.bind(this)(L,f,s,w))this.middlewareStack.use(B);const z=f.concat(this.middlewareStack),{logger:S}=s,Z={logger:S,clientName:$,commandName:E,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,[QU.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...C},{requestHandler:D}=s;return z.resolve((B)=>D.handle(B.request,w||{}),Z)}};q(dz,"Command");var Oz=dz,cz=class r{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,s,w={}){return this._smithyContext={service:f,operation:s,...w},this}c(f={}){return this._additionalContext=f,this}n(f,s){return this._clientName=f,this._commandName=s,this}f(f=(w)=>w,s=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=s,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){var f;const s=this;let w;return w=(f=class extends Oz{constructor(...[h]){super();this.serialize=s._serializer,this.deserialize=s._deserializer,this.input=h??{},s._init(this)}static getEndpointParameterInstructions(){return s._ep}resolveMiddleware(h,$,E){return this.resolveMiddlewareWithContext(h,$,E,{CommandCtor:w,middlewareFn:s._middlewareFn,clientName:s._clientName,commandName:s._commandName,inputFilterSensitiveLog:s._inputFilterSensitiveLog,outputFilterSensitiveLog:s._outputFilterSensitiveLog,smithyContext:s._smithyContext,additionalContext:s._additionalContext})}},q(f,"CommandRef"),f)}};q(cz,"ClassBuilder");var dv=cz,Ov="***SensitiveInformation***",cv=q((r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=q(async function(E,I,F){const U=new w(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},"methodImpl"),$=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[$]=h}},"createAggregatedClient"),bv=q((r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},"parseBoolean"),gv=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)J1.warn(oE(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")J1.warn(oE(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},"expectBoolean"),Z1=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))J1.warn(oE(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},"expectNumber"),_v=Math.ceil(340282346638528860000000000000000000000),nE=q((r)=>{const f=Z1(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>_v)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},"expectFloat32"),l1=q((r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},"expectLong"),xv=l1,MU=q((r)=>kU(r,32),"expectInt32"),BU=q((r)=>kU(r,16),"expectShort"),HU=q((r)=>kU(r,8),"expectByte"),kU=q((r,f)=>{const s=l1(r);if(s!==void 0&&ev(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},"expectSizedInt"),ev=q((r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},"castInt"),nv=q((r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},"expectNonNull"),bz=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},"expectObject"),ov=q((r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return J1.warn(oE(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},"expectString"),av=q((r)=>{if(r===null||r===void 0)return;const f=bz(r),s=Object.entries(f).filter(([,w])=>w!=null).map(([w])=>w);if(s.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(s.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${s} were not null.`);return f},"expectUnion"),DU=q((r)=>{if(typeof r=="string")return Z1(Ih(r));return Z1(r)},"strictParseDouble"),pv=DU,gz=q((r)=>{if(typeof r=="string")return nE(Ih(r));return nE(r)},"strictParseFloat32"),uv=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Ih=q((r)=>{const f=r.match(uv);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},"parseNumber"),iU=q((r)=>{if(typeof r=="string")return _z(r);return Z1(r)},"limitedParseDouble"),tv=iU,rj=iU,sj=q((r)=>{if(typeof r=="string")return _z(r);return nE(r)},"limitedParseFloat32"),_z=q((r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},"parseFloatString"),xz=q((r)=>{if(typeof r==="string")return l1(Ih(r));return l1(r)},"strictParseLong"),fj=xz,wj=q((r)=>{if(typeof r==="string")return MU(Ih(r));return MU(r)},"strictParseInt32"),$h=q((r)=>{if(typeof r==="string")return BU(Ih(r));return BU(r)},"strictParseShort"),ez=q((r)=>{if(typeof r==="string")return HU(Ih(r));return HU(r)},"strictParseByte"),oE=q((r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),J1={warn:console.warn},hj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];q(nz,"dateToUtcString");var $j=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ej=q((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=$j.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U]=f,C=$h(Eh(w)),L=kf(h,"month",1,12),z=kf($,"day",1,31);return K1(C,L,z,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},"parseRfc3339DateTime"),Ij=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Fj=q((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=Ij.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U,C]=f,L=$h(Eh(w)),z=kf(h,"month",1,12),S=kf($,"day",1,31),Z=K1(L,z,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")Z.setTime(Z.getTime()-Yj(C));return Z},"parseRfc3339DateTimeWithOffset"),Uj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Tj=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Gj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Cj=q((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let f=Uj.exec(r);if(f){const[s,w,h,$,E,I,F,U]=f;return K1($h(Eh($)),JU(h),kf(w,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})}if(f=Tj.exec(r),f){const[s,w,h,$,E,I,F,U]=f;return Wj(K1(Aj($),JU(h),kf(w,"day",1,31),{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U}))}if(f=Gj.exec(r),f){const[s,w,h,$,E,I,F,U]=f;return K1($h(Eh(U)),JU(w),kf(h.trimLeft(),"day",1,31),{hours:$,minutes:E,seconds:I,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Lj=q((r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=DU(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},"parseEpochTimestamp"),K1=q((r,f,s,w)=>{const h=f-1;return Sj(r,h,s),new Date(Date.UTC(r,h,s,kf(w.hours,"hour",0,23),kf(w.minutes,"minute",0,59),kf(w.seconds,"seconds",0,60),Xj(w.fractionalMilliseconds)))},"buildDate"),Aj=q((r)=>{const f=new Date().getUTCFullYear(),s=Math.floor(f/100)*100+$h(Eh(r));if(s<f)return s+100;return s},"parseTwoDigitYear"),Rj=1576800000000,Wj=q((r)=>{if(r.getTime()-new Date().getTime()>Rj)return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()));return r},"adjustRfc850Year"),JU=q((r)=>{const f=yU.indexOf(r);if(f<0)throw new TypeError(`Invalid month: ${r}`);return f+1},"parseMonthByShortName"),zj=[31,28,31,30,31,30,31,31,30,31,30,31],Sj=q((r,f,s)=>{let w=zj[f];if(f===1&&Pj(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${yU[f]} in ${r}: ${s}`)},"validateDayOfMonth"),Pj=q((r)=>{return r%4===0&&(r%100!==0||r%400===0)},"isLeapYear"),kf=q((r,f,s,w)=>{const h=ez(Eh(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},"parseDateValue"),Xj=q((r)=>{if(r===null||r===void 0)return 0;return gz("0."+r)*1000},"parseMilliseconds"),Yj=q((r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},"parseOffsetToMilliseconds"),Eh=q((r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)},"stripLeadingZeroes"),oz=class r extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,r.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}};q(oz,"ServiceException");var Kj=oz,az=q((r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r},"decorateServiceException"),pz=q(({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=lj(r),$=h.httpStatusCode?h.httpStatusCode+"":void 0,E=new s({name:(f==null?void 0:f.code)||(f==null?void 0:f.Code)||w||$||"UnknownError",$fault:"client",$metadata:h});throw az(E,f)},"throwDefaultError"),Zj=q((r)=>{return({output:f,parsedBody:s,errorCode:w})=>{pz({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},"withBaseException"),lj=q((r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),"deserializeMetadata"),Jj=q((r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),mz=!1,Qj=q((r)=>{if(r&&!mz&&parseInt(r.substring(1,r.indexOf(".")))<16)mz=!0},"emitWarningIfUnsupportedVersion"),Mj=q((r)=>{const f=[];for(let s in QU.AlgorithmId){const w=QU.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),Bj=q((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),Hj=q((r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},"getRetryConfiguration"),Vj=q((r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f},"resolveRetryRuntimeConfig"),uz=q((r)=>{return{...Mj(r),...Hj(r)}},"getDefaultExtensionConfiguration"),kj=uz,Dj=q((r)=>{return{...Bj(r),...Vj(r)}},"resolveDefaultRuntimeConfig");q(aE,"extendedEncodeURIComponent");var ij=q((r)=>Array.isArray(r)?r:[r],"getArrayIfSingleItem"),tz=q((r)=>{for(let s in r)if(r.hasOwnProperty(s)&&r[s]["#text"]!==void 0)r[s]=r[s]["#text"];else if(typeof r[s]==="object"&&r[s]!==null)r[s]=tz(r[s]);return r},"getValueFromTextNode"),Q1=q(function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s},"StringWrapper");Q1.prototype=Object.create(String.prototype,{constructor:{value:Q1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Q1,String);var rS=class r extends Q1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(f){if(f instanceof r)return f;else if(f instanceof String||typeof f==="string")return new r(f);return new r(JSON.stringify(f))}};q(rS,"LazyJsonString");var yj=rS;q(mU,"map");var mj=q((r)=>{const f={};for(let[s,w]of Object.entries(r||{}))f[s]=[,w];return f},"convertMap"),Nj=q((r,f)=>{const s={};for(let w in f)sS(s,r,f,w);return s},"take"),qj=q((r,f,s)=>{return mU(r,Object.entries(s).reduce((w,[h,$])=>{if(Array.isArray($))w[h]=$;else if(typeof $==="function")w[h]=[f,$()];else w[h]=[f,$];return w},{}))},"mapWithFilter"),sS=q((r,f,s,w)=>{if(f!==null){let E=s[w];if(typeof E==="function")E=[,E];const[I=vj,F=jj,U=w]=E;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,$]=s[w];if(typeof $==="function"){let E;const I=h===void 0&&(E=$())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=E;else if(F)r[w]=$()}else{const E=h===void 0&&$!=null,I=typeof h==="function"&&!!h($)||typeof h!=="function"&&!!h;if(E||I)r[w]=$}},"applyInstruction"),vj=q((r)=>r!=null,"nonNullish"),jj=q((r)=>r,"pass"),dj=q((r,f,s,w,h,$)=>{if(f!=null&&f[s]!==void 0){const E=w();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+s+".");r=r.replace(h,$?E.split("/").map((I)=>aE(I)).join("/"):aE(E))}else throw new Error("No value provided for input HTTP label: "+s+".");return r},"resolvedPath"),Oj=q((r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}},"serializeFloat"),cj=q((r)=>r.toISOString().replace(".000Z","Z"),"serializeDateTime"),VU=q((r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(VU);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=VU(r[s])}return f}return r},"_json");q(fS,"splitEvery")});var ES=v((hS)=>{Object.defineProperty(hS,"__esModule",{value:!0});hS.isStreamingPayload=void 0;var bj=import.meta.require("stream"),gj=(r)=>(r===null||r===void 0?void 0:r.body)instanceof bj.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;hS.isStreamingPayload=gj});var lS=v((c0r,ZS)=>{var{defineProperty:uE,getOwnPropertyDescriptor:_j,getOwnPropertyNames:xj}=Object,ej=Object.prototype.hasOwnProperty,Dr=(r,f)=>uE(r,"name",{value:f,configurable:!0}),nj=(r,f)=>{for(var s in f)uE(r,s,{get:f[s],enumerable:!0})},oj=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of xj(f))if(!ej.call(r,h)&&h!==s)uE(r,h,{get:()=>f[h],enumerable:!(w=_j(f,h))||w.enumerable})}return r},aj=(r)=>oj(uE({},"__esModule",{value:!0}),r),FS={};nj(FS,{AdaptiveRetryStrategy:()=>tj,CONFIG_MAX_ATTEMPTS:()=>qU,CONFIG_RETRY_MODE:()=>zS,ENV_MAX_ATTEMPTS:()=>NU,ENV_RETRY_MODE:()=>WS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>rd,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>fd,StandardRetryStrategy:()=>AS,defaultDelayDecider:()=>TS,defaultRetryDecider:()=>GS,getOmitRetryHeadersPlugin:()=>wd,getRetryAfterHint:()=>KS,getRetryPlugin:()=>Ud,omitRetryHeadersMiddleware:()=>SS,omitRetryHeadersMiddlewareOptions:()=>PS,resolveRetryConfig:()=>sd,retryMiddleware:()=>XS,retryMiddlewareOptions:()=>YS});ZS.exports=aj(FS);var Uh=G0(),US=rU(),Kr=eR(),pj=Dr((r,f)=>{const s=r,w=(f==null?void 0:f.noRetryIncrement)??Kr.NO_RETRY_INCREMENT,h=(f==null?void 0:f.retryCost)??Kr.RETRY_COST,$=(f==null?void 0:f.timeoutRetryCost)??Kr.TIMEOUT_RETRY_COST;let E=r;const I=Dr((L)=>L.name==="TimeoutError"?$:h,"getCapacityAmount"),F=Dr((L)=>I(L)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:Dr((L)=>{if(!F(L))throw new Error("No retry token available");const z=I(L);return E-=z,z},"retrieveRetryTokens"),releaseRetryTokens:Dr((L)=>{E+=L??w,E=Math.min(E,s)},"releaseRetryTokens")})},"getDefaultRetryQuota"),TS=Dr((r,f)=>Math.floor(Math.min(Kr.MAXIMUM_RETRY_DELAY,Math.random()*2**f*r)),"defaultDelayDecider"),d0=sU(),GS=Dr((r)=>{if(!r)return!1;return d0.isRetryableByTrait(r)||d0.isClockSkewError(r)||d0.isThrottlingError(r)||d0.isTransientError(r)},"defaultRetryDecider"),CS=Dr((r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)},"asSdkError"),LS=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode=Kr.RETRY_MODES.STANDARD,this.retryDecider=(s==null?void 0:s.retryDecider)??GS,this.delayDecider=(s==null?void 0:s.delayDecider)??TS,this.retryQuota=(s==null?void 0:s.retryQuota)??pj(Kr.INITIAL_RETRY_TOKENS)}shouldRetry(f,s,w){return s<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(s){f=Kr.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,s,w){let h,$=0,E=0;const I=await this.getMaxAttempts(),{request:F}=s;if(Uh.HttpRequest.isInstance(F))F.headers[Kr.INVOCATION_ID_HEADER]=US.v4();while(!0)try{if(Uh.HttpRequest.isInstance(F))F.headers[Kr.REQUEST_HEADER]=`attempt=${$+1}; max=${I}`;if(w==null?void 0:w.beforeRequest)await w.beforeRequest();const{response:U,output:C}=await f(s);if(w==null?void 0:w.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(h),C.$metadata.attempts=$+1,C.$metadata.totalRetryDelay=E,{response:U,output:C}}catch(U){const C=CS(U);if($++,this.shouldRetry(C,$,I)){h=this.retryQuota.retrieveRetryTokens(C);const L=this.delayDecider(d0.isThrottlingError(C)?Kr.THROTTLING_RETRY_DELAY_BASE:Kr.DEFAULT_RETRY_DELAY_BASE,$),z=uj(C.$response),S=Math.max(z||0,L);E+=S,await new Promise((Z)=>setTimeout(Z,S));continue}if(!C.$metadata)C.$metadata={};throw C.$metadata.attempts=$,C.$metadata.totalRetryDelay=E,C}}};Dr(LS,"StandardRetryStrategy");var AS=LS,uj=Dr((r)=>{if(!Uh.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return w*1000;return new Date(s).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),RS=class r extends AS{constructor(f,s){const{rateLimiter:w,...h}=s??{};super(f,h);this.rateLimiter=w??new Kr.DefaultRateLimiter,this.mode=Kr.RETRY_MODES.ADAPTIVE}async retry(f,s){return super.retry(f,s,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}};Dr(RS,"AdaptiveRetryStrategy");var tj=RS,IS=G1(),NU="AWS_MAX_ATTEMPTS",qU="max_attempts",rd={environmentVariableSelector:(r)=>{const f=r[NU];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${NU} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[qU];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${qU} mast be a number, got "${f}"`);return s},default:Kr.DEFAULT_MAX_ATTEMPTS},sd=Dr((r)=>{const{retryStrategy:f}=r,s=IS.normalizeProvider(r.maxAttempts??Kr.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await IS.normalizeProvider(r.retryMode)()===Kr.RETRY_MODES.ADAPTIVE)return new Kr.AdaptiveRetryStrategy(s);return new Kr.StandardRetryStrategy(s)}}},"resolveRetryConfig"),WS="AWS_RETRY_MODE",zS="retry_mode",fd={environmentVariableSelector:(r)=>r[WS],configFileSelector:(r)=>r[zS],default:Kr.DEFAULT_RETRY_MODE},SS=Dr(()=>(r)=>async(f)=>{const{request:s}=f;if(Uh.HttpRequest.isInstance(s))delete s.headers[Kr.INVOCATION_ID_HEADER],delete s.headers[Kr.REQUEST_HEADER];return r(f)},"omitRetryHeadersMiddleware"),PS={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},wd=Dr((r)=>({applyToStack:(f)=>{f.addRelativeTo(SS(),PS)}}),"getOmitRetryHeadersPlugin"),hd=Fh(),$d=ES(),XS=Dr((r)=>(f,s)=>async(w)=>{var h;let $=await r.retryStrategy();const E=await r.maxAttempts();if(Ed($)){$=$;let I=await $.acquireInitialRetryToken(s.partition_id),F=new Error,U=0,C=0;const{request:L}=w,z=Uh.HttpRequest.isInstance(L);if(z)L.headers[Kr.INVOCATION_ID_HEADER]=US.v4();while(!0)try{if(z)L.headers[Kr.REQUEST_HEADER]=`attempt=${U+1}; max=${E}`;const{response:S,output:Z}=await f(w);return $.recordSuccess(I),Z.$metadata.attempts=U+1,Z.$metadata.totalRetryDelay=C,{response:S,output:Z}}catch(S){const Z=Id(S);if(F=CS(S),z&&$d.isStreamingPayload(L))throw(h=s.logger instanceof hd.NoOpLogger?console:s.logger)==null||h.warn("An error was encountered in a non-retryable streaming request."),F;try{I=await $.refreshRetryTokenForRetry(I,Z)}catch(B){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=U+1,F.$metadata.totalRetryDelay=C,F}U=I.getRetryCount();const D=I.getRetryDelay();C+=D,await new Promise((B)=>setTimeout(B,D))}}else{if($=$,$==null?void 0:$.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",$.mode]];return $.retry(f,w)}},"retryMiddleware"),Ed=Dr((r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined","isRetryStrategyV2"),Id=Dr((r)=>{const f={error:r,errorType:Fd(r)},s=KS(r.$response);if(s)f.retryAfterHint=s;return f},"getRetryErrorInfo"),Fd=Dr((r)=>{if(d0.isThrottlingError(r))return"THROTTLING";if(d0.isTransientError(r))return"TRANSIENT";if(d0.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),YS={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Ud=Dr((r)=>({applyToStack:(f)=>{f.add(XS(r),YS)}}),"getRetryPlugin"),KS=Dr((r)=>{if(!Uh.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)},"getRetryAfterHint")});var Or=v((b0r,bS)=>{function MS(r){const f=new Map;for(let s of r)f.set(s.schemeId,s);return f}function jS(r,f){return new OS(r,f)}function cS(r,f,s,w,h){return zr(async function*$(E,I,...F){let U=E.startingToken||void 0,C=!0,L;while(C){if(I[s]=U,h)I[h]=I[h]??E.pageSize;if(E.client instanceof r)L=await id(f,E.client,I,...F);else throw new Error(`Invalid client, expected instance of ${r.name}`);yield L;const z=U;U=yd(L,w),C=!!(U&&(!E.stopOnSameToken||U!==z))}return},"paginateOperation")}var{defineProperty:r3,getOwnPropertyDescriptor:Td,getOwnPropertyNames:Gd}=Object,Cd=Object.prototype.hasOwnProperty,zr=(r,f)=>r3(r,"name",{value:f,configurable:!0}),Ld=(r,f)=>{for(var s in f)r3(r,s,{get:f[s],enumerable:!0})},Ad=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Gd(f))if(!Cd.call(r,h)&&h!==s)r3(r,h,{get:()=>f[h],enumerable:!(w=Td(f,h))||w.enumerable})}return r},Rd=(r)=>Ad(r3({},"__esModule",{value:!0}),r),JS={};Ld(JS,{DefaultIdentityProviderConfig:()=>ld,EXPIRATION_MS:()=>qS,HttpApiKeyAuthSigner:()=>Jd,HttpBearerAuthSigner:()=>Qd,NoAuthSigner:()=>Md,RequestBuilder:()=>OS,createIsIdentityExpiredFunction:()=>NS,createPaginator:()=>cS,doesIdentityRequireRefresh:()=>vS,getHttpAuthSchemeEndpointRuleSetPlugin:()=>zd,getHttpAuthSchemePlugin:()=>Pd,getHttpSigningPlugin:()=>Zd,getSmithyContext:()=>Vd,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>BS,httpAuthSchemeMiddleware:()=>vU,httpAuthSchemeMiddlewareOptions:()=>HS,httpSigningMiddleware:()=>VS,httpSigningMiddlewareOptions:()=>kS,isIdentityExpired:()=>Bd,memoizeIdentityProvider:()=>Hd,normalizeProvider:()=>kd,requestBuilder:()=>jS});bS.exports=Rd(JS);var QS=G1();zr(MS,"convertHttpAuthSchemesToMap");var vU=zr((r,f)=>(s,w)=>async(h)=>{var $;const E=r.httpAuthSchemeProvider(await f.httpAuthSchemeParametersProvider(r,w,h.input)),I=MS(r.httpAuthSchemes),F=QS.getSmithyContext(w),U=[];for(let C of E){const L=I.get(C.schemeId);if(!L){U.push(`HttpAuthScheme \`${C.schemeId}\` was not enabled for this service.`);continue}const z=L.identityProvider(await f.identityProviderConfigProvider(r));if(!z){U.push(`HttpAuthScheme \`${C.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:S={},signingProperties:Z={}}=(($=C.propertiesExtractor)==null?void 0:$.call(C,r,w))||{};C.identityProperties=Object.assign(C.identityProperties||{},S),C.signingProperties=Object.assign(C.signingProperties||{},Z),F.selectedHttpAuthScheme={httpAuthOption:C,identity:await z(C.identityProperties),signer:L.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(U.join("\n"));return s(h)},"httpAuthSchemeMiddleware"),Wd=MA(),BS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Wd.endpointMiddlewareOptions.name},zd=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(vU(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),BS)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),Sd=xF(),HS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Sd.serializerMiddlewareOption.name},Pd=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(vU(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),HS)}}),"getHttpAuthSchemePlugin"),s3=G0(),Xd=zr((r)=>(f)=>{throw f},"defaultErrorHandler"),Yd=zr((r,f)=>{},"defaultSuccessHandler"),VS=zr((r)=>(f,s)=>async(w)=>{if(!s3.HttpRequest.isInstance(w.request))return f(w);const $=QS.getSmithyContext(s).selectedHttpAuthScheme;if(!$)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:E={}},identity:I,signer:F}=$,U=await f({...w,request:await F.sign(w.request,I,E)}).catch((F.errorHandler||Xd)(E));return(F.successHandler||Yd)(U.response,E),U},"httpSigningMiddleware"),Kd=lS(),kS={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:Kd.retryMiddlewareOptions.name},Zd=zr((r)=>({applyToStack:(f)=>{f.addRelativeTo(VS(r),kS)}}),"getHttpSigningPlugin"),DS=class r{constructor(f){this.authSchemes=new Map;for(let[s,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(s,w)}getIdentityProvider(f){return this.authSchemes.get(f)}};zr(DS,"DefaultIdentityProviderConfig");var ld=DS,tE=Is(),iS=class r{async sign(f,s,w){if(!w)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!w.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!w.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const h=s3.HttpRequest.clone(f);if(w.in===tE.HttpApiKeyAuthLocation.QUERY)h.query[w.name]=s.apiKey;else if(w.in===tE.HttpApiKeyAuthLocation.HEADER)h.headers[w.name]=w.scheme?`${w.scheme} ${s.apiKey}`:s.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return h}};zr(iS,"HttpApiKeyAuthSigner");var Jd=iS,yS=class r{async sign(f,s,w){const h=s3.HttpRequest.clone(f);if(!s.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return h.headers.Authorization=`Bearer ${s.token}`,h}};zr(yS,"HttpBearerAuthSigner");var Qd=yS,mS=class r{async sign(f,s,w){return f}};zr(mS,"NoAuthSigner");var Md=mS,NS=zr((r)=>(f)=>vS(f)&&f.expiration.getTime()-Date.now()<r,"createIsIdentityExpiredFunction"),qS=300000,Bd=NS(qS),vS=zr((r)=>r.expiration!==void 0,"doesIdentityRequireRefresh"),Hd=zr((r,f,s)=>{if(r===void 0)return;const w=typeof r!=="function"?async()=>Promise.resolve(r):r;let h,$,E,I=!1;const F=zr(async(U)=>{if(!$)$=w(U);try{h=await $,E=!0,I=!1}finally{$=void 0}return h},"coalesceProvider");if(f===void 0)return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))h=await F(U);return h};return async(U)=>{if(!E||(U==null?void 0:U.forceRefresh))h=await F(U);if(I)return h;if(!s(h))return I=!0,h;if(f(h))return await F(U),h;return h}},"memoizeIdentityProvider"),Vd=zr((r)=>r[tE.SMITHY_CONTEXT_KEY]||(r[tE.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),kd=zr((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider"),Dd=Fh();zr(jS,"requestBuilder");var dS=class r{constructor(f,s){this.input=f,this.context=s,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:f,protocol:s="https",port:w,path:h}=await this.context.endpoint();this.path=h;for(let $ of this.resolvePathStack)$(this.path);return new s3.HttpRequest({protocol:s,hostname:this.hostname||f,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(f){return this.hostname=f,this}bp(f){return this.resolvePathStack.push((s)=>{this.path=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+f}),this}p(f,s,w,h){return this.resolvePathStack.push(($)=>{this.path=Dd.resolvedPath($,this.input,f,s,w,h)}),this}h(f){return this.headers=f,this}q(f){return this.query=f,this}b(f){return this.body=f,this}m(f){return this.method=f,this}};zr(dS,"RequestBuilder");var OS=dS,id=zr(async(r,f,s,...w)=>{return await f.send(new r(s),...w)},"makePagedClientRequest");zr(cS,"createPaginator");var yd=zr((r,f)=>{let s=r;const w=f.split(".");for(let h of w){if(!s||typeof s!=="object")return;s=s[h]}return s},"get")});function md(r){return(f)=>async(s)=>{const w=s.request;if(Qr.isInstance(w)){const{body:h,headers:$}=w;if(h&&Object.keys($).map((E)=>E.toLowerCase()).indexOf(gS)===-1)try{const E=r(h);w.headers={...w.headers,[gS]:String(E)}}catch(E){}}return f({...s,request:w})}}var gS="content-length",Nd,Df=(r)=>({applyToStack:(f)=>{f.add(md(r.bodyLengthChecker),Nd)}});var Th=G(()=>{ir();Nd={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var _S=async(r)=>{const f=r?.Bucket||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Od(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!dd(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},qd,vd,jd,dd=(r)=>qd.test(r)&&!vd.test(r)&&!jd.test(r),Od=(r)=>{const[f,s,w,,,h]=r.split(":"),$=f==="arn"&&r.split(":").length>=6,E=Boolean($&&s&&w&&h);if($&&!E)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return E};var xS=G(()=>{qd=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,vd=/(\d+\.){3}\d+/,jd=/\.\./});var eS=G(()=>{xS()});var nS=(r,f,s)=>{const w=async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h};if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.credentialScope??h?.CredentialScope};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.accountId??h?.AccountId};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:$,hostname:E,port:I,path:F}=h;return`${$}//${E}${I?":"+I:""}${F}`}}return h};return w};var Vs;var M1=G(()=>{Vs=class Vs extends Error{constructor(r,f=!0){let s,w=!0;if(typeof f==="boolean")s=void 0,w=f;else if(f!=null&&typeof f==="object")s=f.logger,w=f.tryNextLink??!0;super(r);this.name="ProviderError",this.tryNextLink=w,Object.setPrototypeOf(this,Vs.prototype),s?.debug?.(`@smithy/property-provider ${w?"->":"(!)"} ${r}`)}static from(r,f=!0){return Object.assign(new this(r.message,f),r)}}});var _;var oS=G(()=>{M1();_=class _ extends Vs{constructor(r,f=!0){super(r,f);this.name="CredentialsProviderError",Object.setPrototypeOf(this,_.prototype)}}});var Fs;var aS=G(()=>{M1();Fs=class Fs extends Vs{constructor(r,f=!0){super(r,f);this.name="TokenProviderError",Object.setPrototypeOf(this,Fs.prototype)}}});var A0=(...r)=>async()=>{if(r.length===0)throw new Vs("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w?.tryNextLink)continue;throw w}throw f};var pS=G(()=>{M1()});var uS=(r)=>()=>Promise.resolve(r);var Kw=(r,f,s)=>{let w,h,$,E=!1;const I=async()=>{if(!h)h=r();try{w=await h,$=!0,E=!1}finally{h=void 0}return w};if(f===void 0)return async(F)=>{if(!$||F?.forceRefresh)w=await I();return w};return async(F)=>{if(!$||F?.forceRefresh)w=await I();if(E)return w;if(s&&!s(w))return E=!0,w;if(f(w))return await I(),w;return w}};var Lr=G(()=>{oS();M1();aS();pS()});function f3(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var tS=(r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new _(s.message||`Not found in ENV: ${f3(r.toString())}`,{logger:f})}};var rP=G(()=>{Lr()});import{homedir as cd}from"os";import{sep as bd}from"path";var jU,gd=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},O0=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${bd}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=gd();if(!jU[h])jU[h]=cd();return jU[h]};var Gh=G(()=>{jU={}});var sP="AWS_PROFILE",ks=(r)=>r.profile||process.env.AWS_PROFILE||"default";import{createHash as _d}from"crypto";import{join as xd}from"path";var w3=(r)=>{const s=_d("sha1").update(r).digest("hex");return xd(O0(),".aws","sso","cache",`${s}.json`)};var dU=G(()=>{Gh()});import{promises as ed}from"fs";var nd,h3=async(r)=>{const f=w3(r),s=await nd(f,"utf8");return JSON.parse(s)};var fP=G(()=>{dU();({readFile:nd}=ed)});var OU,wP=(r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Ds);if(s===-1)return!1;return Object.values(OU.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Ds),$=s.substring(0,h)===OU.IniSectionType.PROFILE?s.substring(h+1):s;return f[$]=w,f},{...r.default&&{default:r.default}});var hP=G(()=>{OU=u(Is(),1);Ch()});import{join as od}from"path";var ad="AWS_CONFIG_FILE",$3=()=>process.env[ad]||od(O0(),".aws","config");var cU=G(()=>{Gh()});import{join as pd}from"path";var ud="AWS_SHARED_CREDENTIALS_FILE",$P=()=>process.env[ud]||pd(O0(),".aws","credentials");var EP=G(()=>{Gh()});var IP,td,rO,B1=(r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const $=h.split(/(^|\s)[;#]/)[0].trim();if($[0]==="["&&$[$.length-1]==="]"){s=void 0,w=void 0;const I=$.substring(1,$.length-1),F=td.exec(I);if(F){const[,U,,C]=F;if(Object.values(IP.IniSectionType).includes(U))s=[U,C].join(Ds)}else s=I;if(rO.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=$.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[$.substring(0,I).trim(),$.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Ds):F;f[s][C]=U}}}}return f};var bU=G(()=>{IP=u(Is(),1);Ch();td=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,rO=["__proto__","profile __proto__"]});import{promises as sO}from"fs";var fO,gU,H1=(r,f)=>{if(!gU[r]||f?.ignoreCache)gU[r]=fO(r,"utf8");return gU[r]};var _U=G(()=>{({readFile:fO}=sO),gU={}});import{join as FP}from"path";var UP=()=>({}),Ds=".",E3=async(r={})=>{const{filepath:f=$P(),configFilepath:s=$3()}=r,w=O0();let $=f;if(f.startsWith("~/"))$=FP(w,f.slice(2));let E=s;if(s.startsWith("~/"))E=FP(w,s.slice(2));const I=await Promise.all([H1(E,{ignoreCache:r.ignoreCache}).then(B1).then(wP).catch(UP),H1($,{ignoreCache:r.ignoreCache}).then(B1).catch(UP)]);return{configFile:I[0],credentialsFile:I[1]}};var Ch=G(()=>{hP();cU();EP();Gh();bU();_U()});var TP,GP=(r)=>Object.entries(r).filter(([f])=>f.startsWith(TP.IniSectionType.SSO_SESSION+Ds)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Ds)+1)]:w}),{});var CP=G(()=>{TP=u(Is(),1);Ch()});var wO=()=>({}),I3=async(r={})=>H1(r.configFilepath??$3()).then(B1).then(GP).catch(wO);var LP=G(()=>{cU();CP();bU();_U()});var AP=(...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f};var c0=async(r)=>{const f=await E3(r);return AP(f.configFile,f.credentialsFile)};var RP=G(()=>{Ch()});var WP=()=>{};var hf=G(()=>{Gh();dU();fP();Ch();LP();RP();WP()});var zP=(r,{preferredFile:f="config",...s}={})=>async()=>{const w=ks(s),{configFile:h,credentialsFile:$}=await E3(s),E=$[w]||{},I=h[w]||{},F=f==="config"?{...E,...I}:{...I,...E};try{const C=r(F,f==="config"?h:$);if(C===void 0)throw new Error;return C}catch(U){throw new _(U.message||`Not found in config files w/ profile [${w}]: ${f3(r.toString())}`,{logger:s.logger})}};var SP=G(()=>{Lr();hf()});var hO=(r)=>typeof r==="function",PP=(r)=>hO(r)?async()=>await r():uS(r);var XP=G(()=>{Lr()});var t=({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>Kw(A0(tS(r),zP(f,w),PP(s)));var YP=G(()=>{Lr();rP();SP();XP()});var $f=G(()=>{YP()});var KP="AWS_ENDPOINT_URL",ZP="endpoint_url",lP=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map(($)=>$.toUpperCase()),w=f[[KP,...s].join("_")];if(w)return w;const h=f[KP];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(Ds)];if(h){const $=r.split(" ").map((I)=>I.toLowerCase()),E=h[[$.join("_"),ZP].join(Ds)];if(E)return E}}const w=f[ZP];if(w)return w;return},default:void 0});var JP=G(()=>{hf()});var QP=async(r)=>t(lP(r))();var MP=G(()=>{$f();JP()});function BP(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var gr=(r)=>{if(typeof r==="string")return gr(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:$}=r;let E;if($)E=BP($);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:E}};var b0=()=>{};var F3=(r)=>{if(typeof r==="object"){if("url"in r)return gr(r.url);return r}return gr(r)};var U3=G(()=>{b0()});var HP=async(r,f,s,w)=>{if(!s.endpoint){const E=await QP(s.serviceId||"");if(E)s.endpoint=()=>Promise.resolve(F3(E))}const h=await $O(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},$O=async(r,f,s)=>{const w={},h=f?.getEndpointParameterInstructions?.()||{};for(let[$,E]of Object.entries(h))switch(E.type){case"staticContextParams":w[$]=E.value;break;case"contextParams":w[$]=r[E.name];break;case"clientContextParams":case"builtInParams":w[$]=await nS(E.name,$,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys(h).length===0)Object.assign(w,s);if(String(s.serviceId).toLowerCase()==="s3")await _S(w);return w};var xU=G(()=>{eS();MP();U3()});var VP=G(()=>{xU();U3()});var kP=({config:r,instructions:f})=>{return(s,w)=>async(h)=>{const $=await HP(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=$,w.authSchemes=$.properties?.authSchemes;const E=w.authSchemes?.[0];if(E){w.signing_region=E.signingRegion,w.signing_service=E.signingName;const F=Js(w)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return s({...h})}};var eU=G(()=>{rf();xU()});var DP=(r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const $=await f(h,r);return{response:h,output:$}}catch($){if(Object.defineProperty($,"$response",{value:h}),!("$metadata"in $)){if($.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof $.$responseBodyText!=="undefined"){if($.$response)$.$response.body=$.$responseBodyText}}throw $}};var iP=(r,f)=>(s,w)=>async(h)=>{const $=w.endpointV2?.url&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!$)throw new Error("No valid endpoint provider available.");const E=await f(h.input,{...r,endpoint:$});return s({...h,request:E})};function R(r,f,s){return{applyToStack:(w)=>{w.add(DP(r,s),EO),w.add(iP(r,f),nU)}}}var EO,nU;var yP=G(()=>{EO={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},nU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var H=G(()=>{yP()});var IO,W=(r,f)=>({applyToStack:(s)=>{s.addRelativeTo(kP({config:r,instructions:f}),IO)}});var mP=G(()=>{H();eU();IO={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:nU.name}});var yf=(r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>F3(await yr(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:yr(r.useDualstackEndpoint??!1),useFipsEndpoint:yr(r.useFipsEndpoint??!1)}};var NP=G(()=>{rf();U3()});var qP=()=>{};var M=G(()=>{VP();eU();mP();NP();qP()});var is,Zw=3,ys;var T3=G(()=>{(function(r){r.STANDARD="standard",r.ADAPTIVE="adaptive"})(is||(is={}));ys=is.STANDARD});var vP,jP,dP,OP;var cP=G(()=>{vP=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],jP=["TimeoutError","RequestTimeout","RequestTimeoutException"],dP=[500,502,503,504],OP=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var FO=(r)=>r.$metadata?.clockSkewCorrected,Lh=(r)=>r.$metadata?.httpStatusCode===429||vP.includes(r.name)||r.$retryable?.throttling==!0,G3=(r)=>FO(r)||jP.includes(r.name)||OP.includes(r?.code||"")||dP.includes(r.$metadata?.httpStatusCode||0),bP=(r)=>{if(r.$metadata?.httpStatusCode!==void 0){const f=r.$metadata.httpStatusCode;if(500<=f&&f<=599&&!G3(r))return!0;return!1}return!1};var V1=G(()=>{cP()});class C3{constructor(r){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=r?.beta??0.7,this.minCapacity=r?.minCapacity??1,this.minFillRate=r?.minFillRate??0.5,this.scaleConstant=r?.scaleConstant??0.4,this.smooth=r?.smooth??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled)return;if(this.refillTokenBucket(),r>this.currentCapacity){const f=(r-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>setTimeout(s,f))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){const r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}const f=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=r}updateClientSendingRate(r){let f;if(this.updateMeasuredRate(),Lh(r)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const s=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(r){this.refillTokenBucket(),this.fillRate=Math.max(r,this.minFillRate),this.maxCapacity=Math.max(r,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const r=this.getCurrentTimeInSeconds(),f=Math.floor(r*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const s=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(r){return parseFloat(r.toFixed(8))}}var oU=G(()=>{V1()});var lw=100,k1=20000,aU=500,L3=500,pU=5,uU=10,tU=1,A3="amz-sdk-invocation-id",R3="amz-sdk-request";var gP=()=>{let r=lw;return{computeNextBackoffDelay:(w)=>{return Math.floor(Math.min(k1,Math.random()*2**w*r))},setDelayBase:(w)=>{r=w}}};var _P=()=>{};var r5=({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:()=>f,getRetryDelay:()=>Math.min(k1,r),getRetryCost:()=>s}};var xP=()=>{};class Ah{constructor(r){this.maxAttempts=r,this.mode=is.STANDARD,this.capacity=L3,this.retryBackoffStrategy=gP(),this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}async acquireInitialRetryToken(r){return r5({retryDelay:lw,retryCount:0})}async refreshRetryTokenForRetry(r,f){const s=await this.getMaxAttempts();if(this.shouldRetry(r,f,s)){const w=f.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?aU:lw);const h=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount()),$=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,h):h,E=this.getCapacityCost(w);return this.capacity-=E,r5({retryDelay:$,retryCount:r.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(L3,this.capacity+(r.getRetryCost()??tU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){return console.warn(`Max attempts provider could not resolve. Using default of ${Zw}`),Zw}}shouldRetry(r,f,s){return r.getRetryCount()+1<s&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(r){return r==="TRANSIENT"?uU:pU}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}}var W3=G(()=>{T3();_P();xP()});class s5{constructor(r,f){this.maxAttemptsProvider=r,this.mode=is.ADAPTIVE;const{rateLimiter:s}=f??{};this.rateLimiter=s??new C3,this.standardRetryStrategy=new Ah(r)}async acquireInitialRetryToken(r){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(r,f)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(r)}}var eP=G(()=>{T3();oU();W3()});var nP=G(()=>{W3()});var oP=()=>{};var Rs=G(()=>{eP();nP();oU();W3();T3();oP()});var mf,x1r,e1r,aP,n1r,o1r,a1r,p1r,u1r,t1r;var pP=G(()=>{mf=u(rU(),1),x1r=mf.default.v1,e1r=mf.default.v3,aP=mf.default.v4,n1r=mf.default.v5,o1r=mf.default.NIL,a1r=mf.default.version,p1r=mf.default.validate,u1r=mf.default.stringify,t1r=mf.default.parse});var uP=G(()=>{Rs()});var f5=G(()=>{Rs()});var w5=G(()=>{V1()});var h5=(r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)};var $5=G(()=>{ir();V1();Rs();uP();f5();w5()});var tP=G(()=>{Rs();$5()});var rX="AWS_MAX_ATTEMPTS",sX="max_attempts",Nf,qf=(r)=>{const{retryStrategy:f}=r,s=yr(r.maxAttempts??Zw);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await yr(r.retryMode)()===is.ADAPTIVE)return new s5(s);return new Ah(s)}}},UO="AWS_RETRY_MODE",TO="retry_mode",vf;var fX=G(()=>{rf();Rs();Nf={environmentVariableSelector:(r)=>{const f=r[rX];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${rX} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[sX];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${sX} mast be a number, got "${f}"`);return s},default:Zw},vf={environmentVariableSelector:(r)=>r[UO],configFileSelector:(r)=>r[TO],default:ys}});var wX=G(()=>{ir();Rs()});class Ws{trace(){}debug(){}info(){}warn(){}error(){}}var Jw=(r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},g0=(r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},Rh=()=>{let r=[],f=[],s=!1;const w=new Set,h=(L)=>L.sort((z,S)=>hX[S.step]-hX[z.step]||$X[S.priority||"normal"]-$X[z.priority||"normal"]),$=(L)=>{let z=!1;const S=(Z)=>{const D=Jw(Z.name,Z.aliases);if(D.includes(L)){z=!0;for(let B of D)w.delete(B);return!1}return!0};return r=r.filter(S),f=f.filter(S),z},E=(L)=>{let z=!1;const S=(Z)=>{if(Z.middleware===L){z=!0;for(let D of Jw(Z.name,Z.aliases))w.delete(D);return!1}return!0};return r=r.filter(S),f=f.filter(S),z},I=(L)=>{return r.forEach((z)=>{L.add(z.middleware,{...z})}),f.forEach((z)=>{L.addRelativeTo(z.middleware,{...z})}),L.identifyOnResolve?.(C.identifyOnResolve()),L},F=(L)=>{const z=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z},U=(L=!1)=>{const z=[],S=[],Z={};return r.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Jw(Q.name,Q.aliases))Z[i]=Q;z.push(Q)}),f.forEach((B)=>{const Q={...B,before:[],after:[]};for(let i of Jw(Q.name,Q.aliases))Z[i]=Q;S.push(Q)}),S.forEach((B)=>{if(B.toMiddleware){const Q=Z[B.toMiddleware];if(Q===void 0){if(L)return;throw new Error(`${B.toMiddleware} is not found when adding ${g0(B.name,B.aliases)} middleware ${B.relation} ${B.toMiddleware}`)}if(B.relation==="after")Q.after.push(B);if(B.relation==="before")Q.before.push(B)}}),h(z).map(F).reduce((B,Q)=>{return B.push(...Q),B},[])},C={add:(L,z={})=>{const{name:S,override:Z,aliases:D}=z,B={step:"initialize",priority:"normal",middleware:L,...z},Q=Jw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${g0(S,D)}'`);for(let i of Q){const x=r.findIndex((hr)=>hr.name===i||hr.aliases?.some((kr)=>kr===i));if(x===-1)continue;const e=r[x];if(e.step!==B.step||B.priority!==e.priority)throw new Error(`"${g0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${g0(S,D)}" middleware with ${B.priority} priority in ${B.step} step.`);r.splice(x,1)}}for(let i of Q)w.add(i)}r.push(B)},addRelativeTo:(L,z)=>{const{name:S,override:Z,aliases:D}=z,B={middleware:L,...z},Q=Jw(S,D);if(Q.length>0){if(Q.some((i)=>w.has(i))){if(!Z)throw new Error(`Duplicate middleware name '${g0(S,D)}'`);for(let i of Q){const x=f.findIndex((hr)=>hr.name===i||hr.aliases?.some((kr)=>kr===i));if(x===-1)continue;const e=f[x];if(e.toMiddleware!==B.toMiddleware||e.relation!==B.relation)throw new Error(`"${g0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${g0(S,D)}" middleware ${B.relation} "${B.toMiddleware}" middleware.`);f.splice(x,1)}}for(let i of Q)w.add(i)}f.push(B)},clone:()=>I(Rh()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return $(L);else return E(L)},removeByTag:(L)=>{let z=!1;const S=(Z)=>{const{tags:D,name:B,aliases:Q}=Z;if(D&&D.includes(L)){const i=Jw(B,Q);for(let x of i)w.delete(x);return z=!0,!1}return!0};return r=r.filter(S),f=f.filter(S),z},concat:(L)=>{const z=I(Rh());return z.use(L),z.identifyOnResolve(s||z.identifyOnResolve()||(L.identifyOnResolve?.()??!1)),z},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const z=L.step??L.relation+" "+L.toMiddleware;return g0(L.name,L.aliases)+" - "+z})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,z)=>{for(let S of U().map((Z)=>Z.middleware).reverse())L=S(L,z);if(s)console.log(C.identify());return L}};return C},hX,$X;var EX=G(()=>{hX={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},$X={high:3,normal:2,low:1}});var E5=G(()=>{EX()});class zs{constructor(r){this.middlewareStack=Rh(),this.config=r}send(r,f,s){const w=typeof f!=="function"?f:void 0,h=typeof f==="function"?f:s,$=r.resolveMiddleware(this.middlewareStack,this.config,w);if(h)$(r).then((E)=>h(null,E.output),(E)=>h(E)).catch(()=>{});else return $(r).then((E)=>E.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var IX=G(()=>{E5()});var FX=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as I5}from"buffer";var R0=(r,f=0,s=r.byteLength-f)=>{if(!FX(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return I5.from(r,f,s)},Wh=(r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?I5.from(r,f):I5.from(r)};var Qw=()=>{};var GO,Us=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!GO.exec(r))throw new TypeError("Invalid base64 string.");const f=Wh(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};var UX=G(()=>{Qw();GO=/^[A-Za-z0-9+/]*={0,2}$/});var _r=(r)=>{const f=Wh(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var F5=G(()=>{Qw()});var TX=(r)=>{if(typeof r==="string")return _r(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)};var GX=G(()=>{F5()});var Ts=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return R0(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};var CX=G(()=>{Qw()});var jf=G(()=>{F5();GX();CX()});var Gs=(r)=>{let f;if(typeof r==="string")f=_r(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return R0(f.buffer,f.byteOffset,f.byteLength).toString("base64")};var LX=G(()=>{Qw();jf()});var W0=G(()=>{UX();LX()});function AX(r,f="utf-8"){if(f==="base64")return Gs(r);return Ts(r)}function RX(r,f){if(f==="base64")return z0.mutate(Us(r));return z0.mutate(_r(r))}var WX=G(()=>{W0();jf();U5()});var z0;var U5=G(()=>{WX();z0=class z0 extends Uint8Array{static fromString(r,f="utf-8"){switch(typeof r){case"string":return RX(r,f);default:throw new Error(`Unsupported conversion from ${typeof r} to Uint8ArrayBlobAdapter.`)}}static mutate(r){return Object.setPrototypeOf(r,z0.prototype),r}transformToString(r="utf-8"){return AX(this,r)}}});var zX=()=>{};var D1=(r)=>encodeURIComponent(r).replace(/[!'()*]/g,CO),CO=(r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`;var SX=()=>{};var PX=G(()=>{SX()});function z3(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=D1(s),Array.isArray(w))for(let h=0,$=w.length;h<$;h++)f.push(`${s}=${D1(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${D1(w)}`;f.push(h)}}return f.join("&")}var S3=G(()=>{PX()});var XX;var YX=G(()=>{XX=["ECONNRESET","EPIPE","ETIMEDOUT"]});var T5=(r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f};var G5=()=>{};var KX=(r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})};var ZX=(r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})};var lX=(r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})};import{Readable as LO}from"stream";async function C5(r,f,s=JX){const w=f.headers??{},h=w.Expect||w.expect;let $=-1,E=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{$=Number(setTimeout(I,Math.max(JX,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout($),I()}),r.on("error",()=>{E=!0,clearTimeout($),I()})})]);if(!E)AO(r,f.body)}function AO(r,f){if(f instanceof LO){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}var JX=1000;var L5=()=>{};import{Agent as QX,request as RO}from"http";import{Agent as MX,request as WO}from"https";class tr{static create(r){if(typeof r?.handle==="function")return r;return new tr(r)}static checkSocketUsage(r,f,s=console){const{sockets:w,requests:h,maxSockets:$}=r;if(typeof $!=="number"||$===1/0)return f;const E=15000;if(Date.now()-E<f)return f;if(w&&h)for(let I in w){const F=w[I]?.length??0,U=h[I]?.length??0;if(F>=$&&U>=2*$)return s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${U} additional requests are enqueued.
5
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
6
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}constructor(r){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,s)=>{if(typeof r==="function")r().then((w)=>{f(this.resolveDefaultConfig(w))}).catch(s);else f(this.resolveDefaultConfig(r))})}resolveDefaultConfig(r){const{requestTimeout:f,connectionTimeout:s,socketTimeout:w,httpAgent:h,httpsAgent:$}=r||{};return{connectionTimeout:s,requestTimeout:f??w,httpAgent:(()=>{if(h instanceof QX||typeof h?.destroy==="function")return h;return new QX({keepAlive:!0,maxSockets:50,...h})})(),httpsAgent:(()=>{if($ instanceof MX||typeof $?.destroy==="function")return $;return new MX({keepAlive:!0,maxSockets:50,...$})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;let s;return new Promise((w,h)=>{let $=void 0;const E=async(Q)=>{await $,clearTimeout(s),w(Q)},I=async(Q)=>{await $,clearTimeout(s),h(Q)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f?.aborted){const Q=new Error("Request aborted");Q.name="AbortError",I(Q);return}const F=r.protocol==="https:",U=F?this.config.httpsAgent:this.config.httpAgent;s=setTimeout(()=>{this.socketWarningTimestamp=tr.checkSocketUsage(U,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const C=z3(r.query||{});let L=void 0;if(r.username!=null||r.password!=null){const Q=r.username??"",i=r.password??"";L=`${Q}:${i}`}let z=r.path;if(C)z+=`?${C}`;if(r.fragment)z+=`#${r.fragment}`;const S={headers:r.headers,host:r.hostname,method:r.method,path:z,port:r.port,agent:U,auth:L},D=(F?WO:RO)(S,(Q)=>{const i=new y0({statusCode:Q.statusCode||-1,reason:Q.statusMessage,headers:T5(Q.headers),body:Q});E({response:i})});if(D.on("error",(Q)=>{if(XX.includes(Q.code))I(Object.assign(Q,{name:"TimeoutError"}));else I(Q)}),KX(D,I,this.config.connectionTimeout),lX(D,I,this.config.requestTimeout),f){const Q=()=>{D.destroy();const i=new Error("Request aborted");i.name="AbortError",I(i)};if(typeof f.addEventListener==="function"){const i=f;i.addEventListener("abort",Q,{once:!0}),D.once("close",()=>i.removeEventListener("abort",Q))}else f.onabort=Q}const B=S.agent;if(typeof B==="object"&&"keepAlive"in B)ZX(D,{keepAlive:B.keepAlive,keepAliveMsecs:B.keepAliveMsecs});$=C5(D,r,this.config.requestTimeout).catch((Q)=>{return clearTimeout(s),h(Q)})})}updateHttpClientConfig(r,f){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[r]:f}})}httpHandlerConfigs(){return this.config??{}}}var BX=G(()=>{ir();S3();YX();G5();L5()});var HX=()=>{};var VX=G(()=>{HX()});var kX=G(()=>{ir();S3();G5();VX();L5()});import{Writable as zO}from"stream";var A5;var DX=G(()=>{A5=class A5 extends zO{constructor(){super(...arguments);this.bufferedBytes=[]}_write(r,f,s){this.bufferedBytes.push(r),s()}}});async function PO(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}var ms=(r)=>{if(SO(r))return PO(r);return new Promise((f,s)=>{const w=new A5;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},SO=(r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream;var iX=G(()=>{DX()});var _0=G(()=>{BX();kX();iX()});var yX=G(()=>{ir();S3()});async function XO(r){const f=await KO(r),s=Us(f);return new Uint8Array(s)}async function YO(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const $=new Uint8Array(h);let E=0;for(let I of f)$.set(I,E),E+=I.length;return $}function KO(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",$=h.indexOf(","),E=$>-1?$+1:h.length;f(h.substring(E))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var mX=(r)=>{if(typeof Blob==="function"&&r instanceof Blob)return XO(r);return YO(r)};var NX=G(()=>{W0()});var qX=G(()=>{yX();NX()});var i1=(r)=>typeof ReadableStream==="function"&&(r?.constructor?.name===ReadableStream.name||r instanceof ReadableStream);var dX,vX="The stream has already been transformed.",OX=(r)=>{if(!jX(r)&&!i1(r)){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${h}`)}let f=!1;const s=async()=>{if(f)throw new Error(vX);return f=!0,await mX(r)},w=(h)=>{if(typeof h.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return h.stream()};return Object.assign(r,{transformToByteArray:s,transformToString:async(h)=>{const $=await s();if(h==="base64")return Gs($);else if(h==="hex")return dX.toHex($);else if(h===void 0||h==="utf8"||h==="utf-8")return Ts($);else if(typeof TextDecoder==="function")return new TextDecoder(h).decode($);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(f)throw new Error(vX);if(f=!0,jX(r))return w(r);else if(i1(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})},jX=(r)=>typeof Blob==="function"&&r instanceof Blob;var cX=G(()=>{qX();W0();dX=u(xE(),1);jf()});import{Readable as R5}from"stream";import{TextDecoder as ZO}from"util";var bX="The stream has already been transformed.",gX=(r)=>{if(!(r instanceof R5))try{return OX(r)}catch(w){const h=r?.__proto__?.constructor?.name||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${h}`)}let f=!1;const s=async()=>{if(f)throw new Error(bX);return f=!0,await ms(r)};return Object.assign(r,{transformToByteArray:s,transformToString:async(w)=>{const h=await s();if(w===void 0||Buffer.isEncoding(w))return R0(h.buffer,h.byteOffset,h.byteLength).toString(w);else return new ZO(w).decode(h)},transformToWebStream:()=>{if(f)throw new Error(bX);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof R5.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return f=!0,R5.toWeb(r)}})};var _X=G(()=>{_0();Qw();cX()});var xX=()=>{};var eX=()=>{};var W5=G(()=>{U5();zX();_X();xX();eX()});var xr=async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return z0.mutate(r);if(!r)return z0.mutate(new Uint8Array);const s=f.streamCollector(r);return z0.mutate(await s)};var nX=G(()=>{W5()});class A{constructor(){this.middlewareStack=Rh()}static classBuilder(){return new aX}resolveMiddlewareWithContext(r,f,s,{middlewareFn:w,clientName:h,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,smithyContext:F,additionalContext:U,CommandCtor:C}){for(let D of w.bind(this)(C,r,f,s))this.middlewareStack.use(D);const L=r.concat(this.middlewareStack),{logger:z}=f,S={logger:z,clientName:h,commandName:$,inputFilterSensitiveLog:E,outputFilterSensitiveLog:I,[oX.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...U},{requestHandler:Z}=f;return L.resolve((D)=>Z.handle(D.request,s||{}),S)}}class aX{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(r)=>r,this._outputFilterSensitiveLog=(r)=>r,this._serializer=null,this._deserializer=null}init(r){this._init=r}ep(r){return this._ep=r,this}m(r){return this._middlewareFn=r,this}s(r,f,s={}){return this._smithyContext={service:r,operation:f,...s},this}c(r={}){return this._additionalContext=r,this}n(r,f){return this._clientName=r,this._commandName=f,this}f(r=(s)=>s,f=(s)=>s){return this._inputFilterSensitiveLog=r,this._outputFilterSensitiveLog=f,this}ser(r){return this._serializer=r,this}de(r){return this._deserializer=r,this}build(){const r=this;let f;return f=class extends A{static getEndpointParameterInstructions(){return r._ep}constructor(...[s]){super();this.serialize=r._serializer,this.deserialize=r._deserializer,this.input=s??{},r._init(this)}resolveMiddleware(s,w,h){return this.resolveMiddlewareWithContext(s,w,h,{CommandCtor:f,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}}var oX;var pX=G(()=>{E5();oX=u(Is(),1)});var o="***SensitiveInformation***";var df=(r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=async function(E,I,F){const U=new w(E);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},$=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[$]=h}};var mr=(r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},x0=(r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)X3.warn(P3(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")X3.warn(P3(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},Cs=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))X3.warn(P3(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},lO,uX=(r)=>{const f=Cs(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>lO)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},zh=(r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},Mw=(r)=>z5(r,32),tX=(r)=>z5(r,16),rY=(r)=>z5(r,8),z5=(r,f)=>{const s=zh(r);if(s!==void 0&&JO(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},JO=(r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},y=(r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},d=(r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},T=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return X3.warn(P3(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},S5=(r)=>{if(typeof r=="string")return Cs(Sh(r));return Cs(r)},sY,fY=(r)=>{if(typeof r=="string")return uX(Sh(r));return uX(r)},QO,Sh=(r)=>{const f=r.match(QO);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},P5=(r)=>{if(typeof r=="string")return MO(r);return Cs(r)},MO=(r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},er=(r)=>{if(typeof r==="string")return zh(Sh(r));return zh(r)},$r=(r)=>{if(typeof r==="string")return Mw(Sh(r));return Mw(r)},X5=(r)=>{if(typeof r==="string")return tX(Sh(r));return tX(r)},wY=(r)=>{if(typeof r==="string")return rY(Sh(r));return rY(r)},P3=(r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},X3;var Y5=G(()=>{lO=Math.ceil(340282346638528860000000000000000000000),sY=S5,QO=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,X3={warn:console.warn}});var BO,HO,hY=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=HO.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U]=f,C=X5(K5(w)),L=Bw(h,"month",1,12),z=Bw($,"day",1,31);return $Y(C,L,z,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U})},VO,Hw=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=VO.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,$,E,I,F,U,C]=f,L=X5(K5(w)),z=Bw(h,"month",1,12),S=Bw($,"day",1,31),Z=$Y(L,z,S,{hours:E,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")Z.setTime(Z.getTime()-mO(C));return Z},u3r,t3r,rIr,Of=(r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=S5(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},$Y=(r,f,s,w)=>{const h=f-1;return DO(r,h,s),new Date(Date.UTC(r,h,s,Bw(w.hours,"hour",0,23),Bw(w.minutes,"minute",0,59),Bw(w.seconds,"seconds",0,60),yO(w.fractionalMilliseconds)))},kO,DO=(r,f,s)=>{let w=kO[f];if(f===1&&iO(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${BO[f]} in ${r}: ${s}`)},iO=(r)=>{return r%4===0&&(r%100!==0||r%400===0)},Bw=(r,f,s,w)=>{const h=wY(K5(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},yO=(r)=>{if(r===null||r===void 0)return 0;return fY("0."+r)*1000},mO=(r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},K5=(r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)};var EY=G(()=>{Y5();BO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],HO=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),VO=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),u3r=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),t3r=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),rIr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),kO=[31,28,31,30,31,30,31,31,30,31,30,31]});var Ns,k=(r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r};var Z5=G(()=>{Ns=class Ns extends Error{constructor(r){super(r.message);Object.setPrototypeOf(this,Ns.prototype),this.name=r.name,this.$fault=r.$fault,this.$metadata=r.$metadata}}});var NO=({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=qO(r),$=h.httpStatusCode?h.httpStatusCode+"":void 0,E=new s({name:f?.code||f?.Code||w||$||"UnknownError",$fault:"client",$metadata:h});throw k(E,f)},cf=(r)=>{return({output:f,parsedBody:s,errorCode:w})=>{NO({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},qO=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var IY=G(()=>{Z5()});var bf=(r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var FY=!1,gf=(r)=>{if(r&&!FY&&parseInt(r.substring(1,r.indexOf(".")))<16)FY=!0};var l5,UY=(r)=>{const f=[];for(let s in l5.AlgorithmId){const w=l5.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},TY=(r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f};var GY=G(()=>{l5=u(Is(),1)});var CY=(r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},LY=(r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f};var _f=(r)=>{return{...UY(r),...CY(r)}},xf=(r)=>{return{...TY(r),...LY(r)}};var AY=G(()=>{GY()});var RY=G(()=>{AY()});function Y3(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}var Cr=(r)=>Array.isArray(r)?r:[r];var J5=function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s};var WY=G(()=>{J5.prototype=Object.create(String.prototype,{constructor:{value:J5,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(J5,String)});function P(r,f,s){let w,h,$;if(typeof f==="undefined"&&typeof s==="undefined")w={},$=r;else if(w=r,typeof f==="function")return h=f,$=s,vO(w,h,$);else $=f;for(let E of Object.keys($)){if(!Array.isArray($[E])){w[E]=$[E];continue}zY(w,null,$,E)}return w}var p=(r,f)=>{const s={};for(let w in f)zY(s,r,f,w);return s},vO=(r,f,s)=>{return P(r,Object.entries(s).reduce((w,[h,$])=>{if(Array.isArray($))w[h]=$;else if(typeof $==="function")w[h]=[f,$()];else w[h]=[f,$];return w},{}))},zY=(r,f,s,w)=>{if(f!==null){let E=s[w];if(typeof E==="function")E=[,E];const[I=jO,F=dO,U=w]=E;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,$]=s[w];if(typeof $==="function"){let E;const I=h===void 0&&(E=$())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=E;else if(F)r[w]=$()}else{const E=h===void 0&&$!=null,I=typeof h==="function"&&!!h($)||typeof h!=="function"&&!!h;if(E||I)r[w]=$}},jO=(r)=>r!=null,dO=(r)=>r;var SY=()=>{};var PY=(r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}};var m=(r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(m);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=m(r[s])}return f}return r};var Y=G(()=>{IX();nX();pX();EY();IY();RY();Z5();WY();Y5();SY()});import{Readable as OO}from"stream";var XY=(r)=>r?.body instanceof OO||typeof ReadableStream!=="undefined"&&r?.body instanceof ReadableStream;var YY=()=>{};var cO=(r)=>(f,s)=>async(w)=>{let h=await r.retryStrategy();const $=await r.maxAttempts();if(bO(h)){h=h;let E=await h.acquireInitialRetryToken(s.partition_id),I=new Error,F=0,U=0;const{request:C}=w,L=Qr.isInstance(C);if(L)C.headers[A3]=aP();while(!0)try{if(L)C.headers[R3]=`attempt=${F+1}; max=${$}`;const{response:z,output:S}=await f(w);return h.recordSuccess(E),S.$metadata.attempts=F+1,S.$metadata.totalRetryDelay=U,{response:z,output:S}}catch(z){const S=gO(z);if(I=h5(z),L&&XY(C))throw(s.logger instanceof Ws?console:s.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{E=await h.refreshRetryTokenForRetry(E,S)}catch(D){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=U,I}F=E.getRetryCount();const Z=E.getRetryDelay();U+=Z,await new Promise((D)=>setTimeout(D,Z))}}else{if(h=h,h?.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",h.mode]];return h.retry(f,w)}},bO=(r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined",gO=(r)=>{const f={error:r,errorType:_O(r)},s=eO(r.$response);if(s)f.retryAfterHint=s;return f},_O=(r)=>{if(Lh(r))return"THROTTLING";if(G3(r))return"TRANSIENT";if(bP(r))return"SERVER_ERROR";return"CLIENT_ERROR"},xO,ef=(r)=>({applyToStack:(f)=>{f.add(cO(r),xO)}}),eO=(r)=>{if(!y0.isInstance(r))return;const f=Object.keys(r.headers).find(($)=>$.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)};var KY=G(()=>{ir();V1();Y();Rs();pP();YY();xO={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var Ef=G(()=>{tP();$5();fX();f5();wX();w5();KY()});var aY=v((G2r,l3)=>{var ZY,lY,JY,QY,MY,BY,HY,VY,kY,DY,iY,yY,mY,K3,Q5,NY,qY,vY,Ph,jY,dY,OY,cY,bY,gY,_Y,xY,eY,Z3,nY,oY;(function(r){var f=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(w){r(s(f,s(w)))});else if(typeof l3==="object"&&typeof G2r==="object")r(s(f,s(G2r)));else r(s(f));function s(w,h){if(w!==f)if(typeof Object.create==="function")Object.defineProperty(w,"__esModule",{value:!0});else w.__esModule=!0;return function($,E){return w[$]=h?h($,E):E}}})(function(r){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,$){h.__proto__=$}||function(h,$){for(var E in $)if(Object.prototype.hasOwnProperty.call($,E))h[E]=$[E]};ZY=function(h,$){if(typeof $!=="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");f(h,$);function E(){this.constructor=h}h.prototype=$===null?Object.create($):(E.prototype=$.prototype,new E)},lY=Object.assign||function(h){for(var $,E=1,I=arguments.length;E<I;E++){$=arguments[E];for(var F in $)if(Object.prototype.hasOwnProperty.call($,F))h[F]=$[F]}return h},JY=function(h,$){var E={};for(var I in h)if(Object.prototype.hasOwnProperty.call(h,I)&&$.indexOf(I)<0)E[I]=h[I];if(h!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,I=Object.getOwnPropertySymbols(h);F<I.length;F++)if($.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(h,I[F]))E[I[F]]=h[I[F]]}return E},QY=function(h,$,E,I){var F=arguments.length,U=F<3?$:I===null?I=Object.getOwnPropertyDescriptor($,E):I,C;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")U=Reflect.decorate(h,$,E,I);else for(var L=h.length-1;L>=0;L--)if(C=h[L])U=(F<3?C(U):F>3?C($,E,U):C($,E))||U;return F>3&&U&&Object.defineProperty($,E,U),U},MY=function(h,$){return function(E,I){$(E,I,h)}},BY=function(h,$,E,I,F,U){function C(hr){if(hr!==void 0&&typeof hr!=="function")throw new TypeError("Function expected");return hr}var L=I.kind,z=L==="getter"?"get":L==="setter"?"set":"value",S=!$&&h?I.static?h:h.prototype:null,Z=$||(S?Object.getOwnPropertyDescriptor(S,I.name):{}),D,B=!1;for(var Q=E.length-1;Q>=0;Q--){var i={};for(var x in I)i[x]=x==="access"?{}:I[x];for(var x in I.access)i.access[x]=I.access[x];i.addInitializer=function(hr){if(B)throw new TypeError("Cannot add initializers after decoration has completed");U.push(C(hr||null))};var e=E[Q](L==="accessor"?{get:Z.get,set:Z.set}:Z[z],i);if(L==="accessor"){if(e===void 0)continue;if(e===null||typeof e!=="object")throw new TypeError("Object expected");if(D=C(e.get))Z.get=D;if(D=C(e.set))Z.set=D;if(D=C(e.init))F.unshift(D)}else if(D=C(e))if(L==="field")F.unshift(D);else Z[z]=D}if(S)Object.defineProperty(S,I.name,Z);B=!0},HY=function(h,$,E){var I=arguments.length>2;for(var F=0;F<$.length;F++)E=I?$[F].call(h,E):$[F].call(h);return I?E:void 0},VY=function(h){return typeof h==="symbol"?h:"".concat(h)},kY=function(h,$,E){if(typeof $==="symbol")$=$.description?"[".concat($.description,"]"):"";return Object.defineProperty(h,"name",{configurable:!0,value:E?"".concat(E," ",$):$})},DY=function(h,$){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,$)},iY=function(h,$,E,I){function F(U){return U instanceof E?U:new E(function(C){C(U)})}return new(E||(E=Promise))(function(U,C){function L(Z){try{S(I.next(Z))}catch(D){C(D)}}function z(Z){try{S(I.throw(Z))}catch(D){C(D)}}function S(Z){Z.done?U(Z.value):F(Z.value).then(L,z)}S((I=I.apply(h,$||[])).next())})},yY=function(h,$){var E={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},I,F,U,C;return C={next:L(0),throw:L(1),return:L(2)},typeof Symbol==="function"&&(C[Symbol.iterator]=function(){return this}),C;function L(S){return function(Z){return z([S,Z])}}function z(S){if(I)throw new TypeError("Generator is already executing.");while(C&&(C=0,S[0]&&(E=0)),E)try{if(I=1,F&&(U=S[0]&2?F.return:S[0]?F.throw||((U=F.return)&&U.call(F),0):F.next)&&!(U=U.call(F,S[1])).done)return U;if(F=0,U)S=[S[0]&2,U.value];switch(S[0]){case 0:case 1:U=S;break;case 4:return E.label++,{value:S[1],done:!1};case 5:E.label++,F=S[1],S=[0];continue;case 7:S=E.ops.pop(),E.trys.pop();continue;default:if((U=E.trys,!(U=U.length>0&&U[U.length-1]))&&(S[0]===6||S[0]===2)){E=0;continue}if(S[0]===3&&(!U||S[1]>U[0]&&S[1]<U[3])){E.label=S[1];break}if(S[0]===6&&E.label<U[1]){E.label=U[1],U=S;break}if(U&&E.label<U[2]){E.label=U[2],E.ops.push(S);break}if(U[2])E.ops.pop();E.trys.pop();continue}S=$.call(h,E)}catch(Z){S=[6,Z],F=0}finally{I=U=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},mY=function(h,$){for(var E in h)if(E!=="default"&&!Object.prototype.hasOwnProperty.call($,E))Z3($,h,E)},Z3=Object.create?function(h,$,E,I){if(I===void 0)I=E;var F=Object.getOwnPropertyDescriptor($,E);if(!F||("get"in F?!$.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return $[E]}};Object.defineProperty(h,I,F)}:function(h,$,E,I){if(I===void 0)I=E;h[I]=$[E]},K3=function(h){var $=typeof Symbol==="function"&&Symbol.iterator,E=$&&h[$],I=0;if(E)return E.call(h);if(h&&typeof h.length==="number")return{next:function(){if(h&&I>=h.length)h=void 0;return{value:h&&h[I++],done:!h}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")},Q5=function(h,$){var E=typeof Symbol==="function"&&h[Symbol.iterator];if(!E)return h;var I=E.call(h),F,U=[],C;try{while(($===void 0||$-- >0)&&!(F=I.next()).done)U.push(F.value)}catch(L){C={error:L}}finally{try{if(F&&!F.done&&(E=I.return))E.call(I)}finally{if(C)throw C.error}}return U},NY=function(){for(var h=[],$=0;$<arguments.length;$++)h=h.concat(Q5(arguments[$]));return h},qY=function(){for(var h=0,$=0,E=arguments.length;$<E;$++)h+=arguments[$].length;for(var I=Array(h),F=0,$=0;$<E;$++)for(var U=arguments[$],C=0,L=U.length;C<L;C++,F++)I[F]=U[C];return I},vY=function(h,$,E){if(E||arguments.length===2){for(var I=0,F=$.length,U;I<F;I++)if(U||!(I in $)){if(!U)U=Array.prototype.slice.call($,0,I);U[I]=$[I]}}return h.concat(U||Array.prototype.slice.call($))},Ph=function(h){return this instanceof Ph?(this.v=h,this):new Ph(h)},jY=function(h,$,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=E.apply(h,$||[]),F,U=[];return F={},L("next"),L("throw"),L("return",C),F[Symbol.asyncIterator]=function(){return this},F;function C(Q){return function(i){return Promise.resolve(i).then(Q,D)}}function L(Q,i){if(I[Q]){if(F[Q]=function(x){return new Promise(function(e,hr){U.push([Q,x,e,hr])>1||z(Q,x)})},i)F[Q]=i(F[Q])}}function z(Q,i){try{S(I[Q](i))}catch(x){B(U[0][3],x)}}function S(Q){Q.value instanceof Ph?Promise.resolve(Q.value.v).then(Z,D):B(U[0][2],Q)}function Z(Q){z("next",Q)}function D(Q){z("throw",Q)}function B(Q,i){if(Q(i),U.shift(),U.length)z(U[0][0],U[0][1])}},dY=function(h){var $,E;return $={},I("next"),I("throw",function(F){throw F}),I("return"),$[Symbol.iterator]=function(){return this},$;function I(F,U){$[F]=h[F]?function(C){return(E=!E)?{value:Ph(h[F](C)),done:!1}:U?U(C):C}:U}},OY=function(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $=h[Symbol.asyncIterator],E;return $?$.call(h):(h=typeof K3==="function"?K3(h):h[Symbol.iterator](),E={},I("next"),I("throw"),I("return"),E[Symbol.asyncIterator]=function(){return this},E);function I(U){E[U]=h[U]&&function(C){return new Promise(function(L,z){C=h[U](C),F(L,z,C.done,C.value)})}}function F(U,C,L,z){Promise.resolve(z).then(function(S){U({value:S,done:L})},C)}},cY=function(h,$){if(Object.defineProperty)Object.defineProperty(h,"raw",{value:$});else h.raw=$;return h};var s=Object.create?function(h,$){Object.defineProperty(h,"default",{enumerable:!0,value:$})}:function(h,$){h.default=$};bY=function(h){if(h&&h.__esModule)return h;var $={};if(h!=null){for(var E in h)if(E!=="default"&&Object.prototype.hasOwnProperty.call(h,E))Z3($,h,E)}return s($,h),$},gY=function(h){return h&&h.__esModule?h:{default:h}},_Y=function(h,$,E,I){if(E==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof $==="function"?h!==$||!I:!$.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?I:E==="a"?I.call(h):I?I.value:$.get(h)},xY=function(h,$,E,I,F){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof $==="function"?h!==$||!F:!$.has(h))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?F.call(h,E):F?F.value=E:$.set(h,E),E},eY=function(h,$){if($===null||typeof $!=="object"&&typeof $!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof h==="function"?$===h:h.has($)},nY=function(h,$,E){if($!==null&&$!==void 0){if(typeof $!=="object"&&typeof $!=="function")throw new TypeError("Object expected.");var I,F;if(E){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=$[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=$[Symbol.dispose],E)F=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(F)I=function(){try{F.call(this)}catch(U){return Promise.reject(U)}};h.stack.push({value:$,dispose:I,async:E})}else if(E)h.stack.push({async:!0});return $};var w=typeof SuppressedError==="function"?SuppressedError:function(h,$,E){var I=new Error(E);return I.name="SuppressedError",I.error=h,I.suppressed=$,I};oY=function(h){function $(I){h.error=h.hasError?new w(I,h.error,"An error was suppressed during disposal."):I,h.hasError=!0}function E(){while(h.stack.length){var I=h.stack.pop();try{var F=I.dispose&&I.dispose.call(I.value);if(I.async)return Promise.resolve(F).then(E,function(U){return $(U),E()})}catch(U){$(U)}}if(h.hasError)throw h.error}return E()},r("__extends",ZY),r("__assign",lY),r("__rest",JY),r("__decorate",QY),r("__param",MY),r("__esDecorate",BY),r("__runInitializers",HY),r("__propKey",VY),r("__setFunctionName",kY),r("__metadata",DY),r("__awaiter",iY),r("__generator",yY),r("__exportStar",mY),r("__createBinding",Z3),r("__values",K3),r("__read",Q5),r("__spread",NY),r("__spreadArrays",qY),r("__spreadArray",vY),r("__await",Ph),r("__asyncGenerator",jY),r("__asyncDelegator",dY),r("__asyncValues",OY),r("__makeTemplateObject",cY),r("__importStar",bY),r("__importDefault",gY),r("__classPrivateFieldGet",_Y),r("__classPrivateFieldSet",xY),r("__classPrivateFieldIn",eY),r("__addDisposableResource",nY),r("__disposeResources",oY)})});var rK=v((C2r,tY)=>{var{defineProperty:J3,getOwnPropertyDescriptor:nO,getOwnPropertyNames:oO}=Object,aO=Object.prototype.hasOwnProperty,pO=(r,f)=>J3(r,"name",{value:f,configurable:!0}),uO=(r,f)=>{for(var s in f)J3(r,s,{get:f[s],enumerable:!0})},tO=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of oO(f))if(!aO.call(r,h)&&h!==s)J3(r,h,{get:()=>f[h],enumerable:!(w=nO(f,h))||w.enumerable})}return r},rc=(r)=>tO(J3({},"__esModule",{value:!0}),r),uY={};uO(uY,{emitWarningIfUnsupportedVersion:()=>sc});tY.exports=rc(uY);var pY=!1,sc=pO((r)=>{if(r&&!pY&&parseInt(r.substring(1,r.indexOf(".")))<18)pY=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
4
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return s}resolveDefaultConfig(f){const{requestTimeout:s,connectionTimeout:w,socketTimeout:h,httpAgent:E,httpsAgent:$}=f||{};return{connectionTimeout:w,requestTimeout:s??h,httpAgent:(()=>{if(E instanceof L5.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new L5.Agent({keepAlive:!0,maxSockets:50,...E})})(),httpsAgent:(()=>{if($ instanceof A5.Agent||typeof($==null?void 0:$.destroy)==="function")return $;return new A5.Agent({keepAlive:!0,maxSockets:50,...$})})(),logger:console}}destroy(){var f,s,w,h;(s=(f=this.config)==null?void 0:f.httpAgent)==null||s.destroy(),(h=(w=this.config)==null?void 0:w.httpsAgent)==null||h.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;let w;return new Promise((h,E)=>{let $=void 0;const I=Jr(async(N)=>{await $,clearTimeout(w),h(N)},"resolve"),F=Jr(async(N)=>{await $,clearTimeout(w),E(N)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(s==null?void 0:s.aborted){const N=new Error("Request aborted");N.name="AbortError",F(N);return}const U=f.protocol==="https:",C=U?this.config.httpsAgent:this.config.httpAgent;w=setTimeout(()=>{this.socketWarningTimestamp=r.checkSocketUsage(C,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const L=Bz.buildQueryString(f.query||{});let z=void 0;if(f.username!=null||f.password!=null){const N=f.username??"",x=f.password??"";z=`${N}:${x}`}let S=f.path;if(L)S+=`?${L}`;if(f.fragment)S+=`#${f.fragment}`;const K={headers:f.headers,host:f.hostname,method:f.method,path:S,port:f.port,agent:C,auth:z},l=(U?A5.request:L5.request)(K,(N)=>{const x=new Qz.HttpResponse({statusCode:N.statusCode||-1,reason:N.statusMessage,headers:lz(N.headers),body:N});I({response:x})});if(l.on("error",(N)=>{if(Tv.includes(N.code))F(Object.assign(N,{name:"TimeoutError"}));else F(N)}),Gv(l,F,this.config.connectionTimeout),Lv(l,F,this.config.requestTimeout),s){const N=Jr(()=>{l.destroy();const x=new Error("Request aborted");x.name="AbortError",F(x)},"onAbort");if(typeof s.addEventListener==="function"){const x=s;x.addEventListener("abort",N,{once:!0}),l.once("close",()=>x.removeEventListener("abort",N))}else s.onabort=N}const Q=K.agent;if(typeof Q==="object"&&"keepAlive"in Q)Cv(l,{keepAlive:Q.keepAlive,keepAliveMsecs:Q.keepAliveMsecs});$=R5(l,f,this.config.requestTimeout).catch((N)=>{return clearTimeout(w),E(N)})})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}};Jr(Dz,"NodeHttpHandler");var Rv=Dz,Zz=import.meta.require("http2"),Wv=Fv(import.meta.require("http2")),kz=class r{constructor(f){this.sessions=[],this.sessions=f??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(f){this.sessions.push(f)}contains(f){return this.sessions.includes(f)}remove(f){this.sessions=this.sessions.filter((s)=>s!==f)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(f){for(let s of this.sessions)if(s===f){if(!s.destroyed)s.destroy()}}};Jr(kz,"NodeHttp2ConnectionPool");var zv=kz,Nz=class r{constructor(f){if(this.sessionCache=new Map,this.config=f,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(f,s){const w=this.getUrlString(f),h=this.sessionCache.get(w);if(h){const F=h.poll();if(F&&!this.config.disableConcurrency)return F}const E=Wv.default.connect(w);if(this.config.maxConcurrency)E.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+f.destination.toString())});E.unref();const $=Jr(()=>{E.destroy(),this.deleteSession(w,E)},"destroySessionCb");if(E.on("goaway",$),E.on("error",$),E.on("frameError",$),E.on("close",()=>this.deleteSession(w,E)),s.requestTimeout)E.setTimeout(s.requestTimeout,$);const I=this.sessionCache.get(w)||new zv;return I.offerLast(E),this.sessionCache.set(w,I),E}deleteSession(f,s){const w=this.sessionCache.get(f);if(!w)return;if(!w.contains(s))return;w.remove(s),this.sessionCache.set(f,w)}release(f,s){var w;const h=this.getUrlString(f);(w=this.sessionCache.get(h))==null||w.offerLast(s)}destroy(){for(let[f,s]of this.sessionCache){for(let w of s){if(!w.destroyed)w.destroy();s.remove(w)}this.sessionCache.delete(f)}}setMaxConcurrentStreams(f){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=f}setDisableConcurrentStreams(f){this.config.disableConcurrency=f}getUrlString(f){return f.destination.toString()}};Jr(Nz,"NodeHttp2ConnectionManager");var Sv=Nz,yz=class r{constructor(f){this.metadata={handlerProtocol:"h2"},this.connectionManager=new Sv({}),this.configProvider=new Promise((s,w)=>{if(typeof f==="function")f().then((h)=>{s(h||{})}).catch(w);else s(f||{})})}static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}destroy(){this.connectionManager.destroy()}async handle(f,{abortSignal:s}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:w,disableConcurrentStreams:h}=this.config;return new Promise((E,$)=>{var I;let F=!1,U=void 0;const C=Jr(async(Mr)=>{await U,E(Mr)},"resolve"),L=Jr(async(Mr)=>{await U,$(Mr)},"reject");if(s==null?void 0:s.aborted){F=!0;const Mr=new Error("Request aborted");Mr.name="AbortError",L(Mr);return}const{hostname:z,method:S,port:K,protocol:k,query:l}=f;let Q="";if(f.username!=null||f.password!=null){const Mr=f.username??"",xs=f.password??"";Q=`${Mr}:${xs}@`}const N=`${k}//${Q}${z}${K?`:${K}`:""}`,x={destination:new URL(N)},e=this.connectionManager.lease(x,{requestTimeout:(I=this.config)==null?void 0:I.sessionTimeout,disableConcurrentStreams:h||!1}),hr=Jr((Mr)=>{if(h)this.destroySession(e);F=!0,L(Mr)},"rejectWithDestroy"),Dr=Bz.buildQueryString(l||{});let Tw=f.path;if(Dr)Tw+=`?${Dr}`;if(f.fragment)Tw+=`#${f.fragment}`;const Ps=e.request({...f.headers,[Zz.constants.HTTP2_HEADER_PATH]:Tw,[Zz.constants.HTTP2_HEADER_METHOD]:S});if(e.ref(),Ps.on("response",(Mr)=>{const xs=new Qz.HttpResponse({statusCode:Mr[":status"]||-1,headers:lz(Mr),body:Ps});if(F=!0,C({response:xs}),h)e.close(),this.connectionManager.deleteSession(N,e)}),w)Ps.setTimeout(w,()=>{Ps.close();const Mr=new Error(`Stream timed out because of no activity for ${w} ms`);Mr.name="TimeoutError",hr(Mr)});if(s){const Mr=Jr(()=>{Ps.close();const xs=new Error("Request aborted");xs.name="AbortError",hr(xs)},"onAbort");if(typeof s.addEventListener==="function"){const xs=s;xs.addEventListener("abort",Mr,{once:!0}),Ps.once("close",()=>xs.removeEventListener("abort",Mr))}else s.onabort=Mr}Ps.on("frameError",(Mr,xs,WD)=>{hr(new Error(`Frame type id ${Mr} in stream id ${WD} has failed with code ${xs}.`))}),Ps.on("error",hr),Ps.on("aborted",()=>{hr(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Ps.rstCode}.`))}),Ps.on("close",()=>{if(e.unref(),h)e.destroy();if(!F)hr(new Error("Unexpected error: http2 request did not get a response"))}),U=R5(Ps,f,w)})}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return{...w,[f]:s}})}httpHandlerConfigs(){return this.config??{}}destroySession(f){if(!f.destroyed)f.destroy()}};Jr(yz,"NodeHttp2Handler");var Pv=yz,qz=class r extends Vz.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(f,s,w){this.bufferedBytes.push(f),w()}};Jr(qz,"Collector");var Xv=qz,Yv=Jr((r)=>{if(Kv(r))return mz(r);return new Promise((f,s)=>{const w=new Xv;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},"streamCollector"),Kv=Jr((r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream,"isReadableStreamInstance");Jr(mz,"collectReadableStream")});var ez=j((h0r,xz)=>{function Oz(r=0){return new Promise((f,s)=>{if(r)setTimeout(()=>{const w=new Error(`Request did not complete within ${r} ms`);w.name="TimeoutError",s(w)},r)})}async function cz(r){const f=await gz(r),s=Dv.fromBase64(f);return new Uint8Array(s)}async function _z(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of f)E.set(I,$),$+=I.length;return E}function gz(r){return new Promise((f,s)=>{const w=new FileReader;w.onloadend=()=>{if(w.readyState!==2)return s(new Error("Reader aborted too early"));const h=w.result??"",E=h.indexOf(","),$=E>-1?E+1:h.length;f(h.substring($))},w.onabort=()=>s(new Error("Read aborted")),w.onerror=()=>s(w.error),w.readAsDataURL(r)})}var{defineProperty:b$,getOwnPropertyDescriptor:Zv,getOwnPropertyNames:Mv}=Object,Jv=Object.prototype.hasOwnProperty,C0=(r,f)=>b$(r,"name",{value:f,configurable:!0}),Qv=(r,f)=>{for(var s in f)b$(r,s,{get:f[s],enumerable:!0})},Bv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Mv(f))if(!Jv.call(r,h)&&h!==s)b$(r,h,{get:()=>f[h],enumerable:!(w=Zv(f,h))||w.enumerable})}return r},lv=(r)=>Bv(b$({},"__esModule",{value:!0}),r),dz={};Qv(dz,{FetchHttpHandler:()=>Hv,keepAliveSupport:()=>O$,streamCollector:()=>kv});xz.exports=lv(dz);var iz=T0(),Vv=C5();C0(Oz,"requestTimeout");var O$={supported:void 0},bz=class r{static create(f){if(typeof(f==null?void 0:f.handle)==="function")return f;return new r(f)}constructor(f){if(typeof f==="function")this.configProvider=f().then((s)=>s||{});else this.config=f??{},this.configProvider=Promise.resolve(this.config);if(O$.supported===void 0)O$.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(f,{abortSignal:s}={}){if(!this.config)this.config=await this.configProvider;const w=this.config.requestTimeout,h=this.config.keepAlive===!0,E=this.config.credentials;if(s==null?void 0:s.aborted){const Q=new Error("Request aborted");return Q.name="AbortError",Promise.reject(Q)}let $=f.path;const I=Vv.buildQueryString(f.query||{});if(I)$+=`?${I}`;if(f.fragment)$+=`#${f.fragment}`;let F="";if(f.username!=null||f.password!=null){const Q=f.username??"",N=f.password??"";F=`${Q}:${N}@`}const{port:U,method:C}=f,L=`${f.protocol}//${F}${f.hostname}${U?`:${U}`:""}${$}`,z=C==="GET"||C==="HEAD"?void 0:f.body,S={body:z,headers:new Headers(f.headers),method:C,credentials:E};if(z)S.duplex="half";if(typeof AbortController!=="undefined")S.signal=s;if(O$.supported)S.keepalive=h;let K=C0(()=>{},"removeSignalEventListener");const k=new Request(L,S),l=[fetch(k).then((Q)=>{const N=Q.headers,x={};for(let hr of N.entries())x[hr[0]]=hr[1];if(Q.body==null)return Q.blob().then((hr)=>({response:new iz.HttpResponse({headers:x,reason:Q.statusText,statusCode:Q.status,body:hr})}));return{response:new iz.HttpResponse({headers:x,reason:Q.statusText,statusCode:Q.status,body:Q.body})}}),Oz(w)];if(s)l.push(new Promise((Q,N)=>{const x=C0(()=>{const e=new Error("Request aborted");e.name="AbortError",N(e)},"onAbort");if(typeof s.addEventListener==="function"){const e=s;e.addEventListener("abort",x,{once:!0}),K=C0(()=>e.removeEventListener("abort",x),"removeSignalEventListener")}else s.onabort=x}));return Promise.race(l).finally(K)}updateHttpClientConfig(f,s){this.config=void 0,this.configProvider=this.configProvider.then((w)=>{return w[f]=s,w})}httpHandlerConfigs(){return this.config??{}}};C0(bz,"FetchHttpHandler");var Hv=bz,Dv=j$(),kv=C0((r)=>{if(typeof Blob==="function"&&r instanceof Blob)return cz(r);return _z(r)},"streamCollector");C0(cz,"collectBlob");C0(_z,"collectStream");C0(gz,"readToBase64")});var z5=j((E0r,tz)=>{function pz(r){if(r.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const f=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2){const w=r.slice(s,s+2).toLowerCase();if(w in W5)f[s/2]=W5[w];else throw new Error(`Cannot decode unrecognized sequence ${w} as hexadecimal`)}return f}function uz(r){let f="";for(let s=0;s<r.byteLength;s++)f+=az[r[s]];return f}var{defineProperty:c$,getOwnPropertyDescriptor:Nv,getOwnPropertyNames:yv}=Object,qv=Object.prototype.hasOwnProperty,nz=(r,f)=>c$(r,"name",{value:f,configurable:!0}),mv=(r,f)=>{for(var s in f)c$(r,s,{get:f[s],enumerable:!0})},vv=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of yv(f))if(!qv.call(r,h)&&h!==s)c$(r,h,{get:()=>f[h],enumerable:!(w=Nv(f,h))||w.enumerable})}return r},jv=(r)=>vv(c$({},"__esModule",{value:!0}),r),oz={};mv(oz,{fromHex:()=>pz,toHex:()=>uz});tz.exports=jv(oz);var az={},W5={};for(let r=0;r<256;r++){let f=r.toString(16).toLowerCase();if(f.length===1)f=`0${f}`;az[r]=f,W5[f]=r}nz(pz,"fromHex");nz(uz,"toHex")});var P1=j((r8)=>{Object.defineProperty(r8,"__esModule",{value:!0});r8.isReadableStream=void 0;var iv=(r)=>{var f;return typeof ReadableStream==="function"&&(((f=r===null||r===void 0?void 0:r.constructor)===null||f===void 0?void 0:f.name)===ReadableStream.name||r instanceof ReadableStream)};r8.isReadableStream=iv});var I8=j((E8)=>{Object.defineProperty(E8,"__esModule",{value:!0});E8.sdkStreamMixin=void 0;var dv=ez(),Ov=j$(),bv=z5(),cv=y0(),f8=P1(),w8="The stream has already been transformed.",_v=(r)=>{var f,s;if(!h8(r)&&!f8.isReadableStream(r)){const $=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${$}`)}let w=!1;const h=async()=>{if(w)throw new Error(w8);return w=!0,await dv.streamCollector(r)},E=($)=>{if(typeof $.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return $.stream()};return Object.assign(r,{transformToByteArray:h,transformToString:async($)=>{const I=await h();if($==="base64")return Ov.toBase64(I);else if($==="hex")return bv.toHex(I);else if($===void 0||$==="utf8"||$==="utf-8")return cv.toUtf8(I);else if(typeof TextDecoder==="function")return new TextDecoder($).decode(I);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(w)throw new Error(w8);if(w=!0,h8(r))return E(r);else if(f8.isReadableStream(r))return r;else throw new Error(`Cannot transform payload to web stream, got ${r}`)}})};E8.sdkStreamMixin=_v;var h8=(r)=>typeof Blob==="function"&&r instanceof Blob});var G8=j((U8)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.sdkStreamMixin=void 0;var gv=jz(),xv=z1(),S5=import.meta.require("stream"),ev=import.meta.require("util"),nv=I8(),F8="The stream has already been transformed.",ov=(r)=>{var f,s;if(!(r instanceof S5.Readable))try{return nv.sdkStreamMixin(r)}catch(E){const $=((s=(f=r===null||r===void 0?void 0:r.__proto__)===null||f===void 0?void 0:f.constructor)===null||s===void 0?void 0:s.name)||r;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${$}`)}let w=!1;const h=async()=>{if(w)throw new Error(F8);return w=!0,await gv.streamCollector(r)};return Object.assign(r,{transformToByteArray:h,transformToString:async(E)=>{const $=await h();if(E===void 0||Buffer.isEncoding(E))return xv.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString(E);else return new ev.TextDecoder(E).decode($)},transformToWebStream:()=>{if(w)throw new Error(F8);if(r.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof S5.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return w=!0,S5.Readable.toWeb(r)}})};U8.sdkStreamMixin=ov});var A8=j((C8)=>{async function av(r){if(typeof r.stream==="function")r=r.stream();return r.tee()}Object.defineProperty(C8,"__esModule",{value:!0});C8.splitStream=void 0;C8.splitStream=av});var S8=j((W8)=>{async function tv(r){if(uv.isReadableStream(r))return pv.splitStream(r);const f=new R8.PassThrough,s=new R8.PassThrough;return r.pipe(f),r.pipe(s),[f,s]}Object.defineProperty(W8,"__esModule",{value:!0});W8.splitStream=void 0;var R8=import.meta.require("stream"),pv=A8(),uv=P1();W8.splitStream=tv});var Y8=j((P8)=>{async function rj(r,f){var s;let w=0;const h=[],E=r.getReader();let $=!1;while(!$){const{done:U,value:C}=await E.read();if(C)h.push(C),w+=(s=C===null||C===void 0?void 0:C.byteLength)!==null&&s!==void 0?s:0;if(w>=f)break;$=U}E.releaseLock();const I=new Uint8Array(Math.min(f,w));let F=0;for(let U of h){if(U.byteLength>I.byteLength-F){I.set(U.subarray(0,I.byteLength-F),F);break}else I.set(U,F);F+=U.length}return I}Object.defineProperty(P8,"__esModule",{value:!0});P8.headStream=void 0;P8.headStream=rj});var J8=j((Z8)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.headStream=void 0;var sj=import.meta.require("stream"),fj=Y8(),wj=P1(),hj=(r,f)=>{if(wj.isReadableStream(r))return fj.headStream(r,f);return new Promise((s,w)=>{const h=new K8;h.limit=f,r.pipe(h),r.on("error",(E)=>{h.end(),w(E)}),h.on("error",w),h.on("finish",function(){const E=new Uint8Array(Buffer.concat(this.buffers));s(E)})})};Z8.headStream=hj;class K8 extends sj.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=1/0,this.bytesBuffered=0}_write(r,f,s){var w;if(this.buffers.push(r),this.bytesBuffered+=(w=r.byteLength)!==null&&w!==void 0?w:0,this.bytesBuffered>=this.limit){const h=this.bytesBuffered-this.limit,E=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=E.subarray(0,E.byteLength-h),this.emit("finish")}s()}}});var g$=j((L0r,zw)=>{function l8(r,f="utf-8"){if(f==="base64")return Q8.toBase64(r);return B8.toUtf8(r)}function V8(r,f){if(f==="base64")return X5.mutate(Q8.fromBase64(r));return X5.mutate(B8.fromUtf8(r))}var{defineProperty:_$,getOwnPropertyDescriptor:Ej,getOwnPropertyNames:$j}=Object,Ij=Object.prototype.hasOwnProperty,Y5=(r,f)=>_$(r,"name",{value:f,configurable:!0}),Fj=(r,f)=>{for(var s in f)_$(r,s,{get:f[s],enumerable:!0})},P5=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of $j(f))if(!Ij.call(r,h)&&h!==s)_$(r,h,{get:()=>f[h],enumerable:!(w=Ej(f,h))||w.enumerable})}return r},X1=(r,f,s)=>(P5(r,f,"default"),s&&P5(s,f,"default")),Uj=(r)=>P5(_$({},"__esModule",{value:!0}),r),Ww={};Fj(Ww,{Uint8ArrayBlobAdapter:()=>X5});zw.exports=Uj(Ww);var Q8=j$(),B8=y0();Y5(l8,"transformToString");Y5(V8,"transformFromString");var H8=class r extends Uint8Array{static fromString(f,s="utf-8"){switch(typeof f){case"string":return V8(f,s);default:throw new Error(`Unsupported conversion from ${typeof f} to Uint8ArrayBlobAdapter.`)}}static mutate(f){return Object.setPrototypeOf(f,r.prototype),f}transformToString(f="utf-8"){return l8(this,f)}};Y5(H8,"Uint8ArrayBlobAdapter");var X5=H8;X1(Ww,Rz(),zw.exports);X1(Ww,G8(),zw.exports);X1(Ww,S8(),zw.exports);X1(Ww,J8(),zw.exports);X1(Ww,P1(),zw.exports)});var Eh=j((A0r,t8)=>{function _8(r){const f=r.getUTCFullYear(),s=r.getUTCMonth(),w=r.getUTCDay(),h=r.getUTCDate(),E=r.getUTCHours(),$=r.getUTCMinutes(),I=r.getUTCSeconds(),F=h<10?`0${h}`:`${h}`,U=E<10?`0${E}`:`${E}`,C=$<10?`0${$}`:`${$}`,L=I<10?`0${I}`:`${I}`;return`${vj[w]}, ${F} ${k5[s]} ${f} ${U}:${C}:${L} GMT`}function n$(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}function N5(r,f,s){let w,h,E;if(typeof f==="undefined"&&typeof s==="undefined")w={},E=r;else if(w=r,typeof f==="function")return h=f,E=s,Wi(w,h,E);else E=f;for(let $ of Object.keys(E)){if(!Array.isArray(E[$])){w[$]=E[$];continue}p8(w,null,E,$)}return w}function u8(r,f,s){if(s<=0||!Number.isInteger(s))throw new Error("Invalid number of delimiters ("+s+") for splitEvery.");const w=r.split(f);if(s===1)return w;const h=[];let E="";for(let $=0;$<w.length;$++){if(E==="")E=w[$];else E+=f+w[$];if(($+1)%s===0)h.push(E),E=""}if(E!=="")h.push(E);return h}var{defineProperty:o$,getOwnPropertyDescriptor:Tj,getOwnPropertyNames:Gj}=Object,Cj=Object.prototype.hasOwnProperty,v=(r,f)=>o$(r,"name",{value:f,configurable:!0}),Lj=(r,f)=>{for(var s in f)o$(r,s,{get:f[s],enumerable:!0})},Aj=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Gj(f))if(!Cj.call(r,h)&&h!==s)o$(r,h,{get:()=>f[h],enumerable:!(w=Tj(f,h))||w.enumerable})}return r},Rj=(r)=>Aj(o$({},"__esModule",{value:!0}),r),k8={};Lj(k8,{Client:()=>zj,Command:()=>v8,LazyJsonString:()=>Li,NoOpLogger:()=>Wj,SENSITIVE_STRING:()=>Xj,ServiceException:()=>si,StringWrapper:()=>J1,_json:()=>l5,collectBody:()=>Sj,convertMap:()=>Ai,createAggregatedClient:()=>Yj,dateToUtcString:()=>_8,decorateServiceException:()=>x8,emitWarningIfUnsupportedVersion:()=>Ei,expectBoolean:()=>Zj,expectByte:()=>B5,expectFloat32:()=>x$,expectInt:()=>Jj,expectInt32:()=>J5,expectLong:()=>Z1,expectNonNull:()=>Bj,expectNumber:()=>K1,expectObject:()=>i8,expectShort:()=>Q5,expectString:()=>lj,expectUnion:()=>Vj,extendedEncodeURIComponent:()=>n$,getArrayIfSingleItem:()=>Ci,getDefaultClientConfiguration:()=>Ti,getDefaultExtensionConfiguration:()=>n8,getValueFromTextNode:()=>o8,handleFloat:()=>kj,limitedParseDouble:()=>D5,limitedParseFloat:()=>Nj,limitedParseFloat32:()=>yj,loadConfigsForDefaultMode:()=>hi,logger:()=>M1,map:()=>N5,parseBoolean:()=>Kj,parseEpochTimestamp:()=>xj,parseRfc3339DateTime:()=>ij,parseRfc3339DateTimeWithOffset:()=>Oj,parseRfc7231DateTime:()=>gj,resolveDefaultRuntimeConfig:()=>Gi,resolvedPath:()=>Pi,serializeDateTime:()=>Yi,serializeFloat:()=>Xi,splitEvery:()=>u8,strictParseByte:()=>c8,strictParseDouble:()=>H5,strictParseFloat:()=>Hj,strictParseFloat32:()=>d8,strictParseInt:()=>qj,strictParseInt32:()=>mj,strictParseLong:()=>b8,strictParseShort:()=>fh,take:()=>Ri,throwDefaultError:()=>e8,withBaseException:()=>fi});t8.exports=Rj(k8);var N8=class r{trace(){}debug(){}info(){}warn(){}error(){}};v(N8,"NoOpLogger");var Wj=N8,y8=oW(),q8=class r{constructor(f){this.middlewareStack=y8.constructStack(),this.config=f}send(f,s,w){const h=typeof s!=="function"?s:void 0,E=typeof s==="function"?s:w,$=f.resolveMiddleware(this.middlewareStack,this.config,h);if(E)$(f).then((I)=>E(null,I.output),(I)=>E(I)).catch(()=>{});else return $(f).then((I)=>I.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};v(q8,"Client");var zj=q8,K5=g$(),Sj=v(async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return K5.Uint8ArrayBlobAdapter.mutate(r);if(!r)return K5.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const s=f.streamCollector(r);return K5.Uint8ArrayBlobAdapter.mutate(await s)},"collectBody"),M5=$s(),m8=class r{constructor(){this.middlewareStack=y8.constructStack()}static classBuilder(){return new Pj}resolveMiddlewareWithContext(f,s,w,{middlewareFn:h,clientName:E,commandName:$,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,smithyContext:U,additionalContext:C,CommandCtor:L}){for(let l of h.bind(this)(L,f,s,w))this.middlewareStack.use(l);const z=f.concat(this.middlewareStack),{logger:S}=s,K={logger:S,clientName:E,commandName:$,inputFilterSensitiveLog:I,outputFilterSensitiveLog:F,[M5.SMITHY_CONTEXT_KEY]:{commandInstance:this,...U},...C},{requestHandler:k}=s;return z.resolve((l)=>k.handle(l.request,w||{}),K)}};v(m8,"Command");var v8=m8,j8=class r{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(f)=>f,this._outputFilterSensitiveLog=(f)=>f,this._serializer=null,this._deserializer=null}init(f){this._init=f}ep(f){return this._ep=f,this}m(f){return this._middlewareFn=f,this}s(f,s,w={}){return this._smithyContext={service:f,operation:s,...w},this}c(f={}){return this._additionalContext=f,this}n(f,s){return this._clientName=f,this._commandName=s,this}f(f=(w)=>w,s=(w)=>w){return this._inputFilterSensitiveLog=f,this._outputFilterSensitiveLog=s,this}ser(f){return this._serializer=f,this}de(f){return this._deserializer=f,this}build(){var f;const s=this;let w;return w=(f=class extends v8{constructor(...[h]){super();this.serialize=s._serializer,this.deserialize=s._deserializer,this.input=h??{},s._init(this)}static getEndpointParameterInstructions(){return s._ep}resolveMiddleware(h,E,$){return this.resolveMiddlewareWithContext(h,E,$,{CommandCtor:w,middlewareFn:s._middlewareFn,clientName:s._clientName,commandName:s._commandName,inputFilterSensitiveLog:s._inputFilterSensitiveLog,outputFilterSensitiveLog:s._outputFilterSensitiveLog,smithyContext:s._smithyContext,additionalContext:s._additionalContext})}},v(f,"CommandRef"),f)}};v(j8,"ClassBuilder");var Pj=j8,Xj="***SensitiveInformation***",Yj=v((r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=v(async function($,I,F){const U=new w($);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},"methodImpl"),E=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[E]=h}},"createAggregatedClient"),Kj=v((r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},"parseBoolean"),Zj=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)M1.warn(e$(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")M1.warn(e$(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},"expectBoolean"),K1=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))M1.warn(e$(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},"expectNumber"),Mj=Math.ceil(340282346638528860000000000000000000000),x$=v((r)=>{const f=K1(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>Mj)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},"expectFloat32"),Z1=v((r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},"expectLong"),Jj=Z1,J5=v((r)=>V5(r,32),"expectInt32"),Q5=v((r)=>V5(r,16),"expectShort"),B5=v((r)=>V5(r,8),"expectByte"),V5=v((r,f)=>{const s=Z1(r);if(s!==void 0&&Qj(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},"expectSizedInt"),Qj=v((r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},"castInt"),Bj=v((r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},"expectNonNull"),i8=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},"expectObject"),lj=v((r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return M1.warn(e$(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},"expectString"),Vj=v((r)=>{if(r===null||r===void 0)return;const f=i8(r),s=Object.entries(f).filter(([,w])=>w!=null).map(([w])=>w);if(s.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(s.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${s} were not null.`);return f},"expectUnion"),H5=v((r)=>{if(typeof r=="string")return K1(hh(r));return K1(r)},"strictParseDouble"),Hj=H5,d8=v((r)=>{if(typeof r=="string")return x$(hh(r));return x$(r)},"strictParseFloat32"),Dj=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,hh=v((r)=>{const f=r.match(Dj);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},"parseNumber"),D5=v((r)=>{if(typeof r=="string")return O8(r);return K1(r)},"limitedParseDouble"),kj=D5,Nj=D5,yj=v((r)=>{if(typeof r=="string")return O8(r);return x$(r)},"limitedParseFloat32"),O8=v((r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},"parseFloatString"),b8=v((r)=>{if(typeof r==="string")return Z1(hh(r));return Z1(r)},"strictParseLong"),qj=b8,mj=v((r)=>{if(typeof r==="string")return J5(hh(r));return J5(r)},"strictParseInt32"),fh=v((r)=>{if(typeof r==="string")return Q5(hh(r));return Q5(r)},"strictParseShort"),c8=v((r)=>{if(typeof r==="string")return B5(hh(r));return B5(r)},"strictParseByte"),e$=v((r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),M1={warn:console.warn},vj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],k5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];v(_8,"dateToUtcString");var jj=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),ij=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=jj.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,E,$,I,F,U]=f,C=fh(wh(w)),L=Bf(h,"month",1,12),z=Bf(E,"day",1,31);return Y1(C,L,z,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U})},"parseRfc3339DateTime"),dj=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Oj=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=dj.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,E,$,I,F,U,C]=f,L=fh(wh(w)),z=Bf(h,"month",1,12),S=Bf(E,"day",1,31),K=Y1(L,z,S,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")K.setTime(K.getTime()-ri(C));return K},"parseRfc3339DateTimeWithOffset"),bj=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),cj=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),_j=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),gj=v((r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let f=bj.exec(r);if(f){const[s,w,h,E,$,I,F,U]=f;return Y1(fh(wh(E)),Z5(h),Bf(w,"day",1,31),{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U})}if(f=cj.exec(r),f){const[s,w,h,E,$,I,F,U]=f;return oj(Y1(ej(E),Z5(h),Bf(w,"day",1,31),{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U}))}if(f=_j.exec(r),f){const[s,w,h,E,$,I,F,U]=f;return Y1(fh(wh(U)),Z5(w),Bf(h.trimLeft(),"day",1,31),{hours:E,minutes:$,seconds:I,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),xj=v((r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=H5(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},"parseEpochTimestamp"),Y1=v((r,f,s,w)=>{const h=f-1;return pj(r,h,s),new Date(Date.UTC(r,h,s,Bf(w.hours,"hour",0,23),Bf(w.minutes,"minute",0,59),Bf(w.seconds,"seconds",0,60),tj(w.fractionalMilliseconds)))},"buildDate"),ej=v((r)=>{const f=new Date().getUTCFullYear(),s=Math.floor(f/100)*100+fh(wh(r));if(s<f)return s+100;return s},"parseTwoDigitYear"),nj=1576800000000,oj=v((r)=>{if(r.getTime()-new Date().getTime()>nj)return new Date(Date.UTC(r.getUTCFullYear()-100,r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()));return r},"adjustRfc850Year"),Z5=v((r)=>{const f=k5.indexOf(r);if(f<0)throw new TypeError(`Invalid month: ${r}`);return f+1},"parseMonthByShortName"),aj=[31,28,31,30,31,30,31,31,30,31,30,31],pj=v((r,f,s)=>{let w=aj[f];if(f===1&&uj(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${k5[f]} in ${r}: ${s}`)},"validateDayOfMonth"),uj=v((r)=>{return r%4===0&&(r%100!==0||r%400===0)},"isLeapYear"),Bf=v((r,f,s,w)=>{const h=c8(wh(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},"parseDateValue"),tj=v((r)=>{if(r===null||r===void 0)return 0;return d8("0."+r)*1000},"parseMilliseconds"),ri=v((r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},"parseOffsetToMilliseconds"),wh=v((r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)},"stripLeadingZeroes"),g8=class r extends Error{constructor(f){super(f.message);Object.setPrototypeOf(this,r.prototype),this.name=f.name,this.$fault=f.$fault,this.$metadata=f.$metadata}};v(g8,"ServiceException");var si=g8,x8=v((r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r},"decorateServiceException"),e8=v(({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=wi(r),E=h.httpStatusCode?h.httpStatusCode+"":void 0,$=new s({name:(f==null?void 0:f.code)||(f==null?void 0:f.Code)||w||E||"UnknownError",$fault:"client",$metadata:h});throw x8($,f)},"throwDefaultError"),fi=v((r)=>{return({output:f,parsedBody:s,errorCode:w})=>{e8({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},"withBaseException"),wi=v((r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),"deserializeMetadata"),hi=v((r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),D8=!1,Ei=v((r)=>{if(r&&!D8&&parseInt(r.substring(1,r.indexOf(".")))<16)D8=!0},"emitWarningIfUnsupportedVersion"),$i=v((r)=>{const f=[];for(let s in M5.AlgorithmId){const w=M5.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),Ii=v((r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f},"resolveChecksumRuntimeConfig"),Fi=v((r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},"getRetryConfiguration"),Ui=v((r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f},"resolveRetryRuntimeConfig"),n8=v((r)=>{return{...$i(r),...Fi(r)}},"getDefaultExtensionConfiguration"),Ti=n8,Gi=v((r)=>{return{...Ii(r),...Ui(r)}},"resolveDefaultRuntimeConfig");v(n$,"extendedEncodeURIComponent");var Ci=v((r)=>Array.isArray(r)?r:[r],"getArrayIfSingleItem"),o8=v((r)=>{for(let s in r)if(r.hasOwnProperty(s)&&r[s]["#text"]!==void 0)r[s]=r[s]["#text"];else if(typeof r[s]==="object"&&r[s]!==null)r[s]=o8(r[s]);return r},"getValueFromTextNode"),J1=v(function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s},"StringWrapper");J1.prototype=Object.create(String.prototype,{constructor:{value:J1,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(J1,String);var a8=class r extends J1{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(f){if(f instanceof r)return f;else if(f instanceof String||typeof f==="string")return new r(f);return new r(JSON.stringify(f))}};v(a8,"LazyJsonString");var Li=a8;v(N5,"map");var Ai=v((r)=>{const f={};for(let[s,w]of Object.entries(r||{}))f[s]=[,w];return f},"convertMap"),Ri=v((r,f)=>{const s={};for(let w in f)p8(s,r,f,w);return s},"take"),Wi=v((r,f,s)=>{return N5(r,Object.entries(s).reduce((w,[h,E])=>{if(Array.isArray(E))w[h]=E;else if(typeof E==="function")w[h]=[f,E()];else w[h]=[f,E];return w},{}))},"mapWithFilter"),p8=v((r,f,s,w)=>{if(f!==null){let $=s[w];if(typeof $==="function")$=[,$];const[I=zi,F=Si,U=w]=$;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,E]=s[w];if(typeof E==="function"){let $;const I=h===void 0&&($=E())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=$;else if(F)r[w]=E()}else{const $=h===void 0&&E!=null,I=typeof h==="function"&&!!h(E)||typeof h!=="function"&&!!h;if($||I)r[w]=E}},"applyInstruction"),zi=v((r)=>r!=null,"nonNullish"),Si=v((r)=>r,"pass"),Pi=v((r,f,s,w,h,E)=>{if(f!=null&&f[s]!==void 0){const $=w();if($.length<=0)throw new Error("Empty value provided for input HTTP label: "+s+".");r=r.replace(h,E?$.split("/").map((I)=>n$(I)).join("/"):n$($))}else throw new Error("No value provided for input HTTP label: "+s+".");return r},"resolvedPath"),Xi=v((r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}},"serializeFloat"),Yi=v((r)=>r.toISOString().replace(".000Z","Z"),"serializeDateTime"),l5=v((r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(l5);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=l5(r[s])}return f}return r},"_json");v(u8,"splitEvery")});var fS=j((rS)=>{Object.defineProperty(rS,"__esModule",{value:!0});rS.isStreamingPayload=void 0;var Ki=import.meta.require("stream"),Zi=(r)=>(r===null||r===void 0?void 0:r.body)instanceof Ki.Readable||typeof ReadableStream!=="undefined"&&(r===null||r===void 0?void 0:r.body)instanceof ReadableStream;rS.isStreamingPayload=Zi});var XS=j((z0r,PS)=>{var{defineProperty:a$,getOwnPropertyDescriptor:Mi,getOwnPropertyNames:Ji}=Object,Qi=Object.prototype.hasOwnProperty,kr=(r,f)=>a$(r,"name",{value:f,configurable:!0}),Bi=(r,f)=>{for(var s in f)a$(r,s,{get:f[s],enumerable:!0})},li=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Ji(f))if(!Qi.call(r,h)&&h!==s)a$(r,h,{get:()=>f[h],enumerable:!(w=Mi(f,h))||w.enumerable})}return r},Vi=(r)=>li(a$({},"__esModule",{value:!0}),r),hS={};Bi(hS,{AdaptiveRetryStrategy:()=>ki,CONFIG_MAX_ATTEMPTS:()=>q5,CONFIG_RETRY_MODE:()=>LS,ENV_MAX_ATTEMPTS:()=>y5,ENV_RETRY_MODE:()=>CS,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>Ni,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>qi,StandardRetryStrategy:()=>TS,defaultDelayDecider:()=>$S,defaultRetryDecider:()=>IS,getOmitRetryHeadersPlugin:()=>mi,getRetryAfterHint:()=>SS,getRetryPlugin:()=>bi,omitRetryHeadersMiddleware:()=>AS,omitRetryHeadersMiddlewareOptions:()=>RS,resolveRetryConfig:()=>yi,retryMiddleware:()=>WS,retryMiddlewareOptions:()=>zS});PS.exports=Vi(hS);var $h=T0(),ES=pF(),Kr=_W(),Hi=kr((r,f)=>{const s=r,w=(f==null?void 0:f.noRetryIncrement)??Kr.NO_RETRY_INCREMENT,h=(f==null?void 0:f.retryCost)??Kr.RETRY_COST,E=(f==null?void 0:f.timeoutRetryCost)??Kr.TIMEOUT_RETRY_COST;let $=r;const I=kr((L)=>L.name==="TimeoutError"?E:h,"getCapacityAmount"),F=kr((L)=>I(L)<=$,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:kr((L)=>{if(!F(L))throw new Error("No retry token available");const z=I(L);return $-=z,z},"retrieveRetryTokens"),releaseRetryTokens:kr((L)=>{$+=L??w,$=Math.min($,s)},"releaseRetryTokens")})},"getDefaultRetryQuota"),$S=kr((r,f)=>Math.floor(Math.min(Kr.MAXIMUM_RETRY_DELAY,Math.random()*2**f*r)),"defaultDelayDecider"),q0=uF(),IS=kr((r)=>{if(!r)return!1;return q0.isRetryableByTrait(r)||q0.isClockSkewError(r)||q0.isThrottlingError(r)||q0.isTransientError(r)},"defaultRetryDecider"),FS=kr((r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)},"asSdkError"),US=class r{constructor(f,s){this.maxAttemptsProvider=f,this.mode=Kr.RETRY_MODES.STANDARD,this.retryDecider=(s==null?void 0:s.retryDecider)??IS,this.delayDecider=(s==null?void 0:s.delayDecider)??$S,this.retryQuota=(s==null?void 0:s.retryQuota)??Hi(Kr.INITIAL_RETRY_TOKENS)}shouldRetry(f,s,w){return s<w&&this.retryDecider(f)&&this.retryQuota.hasRetryTokens(f)}async getMaxAttempts(){let f;try{f=await this.maxAttemptsProvider()}catch(s){f=Kr.DEFAULT_MAX_ATTEMPTS}return f}async retry(f,s,w){let h,E=0,$=0;const I=await this.getMaxAttempts(),{request:F}=s;if($h.HttpRequest.isInstance(F))F.headers[Kr.INVOCATION_ID_HEADER]=ES.v4();while(!0)try{if($h.HttpRequest.isInstance(F))F.headers[Kr.REQUEST_HEADER]=`attempt=${E+1}; max=${I}`;if(w==null?void 0:w.beforeRequest)await w.beforeRequest();const{response:U,output:C}=await f(s);if(w==null?void 0:w.afterRequest)w.afterRequest(U);return this.retryQuota.releaseRetryTokens(h),C.$metadata.attempts=E+1,C.$metadata.totalRetryDelay=$,{response:U,output:C}}catch(U){const C=FS(U);if(E++,this.shouldRetry(C,E,I)){h=this.retryQuota.retrieveRetryTokens(C);const L=this.delayDecider(q0.isThrottlingError(C)?Kr.THROTTLING_RETRY_DELAY_BASE:Kr.DEFAULT_RETRY_DELAY_BASE,E),z=Di(C.$response),S=Math.max(z||0,L);$+=S,await new Promise((K)=>setTimeout(K,S));continue}if(!C.$metadata)C.$metadata={};throw C.$metadata.attempts=E,C.$metadata.totalRetryDelay=$,C}}};kr(US,"StandardRetryStrategy");var TS=US,Di=kr((r)=>{if(!$h.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find((E)=>E.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return w*1000;return new Date(s).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),GS=class r extends TS{constructor(f,s){const{rateLimiter:w,...h}=s??{};super(f,h);this.rateLimiter=w??new Kr.DefaultRateLimiter,this.mode=Kr.RETRY_MODES.ADAPTIVE}async retry(f,s){return super.retry(f,s,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(w)=>{this.rateLimiter.updateClientSendingRate(w)}})}};kr(GS,"AdaptiveRetryStrategy");var ki=GS,wS=T1(),y5="AWS_MAX_ATTEMPTS",q5="max_attempts",Ni={environmentVariableSelector:(r)=>{const f=r[y5];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${y5} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[q5];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${q5} mast be a number, got "${f}"`);return s},default:Kr.DEFAULT_MAX_ATTEMPTS},yi=kr((r)=>{const{retryStrategy:f}=r,s=wS.normalizeProvider(r.maxAttempts??Kr.DEFAULT_MAX_ATTEMPTS);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await wS.normalizeProvider(r.retryMode)()===Kr.RETRY_MODES.ADAPTIVE)return new Kr.AdaptiveRetryStrategy(s);return new Kr.StandardRetryStrategy(s)}}},"resolveRetryConfig"),CS="AWS_RETRY_MODE",LS="retry_mode",qi={environmentVariableSelector:(r)=>r[CS],configFileSelector:(r)=>r[LS],default:Kr.DEFAULT_RETRY_MODE},AS=kr(()=>(r)=>async(f)=>{const{request:s}=f;if($h.HttpRequest.isInstance(s))delete s.headers[Kr.INVOCATION_ID_HEADER],delete s.headers[Kr.REQUEST_HEADER];return r(f)},"omitRetryHeadersMiddleware"),RS={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},mi=kr((r)=>({applyToStack:(f)=>{f.addRelativeTo(AS(),RS)}}),"getOmitRetryHeadersPlugin"),vi=Eh(),ji=fS(),WS=kr((r)=>(f,s)=>async(w)=>{var h;let E=await r.retryStrategy();const $=await r.maxAttempts();if(ii(E)){E=E;let I=await E.acquireInitialRetryToken(s.partition_id),F=new Error,U=0,C=0;const{request:L}=w,z=$h.HttpRequest.isInstance(L);if(z)L.headers[Kr.INVOCATION_ID_HEADER]=ES.v4();while(!0)try{if(z)L.headers[Kr.REQUEST_HEADER]=`attempt=${U+1}; max=${$}`;const{response:S,output:K}=await f(w);return E.recordSuccess(I),K.$metadata.attempts=U+1,K.$metadata.totalRetryDelay=C,{response:S,output:K}}catch(S){const K=di(S);if(F=FS(S),z&&ji.isStreamingPayload(L))throw(h=s.logger instanceof vi.NoOpLogger?console:s.logger)==null||h.warn("An error was encountered in a non-retryable streaming request."),F;try{I=await E.refreshRetryTokenForRetry(I,K)}catch(l){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=U+1,F.$metadata.totalRetryDelay=C,F}U=I.getRetryCount();const k=I.getRetryDelay();C+=k,await new Promise((l)=>setTimeout(l,k))}}else{if(E=E,E==null?void 0:E.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",E.mode]];return E.retry(f,w)}},"retryMiddleware"),ii=kr((r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined","isRetryStrategyV2"),di=kr((r)=>{const f={error:r,errorType:Oi(r)},s=SS(r.$response);if(s)f.retryAfterHint=s;return f},"getRetryErrorInfo"),Oi=kr((r)=>{if(q0.isThrottlingError(r))return"THROTTLING";if(q0.isTransientError(r))return"TRANSIENT";if(q0.isServerError(r))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),zS={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},bi=kr((r)=>({applyToStack:(f)=>{f.add(WS(r),zS)}}),"getRetryPlugin"),SS=kr((r)=>{if(!$h.HttpResponse.isInstance(r))return;const f=Object.keys(r.headers).find((E)=>E.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)},"getRetryAfterHint")});var Or=j((S0r,iS)=>{function ZS(r){const f=new Map;for(let s of r)f.set(s.schemeId,s);return f}function qS(r,f){return new vS(r,f)}function jS(r,f,s,w,h){return zr(async function*E($,I,...F){let U=$.startingToken||void 0,C=!0,L;while(C){if(I[s]=U,h)I[h]=I[h]??$.pageSize;if($.client instanceof r)L=await Cd(f,$.client,I,...F);else throw new Error(`Invalid client, expected instance of ${r.name}`);yield L;const z=U;U=Ld(L,w),C=!!(U&&(!$.stopOnSameToken||U!==z))}return},"paginateOperation")}var{defineProperty:u$,getOwnPropertyDescriptor:ci,getOwnPropertyNames:_i}=Object,gi=Object.prototype.hasOwnProperty,zr=(r,f)=>u$(r,"name",{value:f,configurable:!0}),xi=(r,f)=>{for(var s in f)u$(r,s,{get:f[s],enumerable:!0})},ei=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of _i(f))if(!gi.call(r,h)&&h!==s)u$(r,h,{get:()=>f[h],enumerable:!(w=ci(f,h))||w.enumerable})}return r},ni=(r)=>ei(u$({},"__esModule",{value:!0}),r),YS={};xi(YS,{DefaultIdentityProviderConfig:()=>wd,EXPIRATION_MS:()=>NS,HttpApiKeyAuthSigner:()=>hd,HttpBearerAuthSigner:()=>Ed,NoAuthSigner:()=>$d,RequestBuilder:()=>vS,createIsIdentityExpiredFunction:()=>kS,createPaginator:()=>jS,doesIdentityRequireRefresh:()=>yS,getHttpAuthSchemeEndpointRuleSetPlugin:()=>ai,getHttpAuthSchemePlugin:()=>ui,getHttpSigningPlugin:()=>fd,getSmithyContext:()=>Ud,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>MS,httpAuthSchemeMiddleware:()=>m5,httpAuthSchemeMiddlewareOptions:()=>JS,httpSigningMiddleware:()=>QS,httpSigningMiddlewareOptions:()=>BS,isIdentityExpired:()=>Id,memoizeIdentityProvider:()=>Fd,normalizeProvider:()=>Td,requestBuilder:()=>qS});iS.exports=ni(YS);var KS=T1();zr(ZS,"convertHttpAuthSchemesToMap");var m5=zr((r,f)=>(s,w)=>async(h)=>{var E;const $=r.httpAuthSchemeProvider(await f.httpAuthSchemeParametersProvider(r,w,h.input)),I=ZS(r.httpAuthSchemes),F=KS.getSmithyContext(w),U=[];for(let C of $){const L=I.get(C.schemeId);if(!L){U.push(`HttpAuthScheme \`${C.schemeId}\` was not enabled for this service.`);continue}const z=L.identityProvider(await f.identityProviderConfigProvider(r));if(!z){U.push(`HttpAuthScheme \`${C.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:S={},signingProperties:K={}}=((E=C.propertiesExtractor)==null?void 0:E.call(C,r,w))||{};C.identityProperties=Object.assign(C.identityProperties||{},S),C.signingProperties=Object.assign(C.signingProperties||{},K),F.selectedHttpAuthScheme={httpAuthOption:C,identity:await z(C.identityProperties),signer:L.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(U.join("\n"));return s(h)},"httpAuthSchemeMiddleware"),oi=MR(),MS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:oi.endpointMiddlewareOptions.name},ai=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(m5(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),MS)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),pi=cF(),JS={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:pi.serializerMiddlewareOption.name},ui=zr((r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s})=>({applyToStack:(w)=>{w.addRelativeTo(m5(r,{httpAuthSchemeParametersProvider:f,identityProviderConfigProvider:s}),JS)}}),"getHttpAuthSchemePlugin"),t$=T0(),ti=zr((r)=>(f)=>{throw f},"defaultErrorHandler"),rd=zr((r,f)=>{},"defaultSuccessHandler"),QS=zr((r)=>(f,s)=>async(w)=>{if(!t$.HttpRequest.isInstance(w.request))return f(w);const E=KS.getSmithyContext(s).selectedHttpAuthScheme;if(!E)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:$={}},identity:I,signer:F}=E,U=await f({...w,request:await F.sign(w.request,I,$)}).catch((F.errorHandler||ti)($));return(F.successHandler||rd)(U.response,$),U},"httpSigningMiddleware"),sd=XS(),BS={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:sd.retryMiddlewareOptions.name},fd=zr((r)=>({applyToStack:(f)=>{f.addRelativeTo(QS(r),BS)}}),"getHttpSigningPlugin"),lS=class r{constructor(f){this.authSchemes=new Map;for(let[s,w]of Object.entries(f))if(w!==void 0)this.authSchemes.set(s,w)}getIdentityProvider(f){return this.authSchemes.get(f)}};zr(lS,"DefaultIdentityProviderConfig");var wd=lS,p$=$s(),VS=class r{async sign(f,s,w){if(!w)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!w.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!w.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!s.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const h=t$.HttpRequest.clone(f);if(w.in===p$.HttpApiKeyAuthLocation.QUERY)h.query[w.name]=s.apiKey;else if(w.in===p$.HttpApiKeyAuthLocation.HEADER)h.headers[w.name]=w.scheme?`${w.scheme} ${s.apiKey}`:s.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+w.in+"`");return h}};zr(VS,"HttpApiKeyAuthSigner");var hd=VS,HS=class r{async sign(f,s,w){const h=t$.HttpRequest.clone(f);if(!s.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return h.headers.Authorization=`Bearer ${s.token}`,h}};zr(HS,"HttpBearerAuthSigner");var Ed=HS,DS=class r{async sign(f,s,w){return f}};zr(DS,"NoAuthSigner");var $d=DS,kS=zr((r)=>(f)=>yS(f)&&f.expiration.getTime()-Date.now()<r,"createIsIdentityExpiredFunction"),NS=300000,Id=kS(NS),yS=zr((r)=>r.expiration!==void 0,"doesIdentityRequireRefresh"),Fd=zr((r,f,s)=>{if(r===void 0)return;const w=typeof r!=="function"?async()=>Promise.resolve(r):r;let h,E,$,I=!1;const F=zr(async(U)=>{if(!E)E=w(U);try{h=await E,$=!0,I=!1}finally{E=void 0}return h},"coalesceProvider");if(f===void 0)return async(U)=>{if(!$||(U==null?void 0:U.forceRefresh))h=await F(U);return h};return async(U)=>{if(!$||(U==null?void 0:U.forceRefresh))h=await F(U);if(I)return h;if(!s(h))return I=!0,h;if(f(h))return await F(U),h;return h}},"memoizeIdentityProvider"),Ud=zr((r)=>r[p$.SMITHY_CONTEXT_KEY]||(r[p$.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Td=zr((r)=>{if(typeof r==="function")return r;const f=Promise.resolve(r);return()=>f},"normalizeProvider"),Gd=Eh();zr(qS,"requestBuilder");var mS=class r{constructor(f,s){this.input=f,this.context=s,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:f,protocol:s="https",port:w,path:h}=await this.context.endpoint();this.path=h;for(let E of this.resolvePathStack)E(this.path);return new t$.HttpRequest({protocol:s,hostname:this.hostname||f,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(f){return this.hostname=f,this}bp(f){return this.resolvePathStack.push((s)=>{this.path=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}`+f}),this}p(f,s,w,h){return this.resolvePathStack.push((E)=>{this.path=Gd.resolvedPath(E,this.input,f,s,w,h)}),this}h(f){return this.headers=f,this}q(f){return this.query=f,this}b(f){return this.body=f,this}m(f){return this.method=f,this}};zr(mS,"RequestBuilder");var vS=mS,Cd=zr(async(r,f,s,...w)=>{return await f.send(new r(s),...w)},"makePagedClientRequest");zr(jS,"createPaginator");var Ld=zr((r,f)=>{let s=r;const w=f.split(".");for(let h of w){if(!s||typeof s!=="object")return;s=s[h]}return s},"get")});function Ad(r){return(f)=>async(s)=>{const w=s.request;if(Qr.isInstance(w)){const{body:h,headers:E}=w;if(h&&Object.keys(E).map(($)=>$.toLowerCase()).indexOf(dS)===-1)try{const $=r(h);w.headers={...w.headers,[dS]:String($)}}catch($){}}return f({...s,request:w})}}var dS="content-length",Rd,lf=(r)=>({applyToStack:(f)=>{f.add(Ad(r.bodyLengthChecker),Rd)}});var Ih=G(()=>{qr();Rd={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0}});var OS=async(r)=>{const f=r?.Bucket||"";if(typeof r.Bucket==="string")r.Bucket=f.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Xd(f)){if(r.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Pd(f)||f.indexOf(".")!==-1&&!String(r.Endpoint).startsWith("http:")||f.toLowerCase()!==f||f.length<3)r.ForcePathStyle=!0;if(r.DisableMultiRegionAccessPoints)r.disableMultiRegionAccessPoints=!0,r.DisableMRAP=!0;return r},Wd,zd,Sd,Pd=(r)=>Wd.test(r)&&!zd.test(r)&&!Sd.test(r),Xd=(r)=>{const[f,s,w,,,h]=r.split(":"),E=f==="arn"&&r.split(":").length>=6,$=Boolean(E&&s&&w&&h);if(E&&!$)throw new Error(`Invalid ARN: ${r} was an invalid ARN.`);return $};var bS=G(()=>{Wd=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,zd=/(\d+\.){3}\d+/,Sd=/\.\./});var cS=G(()=>{bS()});var _S=(r,f,s)=>{const w=async()=>{const h=s[r]??s[f];if(typeof h==="function")return h();return h};if(r==="credentialScope"||f==="CredentialScope")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.credentialScope??h?.CredentialScope};if(r==="accountId"||f==="AccountId")return async()=>{const h=typeof s.credentials==="function"?await s.credentials():s.credentials;return h?.accountId??h?.AccountId};if(r==="endpoint"||f==="endpoint")return async()=>{const h=await w();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){const{protocol:E,hostname:$,port:I,path:F}=h;return`${E}//${$}${I?":"+I:""}${F}`}}return h};return w};var Bs;var Q1=G(()=>{Bs=class Bs extends Error{constructor(r,f=!0){let s,w=!0;if(typeof f==="boolean")s=void 0,w=f;else if(f!=null&&typeof f==="object")s=f.logger,w=f.tryNextLink??!0;super(r);this.name="ProviderError",this.tryNextLink=w,Object.setPrototypeOf(this,Bs.prototype),s?.debug?.(`@smithy/property-provider ${w?"->":"(!)"} ${r}`)}static from(r,f=!0){return Object.assign(new this(r.message,f),r)}}});var g;var gS=G(()=>{Q1();g=class g extends Bs{constructor(r,f=!0){super(r,f);this.name="CredentialsProviderError",Object.setPrototypeOf(this,g.prototype)}}});var Is;var xS=G(()=>{Q1();Is=class Is extends Bs{constructor(r,f=!0){super(r,f);this.name="TokenProviderError",Object.setPrototypeOf(this,Is.prototype)}}});var L0=(...r)=>async()=>{if(r.length===0)throw new Bs("No providers in chain");let f;for(let s of r)try{return await s()}catch(w){if(f=w,w?.tryNextLink)continue;throw w}throw f};var eS=G(()=>{Q1()});var nS=(r)=>()=>Promise.resolve(r);var Sw=(r,f,s)=>{let w,h,E,$=!1;const I=async()=>{if(!h)h=r();try{w=await h,E=!0,$=!1}finally{h=void 0}return w};if(f===void 0)return async(F)=>{if(!E||F?.forceRefresh)w=await I();return w};return async(F)=>{if(!E||F?.forceRefresh)w=await I();if($)return w;if(s&&!s(w))return $=!0,w;if(f(w))return await I(),w;return w}};var Lr=G(()=>{gS();Q1();xS();eS()});function r3(r){try{const f=new Set(Array.from(r.match(/([A-Z_]){3,}/g)??[]));return f.delete("CONFIG"),f.delete("CONFIG_PREFIX_SEPARATOR"),f.delete("ENV"),[...f].join(", ")}catch(f){return r}}var oS=(r,f)=>async()=>{try{const s=r(process.env);if(s===void 0)throw new Error;return s}catch(s){throw new g(s.message||`Not found in ENV: ${r3(r.toString())}`,{logger:f})}};var aS=G(()=>{Lr()});import{homedir as Yd}from"os";import{sep as Kd}from"path";var v5,Zd=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},m0=()=>{const{HOME:r,USERPROFILE:f,HOMEPATH:s,HOMEDRIVE:w=`C:${Kd}`}=process.env;if(r)return r;if(f)return f;if(s)return`${w}${s}`;const h=Zd();if(!v5[h])v5[h]=Yd();return v5[h]};var Fh=G(()=>{v5={}});var pS="AWS_PROFILE",ls=(r)=>r.profile||process.env.AWS_PROFILE||"default";import{createHash as Md}from"crypto";import{join as Jd}from"path";var s3=(r)=>{const s=Md("sha1").update(r).digest("hex");return Jd(m0(),".aws","sso","cache",`${s}.json`)};var j5=G(()=>{Fh()});import{promises as Qd}from"fs";var Bd,f3=async(r)=>{const f=s3(r),s=await Bd(f,"utf8");return JSON.parse(s)};var uS=G(()=>{j5();({readFile:Bd}=Qd)});var i5,tS=(r)=>Object.entries(r).filter(([f])=>{const s=f.indexOf(Vs);if(s===-1)return!1;return Object.values(i5.IniSectionType).includes(f.substring(0,s))}).reduce((f,[s,w])=>{const h=s.indexOf(Vs),E=s.substring(0,h)===i5.IniSectionType.PROFILE?s.substring(h+1):s;return f[E]=w,f},{...r.default&&{default:r.default}});var rP=G(()=>{i5=u($s(),1);Uh()});import{join as ld}from"path";var Vd="AWS_CONFIG_FILE",w3=()=>process.env[Vd]||ld(m0(),".aws","config");var d5=G(()=>{Fh()});import{join as Hd}from"path";var Dd="AWS_SHARED_CREDENTIALS_FILE",sP=()=>process.env[Dd]||Hd(m0(),".aws","credentials");var fP=G(()=>{Fh()});var wP,kd,Nd,B1=(r)=>{const f={};let s,w;for(let h of r.split(/\r?\n/)){const E=h.split(/(^|\s)[;#]/)[0].trim();if(E[0]==="["&&E[E.length-1]==="]"){s=void 0,w=void 0;const I=E.substring(1,E.length-1),F=kd.exec(I);if(F){const[,U,,C]=F;if(Object.values(wP.IniSectionType).includes(U))s=[U,C].join(Vs)}else s=I;if(Nd.includes(I))throw new Error(`Found invalid profile name "${I}"`)}else if(s){const I=E.indexOf("=");if(![0,-1].includes(I)){const[F,U]=[E.substring(0,I).trim(),E.substring(I+1).trim()];if(U==="")w=F;else{if(w&&h.trimStart()===h)w=void 0;f[s]=f[s]||{};const C=w?[w,F].join(Vs):F;f[s][C]=U}}}}return f};var O5=G(()=>{wP=u($s(),1);Uh();kd=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Nd=["__proto__","profile __proto__"]});import{promises as yd}from"fs";var qd,b5,l1=(r,f)=>{if(!b5[r]||f?.ignoreCache)b5[r]=qd(r,"utf8");return b5[r]};var c5=G(()=>{({readFile:qd}=yd),b5={}});import{join as hP}from"path";var EP=()=>({}),Vs=".",h3=async(r={})=>{const{filepath:f=sP(),configFilepath:s=w3()}=r,w=m0();let E=f;if(f.startsWith("~/"))E=hP(w,f.slice(2));let $=s;if(s.startsWith("~/"))$=hP(w,s.slice(2));const I=await Promise.all([l1($,{ignoreCache:r.ignoreCache}).then(B1).then(tS).catch(EP),l1(E,{ignoreCache:r.ignoreCache}).then(B1).catch(EP)]);return{configFile:I[0],credentialsFile:I[1]}};var Uh=G(()=>{rP();d5();fP();Fh();O5();c5()});var $P,IP=(r)=>Object.entries(r).filter(([f])=>f.startsWith($P.IniSectionType.SSO_SESSION+Vs)).reduce((f,[s,w])=>({...f,[s.substring(s.indexOf(Vs)+1)]:w}),{});var FP=G(()=>{$P=u($s(),1);Uh()});var md=()=>({}),E3=async(r={})=>l1(r.configFilepath??w3()).then(B1).then(IP).catch(md);var UP=G(()=>{d5();FP();O5();c5()});var TP=(...r)=>{const f={};for(let s of r)for(let[w,h]of Object.entries(s))if(f[w]!==void 0)Object.assign(f[w],h);else f[w]=h;return f};var v0=async(r)=>{const f=await h3(r);return TP(f.configFile,f.credentialsFile)};var GP=G(()=>{Uh()});var CP=()=>{};var rf=G(()=>{Fh();j5();uS();Uh();UP();GP();CP()});var LP=(r,{preferredFile:f="config",...s}={})=>async()=>{const w=ls(s),{configFile:h,credentialsFile:E}=await h3(s),$=E[w]||{},I=h[w]||{},F=f==="config"?{...$,...I}:{...I,...$};try{const C=r(F,f==="config"?h:E);if(C===void 0)throw new Error;return C}catch(U){throw new g(U.message||`Not found in config files w/ profile [${w}]: ${r3(r.toString())}`,{logger:s.logger})}};var AP=G(()=>{Lr();rf()});var vd=(r)=>typeof r==="function",RP=(r)=>vd(r)?async()=>await r():nS(r);var WP=G(()=>{Lr()});var t=({environmentVariableSelector:r,configFileSelector:f,default:s},w={})=>Sw(L0(oS(r),LP(f,w),RP(s)));var zP=G(()=>{Lr();aS();AP();WP()});var sf=G(()=>{zP()});var SP="AWS_ENDPOINT_URL",PP="endpoint_url",XP=(r)=>({environmentVariableSelector:(f)=>{const s=r.split(" ").map((E)=>E.toUpperCase()),w=f[[SP,...s].join("_")];if(w)return w;const h=f[SP];if(h)return h;return},configFileSelector:(f,s)=>{if(s&&f.services){const h=s[["services",f.services].join(Vs)];if(h){const E=r.split(" ").map((I)=>I.toLowerCase()),$=h[[E.join("_"),PP].join(Vs)];if($)return $}}const w=f[PP];if(w)return w;return},default:void 0});var YP=G(()=>{rf()});var KP=async(r)=>t(XP(r))();var ZP=G(()=>{sf();YP()});function MP(r){const f={};if(r=r.replace(/^\?/,""),r)for(let s of r.split("&")){let[w,h=null]=s.split("=");if(w=decodeURIComponent(w),h)h=decodeURIComponent(h);if(!(w in f))f[w]=h;else if(Array.isArray(f[w]))f[w].push(h);else f[w]=[f[w],h]}return f}var _r=(r)=>{if(typeof r==="string")return _r(new URL(r));const{hostname:f,pathname:s,port:w,protocol:h,search:E}=r;let $;if(E)$=MP(E);return{hostname:f,port:w?parseInt(w):void 0,protocol:h,path:s,query:$}};var j0=()=>{};var $3=(r)=>{if(typeof r==="object"){if("url"in r)return _r(r.url);return r}return _r(r)};var I3=G(()=>{j0()});var JP=async(r,f,s,w)=>{if(!s.endpoint){const $=await KP(s.serviceId||"");if($)s.endpoint=()=>Promise.resolve($3($))}const h=await jd(r,f,s);if(typeof s.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return s.endpointProvider(h,w)},jd=async(r,f,s)=>{const w={},h=f?.getEndpointParameterInstructions?.()||{};for(let[E,$]of Object.entries(h))switch($.type){case"staticContextParams":w[E]=$.value;break;case"contextParams":w[E]=r[$.name];break;case"clientContextParams":case"builtInParams":w[E]=await _S($.name,E,s)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify($))}if(Object.keys(h).length===0)Object.assign(w,s);if(String(s.serviceId).toLowerCase()==="s3")await OS(w);return w};var _5=G(()=>{cS();ZP();I3()});var QP=G(()=>{_5();I3()});var BP=({config:r,instructions:f})=>{return(s,w)=>async(h)=>{const E=await JP(h.input,{getEndpointParameterInstructions(){return f}},{...r},w);w.endpointV2=E,w.authSchemes=E.properties?.authSchemes;const $=w.authSchemes?.[0];if($){w.signing_region=$.signingRegion,w.signing_service=$.signingName;const F=Ks(w)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:$.signingRegion,signingRegion:$.signingRegion,signing_service:$.signingName,signingName:$.signingName,signingRegionSet:$.signingRegionSet},$.properties)}return s({...h})}};var g5=G(()=>{as();_5()});var lP=(r,f)=>(s)=>async(w)=>{const{response:h}=await s(w);try{const E=await f(h,r);return{response:h,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:h}),!("$metadata"in E)){if(E.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var VP=(r,f)=>(s,w)=>async(h)=>{const E=w.endpointV2?.url&&r.urlParser?async()=>r.urlParser(w.endpointV2.url):r.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const $=await f(h.input,{...r,endpoint:E});return s({...h,request:$})};function R(r,f,s){return{applyToStack:(w)=>{w.add(lP(r,s),id),w.add(VP(r,f),x5)}}}var id,x5;var HP=G(()=>{id={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},x5={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var V=G(()=>{HP()});var dd,W=(r,f)=>({applyToStack:(s)=>{s.addRelativeTo(BP({config:r,instructions:f}),dd)}});var DP=G(()=>{V();g5();dd={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:x5.name}});var Vf=(r)=>{const f=r.tls??!0,{endpoint:s}=r,w=s!=null?async()=>$3(await Nr(s)()):void 0;return{...r,endpoint:w,tls:f,isCustomEndpoint:!!s,useDualstackEndpoint:Nr(r.useDualstackEndpoint??!1),useFipsEndpoint:Nr(r.useFipsEndpoint??!1)}};var kP=G(()=>{as();I3()});var NP=()=>{};var B=G(()=>{QP();g5();DP();kP();NP()});var Hs,Pw=3,Ds;var F3=G(()=>{(function(r){r.STANDARD="standard",r.ADAPTIVE="adaptive"})(Hs||(Hs={}));Ds=Hs.STANDARD});var yP,qP,mP,vP;var jP=G(()=>{yP=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],qP=["TimeoutError","RequestTimeout","RequestTimeoutException"],mP=[500,502,503,504],vP=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]});var Od=(r)=>r.$metadata?.clockSkewCorrected,Th=(r)=>r.$metadata?.httpStatusCode===429||yP.includes(r.name)||r.$retryable?.throttling==!0,U3=(r)=>Od(r)||qP.includes(r.name)||vP.includes(r?.code||"")||mP.includes(r.$metadata?.httpStatusCode||0),iP=(r)=>{if(r.$metadata?.httpStatusCode!==void 0){const f=r.$metadata.httpStatusCode;if(500<=f&&f<=599&&!U3(r))return!0;return!1}return!1};var V1=G(()=>{jP()});class T3{constructor(r){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=r?.beta??0.7,this.minCapacity=r?.minCapacity??1,this.minFillRate=r?.minFillRate??0.5,this.scaleConstant=r?.scaleConstant??0.4,this.smooth=r?.smooth??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(r){if(!this.enabled)return;if(this.refillTokenBucket(),r>this.currentCapacity){const f=(r-this.currentCapacity)/this.fillRate*1000;await new Promise((s)=>setTimeout(s,f))}this.currentCapacity=this.currentCapacity-r}refillTokenBucket(){const r=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=r;return}const f=(r-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=r}updateClientSendingRate(r){let f;if(this.updateMeasuredRate(),Th(r)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const s=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(s)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(r){return this.getPrecise(r*this.beta)}cubicSuccess(r){return this.getPrecise(this.scaleConstant*Math.pow(r-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(r){this.refillTokenBucket(),this.fillRate=Math.max(r,this.minFillRate),this.maxCapacity=Math.max(r,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const r=this.getCurrentTimeInSeconds(),f=Math.floor(r*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const s=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(s*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(r){return parseFloat(r.toFixed(8))}}var e5=G(()=>{V1()});var Xw=100,H1=20000,n5=500,G3=500,o5=5,a5=10,p5=1,C3="amz-sdk-invocation-id",L3="amz-sdk-request";var dP=()=>{let r=Xw;return{computeNextBackoffDelay:(w)=>{return Math.floor(Math.min(H1,Math.random()*2**w*r))},setDelayBase:(w)=>{r=w}}};var OP=()=>{};var u5=({retryDelay:r,retryCount:f,retryCost:s})=>{return{getRetryCount:()=>f,getRetryDelay:()=>Math.min(H1,r),getRetryCost:()=>s}};var bP=()=>{};class Gh{constructor(r){this.maxAttempts=r,this.mode=Hs.STANDARD,this.capacity=G3,this.retryBackoffStrategy=dP(),this.maxAttemptsProvider=typeof r==="function"?r:async()=>r}async acquireInitialRetryToken(r){return u5({retryDelay:Xw,retryCount:0})}async refreshRetryTokenForRetry(r,f){const s=await this.getMaxAttempts();if(this.shouldRetry(r,f,s)){const w=f.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?n5:Xw);const h=this.retryBackoffStrategy.computeNextBackoffDelay(r.getRetryCount()),E=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,h):h,$=this.getCapacityCost(w);return this.capacity-=$,u5({retryDelay:E,retryCount:r.getRetryCount()+1,retryCost:$})}throw new Error("No retry token available")}recordSuccess(r){this.capacity=Math.max(G3,this.capacity+(r.getRetryCost()??p5))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(r){return console.warn(`Max attempts provider could not resolve. Using default of ${Pw}`),Pw}}shouldRetry(r,f,s){return r.getRetryCount()+1<s&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(r){return r==="TRANSIENT"?a5:o5}isRetryableError(r){return r==="THROTTLING"||r==="TRANSIENT"}}var A3=G(()=>{F3();OP();bP()});class t5{constructor(r,f){this.maxAttemptsProvider=r,this.mode=Hs.ADAPTIVE;const{rateLimiter:s}=f??{};this.rateLimiter=s??new T3,this.standardRetryStrategy=new Gh(r)}async acquireInitialRetryToken(r){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(r)}async refreshRetryTokenForRetry(r,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(r,f)}recordSuccess(r){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(r)}}var cP=G(()=>{F3();e5();A3()});var _P=G(()=>{A3()});var gP=()=>{};var Cs=G(()=>{cP();_P();e5();A3();F3();gP()});var Hf,Y1r,K1r,xP,Z1r,M1r,J1r,Q1r,B1r,l1r;var eP=G(()=>{Hf=u(pF(),1),Y1r=Hf.default.v1,K1r=Hf.default.v3,xP=Hf.default.v4,Z1r=Hf.default.v5,M1r=Hf.default.NIL,J1r=Hf.default.version,Q1r=Hf.default.validate,B1r=Hf.default.stringify,l1r=Hf.default.parse});var nP=G(()=>{Cs()});var rU=G(()=>{Cs()});var sU=G(()=>{V1()});var fU=(r)=>{if(r instanceof Error)return r;if(r instanceof Object)return Object.assign(new Error,r);if(typeof r==="string")return new Error(r);return new Error(`AWS SDK error wrapper for ${r}`)};var wU=G(()=>{qr();V1();Cs();nP();rU();sU()});var oP=G(()=>{Cs();wU()});var aP="AWS_MAX_ATTEMPTS",pP="max_attempts",Df,kf=(r)=>{const{retryStrategy:f}=r,s=Nr(r.maxAttempts??Pw);return{...r,maxAttempts:s,retryStrategy:async()=>{if(f)return f;if(await Nr(r.retryMode)()===Hs.ADAPTIVE)return new t5(s);return new Gh(s)}}},bd="AWS_RETRY_MODE",cd="retry_mode",Nf;var uP=G(()=>{as();Cs();Df={environmentVariableSelector:(r)=>{const f=r[aP];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Environment variable ${aP} mast be a number, got "${f}"`);return s},configFileSelector:(r)=>{const f=r[pP];if(!f)return;const s=parseInt(f);if(Number.isNaN(s))throw new Error(`Shared config file entry ${pP} mast be a number, got "${f}"`);return s},default:Pw},Nf={environmentVariableSelector:(r)=>r[bd],configFileSelector:(r)=>r[cd],default:Ds}});var tP=G(()=>{qr();Cs()});class Ls{trace(){}debug(){}info(){}warn(){}error(){}}var Yw=(r,f)=>{const s=[];if(r)s.push(r);if(f)for(let w of f)s.push(w);return s},i0=(r,f)=>{return`${r||"anonymous"}${f&&f.length>0?` (a.k.a. ${f.join(",")})`:""}`},Ch=()=>{let r=[],f=[],s=!1;const w=new Set,h=(L)=>L.sort((z,S)=>rX[S.step]-rX[z.step]||sX[S.priority||"normal"]-sX[z.priority||"normal"]),E=(L)=>{let z=!1;const S=(K)=>{const k=Yw(K.name,K.aliases);if(k.includes(L)){z=!0;for(let l of k)w.delete(l);return!1}return!0};return r=r.filter(S),f=f.filter(S),z},$=(L)=>{let z=!1;const S=(K)=>{if(K.middleware===L){z=!0;for(let k of Yw(K.name,K.aliases))w.delete(k);return!1}return!0};return r=r.filter(S),f=f.filter(S),z},I=(L)=>{return r.forEach((z)=>{L.add(z.middleware,{...z})}),f.forEach((z)=>{L.addRelativeTo(z.middleware,{...z})}),L.identifyOnResolve?.(C.identifyOnResolve()),L},F=(L)=>{const z=[];return L.before.forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z.push(L),L.after.reverse().forEach((S)=>{if(S.before.length===0&&S.after.length===0)z.push(S);else z.push(...F(S))}),z},U=(L=!1)=>{const z=[],S=[],K={};return r.forEach((l)=>{const Q={...l,before:[],after:[]};for(let N of Yw(Q.name,Q.aliases))K[N]=Q;z.push(Q)}),f.forEach((l)=>{const Q={...l,before:[],after:[]};for(let N of Yw(Q.name,Q.aliases))K[N]=Q;S.push(Q)}),S.forEach((l)=>{if(l.toMiddleware){const Q=K[l.toMiddleware];if(Q===void 0){if(L)return;throw new Error(`${l.toMiddleware} is not found when adding ${i0(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")Q.after.push(l);if(l.relation==="before")Q.before.push(l)}}),h(z).map(F).reduce((l,Q)=>{return l.push(...Q),l},[])},C={add:(L,z={})=>{const{name:S,override:K,aliases:k}=z,l={step:"initialize",priority:"normal",middleware:L,...z},Q=Yw(S,k);if(Q.length>0){if(Q.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${i0(S,k)}'`);for(let N of Q){const x=r.findIndex((hr)=>hr.name===N||hr.aliases?.some((Dr)=>Dr===N));if(x===-1)continue;const e=r[x];if(e.step!==l.step||l.priority!==e.priority)throw new Error(`"${i0(e.name,e.aliases)}" middleware with ${e.priority} priority in ${e.step} step cannot be overridden by "${i0(S,k)}" middleware with ${l.priority} priority in ${l.step} step.`);r.splice(x,1)}}for(let N of Q)w.add(N)}r.push(l)},addRelativeTo:(L,z)=>{const{name:S,override:K,aliases:k}=z,l={middleware:L,...z},Q=Yw(S,k);if(Q.length>0){if(Q.some((N)=>w.has(N))){if(!K)throw new Error(`Duplicate middleware name '${i0(S,k)}'`);for(let N of Q){const x=f.findIndex((hr)=>hr.name===N||hr.aliases?.some((Dr)=>Dr===N));if(x===-1)continue;const e=f[x];if(e.toMiddleware!==l.toMiddleware||e.relation!==l.relation)throw new Error(`"${i0(e.name,e.aliases)}" middleware ${e.relation} "${e.toMiddleware}" middleware cannot be overridden by "${i0(S,k)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);f.splice(x,1)}}for(let N of Q)w.add(N)}f.push(l)},clone:()=>I(Ch()),use:(L)=>{L.applyToStack(C)},remove:(L)=>{if(typeof L==="string")return E(L);else return $(L)},removeByTag:(L)=>{let z=!1;const S=(K)=>{const{tags:k,name:l,aliases:Q}=K;if(k&&k.includes(L)){const N=Yw(l,Q);for(let x of N)w.delete(x);return z=!0,!1}return!0};return r=r.filter(S),f=f.filter(S),z},concat:(L)=>{const z=I(Ch());return z.use(L),z.identifyOnResolve(s||z.identifyOnResolve()||(L.identifyOnResolve?.()??!1)),z},applyToStack:I,identify:()=>{return U(!0).map((L)=>{const z=L.step??L.relation+" "+L.toMiddleware;return i0(L.name,L.aliases)+" - "+z})},identifyOnResolve(L){if(typeof L==="boolean")s=L;return s},resolve:(L,z)=>{for(let S of U().map((K)=>K.middleware).reverse())L=S(L,z);if(s)console.log(C.identify());return L}};return C},rX,sX;var fX=G(()=>{rX={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},sX={high:3,normal:2,low:1}});var hU=G(()=>{fX()});class As{constructor(r){this.middlewareStack=Ch(),this.config=r}send(r,f,s){const w=typeof f!=="function"?f:void 0,h=typeof f==="function"?f:s,E=r.resolveMiddleware(this.middlewareStack,this.config,w);if(h)E(r).then(($)=>h(null,$.output),($)=>h($)).catch(()=>{});else return E(r).then(($)=>$.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var wX=G(()=>{hU()});var R3,gr=async(r=new Uint8Array,f)=>{if(r instanceof Uint8Array)return R3.Uint8ArrayBlobAdapter.mutate(r);if(!r)return R3.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const s=f.streamCollector(r);return R3.Uint8ArrayBlobAdapter.mutate(await s)};var hX=G(()=>{R3=u(g$(),1)});class A{constructor(){this.middlewareStack=Ch()}static classBuilder(){return new $X}resolveMiddlewareWithContext(r,f,s,{middlewareFn:w,clientName:h,commandName:E,inputFilterSensitiveLog:$,outputFilterSensitiveLog:I,smithyContext:F,additionalContext:U,CommandCtor:C}){for(let k of w.bind(this)(C,r,f,s))this.middlewareStack.use(k);const L=r.concat(this.middlewareStack),{logger:z}=f,S={logger:z,clientName:h,commandName:E,inputFilterSensitiveLog:$,outputFilterSensitiveLog:I,[EX.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...U},{requestHandler:K}=f;return L.resolve((k)=>K.handle(k.request,s||{}),S)}}class $X{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(r)=>r,this._outputFilterSensitiveLog=(r)=>r,this._serializer=null,this._deserializer=null}init(r){this._init=r}ep(r){return this._ep=r,this}m(r){return this._middlewareFn=r,this}s(r,f,s={}){return this._smithyContext={service:r,operation:f,...s},this}c(r={}){return this._additionalContext=r,this}n(r,f){return this._clientName=r,this._commandName=f,this}f(r=(s)=>s,f=(s)=>s){return this._inputFilterSensitiveLog=r,this._outputFilterSensitiveLog=f,this}ser(r){return this._serializer=r,this}de(r){return this._deserializer=r,this}build(){const r=this;let f;return f=class extends A{static getEndpointParameterInstructions(){return r._ep}constructor(...[s]){super();this.serialize=r._serializer,this.deserialize=r._deserializer,this.input=s??{},r._init(this)}resolveMiddleware(s,w,h){return this.resolveMiddlewareWithContext(s,w,h,{CommandCtor:f,middlewareFn:r._middlewareFn,clientName:r._clientName,commandName:r._commandName,inputFilterSensitiveLog:r._inputFilterSensitiveLog,outputFilterSensitiveLog:r._outputFilterSensitiveLog,smithyContext:r._smithyContext,additionalContext:r._additionalContext})}}}}var EX;var IX=G(()=>{hU();EX=u($s(),1)});var o="***SensitiveInformation***";var yf=(r,f)=>{for(let s of Object.keys(r)){const w=r[s],h=async function($,I,F){const U=new w($);if(typeof I==="function")this.send(U,I);else if(typeof F==="function"){if(typeof I!=="object")throw new Error(`Expected http options but got ${typeof I}`);this.send(U,I||{},F)}else return this.send(U,I)},E=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");f.prototype[E]=h}};var yr=(r)=>{switch(r){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${r}"`)}},d0=(r)=>{if(r===null||r===void 0)return;if(typeof r==="number"){if(r===0||r===1)z3.warn(W3(`Expected boolean, got ${typeof r}: ${r}`));if(r===0)return!1;if(r===1)return!0}if(typeof r==="string"){const f=r.toLowerCase();if(f==="false"||f==="true")z3.warn(W3(`Expected boolean, got ${typeof r}: ${r}`));if(f==="false")return!1;if(f==="true")return!0}if(typeof r==="boolean")return r;throw new TypeError(`Expected boolean, got ${typeof r}: ${r}`)},Fs=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string"){const f=parseFloat(r);if(!Number.isNaN(f)){if(String(f)!==String(r))z3.warn(W3(`Expected number but observed string: ${r}`));return f}}if(typeof r==="number")return r;throw new TypeError(`Expected number, got ${typeof r}: ${r}`)},_d,FX=(r)=>{const f=Fs(r);if(f!==void 0&&!Number.isNaN(f)&&f!==1/0&&f!==-1/0){if(Math.abs(f)>_d)throw new TypeError(`Expected 32-bit float, got ${r}`)}return f},Lh=(r)=>{if(r===null||r===void 0)return;if(Number.isInteger(r)&&!Number.isNaN(r))return r;throw new TypeError(`Expected integer, got ${typeof r}: ${r}`)},Kw=(r)=>EU(r,32),UX=(r)=>EU(r,16),TX=(r)=>EU(r,8),EU=(r,f)=>{const s=Lh(r);if(s!==void 0&&gd(s,f)!==s)throw new TypeError(`Expected ${f}-bit integer, got ${r}`);return s},gd=(r,f)=>{switch(f){case 32:return Int32Array.of(r)[0];case 16:return Int16Array.of(r)[0];case 8:return Int8Array.of(r)[0]}},y=(r,f)=>{if(r===null||r===void 0){if(f)throw new TypeError(`Expected a non-null value for ${f}`);throw new TypeError("Expected a non-null value")}return r},d=(r)=>{if(r===null||r===void 0)return;if(typeof r==="object"&&!Array.isArray(r))return r;const f=Array.isArray(r)?"array":typeof r;throw new TypeError(`Expected object, got ${f}: ${r}`)},T=(r)=>{if(r===null||r===void 0)return;if(typeof r==="string")return r;if(["boolean","number","bigint"].includes(typeof r))return z3.warn(W3(`Expected string, got ${typeof r}: ${r}`)),String(r);throw new TypeError(`Expected string, got ${typeof r}: ${r}`)},$U=(r)=>{if(typeof r=="string")return Fs(Ah(r));return Fs(r)},GX,CX=(r)=>{if(typeof r=="string")return FX(Ah(r));return FX(r)},xd,Ah=(r)=>{const f=r.match(xd);if(f===null||f[0].length!==r.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(r)},IU=(r)=>{if(typeof r=="string")return ed(r);return Fs(r)},ed=(r)=>{switch(r){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${r}`)}},xr=(r)=>{if(typeof r==="string")return Lh(Ah(r));return Lh(r)},Er=(r)=>{if(typeof r==="string")return Kw(Ah(r));return Kw(r)},FU=(r)=>{if(typeof r==="string")return UX(Ah(r));return UX(r)},LX=(r)=>{if(typeof r==="string")return TX(Ah(r));return TX(r)},W3=(r)=>{return String(new TypeError(r).stack||r).split("\n").slice(0,5).filter((f)=>!f.includes("stackTraceWarning")).join("\n")},z3;var UU=G(()=>{_d=Math.ceil(340282346638528860000000000000000000000),GX=$U,xd=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,z3={warn:console.warn}});var nd,od,AX=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=od.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,E,$,I,F,U]=f,C=FU(TU(w)),L=Zw(h,"month",1,12),z=Zw(E,"day",1,31);return RX(C,L,z,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U})},ad,Mw=(r)=>{if(r===null||r===void 0)return;if(typeof r!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const f=ad.exec(r);if(!f)throw new TypeError("Invalid RFC-3339 date-time value");const[s,w,h,E,$,I,F,U,C]=f,L=FU(TU(w)),z=Zw(h,"month",1,12),S=Zw(E,"day",1,31),K=RX(L,z,S,{hours:$,minutes:I,seconds:F,fractionalMilliseconds:U});if(C.toUpperCase()!="Z")K.setTime(K.getTime()-sO(C));return K},XEr,YEr,KEr,qf=(r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=$U(r);else if(typeof r==="object"&&r.tag===1)f=r.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(f)||f===1/0||f===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(f*1000))},RX=(r,f,s,w)=>{const h=f-1;return ud(r,h,s),new Date(Date.UTC(r,h,s,Zw(w.hours,"hour",0,23),Zw(w.minutes,"minute",0,59),Zw(w.seconds,"seconds",0,60),rO(w.fractionalMilliseconds)))},pd,ud=(r,f,s)=>{let w=pd[f];if(f===1&&td(r))w=29;if(s>w)throw new TypeError(`Invalid day for ${nd[f]} in ${r}: ${s}`)},td=(r)=>{return r%4===0&&(r%100!==0||r%400===0)},Zw=(r,f,s,w)=>{const h=LX(TU(r));if(h<s||h>w)throw new TypeError(`${f} must be between ${s} and ${w}, inclusive`);return h},rO=(r)=>{if(r===null||r===void 0)return 0;return CX("0."+r)*1000},sO=(r)=>{const f=r[0];let s=1;if(f=="+")s=1;else if(f=="-")s=-1;else throw new TypeError(`Offset direction, ${f}, must be "+" or "-"`);const w=Number(r.substring(1,3)),h=Number(r.substring(4,6));return s*(w*60+h)*60*1000},TU=(r)=>{let f=0;while(f<r.length-1&&r.charAt(f)==="0")f++;if(f===0)return r;return r.slice(f)};var WX=G(()=>{UU();nd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],od=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),ad=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),XEr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),YEr=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),KEr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),pd=[31,28,31,30,31,30,31,31,30,31,30,31]});var ks,D=(r,f={})=>{Object.entries(f).filter(([,w])=>w!==void 0).forEach(([w,h])=>{if(r[w]==null||r[w]==="")r[w]=h});const s=r.message||r.Message||"UnknownError";return r.message=s,delete r.Message,r};var GU=G(()=>{ks=class ks extends Error{constructor(r){super(r.message);Object.setPrototypeOf(this,ks.prototype),this.name=r.name,this.$fault=r.$fault,this.$metadata=r.$metadata}}});var fO=({output:r,parsedBody:f,exceptionCtor:s,errorCode:w})=>{const h=wO(r),E=h.httpStatusCode?h.httpStatusCode+"":void 0,$=new s({name:f?.code||f?.Code||w||E||"UnknownError",$fault:"client",$metadata:h});throw D($,f)},mf=(r)=>{return({output:f,parsedBody:s,errorCode:w})=>{fO({output:f,parsedBody:s,exceptionCtor:r,errorCode:w})}},wO=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var zX=G(()=>{GU()});var vf=(r)=>{switch(r){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var SX=!1,jf=(r)=>{if(r&&!SX&&parseInt(r.substring(1,r.indexOf(".")))<16)SX=!0};var CU,PX=(r)=>{const f=[];for(let s in CU.AlgorithmId){const w=CU.AlgorithmId[s];if(r[w]===void 0)continue;f.push({algorithmId:()=>w,checksumConstructor:()=>r[w]})}return{_checksumAlgorithms:f,addChecksumAlgorithm(s){this._checksumAlgorithms.push(s)},checksumAlgorithms(){return this._checksumAlgorithms}}},XX=(r)=>{const f={};return r.checksumAlgorithms().forEach((s)=>{f[s.algorithmId()]=s.checksumConstructor()}),f};var YX=G(()=>{CU=u($s(),1)});var KX=(r)=>{let f=r.retryStrategy;return{setRetryStrategy(s){f=s},retryStrategy(){return f}}},ZX=(r)=>{const f={};return f.retryStrategy=r.retryStrategy(),f};var df=(r)=>{return{...PX(r),...KX(r)}},Of=(r)=>{return{...XX(r),...ZX(r)}};var MX=G(()=>{YX()});var JX=G(()=>{MX()});function S3(r){return encodeURIComponent(r).replace(/[!'()*]/g,function(f){return"%"+f.charCodeAt(0).toString(16).toUpperCase()})}var Cr=(r)=>Array.isArray(r)?r:[r];var LU=function(){const r=Object.getPrototypeOf(this).constructor,s=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(s,r.prototype),s};var QX=G(()=>{LU.prototype=Object.create(String.prototype,{constructor:{value:LU,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(LU,String)});function P(r,f,s){let w,h,E;if(typeof f==="undefined"&&typeof s==="undefined")w={},E=r;else if(w=r,typeof f==="function")return h=f,E=s,hO(w,h,E);else E=f;for(let $ of Object.keys(E)){if(!Array.isArray(E[$])){w[$]=E[$];continue}BX(w,null,E,$)}return w}var p=(r,f)=>{const s={};for(let w in f)BX(s,r,f,w);return s},hO=(r,f,s)=>{return P(r,Object.entries(s).reduce((w,[h,E])=>{if(Array.isArray(E))w[h]=E;else if(typeof E==="function")w[h]=[f,E()];else w[h]=[f,E];return w},{}))},BX=(r,f,s,w)=>{if(f!==null){let $=s[w];if(typeof $==="function")$=[,$];const[I=EO,F=$O,U=w]=$;if(typeof I==="function"&&I(f[U])||typeof I!=="function"&&!!I)r[w]=F(f[U]);return}let[h,E]=s[w];if(typeof E==="function"){let $;const I=h===void 0&&($=E())!=null,F=typeof h==="function"&&!!h(void 0)||typeof h!=="function"&&!!h;if(I)r[w]=$;else if(F)r[w]=E()}else{const $=h===void 0&&E!=null,I=typeof h==="function"&&!!h(E)||typeof h!=="function"&&!!h;if($||I)r[w]=E}},EO=(r)=>r!=null,$O=(r)=>r;var lX=()=>{};var VX=(r)=>{if(r!==r)return"NaN";switch(r){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return r}};var q=(r)=>{if(r==null)return{};if(Array.isArray(r))return r.filter((f)=>f!=null).map(q);if(typeof r==="object"){const f={};for(let s of Object.keys(r)){if(r[s]==null)continue;f[s]=q(r[s])}return f}return r};var Y=G(()=>{wX();hX();IX();WX();zX();JX();GU();QX();UU();lX()});import{Readable as IO}from"stream";var HX=(r)=>r?.body instanceof IO||typeof ReadableStream!=="undefined"&&r?.body instanceof ReadableStream;var DX=()=>{};var FO=(r)=>(f,s)=>async(w)=>{let h=await r.retryStrategy();const E=await r.maxAttempts();if(UO(h)){h=h;let $=await h.acquireInitialRetryToken(s.partition_id),I=new Error,F=0,U=0;const{request:C}=w,L=Qr.isInstance(C);if(L)C.headers[C3]=xP();while(!0)try{if(L)C.headers[L3]=`attempt=${F+1}; max=${E}`;const{response:z,output:S}=await f(w);return h.recordSuccess($),S.$metadata.attempts=F+1,S.$metadata.totalRetryDelay=U,{response:z,output:S}}catch(z){const S=TO(z);if(I=fU(z),L&&HX(C))throw(s.logger instanceof Ls?console:s.logger)?.warn("An error was encountered in a non-retryable streaming request."),I;try{$=await h.refreshRetryTokenForRetry($,S)}catch(k){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=F+1,I.$metadata.totalRetryDelay=U,I}F=$.getRetryCount();const K=$.getRetryDelay();U+=K,await new Promise((k)=>setTimeout(k,K))}}else{if(h=h,h?.mode)s.userAgent=[...s.userAgent||[],["cfg/retry-mode",h.mode]];return h.retry(f,w)}},UO=(r)=>typeof r.acquireInitialRetryToken!=="undefined"&&typeof r.refreshRetryTokenForRetry!=="undefined"&&typeof r.recordSuccess!=="undefined",TO=(r)=>{const f={error:r,errorType:GO(r)},s=LO(r.$response);if(s)f.retryAfterHint=s;return f},GO=(r)=>{if(Th(r))return"THROTTLING";if(U3(r))return"TRANSIENT";if(iP(r))return"SERVER_ERROR";return"CLIENT_ERROR"},CO,bf=(r)=>({applyToStack:(f)=>{f.add(FO(r),CO)}}),LO=(r)=>{if(!Gw.isInstance(r))return;const f=Object.keys(r.headers).find((E)=>E.toLowerCase()==="retry-after");if(!f)return;const s=r.headers[f],w=Number(s);if(!Number.isNaN(w))return new Date(w*1000);return new Date(s)};var kX=G(()=>{qr();V1();Y();Cs();eP();DX();CO={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0}});var ff=G(()=>{oP();wU();uP();rU();tP();sU();kX()});var $Y=j((N$r,Y3)=>{var NX,yX,qX,mX,vX,jX,iX,dX,OX,bX,cX,_X,gX,P3,AU,xX,eX,nX,Rh,oX,aX,pX,uX,tX,rY,sY,fY,wY,X3,hY,EY;(function(r){var f=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(w){r(s(f,s(w)))});else if(typeof Y3==="object"&&typeof N$r==="object")r(s(f,s(N$r)));else r(s(f));function s(w,h){if(w!==f)if(typeof Object.create==="function")Object.defineProperty(w,"__esModule",{value:!0});else w.__esModule=!0;return function(E,$){return w[E]=h?h(E,$):$}}})(function(r){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,E){h.__proto__=E}||function(h,E){for(var $ in E)if(Object.prototype.hasOwnProperty.call(E,$))h[$]=E[$]};NX=function(h,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");f(h,E);function $(){this.constructor=h}h.prototype=E===null?Object.create(E):($.prototype=E.prototype,new $)},yX=Object.assign||function(h){for(var E,$=1,I=arguments.length;$<I;$++){E=arguments[$];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))h[F]=E[F]}return h},qX=function(h,E){var $={};for(var I in h)if(Object.prototype.hasOwnProperty.call(h,I)&&E.indexOf(I)<0)$[I]=h[I];if(h!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var F=0,I=Object.getOwnPropertySymbols(h);F<I.length;F++)if(E.indexOf(I[F])<0&&Object.prototype.propertyIsEnumerable.call(h,I[F]))$[I[F]]=h[I[F]]}return $},mX=function(h,E,$,I){var F=arguments.length,U=F<3?E:I===null?I=Object.getOwnPropertyDescriptor(E,$):I,C;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")U=Reflect.decorate(h,E,$,I);else for(var L=h.length-1;L>=0;L--)if(C=h[L])U=(F<3?C(U):F>3?C(E,$,U):C(E,$))||U;return F>3&&U&&Object.defineProperty(E,$,U),U},vX=function(h,E){return function($,I){E($,I,h)}},jX=function(h,E,$,I,F,U){function C(hr){if(hr!==void 0&&typeof hr!=="function")throw new TypeError("Function expected");return hr}var L=I.kind,z=L==="getter"?"get":L==="setter"?"set":"value",S=!E&&h?I.static?h:h.prototype:null,K=E||(S?Object.getOwnPropertyDescriptor(S,I.name):{}),k,l=!1;for(var Q=$.length-1;Q>=0;Q--){var N={};for(var x in I)N[x]=x==="access"?{}:I[x];for(var x in I.access)N.access[x]=I.access[x];N.addInitializer=function(hr){if(l)throw new TypeError("Cannot add initializers after decoration has completed");U.push(C(hr||null))};var e=$[Q](L==="accessor"?{get:K.get,set:K.set}:K[z],N);if(L==="accessor"){if(e===void 0)continue;if(e===null||typeof e!=="object")throw new TypeError("Object expected");if(k=C(e.get))K.get=k;if(k=C(e.set))K.set=k;if(k=C(e.init))F.unshift(k)}else if(k=C(e))if(L==="field")F.unshift(k);else K[z]=k}if(S)Object.defineProperty(S,I.name,K);l=!0},iX=function(h,E,$){var I=arguments.length>2;for(var F=0;F<E.length;F++)$=I?E[F].call(h,$):E[F].call(h);return I?$:void 0},dX=function(h){return typeof h==="symbol"?h:"".concat(h)},OX=function(h,E,$){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(h,"name",{configurable:!0,value:$?"".concat($," ",E):E})},bX=function(h,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,E)},cX=function(h,E,$,I){function F(U){return U instanceof $?U:new $(function(C){C(U)})}return new($||($=Promise))(function(U,C){function L(K){try{S(I.next(K))}catch(k){C(k)}}function z(K){try{S(I.throw(K))}catch(k){C(k)}}function S(K){K.done?U(K.value):F(K.value).then(L,z)}S((I=I.apply(h,E||[])).next())})},_X=function(h,E){var $={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},I,F,U,C;return C={next:L(0),throw:L(1),return:L(2)},typeof Symbol==="function"&&(C[Symbol.iterator]=function(){return this}),C;function L(S){return function(K){return z([S,K])}}function z(S){if(I)throw new TypeError("Generator is already executing.");while(C&&(C=0,S[0]&&($=0)),$)try{if(I=1,F&&(U=S[0]&2?F.return:S[0]?F.throw||((U=F.return)&&U.call(F),0):F.next)&&!(U=U.call(F,S[1])).done)return U;if(F=0,U)S=[S[0]&2,U.value];switch(S[0]){case 0:case 1:U=S;break;case 4:return $.label++,{value:S[1],done:!1};case 5:$.label++,F=S[1],S=[0];continue;case 7:S=$.ops.pop(),$.trys.pop();continue;default:if((U=$.trys,!(U=U.length>0&&U[U.length-1]))&&(S[0]===6||S[0]===2)){$=0;continue}if(S[0]===3&&(!U||S[1]>U[0]&&S[1]<U[3])){$.label=S[1];break}if(S[0]===6&&$.label<U[1]){$.label=U[1],U=S;break}if(U&&$.label<U[2]){$.label=U[2],$.ops.push(S);break}if(U[2])$.ops.pop();$.trys.pop();continue}S=E.call(h,$)}catch(K){S=[6,K],F=0}finally{I=U=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}},gX=function(h,E){for(var $ in h)if($!=="default"&&!Object.prototype.hasOwnProperty.call(E,$))X3(E,h,$)},X3=Object.create?function(h,E,$,I){if(I===void 0)I=$;var F=Object.getOwnPropertyDescriptor(E,$);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[$]}};Object.defineProperty(h,I,F)}:function(h,E,$,I){if(I===void 0)I=$;h[I]=E[$]},P3=function(h){var E=typeof Symbol==="function"&&Symbol.iterator,$=E&&h[E],I=0;if($)return $.call(h);if(h&&typeof h.length==="number")return{next:function(){if(h&&I>=h.length)h=void 0;return{value:h&&h[I++],done:!h}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")},AU=function(h,E){var $=typeof Symbol==="function"&&h[Symbol.iterator];if(!$)return h;var I=$.call(h),F,U=[],C;try{while((E===void 0||E-- >0)&&!(F=I.next()).done)U.push(F.value)}catch(L){C={error:L}}finally{try{if(F&&!F.done&&($=I.return))$.call(I)}finally{if(C)throw C.error}}return U},xX=function(){for(var h=[],E=0;E<arguments.length;E++)h=h.concat(AU(arguments[E]));return h},eX=function(){for(var h=0,E=0,$=arguments.length;E<$;E++)h+=arguments[E].length;for(var I=Array(h),F=0,E=0;E<$;E++)for(var U=arguments[E],C=0,L=U.length;C<L;C++,F++)I[F]=U[C];return I},nX=function(h,E,$){if($||arguments.length===2){for(var I=0,F=E.length,U;I<F;I++)if(U||!(I in E)){if(!U)U=Array.prototype.slice.call(E,0,I);U[I]=E[I]}}return h.concat(U||Array.prototype.slice.call(E))},Rh=function(h){return this instanceof Rh?(this.v=h,this):new Rh(h)},oX=function(h,E,$){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I=$.apply(h,E||[]),F,U=[];return F={},L("next"),L("throw"),L("return",C),F[Symbol.asyncIterator]=function(){return this},F;function C(Q){return function(N){return Promise.resolve(N).then(Q,k)}}function L(Q,N){if(I[Q]){if(F[Q]=function(x){return new Promise(function(e,hr){U.push([Q,x,e,hr])>1||z(Q,x)})},N)F[Q]=N(F[Q])}}function z(Q,N){try{S(I[Q](N))}catch(x){l(U[0][3],x)}}function S(Q){Q.value instanceof Rh?Promise.resolve(Q.value.v).then(K,k):l(U[0][2],Q)}function K(Q){z("next",Q)}function k(Q){z("throw",Q)}function l(Q,N){if(Q(N),U.shift(),U.length)z(U[0][0],U[0][1])}},aX=function(h){var E,$;return E={},I("next"),I("throw",function(F){throw F}),I("return"),E[Symbol.iterator]=function(){return this},E;function I(F,U){E[F]=h[F]?function(C){return($=!$)?{value:Rh(h[F](C)),done:!1}:U?U(C):C}:U}},pX=function(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=h[Symbol.asyncIterator],$;return E?E.call(h):(h=typeof P3==="function"?P3(h):h[Symbol.iterator](),$={},I("next"),I("throw"),I("return"),$[Symbol.asyncIterator]=function(){return this},$);function I(U){$[U]=h[U]&&function(C){return new Promise(function(L,z){C=h[U](C),F(L,z,C.done,C.value)})}}function F(U,C,L,z){Promise.resolve(z).then(function(S){U({value:S,done:L})},C)}},uX=function(h,E){if(Object.defineProperty)Object.defineProperty(h,"raw",{value:E});else h.raw=E;return h};var s=Object.create?function(h,E){Object.defineProperty(h,"default",{enumerable:!0,value:E})}:function(h,E){h.default=E};tX=function(h){if(h&&h.__esModule)return h;var E={};if(h!=null){for(var $ in h)if($!=="default"&&Object.prototype.hasOwnProperty.call(h,$))X3(E,h,$)}return s(E,h),E},rY=function(h){return h&&h.__esModule?h:{default:h}},sY=function(h,E,$,I){if($==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?h!==E||!I:!E.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?I:$==="a"?I.call(h):I?I.value:E.get(h)},fY=function(h,E,$,I,F){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?h!==E||!F:!E.has(h))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?F.call(h,$):F?F.value=$:E.set(h,$),$},wY=function(h,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof h==="function"?E===h:h.has(E)},hY=function(h,E,$){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var I,F;if($){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");I=E[Symbol.asyncDispose]}if(I===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(I=E[Symbol.dispose],$)F=I}if(typeof I!=="function")throw new TypeError("Object not disposable.");if(F)I=function(){try{F.call(this)}catch(U){return Promise.reject(U)}};h.stack.push({value:E,dispose:I,async:$})}else if($)h.stack.push({async:!0});return E};var w=typeof SuppressedError==="function"?SuppressedError:function(h,E,$){var I=new Error($);return I.name="SuppressedError",I.error=h,I.suppressed=E,I};EY=function(h){function E(I){h.error=h.hasError?new w(I,h.error,"An error was suppressed during disposal."):I,h.hasError=!0}function $(){while(h.stack.length){var I=h.stack.pop();try{var F=I.dispose&&I.dispose.call(I.value);if(I.async)return Promise.resolve(F).then($,function(U){return E(U),$()})}catch(U){E(U)}}if(h.hasError)throw h.error}return $()},r("__extends",NX),r("__assign",yX),r("__rest",qX),r("__decorate",mX),r("__param",vX),r("__esDecorate",jX),r("__runInitializers",iX),r("__propKey",dX),r("__setFunctionName",OX),r("__metadata",bX),r("__awaiter",cX),r("__generator",_X),r("__exportStar",gX),r("__createBinding",X3),r("__values",P3),r("__read",AU),r("__spread",xX),r("__spreadArrays",eX),r("__spreadArray",nX),r("__await",Rh),r("__asyncGenerator",oX),r("__asyncDelegator",aX),r("__asyncValues",pX),r("__makeTemplateObject",uX),r("__importStar",tX),r("__importDefault",rY),r("__classPrivateFieldGet",sY),r("__classPrivateFieldSet",fY),r("__classPrivateFieldIn",wY),r("__addDisposableResource",hY),r("__disposeResources",EY)})});var TY=j((y$r,UY)=>{var{defineProperty:K3,getOwnPropertyDescriptor:AO,getOwnPropertyNames:RO}=Object,WO=Object.prototype.hasOwnProperty,zO=(r,f)=>K3(r,"name",{value:f,configurable:!0}),SO=(r,f)=>{for(var s in f)K3(r,s,{get:f[s],enumerable:!0})},PO=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of RO(f))if(!WO.call(r,h)&&h!==s)K3(r,h,{get:()=>f[h],enumerable:!(w=AO(f,h))||w.enumerable})}return r},XO=(r)=>PO(K3({},"__esModule",{value:!0}),r),FY={};SO(FY,{emitWarningIfUnsupportedVersion:()=>YO});UY.exports=XO(FY);var IY=!1,YO=zO((r)=>{if(r&&!IY&&parseInt(r.substring(1,r.indexOf(".")))<18)IY=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
7
5
  no longer support Node.js 16.x on January 6, 2025.
8
6
 
9
7
  To continue receiving updates to AWS services, bug fixes, and security
10
8
  updates please upgrade to a supported Node.js LTS version.
11
9
 
12
- More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var XK=v((L2r,PK)=>{function k5(r){for(let f=0;f<8;f++)r[f]^=255;for(let f=7;f>-1;f--)if(r[f]++,r[f]!==0)break}var{defineProperty:V3,getOwnPropertyDescriptor:fc,getOwnPropertyNames:wc}=Object,hc=Object.prototype.hasOwnProperty,Nr=(r,f)=>V3(r,"name",{value:f,configurable:!0}),$c=(r,f)=>{for(var s in f)V3(r,s,{get:f[s],enumerable:!0})},Ec=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of wc(f))if(!hc.call(r,h)&&h!==s)V3(r,h,{get:()=>f[h],enumerable:!(w=fc(f,h))||w.enumerable})}return r},Ic=(r)=>Ec(V3({},"__esModule",{value:!0}),r),$K={};$c($K,{SignatureV4:()=>ic,clearCredentialCache:()=>lc,createScope:()=>B3,getCanonicalHeaders:()=>V5,getCanonicalQuery:()=>LK,getPayloadHash:()=>H3,getSigningKey:()=>CK,moveHeadersToQuery:()=>zK,prepareRequest:()=>D5});PK.exports=Ic($K);var sK=G1(),M5=j0(),Fc="X-Amz-Algorithm",Uc="X-Amz-Credential",EK="X-Amz-Date",Tc="X-Amz-SignedHeaders",Gc="X-Amz-Expires",IK="X-Amz-Signature",FK="X-Amz-Security-Token",UK="authorization",TK=EK.toLowerCase(),Cc="date",Lc=[UK,TK,Cc],Ac=IK.toLowerCase(),H5="x-amz-content-sha256",Rc=FK.toLowerCase(),Wc={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zc=/^proxy-/,Sc=/^sec-/,B5="AWS4-HMAC-SHA256",Pc="AWS4-HMAC-SHA256-PAYLOAD",Xc="UNSIGNED-PAYLOAD",Yc=50,GK="aws4_request",Kc=604800,e0=xE(),Zc=j0(),Xh={},M3=[],B3=Nr((r,f,s)=>`${r}/${f}/${s}/${GK}`,"createScope"),CK=Nr(async(r,f,s,w,h)=>{const $=await fK(r,f.secretAccessKey,f.accessKeyId),E=`${s}:${w}:${h}:${e0.toHex($)}:${f.sessionToken}`;if(E in Xh)return Xh[E];M3.push(E);while(M3.length>Yc)delete Xh[M3.shift()];let I=`AWS4${f.secretAccessKey}`;for(let F of[s,w,h,GK])I=await fK(r,I,F);return Xh[E]=I},"getSigningKey"),lc=Nr(()=>{M3.length=0,Object.keys(Xh).forEach((r)=>{delete Xh[r]})},"clearCredentialCache"),fK=Nr((r,f,s)=>{const w=new r(f);return w.update(Zc.toUint8Array(s)),w.digest()},"hmac"),V5=Nr(({headers:r},f,s)=>{const w={};for(let h of Object.keys(r).sort()){if(r[h]==null)continue;const $=h.toLowerCase();if($ in Wc||(f==null?void 0:f.has($))||zc.test($)||Sc.test($)){if(!s||s&&!s.has($))continue}w[$]=r[h].trim().replace(/\s+/g," ")}return w},"getCanonicalHeaders"),y1=LU(),LK=Nr(({query:r={}})=>{const f=[],s={};for(let w of Object.keys(r).sort()){if(w.toLowerCase()===Ac)continue;f.push(w);const h=r[w];if(typeof h==="string")s[w]=`${y1.escapeUri(w)}=${y1.escapeUri(h)}`;else if(Array.isArray(h))s[w]=h.slice(0).reduce(($,E)=>$.concat([`${y1.escapeUri(w)}=${y1.escapeUri(E)}`]),[]).sort().join("&")}return f.map((w)=>s[w]).filter((w)=>w).join("&")},"getCanonicalQuery"),Jc=IU(),Qc=j0(),H3=Nr(async({headers:r,body:f},s)=>{for(let w of Object.keys(r))if(w.toLowerCase()===H5)return r[w];if(f==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof f==="string"||ArrayBuffer.isView(f)||Jc.isArrayBuffer(f)){const w=new s;return w.update(Qc.toUint8Array(f)),e0.toHex(await w.digest())}return Xc},"getPayloadHash"),wK=j0(),AK=class r{format(f){const s=[];for(let $ of Object.keys(f)){const E=wK.fromUtf8($);s.push(Uint8Array.from([E.byteLength]),E,this.formatHeaderValue(f[$]))}const w=new Uint8Array(s.reduce(($,E)=>$+E.byteLength,0));let h=0;for(let $ of s)w.set($,h),h+=$.byteLength;return w}formatHeaderValue(f){switch(f.type){case"boolean":return Uint8Array.from([f.value?0:1]);case"byte":return Uint8Array.from([2,f.value]);case"short":const s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,f.value,!1),new Uint8Array(s.buffer);case"integer":const w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,f.value,!1),new Uint8Array(w.buffer);case"long":const h=new Uint8Array(9);return h[0]=5,h.set(f.value.bytes,1),h;case"binary":const $=new DataView(new ArrayBuffer(3+f.value.byteLength));$.setUint8(0,6),$.setUint16(1,f.value.byteLength,!1);const E=new Uint8Array($.buffer);return E.set(f.value,3),E;case"string":const I=wK.fromUtf8(f.value),F=new DataView(new ArrayBuffer(3+I.byteLength));F.setUint8(0,7),F.setUint16(1,I.byteLength,!1);const U=new Uint8Array(F.buffer);return U.set(I,3),U;case"timestamp":const C=new Uint8Array(9);return C[0]=8,C.set(Hc.fromNumber(f.value.valueOf()).bytes,1),C;case"uuid":if(!Bc.test(f.value))throw new Error(`Invalid UUID received: ${f.value}`);const L=new Uint8Array(17);return L[0]=9,L.set(e0.fromHex(f.value.replace(/\-/g,"")),1),L}}};Nr(AK,"HeaderFormatter");var Mc=AK,Bc=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,RK=class r{constructor(f){if(this.bytes=f,f.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(f){if(f>9223372036854776000||f<-9223372036854776000)throw new Error(`${f} is too large (or, if negative, too small) to represent as an Int64`);const s=new Uint8Array(8);for(let w=7,h=Math.abs(Math.round(f));w>-1&&h>0;w--,h/=256)s[w]=h;if(f<0)k5(s);return new r(s)}valueOf(){const f=this.bytes.slice(0),s=f[0]&128;if(s)k5(f);return parseInt(e0.toHex(f),16)*(s?-1:1)}toString(){return String(this.valueOf())}};Nr(RK,"Int64");var Hc=RK;Nr(k5,"negate");var Vc=Nr((r,f)=>{r=r.toLowerCase();for(let s of Object.keys(f))if(r===s.toLowerCase())return!0;return!1},"hasHeader"),WK=G0(),zK=Nr((r,f={})=>{var s;const{headers:w,query:h={}}=WK.HttpRequest.clone(r);for(let $ of Object.keys(w)){const E=$.toLowerCase();if(E.slice(0,6)==="x-amz-"&&!((s=f.unhoistableHeaders)==null?void 0:s.has(E)))h[$]=w[$],delete w[$]}return{...r,headers:w,query:h}},"moveHeadersToQuery"),D5=Nr((r)=>{r=WK.HttpRequest.clone(r);for(let f of Object.keys(r.headers))if(Lc.indexOf(f.toLowerCase())>-1)delete r.headers[f];return r},"prepareRequest"),kc=Nr((r)=>Dc(r).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),Dc=Nr((r)=>{if(typeof r==="number")return new Date(r*1000);if(typeof r==="string"){if(Number(r))return new Date(Number(r)*1000);return new Date(r)}return r},"toDate"),SK=class r{constructor({applyChecksum:f,credentials:s,region:w,service:h,sha256:$,uriEscapePath:E=!0}){this.headerFormatter=new Mc,this.service=h,this.sha256=$,this.uriEscapePath=E,this.applyChecksum=typeof f==="boolean"?f:!0,this.regionProvider=sK.normalizeProvider(w),this.credentialProvider=sK.normalizeProvider(s)}async presign(f,s={}){const{signingDate:w=new Date,expiresIn:h=3600,unsignableHeaders:$,unhoistableHeaders:E,signableHeaders:I,signingRegion:F,signingService:U}=s,C=await this.credentialProvider();this.validateResolvedCredentials(C);const L=F??await this.regionProvider(),{longDate:z,shortDate:S}=Q3(w);if(h>Kc)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Z=B3(S,L,U??this.service),D=zK(D5(f),{unhoistableHeaders:E});if(C.sessionToken)D.query[FK]=C.sessionToken;D.query[Fc]=B5,D.query[Uc]=`${C.accessKeyId}/${Z}`,D.query[EK]=z,D.query[Gc]=h.toString(10);const B=V5(D,$,I);return D.query[Tc]=hK(B),D.query[IK]=await this.getSignature(z,Z,this.getSigningKey(C,L,S,U),this.createCanonicalRequest(D,B,await H3(f,this.sha256))),D}async sign(f,s){if(typeof f==="string")return this.signString(f,s);else if(f.headers&&f.payload)return this.signEvent(f,s);else if(f.message)return this.signMessage(f,s);else return this.signRequest(f,s)}async signEvent({headers:f,payload:s},{signingDate:w=new Date,priorSignature:h,signingRegion:$,signingService:E}){const I=$??await this.regionProvider(),{shortDate:F,longDate:U}=Q3(w),C=B3(F,I,E??this.service),L=await H3({headers:{},body:s},this.sha256),z=new this.sha256;z.update(f);const S=e0.toHex(await z.digest()),Z=[Pc,U,C,h,S,L].join("\n");return this.signString(Z,{signingDate:w,signingRegion:I,signingService:E})}async signMessage(f,{signingDate:s=new Date,signingRegion:w,signingService:h}){return this.signEvent({headers:this.headerFormatter.format(f.message.headers),payload:f.message.body},{signingDate:s,signingRegion:w,signingService:h,priorSignature:f.priorSignature}).then((E)=>{return{message:f.message,signature:E}})}async signString(f,{signingDate:s=new Date,signingRegion:w,signingService:h}={}){const $=await this.credentialProvider();this.validateResolvedCredentials($);const E=w??await this.regionProvider(),{shortDate:I}=Q3(s),F=new this.sha256(await this.getSigningKey($,E,I,h));return F.update(M5.toUint8Array(f)),e0.toHex(await F.digest())}async signRequest(f,{signingDate:s=new Date,signableHeaders:w,unsignableHeaders:h,signingRegion:$,signingService:E}={}){const I=await this.credentialProvider();this.validateResolvedCredentials(I);const F=$??await this.regionProvider(),U=D5(f),{longDate:C,shortDate:L}=Q3(s),z=B3(L,F,E??this.service);if(U.headers[TK]=C,I.sessionToken)U.headers[Rc]=I.sessionToken;const S=await H3(U,this.sha256);if(!Vc(H5,U.headers)&&this.applyChecksum)U.headers[H5]=S;const Z=V5(U,h,w),D=await this.getSignature(C,z,this.getSigningKey(I,F,L,E),this.createCanonicalRequest(U,Z,S));return U.headers[UK]=`${B5} Credential=${I.accessKeyId}/${z}, SignedHeaders=${hK(Z)}, Signature=${D}`,U}createCanonicalRequest(f,s,w){const h=Object.keys(s).sort();return`${f.method}
10
+ More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var HY=j((q$r,VY)=>{function PU(r){for(let f=0;f<8;f++)r[f]^=255;for(let f=7;f>-1;f--)if(r[f]++,r[f]!==0)break}var{defineProperty:B3,getOwnPropertyDescriptor:KO,getOwnPropertyNames:ZO}=Object,MO=Object.prototype.hasOwnProperty,mr=(r,f)=>B3(r,"name",{value:f,configurable:!0}),JO=(r,f)=>{for(var s in f)B3(r,s,{get:f[s],enumerable:!0})},QO=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of ZO(f))if(!MO.call(r,h)&&h!==s)B3(r,h,{get:()=>f[h],enumerable:!(w=KO(f,h))||w.enumerable})}return r},BO=(r)=>QO(B3({},"__esModule",{value:!0}),r),RY={};JO(RY,{SignatureV4:()=>tO,clearCredentialCache:()=>_O,createScope:()=>J3,getCanonicalHeaders:()=>SU,getCanonicalQuery:()=>ZY,getPayloadHash:()=>Q3,getSigningKey:()=>KY,moveHeadersToQuery:()=>BY,prepareRequest:()=>XU});VY.exports=BO(RY);var GY=T1(),RU=y0(),lO="X-Amz-Algorithm",VO="X-Amz-Credential",WY="X-Amz-Date",HO="X-Amz-SignedHeaders",DO="X-Amz-Expires",zY="X-Amz-Signature",SY="X-Amz-Security-Token",PY="authorization",XY=WY.toLowerCase(),kO="date",NO=[PY,XY,kO],yO=zY.toLowerCase(),zU="x-amz-content-sha256",qO=SY.toLowerCase(),mO={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},vO=/^proxy-/,jO=/^sec-/,WU="AWS4-HMAC-SHA256",iO="AWS4-HMAC-SHA256-PAYLOAD",dO="UNSIGNED-PAYLOAD",OO=50,YY="aws4_request",bO=604800,O0=z5(),cO=y0(),Wh={},M3=[],J3=mr((r,f,s)=>`${r}/${f}/${s}/${YY}`,"createScope"),KY=mr(async(r,f,s,w,h)=>{const E=await CY(r,f.secretAccessKey,f.accessKeyId),$=`${s}:${w}:${h}:${O0.toHex(E)}:${f.sessionToken}`;if($ in Wh)return Wh[$];M3.push($);while(M3.length>OO)delete Wh[M3.shift()];let I=`AWS4${f.secretAccessKey}`;for(let F of[s,w,h,YY])I=await CY(r,I,F);return Wh[$]=I},"getSigningKey"),_O=mr(()=>{M3.length=0,Object.keys(Wh).forEach((r)=>{delete Wh[r]})},"clearCredentialCache"),CY=mr((r,f,s)=>{const w=new r(f);return w.update(cO.toUint8Array(s)),w.digest()},"hmac"),SU=mr(({headers:r},f,s)=>{const w={};for(let h of Object.keys(r).sort()){if(r[h]==null)continue;const E=h.toLowerCase();if(E in mO||(f==null?void 0:f.has(E))||vO.test(E)||jO.test(E)){if(!s||s&&!s.has(E))continue}w[E]=r[h].trim().replace(/\s+/g," ")}return w},"getCanonicalHeaders"),D1=T5(),ZY=mr(({query:r={}})=>{const f=[],s={};for(let w of Object.keys(r).sort()){if(w.toLowerCase()===yO)continue;f.push(w);const h=r[w];if(typeof h==="string")s[w]=`${D1.escapeUri(w)}=${D1.escapeUri(h)}`;else if(Array.isArray(h))s[w]=h.slice(0).reduce((E,$)=>E.concat([`${D1.escapeUri(w)}=${D1.escapeUri($)}`]),[]).sort().join("&")}return f.map((w)=>s[w]).filter((w)=>w).join("&")},"getCanonicalQuery"),gO=h5(),xO=y0(),Q3=mr(async({headers:r,body:f},s)=>{for(let w of Object.keys(r))if(w.toLowerCase()===zU)return r[w];if(f==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof f==="string"||ArrayBuffer.isView(f)||gO.isArrayBuffer(f)){const w=new s;return w.update(xO.toUint8Array(f)),O0.toHex(await w.digest())}return dO},"getPayloadHash"),LY=y0(),MY=class r{format(f){const s=[];for(let E of Object.keys(f)){const $=LY.fromUtf8(E);s.push(Uint8Array.from([$.byteLength]),$,this.formatHeaderValue(f[E]))}const w=new Uint8Array(s.reduce((E,$)=>E+$.byteLength,0));let h=0;for(let E of s)w.set(E,h),h+=E.byteLength;return w}formatHeaderValue(f){switch(f.type){case"boolean":return Uint8Array.from([f.value?0:1]);case"byte":return Uint8Array.from([2,f.value]);case"short":const s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,f.value,!1),new Uint8Array(s.buffer);case"integer":const w=new DataView(new ArrayBuffer(5));return w.setUint8(0,4),w.setInt32(1,f.value,!1),new Uint8Array(w.buffer);case"long":const h=new Uint8Array(9);return h[0]=5,h.set(f.value.bytes,1),h;case"binary":const E=new DataView(new ArrayBuffer(3+f.value.byteLength));E.setUint8(0,6),E.setUint16(1,f.value.byteLength,!1);const $=new Uint8Array(E.buffer);return $.set(f.value,3),$;case"string":const I=LY.fromUtf8(f.value),F=new DataView(new ArrayBuffer(3+I.byteLength));F.setUint8(0,7),F.setUint16(1,I.byteLength,!1);const U=new Uint8Array(F.buffer);return U.set(I,3),U;case"timestamp":const C=new Uint8Array(9);return C[0]=8,C.set(oO.fromNumber(f.value.valueOf()).bytes,1),C;case"uuid":if(!nO.test(f.value))throw new Error(`Invalid UUID received: ${f.value}`);const L=new Uint8Array(17);return L[0]=9,L.set(O0.fromHex(f.value.replace(/\-/g,"")),1),L}}};mr(MY,"HeaderFormatter");var eO=MY,nO=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,JY=class r{constructor(f){if(this.bytes=f,f.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(f){if(f>9223372036854776000||f<-9223372036854776000)throw new Error(`${f} is too large (or, if negative, too small) to represent as an Int64`);const s=new Uint8Array(8);for(let w=7,h=Math.abs(Math.round(f));w>-1&&h>0;w--,h/=256)s[w]=h;if(f<0)PU(s);return new r(s)}valueOf(){const f=this.bytes.slice(0),s=f[0]&128;if(s)PU(f);return parseInt(O0.toHex(f),16)*(s?-1:1)}toString(){return String(this.valueOf())}};mr(JY,"Int64");var oO=JY;mr(PU,"negate");var aO=mr((r,f)=>{r=r.toLowerCase();for(let s of Object.keys(f))if(r===s.toLowerCase())return!0;return!1},"hasHeader"),QY=T0(),BY=mr((r,f={})=>{var s;const{headers:w,query:h={}}=QY.HttpRequest.clone(r);for(let E of Object.keys(w)){const $=E.toLowerCase();if($.slice(0,6)==="x-amz-"&&!((s=f.unhoistableHeaders)==null?void 0:s.has($)))h[E]=w[E],delete w[E]}return{...r,headers:w,query:h}},"moveHeadersToQuery"),XU=mr((r)=>{r=QY.HttpRequest.clone(r);for(let f of Object.keys(r.headers))if(NO.indexOf(f.toLowerCase())>-1)delete r.headers[f];return r},"prepareRequest"),pO=mr((r)=>uO(r).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),uO=mr((r)=>{if(typeof r==="number")return new Date(r*1000);if(typeof r==="string"){if(Number(r))return new Date(Number(r)*1000);return new Date(r)}return r},"toDate"),lY=class r{constructor({applyChecksum:f,credentials:s,region:w,service:h,sha256:E,uriEscapePath:$=!0}){this.headerFormatter=new eO,this.service=h,this.sha256=E,this.uriEscapePath=$,this.applyChecksum=typeof f==="boolean"?f:!0,this.regionProvider=GY.normalizeProvider(w),this.credentialProvider=GY.normalizeProvider(s)}async presign(f,s={}){const{signingDate:w=new Date,expiresIn:h=3600,unsignableHeaders:E,unhoistableHeaders:$,signableHeaders:I,signingRegion:F,signingService:U}=s,C=await this.credentialProvider();this.validateResolvedCredentials(C);const L=F??await this.regionProvider(),{longDate:z,shortDate:S}=Z3(w);if(h>bO)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const K=J3(S,L,U??this.service),k=BY(XU(f),{unhoistableHeaders:$});if(C.sessionToken)k.query[SY]=C.sessionToken;k.query[lO]=WU,k.query[VO]=`${C.accessKeyId}/${K}`,k.query[WY]=z,k.query[DO]=h.toString(10);const l=SU(k,E,I);return k.query[HO]=AY(l),k.query[zY]=await this.getSignature(z,K,this.getSigningKey(C,L,S,U),this.createCanonicalRequest(k,l,await Q3(f,this.sha256))),k}async sign(f,s){if(typeof f==="string")return this.signString(f,s);else if(f.headers&&f.payload)return this.signEvent(f,s);else if(f.message)return this.signMessage(f,s);else return this.signRequest(f,s)}async signEvent({headers:f,payload:s},{signingDate:w=new Date,priorSignature:h,signingRegion:E,signingService:$}){const I=E??await this.regionProvider(),{shortDate:F,longDate:U}=Z3(w),C=J3(F,I,$??this.service),L=await Q3({headers:{},body:s},this.sha256),z=new this.sha256;z.update(f);const S=O0.toHex(await z.digest()),K=[iO,U,C,h,S,L].join("\n");return this.signString(K,{signingDate:w,signingRegion:I,signingService:$})}async signMessage(f,{signingDate:s=new Date,signingRegion:w,signingService:h}){return this.signEvent({headers:this.headerFormatter.format(f.message.headers),payload:f.message.body},{signingDate:s,signingRegion:w,signingService:h,priorSignature:f.priorSignature}).then(($)=>{return{message:f.message,signature:$}})}async signString(f,{signingDate:s=new Date,signingRegion:w,signingService:h}={}){const E=await this.credentialProvider();this.validateResolvedCredentials(E);const $=w??await this.regionProvider(),{shortDate:I}=Z3(s),F=new this.sha256(await this.getSigningKey(E,$,I,h));return F.update(RU.toUint8Array(f)),O0.toHex(await F.digest())}async signRequest(f,{signingDate:s=new Date,signableHeaders:w,unsignableHeaders:h,signingRegion:E,signingService:$}={}){const I=await this.credentialProvider();this.validateResolvedCredentials(I);const F=E??await this.regionProvider(),U=XU(f),{longDate:C,shortDate:L}=Z3(s),z=J3(L,F,$??this.service);if(U.headers[XY]=C,I.sessionToken)U.headers[qO]=I.sessionToken;const S=await Q3(U,this.sha256);if(!aO(zU,U.headers)&&this.applyChecksum)U.headers[zU]=S;const K=SU(U,h,w),k=await this.getSignature(C,z,this.getSigningKey(I,F,L,$),this.createCanonicalRequest(U,K,S));return U.headers[PY]=`${WU} Credential=${I.accessKeyId}/${z}, SignedHeaders=${AY(K)}, Signature=${k}`,U}createCanonicalRequest(f,s,w){const h=Object.keys(s).sort();return`${f.method}
13
11
  ${this.getCanonicalPath(f)}
14
- ${LK(f)}
15
- ${h.map(($)=>`${$}:${s[$]}`).join("\n")}
12
+ ${ZY(f)}
13
+ ${h.map((E)=>`${E}:${s[E]}`).join("\n")}
16
14
 
17
15
  ${h.join(";")}
18
- ${w}`}async createStringToSign(f,s,w){const h=new this.sha256;h.update(M5.toUint8Array(w));const $=await h.digest();return`${B5}
16
+ ${w}`}async createStringToSign(f,s,w){const h=new this.sha256;h.update(RU.toUint8Array(w));const E=await h.digest();return`${WU}
19
17
  ${f}
20
18
  ${s}
21
- ${e0.toHex($)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){const s=[];for(let $ of f.split("/")){if(($==null?void 0:$.length)===0)continue;if($===".")continue;if($==="..")s.pop();else s.push($)}const w=`${(f==null?void 0:f.startsWith("/"))?"/":""}${s.join("/")}${s.length>0&&(f==null?void 0:f.endsWith("/"))?"/":""}`;return y1.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,s,w,h){const $=await this.createStringToSign(f,s,h),E=new this.sha256(await w);return E.update(M5.toUint8Array($)),e0.toHex(await E.digest())}getSigningKey(f,s,w,h){return CK(this.sha256,f,w,s,h||this.service)}validateResolvedCredentials(f){if(typeof f!=="object"||typeof f.accessKeyId!=="string"||typeof f.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};Nr(SK,"SignatureV4");var ic=SK,Q3=Nr((r)=>{const f=kc(r).replace(/[\-:]/g,"");return{longDate:f,shortDate:f.slice(0,8)}},"formatDate"),hK=Nr((r)=>Object.keys(r).sort().join(";"),"getCanonicalHeaderList")});var VK=v((A2r,HK)=>{var{defineProperty:k3,getOwnPropertyDescriptor:yc,getOwnPropertyNames:mc}=Object,Nc=Object.prototype.hasOwnProperty,Ss=(r,f)=>k3(r,"name",{value:f,configurable:!0}),qc=(r,f)=>{for(var s in f)k3(r,s,{get:f[s],enumerable:!0})},vc=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of mc(f))if(!Nc.call(r,h)&&h!==s)k3(r,h,{get:()=>f[h],enumerable:!(w=yc(f,h))||w.enumerable})}return r},jc=(r)=>vc(k3({},"__esModule",{value:!0}),r),JK={};qc(JK,{AWSSDKSigV4Signer:()=>bc,AwsSdkSigV4ASigner:()=>_c,AwsSdkSigV4Signer:()=>m5,NODE_SIGV4A_CONFIG_OPTIONS:()=>nc,resolveAWSSDKSigV4Config:()=>oc,resolveAwsSdkSigV4AConfig:()=>ec,resolveAwsSdkSigV4Config:()=>BK,validateSigningProperties:()=>y5});HK.exports=jc(JK);var dc=G0(),Oc=G0(),YK=Ss((r)=>{var f,s;return Oc.HttpResponse.isInstance(r)?((f=r.headers)==null?void 0:f.date)??((s=r.headers)==null?void 0:s.Date):void 0},"getDateHeader"),i5=Ss((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),cc=Ss((r,f)=>Math.abs(i5(f).getTime()-r)>=300000,"isClockSkewed"),KK=Ss((r,f)=>{const s=Date.parse(r);if(cc(s,f))return s-Date.now();return f},"getUpdatedSystemClockOffset"),m1=Ss((r,f)=>{if(!f)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return f},"throwSigningPropertyError"),y5=Ss(async(r)=>{var f,s,w;const h=m1("context",r.context),$=m1("config",r.config),E=(w=(s=(f=h.endpointV2)==null?void 0:f.properties)==null?void 0:s.authSchemes)==null?void 0:w[0],F=await m1("signer",$.signer)(E),U=r==null?void 0:r.signingRegion,C=r==null?void 0:r.signingRegionSet,L=r==null?void 0:r.signingName;return{config:$,signer:F,signingRegion:U,signingRegionSet:C,signingName:L}},"validateSigningProperties"),QK=class r{async sign(f,s,w){var h;if(!dc.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const $=await y5(w),{config:E,signer:I}=$;let{signingRegion:F,signingName:U}=$;const C=w.context;if(((h=C==null?void 0:C.authSchemes)==null?void 0:h.length)??0>1){const[z,S]=C.authSchemes;if((z==null?void 0:z.name)==="sigv4a"&&(S==null?void 0:S.name)==="sigv4")F=(S==null?void 0:S.signingRegion)??F,U=(S==null?void 0:S.signingName)??U}return await I.sign(f,{signingDate:i5(E.systemClockOffset),signingRegion:F,signingService:U})}errorHandler(f){return(s)=>{const w=s.ServerTime??YK(s.$response);if(w){const h=m1("config",f.config),$=h.systemClockOffset;if(h.systemClockOffset=KK(w,h.systemClockOffset),h.systemClockOffset!==$&&s.$metadata)s.$metadata.clockSkewCorrected=!0}throw s}}successHandler(f,s){const w=YK(f);if(w){const h=m1("config",s.config);h.systemClockOffset=KK(w,h.systemClockOffset)}}};Ss(QK,"AwsSdkSigV4Signer");var m5=QK,bc=m5,gc=G0(),MK=class r extends m5{async sign(f,s,w){var h;if(!gc.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:$,signer:E,signingRegion:I,signingRegionSet:F,signingName:U}=await y5(w),L=(await((h=$.sigv4aSigningRegionSet)==null?void 0:h.call($))??F??[I]).join(",");return await E.sign(f,{signingDate:i5($.systemClockOffset),signingRegion:L,signingService:U})}};Ss(MK,"AwsSdkSigV4ASigner");var _c=MK,xc=Or(),ZK=mF(),ec=Ss((r)=>{return r.sigv4aSigningRegionSet=xc.normalizeProvider(r.sigv4aSigningRegionSet),r},"resolveAwsSdkSigV4AConfig"),nc={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET)return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((f)=>f.trim());throw new ZK.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(r){if(r.sigv4a_signing_region_set)return(r.sigv4a_signing_region_set??"").split(",").map((f)=>f.trim());throw new ZK.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Vw=Or(),lK=XK(),BK=Ss((r)=>{let f;if(r.credentials)f=Vw.memoizeIdentityProvider(r.credentials,Vw.isIdentityExpired,Vw.doesIdentityRequireRefresh);if(!f)if(r.credentialDefaultProvider)f=Vw.normalizeProvider(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})));else f=Ss(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:s=!0,systemClockOffset:w=r.systemClockOffset||0,sha256:h}=r;let $;if(r.signer)$=Vw.normalizeProvider(r.signer);else if(r.regionInfoProvider)$=Ss(()=>Vw.normalizeProvider(r.region)().then(async(E)=>[await r.regionInfoProvider(E,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},E]).then(([E,I])=>{const{signingRegion:F,signingService:U}=E;r.signingRegion=r.signingRegion||F||I,r.signingName=r.signingName||U||r.serviceId;const C={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||lK.SignatureV4)(C)}),"signer");else $=Ss(async(E)=>{E=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await Vw.normalizeProvider(r.region)(),properties:{}},E);const{signingRegion:I,signingName:F}=E;r.signingRegion=r.signingRegion||I,r.signingName=r.signingName||F||r.serviceId;const U={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||lK.SignatureV4)(U)},"signer");return{...r,systemClockOffset:w,signingEscapePath:s,credentials:f,signer:$}},"resolveAwsSdkSigV4Config"),oc=BK});var D3=v((rb)=>{var ac=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",kK="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+ac+"]*",pc=new RegExp("^"+kK+"$"),uc=function(r,f){const s=[];let w=f.exec(r);while(w){const h=[];h.startIndex=f.lastIndex-w[0].length;const $=w.length;for(let E=0;E<$;E++)h.push(w[E]);s.push(h),w=f.exec(r)}return s},tc=function(r){const f=pc.exec(r);return!(f===null||typeof f==="undefined")};rb.isExist=function(r){return typeof r!=="undefined"};rb.isEmptyObject=function(r){return Object.keys(r).length===0};rb.merge=function(r,f,s){if(f){const w=Object.keys(f),h=w.length;for(let $=0;$<h;$++)if(s==="strict")r[w[$]]=[f[w[$]]];else r[w[$]]=f[w[$]]}};rb.getValue=function(r){if(rb.isExist(r))return r;else return""};rb.isName=tc;rb.getAllMatches=uc;rb.nameRegexp=kK});var q5=v((Wb)=>{function iK(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function yK(r,f){const s=f;for(;f<r.length;f++)if(r[f]=="?"||r[f]==" "){const w=r.substr(s,f-s);if(f>5&&w==="xml")return Mr("InvalidXml","XML declaration allowed only at the start of the document.",rs(r,f));else if(r[f]=="?"&&r[f+1]==">"){f++;break}else continue}return f}function mK(r,f){if(r.length>f+5&&r[f+1]==="-"&&r[f+2]==="-"){for(f+=3;f<r.length;f++)if(r[f]==="-"&&r[f+1]==="-"&&r[f+2]===">"){f+=2;break}}else if(r.length>f+8&&r[f+1]==="D"&&r[f+2]==="O"&&r[f+3]==="C"&&r[f+4]==="T"&&r[f+5]==="Y"&&r[f+6]==="P"&&r[f+7]==="E"){let s=1;for(f+=8;f<r.length;f++)if(r[f]==="<")s++;else if(r[f]===">"){if(s--,s===0)break}}else if(r.length>f+9&&r[f+1]==="["&&r[f+2]==="C"&&r[f+3]==="D"&&r[f+4]==="A"&&r[f+5]==="T"&&r[f+6]==="A"&&r[f+7]==="["){for(f+=8;f<r.length;f++)if(r[f]==="]"&&r[f+1]==="]"&&r[f+2]===">"){f+=2;break}}return f}function Tb(r,f){let s="",w="",h=!1;for(;f<r.length;f++){if(r[f]===Fb||r[f]===Ub)if(w==="")w=r[f];else if(w!==r[f]);else w="";else if(r[f]===">"){if(w===""){h=!0;break}}s+=r[f]}if(w!=="")return!1;return{value:s,index:f,tagClosed:h}}function NK(r,f){const s=N5.getAllMatches(r,Gb),w={};for(let h=0;h<s.length;h++){if(s[h][1].length===0)return Mr("InvalidAttr","Attribute '"+s[h][2]+"' has no space in starting.",N1(s[h]));else if(s[h][3]!==void 0&&s[h][4]===void 0)return Mr("InvalidAttr","Attribute '"+s[h][2]+"' is without value.",N1(s[h]));else if(s[h][3]===void 0&&!f.allowBooleanAttributes)return Mr("InvalidAttr","boolean attribute '"+s[h][2]+"' is not allowed.",N1(s[h]));const $=s[h][2];if(!Ab($))return Mr("InvalidAttr","Attribute '"+$+"' is an invalid name.",N1(s[h]));if(!w.hasOwnProperty($))w[$]=1;else return Mr("InvalidAttr","Attribute '"+$+"' is repeated.",N1(s[h]))}return!0}function Cb(r,f){let s=/\d/;if(r[f]==="x")f++,s=/[\da-fA-F]/;for(;f<r.length;f++){if(r[f]===";")return f;if(!r[f].match(s))break}return-1}function Lb(r,f){if(f++,r[f]===";")return-1;if(r[f]==="#")return f++,Cb(r,f);let s=0;for(;f<r.length;f++,s++){if(r[f].match(/\w/)&&s<20)continue;if(r[f]===";")break;return-1}return f}function Mr(r,f,s){return{err:{code:r,msg:f,line:s.line||s,col:s.col}}}function Ab(r){return N5.isName(r)}function Rb(r){return N5.isName(r)}function rs(r,f){const s=r.substring(0,f).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function N1(r){return r.startIndex+r[1].length}var N5=D3(),Ib={allowBooleanAttributes:!1,unpairedTags:[]};Wb.validate=function(r,f){f=Object.assign({},Ib,f);const s=[];let w=!1,h=!1;if(r[0]==="\uFEFF")r=r.substr(1);for(let $=0;$<r.length;$++)if(r[$]==="<"&&r[$+1]==="?"){if($+=2,$=yK(r,$),$.err)return $}else if(r[$]==="<"){let E=$;if($++,r[$]==="!"){$=mK(r,$);continue}else{let I=!1;if(r[$]==="/")I=!0,$++;let F="";for(;$<r.length&&r[$]!==">"&&r[$]!==" "&&r[$]!=="\t"&&r[$]!=="\n"&&r[$]!=="\r";$++)F+=r[$];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),$--;if(!Rb(F)){let L;if(F.trim().length===0)L="Invalid space after '<'.";else L="Tag '"+F+"' is an invalid name.";return Mr("InvalidTag",L,rs(r,$))}const U=Tb(r,$);if(U===!1)return Mr("InvalidAttr","Attributes for '"+F+"' have open quote.",rs(r,$));let C=U.value;if($=U.index,C[C.length-1]==="/"){const L=$-C.length;C=C.substring(0,C.length-1);const z=NK(C,f);if(z===!0)w=!0;else return Mr(z.err.code,z.err.msg,rs(r,L+z.err.line))}else if(I)if(!U.tagClosed)return Mr("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",rs(r,$));else if(C.trim().length>0)return Mr("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",rs(r,E));else if(s.length===0)return Mr("InvalidTag","Closing tag '"+F+"' has not been opened.",rs(r,E));else{const L=s.pop();if(F!==L.tagName){let z=rs(r,L.tagStartPos);return Mr("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+F+"'.",rs(r,E))}if(s.length==0)h=!0}else{const L=NK(C,f);if(L!==!0)return Mr(L.err.code,L.err.msg,rs(r,$-C.length+L.err.line));if(h===!0)return Mr("InvalidXml","Multiple possible root nodes found.",rs(r,$));else if(f.unpairedTags.indexOf(F)!==-1);else s.push({tagName:F,tagStartPos:E});w=!0}for($++;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="!"){$++,$=mK(r,$);continue}else if(r[$+1]==="?"){if($=yK(r,++$),$.err)return $}else break;else if(r[$]==="&"){const L=Lb(r,$);if(L==-1)return Mr("InvalidChar","char '&' is not expected.",rs(r,$));$=L}else if(h===!0&&!iK(r[$]))return Mr("InvalidXml","Extra text at the end",rs(r,$));if(r[$]==="<")$--}}else{if(iK(r[$]))continue;return Mr("InvalidChar","char '"+r[$]+"' is not expected.",rs(r,$))}if(!w)return Mr("InvalidXml","Start tag expected.",1);else if(s.length==1)return Mr("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",rs(r,s[0].tagStartPos));else if(s.length>0)return Mr("InvalidXml","Invalid '"+JSON.stringify(s.map(($)=>$.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var Fb='"',Ub="'",Gb=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var vK=v((Pb)=>{var qK={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,f,s){return r}},Sb=function(r){return Object.assign({},qK,r)};Pb.buildOptions=Sb;Pb.defaultOptions=qK});var OK=v((S2r,dK)=>{class jK{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,f){if(r==="__proto__")r="#__proto__";this.child.push({[r]:f})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0)this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]});else this.child.push({[r.tagname]:r.child})}}dK.exports=jK});var bK=v((P2r,cK)=>{function Zb(r,f){const s={};if(r[f+3]==="O"&&r[f+4]==="C"&&r[f+5]==="T"&&r[f+6]==="Y"&&r[f+7]==="P"&&r[f+8]==="E"){f=f+9;let w=1,h=!1,$=!1,E="";for(;f<r.length;f++)if(r[f]==="<"&&!$){if(h&&Qb(r,f)){if(f+=7,[entityName,val,f]=lb(r,f+1),val.indexOf("&")===-1)s[Vb(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(h&&Mb(r,f))f+=8;else if(h&&Bb(r,f))f+=8;else if(h&&Hb(r,f))f+=9;else if(Jb)$=!0;else throw new Error("Invalid DOCTYPE");w++,E=""}else if(r[f]===">"){if($){if(r[f-1]==="-"&&r[f-2]==="-")$=!1,w--}else w--;if(w===0)break}else if(r[f]==="[")h=!0;else E+=r[f];if(w!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:s,i:f}}function lb(r,f){let s="";for(;f<r.length&&(r[f]!=="'"&&r[f]!=='"');f++)s+=r[f];if(s=s.trim(),s.indexOf(" ")!==-1)throw new Error("External entites are not supported");const w=r[f++];let h="";for(;f<r.length&&r[f]!==w;f++)h+=r[f];return[s,h,f]}function Jb(r,f){if(r[f+1]==="!"&&r[f+2]==="-"&&r[f+3]==="-")return!0;return!1}function Qb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="N"&&r[f+4]==="T"&&r[f+5]==="I"&&r[f+6]==="T"&&r[f+7]==="Y")return!0;return!1}function Mb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="L"&&r[f+4]==="E"&&r[f+5]==="M"&&r[f+6]==="E"&&r[f+7]==="N"&&r[f+8]==="T")return!0;return!1}function Bb(r,f){if(r[f+1]==="!"&&r[f+2]==="A"&&r[f+3]==="T"&&r[f+4]==="T"&&r[f+5]==="L"&&r[f+6]==="I"&&r[f+7]==="S"&&r[f+8]==="T")return!0;return!1}function Hb(r,f){if(r[f+1]==="!"&&r[f+2]==="N"&&r[f+3]==="O"&&r[f+4]==="T"&&r[f+5]==="A"&&r[f+6]==="T"&&r[f+7]==="I"&&r[f+8]==="O"&&r[f+9]==="N")return!0;return!1}function Vb(r){if(Kb.isName(r))return r;else throw new Error(`Invalid entity name ${r}`)}var Kb=D3();cK.exports=Zb});var _K=v((X2r,gK)=>{function yb(r,f={}){if(f=Object.assign({},ib,f),!r||typeof r!=="string")return r;let s=r.trim();if(f.skipLike!==void 0&&f.skipLike.test(s))return r;else if(f.hex&&kb.test(s))return Number.parseInt(s,16);else{const w=Db.exec(s);if(w){const h=w[1],$=w[2];let E=mb(w[3]);const I=w[4]||w[6];if(!f.leadingZeros&&$.length>0&&h&&s[2]!==".")return r;else if(!f.leadingZeros&&$.length>0&&!h&&s[1]!==".")return r;else{const F=Number(s),U=""+F;if(U.search(/[eE]/)!==-1)if(f.eNotation)return F;else return r;else if(I)if(f.eNotation)return F;else return r;else if(s.indexOf(".")!==-1)if(U==="0"&&E==="")return F;else if(U===E)return F;else if(h&&U==="-"+E)return F;else return r;if($)if(E===U)return F;else if(h+E===U)return F;else return r;if(s===U)return F;else if(s===h+U)return F;return r}}else return r}}function mb(r){if(r&&r.indexOf(".")!==-1){if(r=r.replace(/0+$/,""),r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}var kb=/^[-+]?0x[a-fA-F0-9]+$/,Db=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var ib={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};gK.exports=yb});var oK=v((Y2r,nK)=>{function vb(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];this.lastEntities[w]={regex:new RegExp("&"+w+";","g"),val:r[w]}}}function jb(r,f,s,w,h,$,E){if(r!==void 0){if(this.options.trimValues&&!w)r=r.trim();if(r.length>0){if(!E)r=this.replaceEntitiesValue(r);const I=this.options.tagValueProcessor(f,r,s,h,$);if(I===null||I===void 0)return r;else if(typeof I!==typeof r||I!==r)return I;else if(this.options.trimValues)return j5(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return j5(r,this.options.parseTagValue,this.options.numberParseOptions);else return r}}}function db(r){if(this.options.removeNSPrefix){const f=r.split(":"),s=r.charAt(0)==="/"?"/":"";if(f[0]==="xmlns")return"";if(f.length===2)r=s+f[1]}return r}function cb(r,f,s){if(!this.options.ignoreAttributes&&typeof r==="string"){const w=xK.getAllMatches(r,Ob),h=w.length,$={};for(let E=0;E<h;E++){const I=this.resolveNameSpace(w[E][1]);let F=w[E][4],U=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)U=this.options.transformAttributeName(U);if(U==="__proto__")U="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const C=this.options.attributeValueProcessor(I,F,f);if(C===null||C===void 0)$[U]=F;else if(typeof C!==typeof F||C!==F)$[U]=C;else $[U]=j5(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)$[U]=!0}}if(!Object.keys($).length)return;if(this.options.attributesGroupName){const E={};return E[this.options.attributesGroupName]=$,E}return $}}function gb(r,f,s){const w=this.options.updateTag(f.tagname,s,f[":@"]);if(w===!1);else if(typeof w==="string")f.tagname=w,r.addChild(f);else r.addChild(f)}function xb(r,f,s,w){if(r){if(w===void 0)w=Object.keys(f.child).length===0;if(r=this.parseTextData(r,f.tagname,s,!1,f[":@"]?Object.keys(f[":@"]).length!==0:!1,w),r!==void 0&&r!=="")f.add(this.options.textNodeName,r);r=""}return r}function eb(r,f,s){const w="*."+s;for(let h in r){const $=r[h];if(w===$||f===$)return!0}return!1}function nb(r,f,s=">"){let w,h="";for(let $=f;$<r.length;$++){let E=r[$];if(w){if(E===w)w=""}else if(E==='"'||E==="'")w=E;else if(E===s[0])if(s[1]){if(r[$+1]===s[1])return{data:h,index:$}}else return{data:h,index:$};else if(E==="\t")E=" ";h+=E}}function kw(r,f,s,w){const h=r.indexOf(f,s);if(h===-1)throw new Error(w);else return h+f.length-1}function v5(r,f,s,w=">"){const h=nb(r,f+1,w);if(!h)return;let $=h.data;const E=h.index,I=$.search(/\s/);let F=$,U=!0;if(I!==-1)F=$.substring(0,I),$=$.substring(I+1).trimStart();const C=F;if(s){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1),U=F!==h.data.substr(L+1)}return{tagName:F,tagExp:$,closeIndex:E,attrExpPresent:U,rawTagName:C}}function ob(r,f,s){const w=s;let h=1;for(;s<r.length;s++)if(r[s]==="<")if(r[s+1]==="/"){const $=kw(r,">",s,`${f} is not closed`);if(r.substring(s+2,$).trim()===f){if(h--,h===0)return{tagContent:r.substring(w,s),i:$}}s=$}else if(r[s+1]==="?")s=kw(r,"?>",s+1,"StopNode is not closed.");else if(r.substr(s+1,3)==="!--")s=kw(r,"-->",s+3,"StopNode is not closed.");else if(r.substr(s+1,2)==="![")s=kw(r,"]]>",s,"StopNode is not closed.")-2;else{const $=v5(r,s,">");if($){if(($&&$.tagName)===f&&$.tagExp[$.tagExp.length-1]!=="/")h++;s=$.closeIndex}}}function j5(r,f,s){if(f&&typeof r==="string"){const w=r.trim();if(w==="true")return!0;else if(w==="false")return!1;else return qb(r,s)}else if(xK.isExist(r))return r;else return""}var xK=D3(),q1=OK(),Nb=bK(),qb=_K();class eK{constructor(r){this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,16))}},this.addExternalEntities=vb,this.parseXml=bb,this.parseTextData=jb,this.resolveNameSpace=db,this.buildAttributesMap=cb,this.isItStopNode=eb,this.replaceEntitiesValue=_b,this.readStopNodeData=ob,this.saveTextToParentTag=xb,this.addChild=gb}}var Ob=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),bb=function(r){r=r.replace(/\r\n?/g,"\n");const f=new q1("!xml");let s=f,w="",h="";for(let $=0;$<r.length;$++)if(r[$]==="<")if(r[$+1]==="/"){const I=kw(r,">",$,"Closing Tag is not closed.");let F=r.substring($+2,I).trim();if(this.options.removeNSPrefix){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(s)w=this.saveTextToParentTag(w,s,h);const U=h.substring(h.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let C=0;if(U&&this.options.unpairedTags.indexOf(U)!==-1)C=h.lastIndexOf(".",h.lastIndexOf(".")-1),this.tagsNodeStack.pop();else C=h.lastIndexOf(".");h=h.substring(0,C),s=this.tagsNodeStack.pop(),w="",$=I}else if(r[$+1]==="?"){let I=v5(r,$,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(w=this.saveTextToParentTag(w,s,h),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{const F=new q1(I.tagName);if(F.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)F[":@"]=this.buildAttributesMap(I.tagExp,h,I.tagName);this.addChild(s,F,h)}$=I.closeIndex+1}else if(r.substr($+1,3)==="!--"){const I=kw(r,"-->",$+4,"Comment is not closed.");if(this.options.commentPropName){const F=r.substring($+4,I-2);w=this.saveTextToParentTag(w,s,h),s.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}$=I}else if(r.substr($+1,2)==="!D"){const I=Nb(r,$);this.docTypeEntities=I.entities,$=I.i}else if(r.substr($+1,2)==="!["){const I=kw(r,"]]>",$,"CDATA is not closed.")-2,F=r.substring($+9,I);w=this.saveTextToParentTag(w,s,h);let U=this.parseTextData(F,s.tagname,h,!0,!1,!0,!0);if(U==null)U="";if(this.options.cdataPropName)s.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else s.add(this.options.textNodeName,U);$=I+2}else{let I=v5(r,$,this.options.removeNSPrefix),F=I.tagName;const U=I.rawTagName;let{tagExp:C,attrExpPresent:L,closeIndex:z}=I;if(this.options.transformTagName)F=this.options.transformTagName(F);if(s&&w){if(s.tagname!=="!xml")w=this.saveTextToParentTag(w,s,h,!1)}const S=s;if(S&&this.options.unpairedTags.indexOf(S.tagname)!==-1)s=this.tagsNodeStack.pop(),h=h.substring(0,h.lastIndexOf("."));if(F!==f.tagname)h+=h?"."+F:F;if(this.isItStopNode(this.options.stopNodes,h,F)){let Z="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);$=I.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)$=I.closeIndex;else{const B=this.readStopNodeData(r,U,z+1);if(!B)throw new Error(`Unexpected end of ${U}`);$=B.i,Z=B.tagContent}const D=new q1(F);if(F!==C&&L)D[":@"]=this.buildAttributesMap(C,h,F);if(Z)Z=this.parseTextData(Z,F,h,!0,L,!0,!0);h=h.substr(0,h.lastIndexOf(".")),D.add(this.options.textNodeName,Z),this.addChild(s,D,h)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const Z=new q1(F);if(F!==C&&L)Z[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,Z,h),h=h.substr(0,h.lastIndexOf("."))}else{const Z=new q1(F);if(this.tagsNodeStack.push(s),F!==C&&L)Z[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,Z,h),s=Z}w="",$=z}}else w+=r[$];return f.child},_b=function(r){if(this.options.processEntities){for(let f in this.docTypeEntities){const s=this.docTypeEntities[f];r=r.replace(s.regx,s.val)}for(let f in this.lastEntities){const s=this.lastEntities[f];r=r.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let f in this.htmlEntities){const s=this.htmlEntities[f];r=r.replace(s.regex,s.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};nK.exports=eK});var pK=v((rg)=>{function ab(r,f){return aK(r,f)}function aK(r,f,s){let w;const h={};for(let $=0;$<r.length;$++){const E=r[$],I=pb(E);let F="";if(s===void 0)F=I;else F=s+"."+I;if(I===f.textNodeName)if(w===void 0)w=E[I];else w+=""+E[I];else if(I===void 0)continue;else if(E[I]){let U=aK(E[I],f,F);const C=tb(U,f);if(E[":@"])ub(U,E[":@"],F,f);else if(Object.keys(U).length===1&&U[f.textNodeName]!==void 0&&!f.alwaysCreateTextNode)U=U[f.textNodeName];else if(Object.keys(U).length===0)if(f.alwaysCreateTextNode)U[f.textNodeName]="";else U="";if(h[I]!==void 0&&h.hasOwnProperty(I)){if(!Array.isArray(h[I]))h[I]=[h[I]];h[I].push(U)}else if(f.isArray(I,F,C))h[I]=[U];else h[I]=U}}if(typeof w==="string"){if(w.length>0)h[f.textNodeName]=w}else if(w!==void 0)h[f.textNodeName]=w;return h}function pb(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(w!==":@")return w}}function ub(r,f,s,w){if(f){const h=Object.keys(f),$=h.length;for(let E=0;E<$;E++){const I=h[E];if(w.isArray(I,s+"."+I,!0,!0))r[I]=[f[I]];else r[I]=f[I]}}}function tb(r,f){const{textNodeName:s}=f,w=Object.keys(r).length;if(w===0)return!0;if(w===1&&(r[s]||typeof r[s]==="boolean"||r[s]===0))return!0;return!1}rg.prettify=ab});var rZ=v((Z2r,tK)=>{var{buildOptions:fg}=vK(),wg=oK(),{prettify:hg}=pK(),$g=q5();class uK{constructor(r){this.externalEntities={},this.options=fg(r)}parse(r,f){if(typeof r==="string");else if(r.toString)r=r.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(f){if(f===!0)f={};const h=$g.validate(r,f);if(h!==!0)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}const s=new wg(this.options);s.addExternalEntities(this.externalEntities);const w=s.parseXml(r);if(this.options.preserveOrder||w===void 0)return w;else return hg(w,this.options)}addEntity(r,f){if(f.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(f==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=f}}tK.exports=uK});var $Z=v((l2r,hZ)=>{function Eg(r,f){let s="";if(f.format&&f.indentBy.length>0)s="\n";return fZ(r,f,"",s)}function fZ(r,f,s,w){let h="",$=!1;for(let E=0;E<r.length;E++){const I=r[E],F=Ig(I);if(F===void 0)continue;let U="";if(s.length===0)U=F;else U=`${s}.${F}`;if(F===f.textNodeName){let Z=I[F];if(!Fg(U,f))Z=f.tagValueProcessor(F,Z),Z=wZ(Z,f);if($)h+=w;h+=Z,$=!1;continue}else if(F===f.cdataPropName){if($)h+=w;h+=`<![CDATA[${I[F][0][f.textNodeName]}]]>`,$=!1;continue}else if(F===f.commentPropName){h+=w+`<!--${I[F][0][f.textNodeName]}-->`,$=!0;continue}else if(F[0]==="?"){const Z=sZ(I[":@"],f),D=F==="?xml"?"":w;let B=I[F][0][f.textNodeName];B=B.length!==0?" "+B:"",h+=D+`<${F}${B}${Z}?>`,$=!0;continue}let C=w;if(C!=="")C+=f.indentBy;const L=sZ(I[":@"],f),z=w+`<${F}${L}`,S=fZ(I[F],f,U,C);if(f.unpairedTags.indexOf(F)!==-1)if(f.suppressUnpairedNode)h+=z+">";else h+=z+"/>";else if((!S||S.length===0)&&f.suppressEmptyNode)h+=z+"/>";else if(S&&S.endsWith(">"))h+=z+`>${S}${w}</${F}>`;else{if(h+=z+">",S&&w!==""&&(S.includes("/>")||S.includes("</")))h+=w+f.indentBy+S+w;else h+=S;h+=`</${F}>`}$=!0}return h}function Ig(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(!r.hasOwnProperty(w))continue;if(w!==":@")return w}}function sZ(r,f){let s="";if(r&&!f.ignoreAttributes)for(let w in r){if(!r.hasOwnProperty(w))continue;let h=f.attributeValueProcessor(w,r[w]);if(h=wZ(h,f),h===!0&&f.suppressBooleanAttributes)s+=` ${w.substr(f.attributeNamePrefix.length)}`;else s+=` ${w.substr(f.attributeNamePrefix.length)}="${h}"`}return s}function Fg(r,f){r=r.substr(0,r.length-f.textNodeName.length-1);let s=r.substr(r.lastIndexOf(".")+1);for(let w in f.stopNodes)if(f.stopNodes[w]===r||f.stopNodes[w]==="*."+s)return!0;return!1}function wZ(r,f){if(r&&r.length>0&&f.processEntities)for(let s=0;s<f.entities.length;s++){const w=f.entities[s];r=r.replace(w.regex,w.val)}return r}hZ.exports=Eg});var IZ=v((J2r,EZ)=>{function n0(r){if(this.options=Object.assign({},Tg,r),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Lg;if(this.processTextOrObjNode=Gg,this.options.format)this.indentate=Cg,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}function Gg(r,f,s){const w=this.j2x(r,s+1);if(r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1)return this.buildTextValNode(r[this.options.textNodeName],f,w.attrStr,s);else return this.buildObjectNode(w.val,f,w.attrStr,s)}function Cg(r){return this.options.indentBy.repeat(r)}function Lg(r){if(r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName)return r.substr(this.attrPrefixLen);else return!1}var Ug=$Z(),Tg={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};n0.prototype.build=function(r){if(this.options.preserveOrder)return Ug(r,this.options);else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)r={[this.options.arrayNodeName]:r};return this.j2x(r,0).val}};n0.prototype.j2x=function(r,f){let s="",w="";for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;if(typeof r[h]==="undefined"){if(this.isAttribute(h))w+=""}else if(r[h]===null)if(this.isAttribute(h))w+="";else if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(r[h]instanceof Date)w+=this.buildTextValNode(r[h],h,"",f);else if(typeof r[h]!=="object"){const $=this.isAttribute(h);if($)s+=this.buildAttrPairStr($,""+r[h]);else if(h===this.options.textNodeName){let E=this.options.tagValueProcessor(h,""+r[h]);w+=this.replaceEntitiesValue(E)}else w+=this.buildTextValNode(r[h],h,"",f)}else if(Array.isArray(r[h])){const $=r[h].length;let E="",I="";for(let F=0;F<$;F++){const U=r[h][F];if(typeof U==="undefined");else if(U===null)if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(typeof U==="object")if(this.options.oneListGroup){const C=this.j2x(U,f+1);if(E+=C.val,this.options.attributesGroupName&&U.hasOwnProperty(this.options.attributesGroupName))I+=C.attrStr}else E+=this.processTextOrObjNode(U,h,f);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(h,U);C=this.replaceEntitiesValue(C),E+=C}else E+=this.buildTextValNode(U,h,"",f)}if(this.options.oneListGroup)E=this.buildObjectNode(E,h,I,f);w+=E}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const $=Object.keys(r[h]),E=$.length;for(let I=0;I<E;I++)s+=this.buildAttrPairStr($[I],""+r[h][$[I]])}else w+=this.processTextOrObjNode(r[h],h,f)}return{attrStr:s,val:w}};n0.prototype.buildAttrPairStr=function(r,f){if(f=this.options.attributeValueProcessor(r,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true")return" "+r;else return" "+r+'="'+f+'"'};n0.prototype.buildObjectNode=function(r,f,s,w){if(r==="")if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else{let h="</"+f+this.tagEndChar,$="";if(f[0]==="?")$="?",h="";if((s||s==="")&&r.indexOf("<")===-1)return this.indentate(w)+"<"+f+s+$+">"+r+h;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName&&$.length===0)return this.indentate(w)+`<!--${r}-->`+this.newLine;else return this.indentate(w)+"<"+f+s+$+this.tagEndChar+r+this.indentate(w)+h}};n0.prototype.closeTag=function(r){let f="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)f="/"}else if(this.options.suppressEmptyNode)f="/";else f=`></${r}`;return f};n0.prototype.buildTextValNode=function(r,f,s,w){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(w)+`<![CDATA[${r}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(w)+`<!--${r}-->`+this.newLine;else if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else{let h=this.options.tagValueProcessor(f,r);if(h=this.replaceEntitiesValue(h),h==="")return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else return this.indentate(w)+"<"+f+s+">"+h+"</"+f+this.tagEndChar}};n0.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const s=this.options.entities[f];r=r.replace(s.regex,s.val)}return r};EZ.exports=n0});var UZ=v((Q2r,FZ)=>{var Ag=q5(),Rg=rZ(),Wg=IZ();FZ.exports={XMLParser:Rg,XMLValidator:Ag,XMLBuilder:Wg}});var RZ=v((M2r,AZ)=>{var{defineProperty:i3,getOwnPropertyDescriptor:zg,getOwnPropertyNames:Sg}=Object,Pg=Object.prototype.hasOwnProperty,Ps=(r,f)=>i3(r,"name",{value:f,configurable:!0}),Xg=(r,f)=>{for(var s in f)i3(r,s,{get:f[s],enumerable:!0})},Yg=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of Sg(f))if(!Pg.call(r,h)&&h!==s)i3(r,h,{get:()=>f[h],enumerable:!(w=zg(f,h))||w.enumerable})}return r},Kg=(r)=>Yg(i3({},"__esModule",{value:!0}),r),TZ={};Xg(TZ,{_toBool:()=>lg,_toNum:()=>Jg,_toStr:()=>Zg,awsExpectUnion:()=>Mg,loadRestJsonErrorCode:()=>Vg,loadRestXmlErrorCode:()=>yg,parseJsonBody:()=>CZ,parseJsonErrorBody:()=>Hg,parseXmlBody:()=>LZ,parseXmlErrorBody:()=>ig});AZ.exports=Kg(TZ);var Zg=Ps((r)=>{if(r==null)return r;if(typeof r==="number"||typeof r==="bigint"){const f=new Error(`Received number ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}if(typeof r==="boolean"){const f=new Error(`Received boolean ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}return r},"_toStr"),lg=Ps((r)=>{if(r==null)return r;if(typeof r==="string"){const f=r.toLowerCase();if(r!==""&&f!=="false"&&f!=="true"){const s=new Error(`Received string "${r}" where a boolean was expected.`);s.name="Warning",console.warn(s)}return r!==""&&f!=="false"}return r},"_toBool"),Jg=Ps((r)=>{if(r==null)return r;if(typeof r==="string"){const f=Number(r);if(f.toString()!==r){const s=new Error(`Received string "${r}" where a number was expected.`);return s.name="Warning",console.warn(s),r}return f}return r},"_toNum"),Qg=Fh(),Mg=Ps((r)=>{if(r==null)return;if(typeof r==="object"&&"__type"in r)delete r.__type;return Qg.expectUnion(r)},"awsExpectUnion"),Bg=Fh(),GZ=Ps((r,f)=>Bg.collectBody(r,f).then((s)=>f.utf8Encoder(s)),"collectBodyString"),CZ=Ps((r,f)=>GZ(r,f).then((s)=>{if(s.length)try{return JSON.parse(s)}catch(w){if((w==null?void 0:w.name)==="SyntaxError")Object.defineProperty(w,"$responseBodyText",{value:s});throw w}return{}}),"parseJsonBody"),Hg=Ps(async(r,f)=>{const s=await CZ(r,f);return s.message=s.message??s.Message,s},"parseJsonErrorBody"),Vg=Ps((r,f)=>{const s=Ps(($,E)=>Object.keys($).find((I)=>I.toLowerCase()===E.toLowerCase()),"findKey"),w=Ps(($)=>{let E=$;if(typeof E==="number")E=E.toString();if(E.indexOf(",")>=0)E=E.split(",")[0];if(E.indexOf(":")>=0)E=E.split(":")[0];if(E.indexOf("#")>=0)E=E.split("#")[1];return E},"sanitizeErrorCode"),h=s(r.headers,"x-amzn-errortype");if(h!==void 0)return w(r.headers[h]);if(f.code!==void 0)return w(f.code);if(f.__type!==void 0)return w(f.__type)},"loadRestJsonErrorCode"),kg=Fh(),Dg=UZ(),LZ=Ps((r,f)=>GZ(r,f).then((s)=>{if(s.length){const w=new Dg.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,U)=>U.trim()===""&&U.includes("\n")?"":void 0});w.addEntity("#xD","\r"),w.addEntity("#10","\n");let h;try{h=w.parse(s,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:s});throw F}const $="#text",E=Object.keys(h)[0],I=h[E];if(I[$])I[E]=I[$],delete I[$];return kg.getValueFromTextNode(I)}return{}}),"parseXmlBody"),ig=Ps(async(r,f)=>{const s=await LZ(r,f);if(s.Error)s.Error.message=s.Error.message??s.Error.Message;return s},"parseXmlErrorBody"),yg=Ps((r,f)=>{var s;if(((s=f==null?void 0:f.Error)==null?void 0:s.Code)!==void 0)return f.Error.Code;if((f==null?void 0:f.Code)!==void 0)return f.Code;if(r.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Br=v((v1)=>{Object.defineProperty(v1,"__esModule",{value:!0});var d5=aY();d5.__exportStar(rK(),v1);d5.__exportStar(VK(),v1);d5.__exportStar(RZ(),v1)});var y3="AWS_ACCESS_KEY_ID",m3="AWS_SECRET_ACCESS_KEY",KZ="AWS_SESSION_TOKEN",ZZ="AWS_CREDENTIAL_EXPIRATION",lZ="AWS_CREDENTIAL_SCOPE",JZ="AWS_ACCOUNT_ID",O5=(r)=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const f=process.env[y3],s=process.env[m3],w=process.env[KZ],h=process.env[ZZ],$=process.env[lZ],E=process.env[JZ];if(f&&s)return{accessKeyId:f,secretAccessKey:s,...w&&{sessionToken:w},...h&&{expiration:new Date(h)},...$&&{credentialScope:$},...E&&{accountId:E}};throw new _("Unable to find environment variable credentials.",{logger:r?.logger})};var QZ=G(()=>{Lr()});var MZ={};Sf(MZ,{fromEnv:()=>O5,ENV_SESSION:()=>KZ,ENV_SECRET:()=>m3,ENV_KEY:()=>y3,ENV_EXPIRATION:()=>ZZ,ENV_CREDENTIAL_SCOPE:()=>lZ,ENV_ACCOUNT_ID:()=>JZ});var c5=G(()=>{QZ()});import{Buffer as qg}from"buffer";import{request as vg}from"http";function o0(r){return new Promise((f,s)=>{const w=vg({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});w.on("error",(h)=>{s(Object.assign(new Vs("Unable to connect to instance metadata service"),h)),w.destroy()}),w.on("timeout",()=>{s(new Vs("TimeoutError from instance metadata service")),w.destroy()}),w.on("response",(h)=>{const{statusCode:$=400}=h;if($<200||300<=$)s(Object.assign(new Vs("Error response received from instance metadata service"),{statusCode:$})),w.destroy();const E=[];h.on("data",(I)=>{E.push(I)}),h.on("end",()=>{f(qg.concat(E)),w.destroy()})}),w.end()})}var N3=G(()=>{Lr()});var q3=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string",v3=(r)=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}});var jg=1000,dg=0,j1=({maxRetries:r=0,timeout:f=1000})=>({maxRetries:r,timeout:f});var d1=(r,f)=>{let s=r();for(let w=0;w<f;w++)s=s.catch(r);return s};import{parse as Og}from"url";var j3="AWS_CONTAINER_CREDENTIALS_FULL_URI",d3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b5="AWS_CONTAINER_AUTHORIZATION_TOKEN",cg=(r={})=>{const{timeout:f,maxRetries:s}=j1(r);return()=>d1(async()=>{const w=await eg({logger:r.logger}),h=JSON.parse(await bg(f,w));if(!q3(h))throw new _("Invalid response received from instance metadata service.",{logger:r.logger});return v3(h)},s)},bg=async(r,f)=>{if(process.env[b5])f.headers={...f.headers,Authorization:process.env[b5]};return(await o0({...f,timeout:r})).toString()},gg="169.254.170.2",_g,xg,eg=async({logger:r})=>{if(process.env[d3])return{hostname:gg,path:process.env[d3]};if(process.env[j3]){const f=Og(process.env[j3]);if(!f.hostname||!(f.hostname in _g))throw new _(`${f.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:r});if(!f.protocol||!(f.protocol in xg))throw new _(`${f.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:r});return{...f,port:f.port?parseInt(f.port,10):void 0}}throw new _(`The container metadata credential provider cannot be used unless the ${d3} or ${j3} environment variable is set`,{tryNextLink:!1,logger:r})};var BZ=G(()=>{Lr();N3();_g={localhost:!0,"127.0.0.1":!0},xg={"http:":!0,"https:":!0}});var O3;var HZ=G(()=>{Lr();O3=class O3 extends _{constructor(r,f=!0){super(r,f);this.tryNextLink=f,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,O3.prototype)}}});var Dw;var g5=G(()=>{(function(r){r.IPv4="http://169.254.169.254",r.IPv6="http://[fd00:ec2::254]"})(Dw||(Dw={}))});var VZ;var kZ=G(()=>{VZ={environmentVariableSelector:(r)=>r.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(r)=>r.ec2_metadata_service_endpoint,default:void 0}});var a0;var _5=G(()=>{(function(r){r.IPv4="IPv4",r.IPv6="IPv6"})(a0||(a0={}))});var ng="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",og="ec2_metadata_service_endpoint_mode",DZ;var iZ=G(()=>{_5();DZ={environmentVariableSelector:(r)=>r[ng],configFileSelector:(r)=>r[og],default:a0.IPv4}});var c3=async()=>gr(await ag()||await pg()),ag=async()=>t(VZ)(),pg=async()=>{const r=await t(DZ)();switch(r){case a0.IPv4:return Dw.IPv4;case a0.IPv6:return Dw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(a0)}`)}};var x5=G(()=>{$f();b0();g5();kZ();_5();iZ()});var e5=(r,f)=>{const s=300+Math.floor(Math.random()*300),w=new Date(Date.now()+s*1000);f.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(w)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const h=r.originalExpiration??r.expiration;return{...r,...h?{originalExpiration:h}:{},expiration:w}};var yZ=(r,f={})=>{const s=f?.logger||console;let w;return async()=>{let h;try{if(h=await r(),h.expiration&&h.expiration.getTime()<Date.now())h=e5(h,s)}catch($){if(w)s.warn("Credential renew failed: ",$),h=e5(w,s);else throw $}return w=h,h}};var mZ=()=>{};var vZ="/latest/meta-data/iam/security-credentials/",ug="/latest/api/token",n5="AWS_EC2_METADATA_V1_DISABLED",NZ="ec2_metadata_v1_disabled",qZ="x-aws-ec2-metadata-token",tg=(r={})=>yZ(r_(r),{logger:r.logger}),r_=(r={})=>{let f=!1;const{logger:s,profile:w}=r,{timeout:h,maxRetries:$}=j1(r),E=async(I,F)=>{if(f||F.headers?.[qZ]==null){let L=!1,z=!1;const S=await t({environmentVariableSelector:(Z)=>{const D=Z[n5];if(z=!!D&&D!=="false",D===void 0)throw new _(`${n5} not set in env, checking config file next.`,{logger:r.logger});return z},configFileSelector:(Z)=>{const D=Z[NZ];return L=!!D&&D!=="false",L},default:!1},{profile:w})();if(r.ec2MetadataV1Disabled||S){const Z=[];if(r.ec2MetadataV1Disabled)Z.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(L)Z.push(`config file profile (${NZ})`);if(z)Z.push(`process environment variable (${n5})`);throw new O3(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Z.join(", ")}].`)}}const C=(await d1(async()=>{let L;try{L=await f_(F)}catch(z){if(z.statusCode===401)f=!1;throw z}return L},I)).trim();return d1(async()=>{let L;try{L=await w_(C,F,r)}catch(z){if(z.statusCode===401)f=!1;throw z}return L},I)};return async()=>{const I=await c3();if(f)return s?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E($,{...I,timeout:h});else{let F;try{F=(await s_({...I,timeout:h})).toString()}catch(U){if(U?.statusCode===400)throw Object.assign(U,{message:"EC2 Metadata token request returned error"});else if(U.message==="TimeoutError"||[403,404,405].includes(U.statusCode))f=!0;return s?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E($,{...I,timeout:h})}return E($,{...I,headers:{[qZ]:F},timeout:h})}}},s_=async(r)=>o0({...r,path:ug,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),f_=async(r)=>(await o0({...r,path:vZ})).toString(),w_=async(r,f,s)=>{const w=JSON.parse((await o0({...f,path:vZ+r})).toString());if(!q3(w))throw new _("Invalid response received from instance metadata service.",{logger:s.logger});return v3(w)};var jZ=G(()=>{$f();Lr();HZ();N3();x5();mZ()});var dZ=()=>{};var O1={};Sf(O1,{providerConfigFromInit:()=>j1,httpRequest:()=>o0,getInstanceMetadataEndpoint:()=>c3,fromInstanceMetadata:()=>tg,fromContainerMetadata:()=>cg,Endpoint:()=>Dw,ENV_CMDS_RELATIVE_URI:()=>d3,ENV_CMDS_FULL_URI:()=>j3,ENV_CMDS_AUTH_TOKEN:()=>b5,DEFAULT_TIMEOUT:()=>jg,DEFAULT_MAX_RETRIES:()=>dg});var c1=G(()=>{BZ();jZ();dZ();N3();x5();g5()});var h_="169.254.170.2",$_="169.254.170.23",E_="[fd00:ec2::23]",OZ=(r,f)=>{if(r.protocol==="https:")return;if(r.hostname===h_||r.hostname===$_||r.hostname===E_)return;if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(r.hostname==="localhost")return;const s=r.hostname.split("."),w=(h)=>{const $=parseInt(h,10);return 0<=$&&$<=255};if(s[0]==="127"&&w(s[1])&&w(s[2])&&w(s[3])&&s.length===4)return}throw new _(`URL not accepted. It must either be HTTPS or match one of the following:
19
+ ${O0.toHex(E)}`}getCanonicalPath({path:f}){if(this.uriEscapePath){const s=[];for(let E of f.split("/")){if((E==null?void 0:E.length)===0)continue;if(E===".")continue;if(E==="..")s.pop();else s.push(E)}const w=`${(f==null?void 0:f.startsWith("/"))?"/":""}${s.join("/")}${s.length>0&&(f==null?void 0:f.endsWith("/"))?"/":""}`;return D1.escapeUri(w).replace(/%2F/g,"/")}return f}async getSignature(f,s,w,h){const E=await this.createStringToSign(f,s,h),$=new this.sha256(await w);return $.update(RU.toUint8Array(E)),O0.toHex(await $.digest())}getSigningKey(f,s,w,h){return KY(this.sha256,f,w,s,h||this.service)}validateResolvedCredentials(f){if(typeof f!=="object"||typeof f.accessKeyId!=="string"||typeof f.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};mr(lY,"SignatureV4");var tO=lY,Z3=mr((r)=>{const f=pO(r).replace(/[\-:]/g,"");return{longDate:f,shortDate:f.slice(0,8)}},"formatDate"),AY=mr((r)=>Object.keys(r).sort().join(";"),"getCanonicalHeaderList")});var dY=j((m$r,iY)=>{var{defineProperty:l3,getOwnPropertyDescriptor:rb,getOwnPropertyNames:sb}=Object,fb=Object.prototype.hasOwnProperty,Rs=(r,f)=>l3(r,"name",{value:f,configurable:!0}),wb=(r,f)=>{for(var s in f)l3(r,s,{get:f[s],enumerable:!0})},hb=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of sb(f))if(!fb.call(r,h)&&h!==s)l3(r,h,{get:()=>f[h],enumerable:!(w=rb(f,h))||w.enumerable})}return r},Eb=(r)=>hb(l3({},"__esModule",{value:!0}),r),qY={};wb(qY,{AWSSDKSigV4Signer:()=>Ub,AwsSdkSigV4ASigner:()=>Gb,AwsSdkSigV4Signer:()=>ZU,NODE_SIGV4A_CONFIG_OPTIONS:()=>Ab,resolveAWSSDKSigV4Config:()=>Rb,resolveAwsSdkSigV4AConfig:()=>Lb,resolveAwsSdkSigV4Config:()=>jY,validateSigningProperties:()=>KU});iY.exports=Eb(qY);var $b=T0(),Ib=T0(),DY=Rs((r)=>{var f,s;return Ib.HttpResponse.isInstance(r)?((f=r.headers)==null?void 0:f.date)??((s=r.headers)==null?void 0:s.Date):void 0},"getDateHeader"),YU=Rs((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),Fb=Rs((r,f)=>Math.abs(YU(f).getTime()-r)>=300000,"isClockSkewed"),kY=Rs((r,f)=>{const s=Date.parse(r);if(Fb(s,f))return s-Date.now();return f},"getUpdatedSystemClockOffset"),k1=Rs((r,f)=>{if(!f)throw new Error(`Property \`${r}\` is not resolved for AWS SDK SigV4Auth`);return f},"throwSigningPropertyError"),KU=Rs(async(r)=>{var f,s,w;const h=k1("context",r.context),E=k1("config",r.config),$=(w=(s=(f=h.endpointV2)==null?void 0:f.properties)==null?void 0:s.authSchemes)==null?void 0:w[0],F=await k1("signer",E.signer)($),U=r==null?void 0:r.signingRegion,C=r==null?void 0:r.signingRegionSet,L=r==null?void 0:r.signingName;return{config:E,signer:F,signingRegion:U,signingRegionSet:C,signingName:L}},"validateSigningProperties"),mY=class r{async sign(f,s,w){var h;if(!$b.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const E=await KU(w),{config:$,signer:I}=E;let{signingRegion:F,signingName:U}=E;const C=w.context;if(((h=C==null?void 0:C.authSchemes)==null?void 0:h.length)??0>1){const[z,S]=C.authSchemes;if((z==null?void 0:z.name)==="sigv4a"&&(S==null?void 0:S.name)==="sigv4")F=(S==null?void 0:S.signingRegion)??F,U=(S==null?void 0:S.signingName)??U}return await I.sign(f,{signingDate:YU($.systemClockOffset),signingRegion:F,signingService:U})}errorHandler(f){return(s)=>{const w=s.ServerTime??DY(s.$response);if(w){const h=k1("config",f.config),E=h.systemClockOffset;if(h.systemClockOffset=kY(w,h.systemClockOffset),h.systemClockOffset!==E&&s.$metadata)s.$metadata.clockSkewCorrected=!0}throw s}}successHandler(f,s){const w=DY(f);if(w){const h=k1("config",s.config);h.systemClockOffset=kY(w,h.systemClockOffset)}}};Rs(mY,"AwsSdkSigV4Signer");var ZU=mY,Ub=ZU,Tb=T0(),vY=class r extends ZU{async sign(f,s,w){var h;if(!Tb.HttpRequest.isInstance(f))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:E,signer:$,signingRegion:I,signingRegionSet:F,signingName:U}=await KU(w),L=(await((h=E.sigv4aSigningRegionSet)==null?void 0:h.call(E))??F??[I]).join(",");return await $.sign(f,{signingDate:YU(E.systemClockOffset),signingRegion:L,signingService:U})}};Rs(vY,"AwsSdkSigV4ASigner");var Gb=vY,Cb=Or(),NY=kF(),Lb=Rs((r)=>{return r.sigv4aSigningRegionSet=Cb.normalizeProvider(r.sigv4aSigningRegionSet),r},"resolveAwsSdkSigV4AConfig"),Ab={environmentVariableSelector(r){if(r.AWS_SIGV4A_SIGNING_REGION_SET)return r.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((f)=>f.trim());throw new NY.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(r){if(r.sigv4a_signing_region_set)return(r.sigv4a_signing_region_set??"").split(",").map((f)=>f.trim());throw new NY.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Jw=Or(),yY=HY(),jY=Rs((r)=>{let f;if(r.credentials)f=Jw.memoizeIdentityProvider(r.credentials,Jw.isIdentityExpired,Jw.doesIdentityRequireRefresh);if(!f)if(r.credentialDefaultProvider)f=Jw.normalizeProvider(r.credentialDefaultProvider(Object.assign({},r,{parentClientConfig:r})));else f=Rs(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:s=!0,systemClockOffset:w=r.systemClockOffset||0,sha256:h}=r;let E;if(r.signer)E=Jw.normalizeProvider(r.signer);else if(r.regionInfoProvider)E=Rs(()=>Jw.normalizeProvider(r.region)().then(async($)=>[await r.regionInfoProvider($,{useFipsEndpoint:await r.useFipsEndpoint(),useDualstackEndpoint:await r.useDualstackEndpoint()})||{},$]).then(([$,I])=>{const{signingRegion:F,signingService:U}=$;r.signingRegion=r.signingRegion||F||I,r.signingName=r.signingName||U||r.serviceId;const C={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||yY.SignatureV4)(C)}),"signer");else E=Rs(async($)=>{$=Object.assign({},{name:"sigv4",signingName:r.signingName||r.defaultSigningName,signingRegion:await Jw.normalizeProvider(r.region)(),properties:{}},$);const{signingRegion:I,signingName:F}=$;r.signingRegion=r.signingRegion||I,r.signingName=r.signingName||F||r.serviceId;const U={...r,credentials:f,region:r.signingRegion,service:r.signingName,sha256:h,uriEscapePath:s};return new(r.signerConstructor||yY.SignatureV4)(U)},"signer");return{...r,systemClockOffset:w,signingEscapePath:s,credentials:f,signer:E}},"resolveAwsSdkSigV4Config"),Rb=jY});var V3=j((Xb)=>{var Wb=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",OY="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+Wb+"]*",zb=new RegExp("^"+OY+"$"),Sb=function(r,f){const s=[];let w=f.exec(r);while(w){const h=[];h.startIndex=f.lastIndex-w[0].length;const E=w.length;for(let $=0;$<E;$++)h.push(w[$]);s.push(h),w=f.exec(r)}return s},Pb=function(r){const f=zb.exec(r);return!(f===null||typeof f==="undefined")};Xb.isExist=function(r){return typeof r!=="undefined"};Xb.isEmptyObject=function(r){return Object.keys(r).length===0};Xb.merge=function(r,f,s){if(f){const w=Object.keys(f),h=w.length;for(let E=0;E<h;E++)if(s==="strict")r[w[E]]=[f[w[E]]];else r[w[E]]=f[w[E]]}};Xb.getValue=function(r){if(Xb.isExist(r))return r;else return""};Xb.isName=Pb;Xb.getAllMatches=Sb;Xb.nameRegexp=OY});var JU=j((mb)=>{function cY(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function _Y(r,f){const s=f;for(;f<r.length;f++)if(r[f]=="?"||r[f]==" "){const w=r.substr(s,f-s);if(f>5&&w==="xml")return Br("InvalidXml","XML declaration allowed only at the start of the document.",ur(r,f));else if(r[f]=="?"&&r[f+1]==">"){f++;break}else continue}return f}function gY(r,f){if(r.length>f+5&&r[f+1]==="-"&&r[f+2]==="-"){for(f+=3;f<r.length;f++)if(r[f]==="-"&&r[f+1]==="-"&&r[f+2]===">"){f+=2;break}}else if(r.length>f+8&&r[f+1]==="D"&&r[f+2]==="O"&&r[f+3]==="C"&&r[f+4]==="T"&&r[f+5]==="Y"&&r[f+6]==="P"&&r[f+7]==="E"){let s=1;for(f+=8;f<r.length;f++)if(r[f]==="<")s++;else if(r[f]===">"){if(s--,s===0)break}}else if(r.length>f+9&&r[f+1]==="["&&r[f+2]==="C"&&r[f+3]==="D"&&r[f+4]==="A"&&r[f+5]==="T"&&r[f+6]==="A"&&r[f+7]==="["){for(f+=8;f<r.length;f++)if(r[f]==="]"&&r[f+1]==="]"&&r[f+2]===">"){f+=2;break}}return f}function Hb(r,f){let s="",w="",h=!1;for(;f<r.length;f++){if(r[f]===lb||r[f]===Vb)if(w==="")w=r[f];else if(w!==r[f]);else w="";else if(r[f]===">"){if(w===""){h=!0;break}}s+=r[f]}if(w!=="")return!1;return{value:s,index:f,tagClosed:h}}function xY(r,f){const s=MU.getAllMatches(r,Db),w={};for(let h=0;h<s.length;h++){if(s[h][1].length===0)return Br("InvalidAttr","Attribute '"+s[h][2]+"' has no space in starting.",N1(s[h]));else if(s[h][3]!==void 0&&s[h][4]===void 0)return Br("InvalidAttr","Attribute '"+s[h][2]+"' is without value.",N1(s[h]));else if(s[h][3]===void 0&&!f.allowBooleanAttributes)return Br("InvalidAttr","boolean attribute '"+s[h][2]+"' is not allowed.",N1(s[h]));const E=s[h][2];if(!yb(E))return Br("InvalidAttr","Attribute '"+E+"' is an invalid name.",N1(s[h]));if(!w.hasOwnProperty(E))w[E]=1;else return Br("InvalidAttr","Attribute '"+E+"' is repeated.",N1(s[h]))}return!0}function kb(r,f){let s=/\d/;if(r[f]==="x")f++,s=/[\da-fA-F]/;for(;f<r.length;f++){if(r[f]===";")return f;if(!r[f].match(s))break}return-1}function Nb(r,f){if(f++,r[f]===";")return-1;if(r[f]==="#")return f++,kb(r,f);let s=0;for(;f<r.length;f++,s++){if(r[f].match(/\w/)&&s<20)continue;if(r[f]===";")break;return-1}return f}function Br(r,f,s){return{err:{code:r,msg:f,line:s.line||s,col:s.col}}}function yb(r){return MU.isName(r)}function qb(r){return MU.isName(r)}function ur(r,f){const s=r.substring(0,f).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function N1(r){return r.startIndex+r[1].length}var MU=V3(),Bb={allowBooleanAttributes:!1,unpairedTags:[]};mb.validate=function(r,f){f=Object.assign({},Bb,f);const s=[];let w=!1,h=!1;if(r[0]==="\uFEFF")r=r.substr(1);for(let E=0;E<r.length;E++)if(r[E]==="<"&&r[E+1]==="?"){if(E+=2,E=_Y(r,E),E.err)return E}else if(r[E]==="<"){let $=E;if(E++,r[E]==="!"){E=gY(r,E);continue}else{let I=!1;if(r[E]==="/")I=!0,E++;let F="";for(;E<r.length&&r[E]!==">"&&r[E]!==" "&&r[E]!=="\t"&&r[E]!=="\n"&&r[E]!=="\r";E++)F+=r[E];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),E--;if(!qb(F)){let L;if(F.trim().length===0)L="Invalid space after '<'.";else L="Tag '"+F+"' is an invalid name.";return Br("InvalidTag",L,ur(r,E))}const U=Hb(r,E);if(U===!1)return Br("InvalidAttr","Attributes for '"+F+"' have open quote.",ur(r,E));let C=U.value;if(E=U.index,C[C.length-1]==="/"){const L=E-C.length;C=C.substring(0,C.length-1);const z=xY(C,f);if(z===!0)w=!0;else return Br(z.err.code,z.err.msg,ur(r,L+z.err.line))}else if(I)if(!U.tagClosed)return Br("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",ur(r,E));else if(C.trim().length>0)return Br("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",ur(r,$));else if(s.length===0)return Br("InvalidTag","Closing tag '"+F+"' has not been opened.",ur(r,$));else{const L=s.pop();if(F!==L.tagName){let z=ur(r,L.tagStartPos);return Br("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+z.line+", col "+z.col+") instead of closing tag '"+F+"'.",ur(r,$))}if(s.length==0)h=!0}else{const L=xY(C,f);if(L!==!0)return Br(L.err.code,L.err.msg,ur(r,E-C.length+L.err.line));if(h===!0)return Br("InvalidXml","Multiple possible root nodes found.",ur(r,E));else if(f.unpairedTags.indexOf(F)!==-1);else s.push({tagName:F,tagStartPos:$});w=!0}for(E++;E<r.length;E++)if(r[E]==="<")if(r[E+1]==="!"){E++,E=gY(r,E);continue}else if(r[E+1]==="?"){if(E=_Y(r,++E),E.err)return E}else break;else if(r[E]==="&"){const L=Nb(r,E);if(L==-1)return Br("InvalidChar","char '&' is not expected.",ur(r,E));E=L}else if(h===!0&&!cY(r[E]))return Br("InvalidXml","Extra text at the end",ur(r,E));if(r[E]==="<")E--}}else{if(cY(r[E]))continue;return Br("InvalidChar","char '"+r[E]+"' is not expected.",ur(r,E))}if(!w)return Br("InvalidXml","Start tag expected.",1);else if(s.length==1)return Br("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",ur(r,s[0].tagStartPos));else if(s.length>0)return Br("InvalidXml","Invalid '"+JSON.stringify(s.map((E)=>E.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var lb='"',Vb="'",Db=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var nY=j((ib)=>{var eY={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,f,s){return r}},jb=function(r){return Object.assign({},eY,r)};ib.buildOptions=jb;ib.defaultOptions=eY});var pY=j((d$r,aY)=>{class oY{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,f){if(r==="__proto__")r="#__proto__";this.child.push({[r]:f})}addChild(r){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0)this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]});else this.child.push({[r.tagname]:r.child})}}aY.exports=oY});var tY=j((O$r,uY)=>{function cb(r,f){const s={};if(r[f+3]==="O"&&r[f+4]==="C"&&r[f+5]==="T"&&r[f+6]==="Y"&&r[f+7]==="P"&&r[f+8]==="E"){f=f+9;let w=1,h=!1,E=!1,$="";for(;f<r.length;f++)if(r[f]==="<"&&!E){if(h&&xb(r,f)){if(f+=7,[entityName,val,f]=_b(r,f+1),val.indexOf("&")===-1)s[ab(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(h&&eb(r,f))f+=8;else if(h&&nb(r,f))f+=8;else if(h&&ob(r,f))f+=9;else if(gb)E=!0;else throw new Error("Invalid DOCTYPE");w++,$=""}else if(r[f]===">"){if(E){if(r[f-1]==="-"&&r[f-2]==="-")E=!1,w--}else w--;if(w===0)break}else if(r[f]==="[")h=!0;else $+=r[f];if(w!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:s,i:f}}function _b(r,f){let s="";for(;f<r.length&&(r[f]!=="'"&&r[f]!=='"');f++)s+=r[f];if(s=s.trim(),s.indexOf(" ")!==-1)throw new Error("External entites are not supported");const w=r[f++];let h="";for(;f<r.length&&r[f]!==w;f++)h+=r[f];return[s,h,f]}function gb(r,f){if(r[f+1]==="!"&&r[f+2]==="-"&&r[f+3]==="-")return!0;return!1}function xb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="N"&&r[f+4]==="T"&&r[f+5]==="I"&&r[f+6]==="T"&&r[f+7]==="Y")return!0;return!1}function eb(r,f){if(r[f+1]==="!"&&r[f+2]==="E"&&r[f+3]==="L"&&r[f+4]==="E"&&r[f+5]==="M"&&r[f+6]==="E"&&r[f+7]==="N"&&r[f+8]==="T")return!0;return!1}function nb(r,f){if(r[f+1]==="!"&&r[f+2]==="A"&&r[f+3]==="T"&&r[f+4]==="T"&&r[f+5]==="L"&&r[f+6]==="I"&&r[f+7]==="S"&&r[f+8]==="T")return!0;return!1}function ob(r,f){if(r[f+1]==="!"&&r[f+2]==="N"&&r[f+3]==="O"&&r[f+4]==="T"&&r[f+5]==="A"&&r[f+6]==="T"&&r[f+7]==="I"&&r[f+8]==="O"&&r[f+9]==="N")return!0;return!1}function ab(r){if(bb.isName(r))return r;else throw new Error(`Invalid entity name ${r}`)}var bb=V3();uY.exports=cb});var sK=j((b$r,rK)=>{function rc(r,f={}){if(f=Object.assign({},tb,f),!r||typeof r!=="string")return r;let s=r.trim();if(f.skipLike!==void 0&&f.skipLike.test(s))return r;else if(f.hex&&pb.test(s))return Number.parseInt(s,16);else{const w=ub.exec(s);if(w){const h=w[1],E=w[2];let $=sc(w[3]);const I=w[4]||w[6];if(!f.leadingZeros&&E.length>0&&h&&s[2]!==".")return r;else if(!f.leadingZeros&&E.length>0&&!h&&s[1]!==".")return r;else{const F=Number(s),U=""+F;if(U.search(/[eE]/)!==-1)if(f.eNotation)return F;else return r;else if(I)if(f.eNotation)return F;else return r;else if(s.indexOf(".")!==-1)if(U==="0"&&$==="")return F;else if(U===$)return F;else if(h&&U==="-"+$)return F;else return r;if(E)if($===U)return F;else if(h+$===U)return F;else return r;if(s===U)return F;else if(s===h+U)return F;return r}}else return r}}function sc(r){if(r&&r.indexOf(".")!==-1){if(r=r.replace(/0+$/,""),r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substr(0,r.length-1);return r}return r}var pb=/^[-+]?0x[a-fA-F0-9]+$/,ub=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var tb={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};rK.exports=rc});var EK=j((c$r,hK)=>{function hc(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];this.lastEntities[w]={regex:new RegExp("&"+w+";","g"),val:r[w]}}}function Ec(r,f,s,w,h,E,$){if(r!==void 0){if(this.options.trimValues&&!w)r=r.trim();if(r.length>0){if(!$)r=this.replaceEntitiesValue(r);const I=this.options.tagValueProcessor(f,r,s,h,E);if(I===null||I===void 0)return r;else if(typeof I!==typeof r||I!==r)return I;else if(this.options.trimValues)return BU(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return BU(r,this.options.parseTagValue,this.options.numberParseOptions);else return r}}}function $c(r){if(this.options.removeNSPrefix){const f=r.split(":"),s=r.charAt(0)==="/"?"/":"";if(f[0]==="xmlns")return"";if(f.length===2)r=s+f[1]}return r}function Fc(r,f,s){if(!this.options.ignoreAttributes&&typeof r==="string"){const w=fK.getAllMatches(r,Ic),h=w.length,E={};for(let $=0;$<h;$++){const I=this.resolveNameSpace(w[$][1]);let F=w[$][4],U=this.options.attributeNamePrefix+I;if(I.length){if(this.options.transformAttributeName)U=this.options.transformAttributeName(U);if(U==="__proto__")U="#__proto__";if(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const C=this.options.attributeValueProcessor(I,F,f);if(C===null||C===void 0)E[U]=F;else if(typeof C!==typeof F||C!==F)E[U]=C;else E[U]=BU(F,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)E[U]=!0}}if(!Object.keys(E).length)return;if(this.options.attributesGroupName){const $={};return $[this.options.attributesGroupName]=E,$}return E}}function Tc(r,f,s){const w=this.options.updateTag(f.tagname,s,f[":@"]);if(w===!1);else if(typeof w==="string")f.tagname=w,r.addChild(f);else r.addChild(f)}function Cc(r,f,s,w){if(r){if(w===void 0)w=Object.keys(f.child).length===0;if(r=this.parseTextData(r,f.tagname,s,!1,f[":@"]?Object.keys(f[":@"]).length!==0:!1,w),r!==void 0&&r!=="")f.add(this.options.textNodeName,r);r=""}return r}function Lc(r,f,s){const w="*."+s;for(let h in r){const E=r[h];if(w===E||f===E)return!0}return!1}function Ac(r,f,s=">"){let w,h="";for(let E=f;E<r.length;E++){let $=r[E];if(w){if($===w)w=""}else if($==='"'||$==="'")w=$;else if($===s[0])if(s[1]){if(r[E+1]===s[1])return{data:h,index:E}}else return{data:h,index:E};else if($==="\t")$=" ";h+=$}}function Qw(r,f,s,w){const h=r.indexOf(f,s);if(h===-1)throw new Error(w);else return h+f.length-1}function QU(r,f,s,w=">"){const h=Ac(r,f+1,w);if(!h)return;let E=h.data;const $=h.index,I=E.search(/\s/);let F=E,U=!0;if(I!==-1)F=E.substring(0,I),E=E.substring(I+1).trimStart();const C=F;if(s){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1),U=F!==h.data.substr(L+1)}return{tagName:F,tagExp:E,closeIndex:$,attrExpPresent:U,rawTagName:C}}function Rc(r,f,s){const w=s;let h=1;for(;s<r.length;s++)if(r[s]==="<")if(r[s+1]==="/"){const E=Qw(r,">",s,`${f} is not closed`);if(r.substring(s+2,E).trim()===f){if(h--,h===0)return{tagContent:r.substring(w,s),i:E}}s=E}else if(r[s+1]==="?")s=Qw(r,"?>",s+1,"StopNode is not closed.");else if(r.substr(s+1,3)==="!--")s=Qw(r,"-->",s+3,"StopNode is not closed.");else if(r.substr(s+1,2)==="![")s=Qw(r,"]]>",s,"StopNode is not closed.")-2;else{const E=QU(r,s,">");if(E){if((E&&E.tagName)===f&&E.tagExp[E.tagExp.length-1]!=="/")h++;s=E.closeIndex}}}function BU(r,f,s){if(f&&typeof r==="string"){const w=r.trim();if(w==="true")return!0;else if(w==="false")return!1;else return wc(r,s)}else if(fK.isExist(r))return r;else return""}var fK=V3(),y1=pY(),fc=tY(),wc=sK();class wK{constructor(r){this.options=r,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(f,s)=>String.fromCharCode(Number.parseInt(s,16))}},this.addExternalEntities=hc,this.parseXml=Uc,this.parseTextData=Ec,this.resolveNameSpace=$c,this.buildAttributesMap=Fc,this.isItStopNode=Lc,this.replaceEntitiesValue=Gc,this.readStopNodeData=Rc,this.saveTextToParentTag=Cc,this.addChild=Tc}}var Ic=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),Uc=function(r){r=r.replace(/\r\n?/g,"\n");const f=new y1("!xml");let s=f,w="",h="";for(let E=0;E<r.length;E++)if(r[E]==="<")if(r[E+1]==="/"){const I=Qw(r,">",E,"Closing Tag is not closed.");let F=r.substring(E+2,I).trim();if(this.options.removeNSPrefix){const L=F.indexOf(":");if(L!==-1)F=F.substr(L+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(s)w=this.saveTextToParentTag(w,s,h);const U=h.substring(h.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let C=0;if(U&&this.options.unpairedTags.indexOf(U)!==-1)C=h.lastIndexOf(".",h.lastIndexOf(".")-1),this.tagsNodeStack.pop();else C=h.lastIndexOf(".");h=h.substring(0,C),s=this.tagsNodeStack.pop(),w="",E=I}else if(r[E+1]==="?"){let I=QU(r,E,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(w=this.saveTextToParentTag(w,s,h),this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags);else{const F=new y1(I.tagName);if(F.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent)F[":@"]=this.buildAttributesMap(I.tagExp,h,I.tagName);this.addChild(s,F,h)}E=I.closeIndex+1}else if(r.substr(E+1,3)==="!--"){const I=Qw(r,"-->",E+4,"Comment is not closed.");if(this.options.commentPropName){const F=r.substring(E+4,I-2);w=this.saveTextToParentTag(w,s,h),s.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}E=I}else if(r.substr(E+1,2)==="!D"){const I=fc(r,E);this.docTypeEntities=I.entities,E=I.i}else if(r.substr(E+1,2)==="!["){const I=Qw(r,"]]>",E,"CDATA is not closed.")-2,F=r.substring(E+9,I);w=this.saveTextToParentTag(w,s,h);let U=this.parseTextData(F,s.tagname,h,!0,!1,!0,!0);if(U==null)U="";if(this.options.cdataPropName)s.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else s.add(this.options.textNodeName,U);E=I+2}else{let I=QU(r,E,this.options.removeNSPrefix),F=I.tagName;const U=I.rawTagName;let{tagExp:C,attrExpPresent:L,closeIndex:z}=I;if(this.options.transformTagName)F=this.options.transformTagName(F);if(s&&w){if(s.tagname!=="!xml")w=this.saveTextToParentTag(w,s,h,!1)}const S=s;if(S&&this.options.unpairedTags.indexOf(S.tagname)!==-1)s=this.tagsNodeStack.pop(),h=h.substring(0,h.lastIndexOf("."));if(F!==f.tagname)h+=h?"."+F:F;if(this.isItStopNode(this.options.stopNodes,h,F)){let K="";if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);E=I.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)E=I.closeIndex;else{const l=this.readStopNodeData(r,U,z+1);if(!l)throw new Error(`Unexpected end of ${U}`);E=l.i,K=l.tagContent}const k=new y1(F);if(F!==C&&L)k[":@"]=this.buildAttributesMap(C,h,F);if(K)K=this.parseTextData(K,F,h,!0,L,!0,!0);h=h.substr(0,h.lastIndexOf(".")),k.add(this.options.textNodeName,K),this.addChild(s,k,h)}else{if(C.length>0&&C.lastIndexOf("/")===C.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),h=h.substr(0,h.length-1),C=F;else C=C.substr(0,C.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const K=new y1(F);if(F!==C&&L)K[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,K,h),h=h.substr(0,h.lastIndexOf("."))}else{const K=new y1(F);if(this.tagsNodeStack.push(s),F!==C&&L)K[":@"]=this.buildAttributesMap(C,h,F);this.addChild(s,K,h),s=K}w="",E=z}}else w+=r[E];return f.child},Gc=function(r){if(this.options.processEntities){for(let f in this.docTypeEntities){const s=this.docTypeEntities[f];r=r.replace(s.regx,s.val)}for(let f in this.lastEntities){const s=this.lastEntities[f];r=r.replace(s.regex,s.val)}if(this.options.htmlEntities)for(let f in this.htmlEntities){const s=this.htmlEntities[f];r=r.replace(s.regex,s.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};hK.exports=wK});var IK=j((Xc)=>{function Wc(r,f){return $K(r,f)}function $K(r,f,s){let w;const h={};for(let E=0;E<r.length;E++){const $=r[E],I=zc($);let F="";if(s===void 0)F=I;else F=s+"."+I;if(I===f.textNodeName)if(w===void 0)w=$[I];else w+=""+$[I];else if(I===void 0)continue;else if($[I]){let U=$K($[I],f,F);const C=Pc(U,f);if($[":@"])Sc(U,$[":@"],F,f);else if(Object.keys(U).length===1&&U[f.textNodeName]!==void 0&&!f.alwaysCreateTextNode)U=U[f.textNodeName];else if(Object.keys(U).length===0)if(f.alwaysCreateTextNode)U[f.textNodeName]="";else U="";if(h[I]!==void 0&&h.hasOwnProperty(I)){if(!Array.isArray(h[I]))h[I]=[h[I]];h[I].push(U)}else if(f.isArray(I,F,C))h[I]=[U];else h[I]=U}}if(typeof w==="string"){if(w.length>0)h[f.textNodeName]=w}else if(w!==void 0)h[f.textNodeName]=w;return h}function zc(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(w!==":@")return w}}function Sc(r,f,s,w){if(f){const h=Object.keys(f),E=h.length;for(let $=0;$<E;$++){const I=h[$];if(w.isArray(I,s+"."+I,!0,!0))r[I]=[f[I]];else r[I]=f[I]}}}function Pc(r,f){const{textNodeName:s}=f,w=Object.keys(r).length;if(w===0)return!0;if(w===1&&(r[s]||typeof r[s]==="boolean"||r[s]===0))return!0;return!1}Xc.prettify=Wc});var TK=j((g$r,UK)=>{var{buildOptions:Kc}=nY(),Zc=EK(),{prettify:Mc}=IK(),Jc=JU();class FK{constructor(r){this.externalEntities={},this.options=Kc(r)}parse(r,f){if(typeof r==="string");else if(r.toString)r=r.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(f){if(f===!0)f={};const h=Jc.validate(r,f);if(h!==!0)throw Error(`${h.err.msg}:${h.err.line}:${h.err.col}`)}const s=new Zc(this.options);s.addExternalEntities(this.externalEntities);const w=s.parseXml(r);if(this.options.preserveOrder||w===void 0)return w;else return Mc(w,this.options)}addEntity(r,f){if(f.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(r.indexOf("&")!==-1||r.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(f==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=f}}UK.exports=FK});var RK=j((x$r,AK)=>{function Qc(r,f){let s="";if(f.format&&f.indentBy.length>0)s="\n";return CK(r,f,"",s)}function CK(r,f,s,w){let h="",E=!1;for(let $=0;$<r.length;$++){const I=r[$],F=Bc(I);if(F===void 0)continue;let U="";if(s.length===0)U=F;else U=`${s}.${F}`;if(F===f.textNodeName){let K=I[F];if(!lc(U,f))K=f.tagValueProcessor(F,K),K=LK(K,f);if(E)h+=w;h+=K,E=!1;continue}else if(F===f.cdataPropName){if(E)h+=w;h+=`<![CDATA[${I[F][0][f.textNodeName]}]]>`,E=!1;continue}else if(F===f.commentPropName){h+=w+`<!--${I[F][0][f.textNodeName]}-->`,E=!0;continue}else if(F[0]==="?"){const K=GK(I[":@"],f),k=F==="?xml"?"":w;let l=I[F][0][f.textNodeName];l=l.length!==0?" "+l:"",h+=k+`<${F}${l}${K}?>`,E=!0;continue}let C=w;if(C!=="")C+=f.indentBy;const L=GK(I[":@"],f),z=w+`<${F}${L}`,S=CK(I[F],f,U,C);if(f.unpairedTags.indexOf(F)!==-1)if(f.suppressUnpairedNode)h+=z+">";else h+=z+"/>";else if((!S||S.length===0)&&f.suppressEmptyNode)h+=z+"/>";else if(S&&S.endsWith(">"))h+=z+`>${S}${w}</${F}>`;else{if(h+=z+">",S&&w!==""&&(S.includes("/>")||S.includes("</")))h+=w+f.indentBy+S+w;else h+=S;h+=`</${F}>`}E=!0}return h}function Bc(r){const f=Object.keys(r);for(let s=0;s<f.length;s++){const w=f[s];if(!r.hasOwnProperty(w))continue;if(w!==":@")return w}}function GK(r,f){let s="";if(r&&!f.ignoreAttributes)for(let w in r){if(!r.hasOwnProperty(w))continue;let h=f.attributeValueProcessor(w,r[w]);if(h=LK(h,f),h===!0&&f.suppressBooleanAttributes)s+=` ${w.substr(f.attributeNamePrefix.length)}`;else s+=` ${w.substr(f.attributeNamePrefix.length)}="${h}"`}return s}function lc(r,f){r=r.substr(0,r.length-f.textNodeName.length-1);let s=r.substr(r.lastIndexOf(".")+1);for(let w in f.stopNodes)if(f.stopNodes[w]===r||f.stopNodes[w]==="*."+s)return!0;return!1}function LK(r,f){if(r&&r.length>0&&f.processEntities)for(let s=0;s<f.entities.length;s++){const w=f.entities[s];r=r.replace(w.regex,w.val)}return r}AK.exports=Qc});var zK=j((e$r,WK)=>{function b0(r){if(this.options=Object.assign({},Hc,r),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Nc;if(this.processTextOrObjNode=Dc,this.options.format)this.indentate=kc,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""}function Dc(r,f,s){const w=this.j2x(r,s+1);if(r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1)return this.buildTextValNode(r[this.options.textNodeName],f,w.attrStr,s);else return this.buildObjectNode(w.val,f,w.attrStr,s)}function kc(r){return this.options.indentBy.repeat(r)}function Nc(r){if(r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName)return r.substr(this.attrPrefixLen);else return!1}var Vc=RK(),Hc={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,f){return f},attributeValueProcessor:function(r,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};b0.prototype.build=function(r){if(this.options.preserveOrder)return Vc(r,this.options);else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)r={[this.options.arrayNodeName]:r};return this.j2x(r,0).val}};b0.prototype.j2x=function(r,f){let s="",w="";for(let h in r){if(!Object.prototype.hasOwnProperty.call(r,h))continue;if(typeof r[h]==="undefined"){if(this.isAttribute(h))w+=""}else if(r[h]===null)if(this.isAttribute(h))w+="";else if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(r[h]instanceof Date)w+=this.buildTextValNode(r[h],h,"",f);else if(typeof r[h]!=="object"){const E=this.isAttribute(h);if(E)s+=this.buildAttrPairStr(E,""+r[h]);else if(h===this.options.textNodeName){let $=this.options.tagValueProcessor(h,""+r[h]);w+=this.replaceEntitiesValue($)}else w+=this.buildTextValNode(r[h],h,"",f)}else if(Array.isArray(r[h])){const E=r[h].length;let $="",I="";for(let F=0;F<E;F++){const U=r[h][F];if(typeof U==="undefined");else if(U===null)if(h[0]==="?")w+=this.indentate(f)+"<"+h+"?"+this.tagEndChar;else w+=this.indentate(f)+"<"+h+"/"+this.tagEndChar;else if(typeof U==="object")if(this.options.oneListGroup){const C=this.j2x(U,f+1);if($+=C.val,this.options.attributesGroupName&&U.hasOwnProperty(this.options.attributesGroupName))I+=C.attrStr}else $+=this.processTextOrObjNode(U,h,f);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(h,U);C=this.replaceEntitiesValue(C),$+=C}else $+=this.buildTextValNode(U,h,"",f)}if(this.options.oneListGroup)$=this.buildObjectNode($,h,I,f);w+=$}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const E=Object.keys(r[h]),$=E.length;for(let I=0;I<$;I++)s+=this.buildAttrPairStr(E[I],""+r[h][E[I]])}else w+=this.processTextOrObjNode(r[h],h,f)}return{attrStr:s,val:w}};b0.prototype.buildAttrPairStr=function(r,f){if(f=this.options.attributeValueProcessor(r,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true")return" "+r;else return" "+r+'="'+f+'"'};b0.prototype.buildObjectNode=function(r,f,s,w){if(r==="")if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else{let h="</"+f+this.tagEndChar,E="";if(f[0]==="?")E="?",h="";if((s||s==="")&&r.indexOf("<")===-1)return this.indentate(w)+"<"+f+s+E+">"+r+h;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName&&E.length===0)return this.indentate(w)+`<!--${r}-->`+this.newLine;else return this.indentate(w)+"<"+f+s+E+this.tagEndChar+r+this.indentate(w)+h}};b0.prototype.closeTag=function(r){let f="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)f="/"}else if(this.options.suppressEmptyNode)f="/";else f=`></${r}`;return f};b0.prototype.buildTextValNode=function(r,f,s,w){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(w)+`<![CDATA[${r}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(w)+`<!--${r}-->`+this.newLine;else if(f[0]==="?")return this.indentate(w)+"<"+f+s+"?"+this.tagEndChar;else{let h=this.options.tagValueProcessor(f,r);if(h=this.replaceEntitiesValue(h),h==="")return this.indentate(w)+"<"+f+s+this.closeTag(f)+this.tagEndChar;else return this.indentate(w)+"<"+f+s+">"+h+"</"+f+this.tagEndChar}};b0.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const s=this.options.entities[f];r=r.replace(s.regex,s.val)}return r};WK.exports=b0});var PK=j((n$r,SK)=>{var yc=JU(),qc=TK(),mc=zK();SK.exports={XMLParser:qc,XMLValidator:yc,XMLBuilder:mc}});var JK=j((o$r,MK)=>{var{defineProperty:H3,getOwnPropertyDescriptor:vc,getOwnPropertyNames:jc}=Object,ic=Object.prototype.hasOwnProperty,Ws=(r,f)=>H3(r,"name",{value:f,configurable:!0}),dc=(r,f)=>{for(var s in f)H3(r,s,{get:f[s],enumerable:!0})},Oc=(r,f,s,w)=>{if(f&&typeof f==="object"||typeof f==="function"){for(let h of jc(f))if(!ic.call(r,h)&&h!==s)H3(r,h,{get:()=>f[h],enumerable:!(w=vc(f,h))||w.enumerable})}return r},bc=(r)=>Oc(H3({},"__esModule",{value:!0}),r),XK={};dc(XK,{_toBool:()=>_c,_toNum:()=>gc,_toStr:()=>cc,awsExpectUnion:()=>ec,loadRestJsonErrorCode:()=>ac,loadRestXmlErrorCode:()=>r_,parseJsonBody:()=>KK,parseJsonErrorBody:()=>oc,parseXmlBody:()=>ZK,parseXmlErrorBody:()=>tc});MK.exports=bc(XK);var cc=Ws((r)=>{if(r==null)return r;if(typeof r==="number"||typeof r==="bigint"){const f=new Error(`Received number ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}if(typeof r==="boolean"){const f=new Error(`Received boolean ${r} where a string was expected.`);return f.name="Warning",console.warn(f),String(r)}return r},"_toStr"),_c=Ws((r)=>{if(r==null)return r;if(typeof r==="string"){const f=r.toLowerCase();if(r!==""&&f!=="false"&&f!=="true"){const s=new Error(`Received string "${r}" where a boolean was expected.`);s.name="Warning",console.warn(s)}return r!==""&&f!=="false"}return r},"_toBool"),gc=Ws((r)=>{if(r==null)return r;if(typeof r==="string"){const f=Number(r);if(f.toString()!==r){const s=new Error(`Received string "${r}" where a number was expected.`);return s.name="Warning",console.warn(s),r}return f}return r},"_toNum"),xc=Eh(),ec=Ws((r)=>{if(r==null)return;if(typeof r==="object"&&"__type"in r)delete r.__type;return xc.expectUnion(r)},"awsExpectUnion"),nc=Eh(),YK=Ws((r,f)=>nc.collectBody(r,f).then((s)=>f.utf8Encoder(s)),"collectBodyString"),KK=Ws((r,f)=>YK(r,f).then((s)=>{if(s.length)try{return JSON.parse(s)}catch(w){if((w==null?void 0:w.name)==="SyntaxError")Object.defineProperty(w,"$responseBodyText",{value:s});throw w}return{}}),"parseJsonBody"),oc=Ws(async(r,f)=>{const s=await KK(r,f);return s.message=s.message??s.Message,s},"parseJsonErrorBody"),ac=Ws((r,f)=>{const s=Ws((E,$)=>Object.keys(E).find((I)=>I.toLowerCase()===$.toLowerCase()),"findKey"),w=Ws((E)=>{let $=E;if(typeof $==="number")$=$.toString();if($.indexOf(",")>=0)$=$.split(",")[0];if($.indexOf(":")>=0)$=$.split(":")[0];if($.indexOf("#")>=0)$=$.split("#")[1];return $},"sanitizeErrorCode"),h=s(r.headers,"x-amzn-errortype");if(h!==void 0)return w(r.headers[h]);if(f.code!==void 0)return w(f.code);if(f.__type!==void 0)return w(f.__type)},"loadRestJsonErrorCode"),pc=Eh(),uc=PK(),ZK=Ws((r,f)=>YK(r,f).then((s)=>{if(s.length){const w=new uc.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,U)=>U.trim()===""&&U.includes("\n")?"":void 0});w.addEntity("#xD","\r"),w.addEntity("#10","\n");let h;try{h=w.parse(s,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:s});throw F}const E="#text",$=Object.keys(h)[0],I=h[$];if(I[E])I[$]=I[E],delete I[E];return pc.getValueFromTextNode(I)}return{}}),"parseXmlBody"),tc=Ws(async(r,f)=>{const s=await ZK(r,f);if(s.Error)s.Error.message=s.Error.message??s.Error.Message;return s},"parseXmlErrorBody"),r_=Ws((r,f)=>{var s;if(((s=f==null?void 0:f.Error)==null?void 0:s.Code)!==void 0)return f.Error.Code;if((f==null?void 0:f.Code)!==void 0)return f.Code;if(r.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var lr=j((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});var lU=$Y();lU.__exportStar(TY(),q1);lU.__exportStar(dY(),q1);lU.__exportStar(JK(),q1)});var D3="AWS_ACCESS_KEY_ID",k3="AWS_SECRET_ACCESS_KEY",kK="AWS_SESSION_TOKEN",NK="AWS_CREDENTIAL_EXPIRATION",yK="AWS_CREDENTIAL_SCOPE",qK="AWS_ACCOUNT_ID",VU=(r)=>async()=>{r?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const f=process.env[D3],s=process.env[k3],w=process.env[kK],h=process.env[NK],E=process.env[yK],$=process.env[qK];if(f&&s)return{accessKeyId:f,secretAccessKey:s,...w&&{sessionToken:w},...h&&{expiration:new Date(h)},...E&&{credentialScope:E},...$&&{accountId:$}};throw new g("Unable to find environment variable credentials.",{logger:r?.logger})};var mK=G(()=>{Lr()});var vK={};Af(vK,{fromEnv:()=>VU,ENV_SESSION:()=>kK,ENV_SECRET:()=>k3,ENV_KEY:()=>D3,ENV_EXPIRATION:()=>NK,ENV_CREDENTIAL_SCOPE:()=>yK,ENV_ACCOUNT_ID:()=>qK});var HU=G(()=>{mK()});import{Buffer as w_}from"buffer";import{request as h_}from"http";function c0(r){return new Promise((f,s)=>{const w=h_({method:"GET",...r,hostname:r.hostname?.replace(/^\[(.+)\]$/,"$1")});w.on("error",(h)=>{s(Object.assign(new Bs("Unable to connect to instance metadata service"),h)),w.destroy()}),w.on("timeout",()=>{s(new Bs("TimeoutError from instance metadata service")),w.destroy()}),w.on("response",(h)=>{const{statusCode:E=400}=h;if(E<200||300<=E)s(Object.assign(new Bs("Error response received from instance metadata service"),{statusCode:E})),w.destroy();const $=[];h.on("data",(I)=>{$.push(I)}),h.on("end",()=>{f(w_.concat($)),w.destroy()})}),w.end()})}var N3=G(()=>{Lr()});var y3=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.AccessKeyId==="string"&&typeof r.SecretAccessKey==="string"&&typeof r.Token==="string"&&typeof r.Expiration==="string",q3=(r)=>({accessKeyId:r.AccessKeyId,secretAccessKey:r.SecretAccessKey,sessionToken:r.Token,expiration:new Date(r.Expiration),...r.AccountId&&{accountId:r.AccountId}});var E_=1000,$_=0,m1=({maxRetries:r=0,timeout:f=1000})=>({maxRetries:r,timeout:f});var v1=(r,f)=>{let s=r();for(let w=0;w<f;w++)s=s.catch(r);return s};import{parse as I_}from"url";var m3="AWS_CONTAINER_CREDENTIALS_FULL_URI",v3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",DU="AWS_CONTAINER_AUTHORIZATION_TOKEN",F_=(r={})=>{const{timeout:f,maxRetries:s}=m1(r);return()=>v1(async()=>{const w=await L_({logger:r.logger}),h=JSON.parse(await U_(f,w));if(!y3(h))throw new g("Invalid response received from instance metadata service.",{logger:r.logger});return q3(h)},s)},U_=async(r,f)=>{if(process.env[DU])f.headers={...f.headers,Authorization:process.env[DU]};return(await c0({...f,timeout:r})).toString()},T_="169.254.170.2",G_,C_,L_=async({logger:r})=>{if(process.env[v3])return{hostname:T_,path:process.env[v3]};if(process.env[m3]){const f=I_(process.env[m3]);if(!f.hostname||!(f.hostname in G_))throw new g(`${f.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:r});if(!f.protocol||!(f.protocol in C_))throw new g(`${f.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:r});return{...f,port:f.port?parseInt(f.port,10):void 0}}throw new g(`The container metadata credential provider cannot be used unless the ${v3} or ${m3} environment variable is set`,{tryNextLink:!1,logger:r})};var jK=G(()=>{Lr();N3();G_={localhost:!0,"127.0.0.1":!0},C_={"http:":!0,"https:":!0}});var j3;var iK=G(()=>{Lr();j3=class j3 extends g{constructor(r,f=!0){super(r,f);this.tryNextLink=f,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,j3.prototype)}}});var Bw;var kU=G(()=>{(function(r){r.IPv4="http://169.254.169.254",r.IPv6="http://[fd00:ec2::254]"})(Bw||(Bw={}))});var dK;var OK=G(()=>{dK={environmentVariableSelector:(r)=>r.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(r)=>r.ec2_metadata_service_endpoint,default:void 0}});var _0;var NU=G(()=>{(function(r){r.IPv4="IPv4",r.IPv6="IPv6"})(_0||(_0={}))});var A_="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",R_="ec2_metadata_service_endpoint_mode",bK;var cK=G(()=>{NU();bK={environmentVariableSelector:(r)=>r[A_],configFileSelector:(r)=>r[R_],default:_0.IPv4}});var i3=async()=>_r(await W_()||await z_()),W_=async()=>t(dK)(),z_=async()=>{const r=await t(bK)();switch(r){case _0.IPv4:return Bw.IPv4;case _0.IPv6:return Bw.IPv6;default:throw new Error(`Unsupported endpoint mode: ${r}. Select from ${Object.values(_0)}`)}};var yU=G(()=>{sf();j0();kU();OK();NU();cK()});var qU=(r,f)=>{const s=300+Math.floor(Math.random()*300),w=new Date(Date.now()+s*1000);f.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(w)}.\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);const h=r.originalExpiration??r.expiration;return{...r,...h?{originalExpiration:h}:{},expiration:w}};var _K=(r,f={})=>{const s=f?.logger||console;let w;return async()=>{let h;try{if(h=await r(),h.expiration&&h.expiration.getTime()<Date.now())h=qU(h,s)}catch(E){if(w)s.warn("Credential renew failed: ",E),h=qU(w,s);else throw E}return w=h,h}};var gK=()=>{};var nK="/latest/meta-data/iam/security-credentials/",S_="/latest/api/token",mU="AWS_EC2_METADATA_V1_DISABLED",xK="ec2_metadata_v1_disabled",eK="x-aws-ec2-metadata-token",P_=(r={})=>_K(X_(r),{logger:r.logger}),X_=(r={})=>{let f=!1;const{logger:s,profile:w}=r,{timeout:h,maxRetries:E}=m1(r),$=async(I,F)=>{if(f||F.headers?.[eK]==null){let L=!1,z=!1;const S=await t({environmentVariableSelector:(K)=>{const k=K[mU];if(z=!!k&&k!=="false",k===void 0)throw new g(`${mU} not set in env, checking config file next.`,{logger:r.logger});return z},configFileSelector:(K)=>{const k=K[xK];return L=!!k&&k!=="false",L},default:!1},{profile:w})();if(r.ec2MetadataV1Disabled||S){const K=[];if(r.ec2MetadataV1Disabled)K.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(L)K.push(`config file profile (${xK})`);if(z)K.push(`process environment variable (${mU})`);throw new j3(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${K.join(", ")}].`)}}const C=(await v1(async()=>{let L;try{L=await K_(F)}catch(z){if(z.statusCode===401)f=!1;throw z}return L},I)).trim();return v1(async()=>{let L;try{L=await Z_(C,F,r)}catch(z){if(z.statusCode===401)f=!1;throw z}return L},I)};return async()=>{const I=await i3();if(f)return s?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),$(E,{...I,timeout:h});else{let F;try{F=(await Y_({...I,timeout:h})).toString()}catch(U){if(U?.statusCode===400)throw Object.assign(U,{message:"EC2 Metadata token request returned error"});else if(U.message==="TimeoutError"||[403,404,405].includes(U.statusCode))f=!0;return s?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),$(E,{...I,timeout:h})}return $(E,{...I,headers:{[eK]:F},timeout:h})}}},Y_=async(r)=>c0({...r,path:S_,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),K_=async(r)=>(await c0({...r,path:nK})).toString(),Z_=async(r,f,s)=>{const w=JSON.parse((await c0({...f,path:nK+r})).toString());if(!y3(w))throw new g("Invalid response received from instance metadata service.",{logger:s.logger});return q3(w)};var oK=G(()=>{sf();Lr();iK();N3();yU();gK()});var aK=()=>{};var j1={};Af(j1,{providerConfigFromInit:()=>m1,httpRequest:()=>c0,getInstanceMetadataEndpoint:()=>i3,fromInstanceMetadata:()=>P_,fromContainerMetadata:()=>F_,Endpoint:()=>Bw,ENV_CMDS_RELATIVE_URI:()=>v3,ENV_CMDS_FULL_URI:()=>m3,ENV_CMDS_AUTH_TOKEN:()=>DU,DEFAULT_TIMEOUT:()=>E_,DEFAULT_MAX_RETRIES:()=>$_});var i1=G(()=>{jK();oK();aK();N3();yU();kU()});var d1=(r)=>encodeURIComponent(r).replace(/[!'()*]/g,M_),M_=(r)=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`;var pK=()=>{};var uK=G(()=>{pK()});function vU(r){const f=[];for(let s of Object.keys(r).sort()){const w=r[s];if(s=d1(s),Array.isArray(w))for(let h=0,E=w.length;h<E;h++)f.push(`${s}=${d1(w[h])}`);else{let h=s;if(w||typeof w==="string")h+=`=${d1(w)}`;f.push(h)}}return f.join("&")}var jU=G(()=>{uK()});var tK;var r7=G(()=>{tK=["ECONNRESET","EPIPE","ETIMEDOUT"]});var iU=(r)=>{const f={};for(let s of Object.keys(r)){const w=r[s];f[s]=Array.isArray(w)?w.join(","):w}return f};var dU=()=>{};var s7=(r,f,s=0)=>{if(!s)return;const w=setTimeout(()=>{r.destroy(),f(Object.assign(new Error(`Socket timed out without establishing a connection within ${s} ms`),{name:"TimeoutError"}))},s);r.on("socket",(h)=>{if(h.connecting)h.on("connect",()=>{clearTimeout(w)});else clearTimeout(w)})};var f7=(r,{keepAlive:f,keepAliveMsecs:s})=>{if(f!==!0)return;r.on("socket",(w)=>{w.setKeepAlive(f,s||0)})};var w7=(r,f,s=0)=>{r.setTimeout(s,()=>{r.destroy(),f(Object.assign(new Error(`Connection timed out after ${s} ms`),{name:"TimeoutError"}))})};import{Readable as J_}from"stream";async function OU(r,f,s=h7){const w=f.headers??{},h=w.Expect||w.expect;let E=-1,$=!1;if(h==="100-continue")await Promise.race([new Promise((I)=>{E=Number(setTimeout(I,Math.max(h7,s)))}),new Promise((I)=>{r.on("continue",()=>{clearTimeout(E),I()}),r.on("error",()=>{$=!0,clearTimeout(E),I()})})]);if(!$)Q_(r,f.body)}function Q_(r,f){if(f instanceof J_){f.pipe(r);return}if(f){if(Buffer.isBuffer(f)||typeof f==="string"){r.end(f);return}const s=f;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){r.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}r.end(Buffer.from(f));return}r.end()}var h7=1000;var bU=()=>{};import{Agent as E7,request as B_}from"http";import{Agent as $7,request as l_}from"https";class tr{static create(r){if(typeof r?.handle==="function")return r;return new tr(r)}static checkSocketUsage(r,f,s=console){const{sockets:w,requests:h,maxSockets:E}=r;if(typeof E!=="number"||E===1/0)return f;const $=15000;if(Date.now()-$<f)return f;if(w&&h)for(let I in w){const F=w[I]?.length??0,U=h[I]?.length??0;if(F>=E&&U>=2*E)return s?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${U} additional requests are enqueued.
20
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
21
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return f}constructor(r){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,s)=>{if(typeof r==="function")r().then((w)=>{f(this.resolveDefaultConfig(w))}).catch(s);else f(this.resolveDefaultConfig(r))})}resolveDefaultConfig(r){const{requestTimeout:f,connectionTimeout:s,socketTimeout:w,httpAgent:h,httpsAgent:E}=r||{};return{connectionTimeout:s,requestTimeout:f??w,httpAgent:(()=>{if(h instanceof E7||typeof h?.destroy==="function")return h;return new E7({keepAlive:!0,maxSockets:50,...h})})(),httpsAgent:(()=>{if(E instanceof $7||typeof E?.destroy==="function")return E;return new $7({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(r,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;let s;return new Promise((w,h)=>{let E=void 0;const $=async(Q)=>{await E,clearTimeout(s),w(Q)},I=async(Q)=>{await E,clearTimeout(s),h(Q)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f?.aborted){const Q=new Error("Request aborted");Q.name="AbortError",I(Q);return}const F=r.protocol==="https:",U=F?this.config.httpsAgent:this.config.httpAgent;s=setTimeout(()=>{this.socketWarningTimestamp=tr.checkSocketUsage(U,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const C=vU(r.query||{});let L=void 0;if(r.username!=null||r.password!=null){const Q=r.username??"",N=r.password??"";L=`${Q}:${N}`}let z=r.path;if(C)z+=`?${C}`;if(r.fragment)z+=`#${r.fragment}`;const S={headers:r.headers,host:r.hostname,method:r.method,path:z,port:r.port,agent:U,auth:L},k=(F?l_:B_)(S,(Q)=>{const N=new Gw({statusCode:Q.statusCode||-1,reason:Q.statusMessage,headers:iU(Q.headers),body:Q});$({response:N})});if(k.on("error",(Q)=>{if(tK.includes(Q.code))I(Object.assign(Q,{name:"TimeoutError"}));else I(Q)}),s7(k,I,this.config.connectionTimeout),w7(k,I,this.config.requestTimeout),f){const Q=()=>{k.destroy();const N=new Error("Request aborted");N.name="AbortError",I(N)};if(typeof f.addEventListener==="function"){const N=f;N.addEventListener("abort",Q,{once:!0}),k.once("close",()=>N.removeEventListener("abort",Q))}else f.onabort=Q}const l=S.agent;if(typeof l==="object"&&"keepAlive"in l)f7(k,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs});E=OU(k,r,this.config.requestTimeout).catch((Q)=>{return clearTimeout(s),h(Q)})})}updateHttpClientConfig(r,f){this.config=void 0,this.configProvider=this.configProvider.then((s)=>{return{...s,[r]:f}})}httpHandlerConfigs(){return this.config??{}}}var I7=G(()=>{qr();jU();r7();dU();bU()});var F7=()=>{};var U7=G(()=>{F7()});var T7=G(()=>{qr();jU();dU();U7();bU()});import{Writable as V_}from"stream";var cU;var G7=G(()=>{cU=class cU extends V_{constructor(){super(...arguments);this.bufferedBytes=[]}_write(r,f,s){this.bufferedBytes.push(r),s()}}});async function D_(r){const f=[],s=r.getReader();let w=!1,h=0;while(!w){const{done:I,value:F}=await s.read();if(F)f.push(F),h+=F.length;w=I}const E=new Uint8Array(h);let $=0;for(let I of f)E.set(I,$),$+=I.length;return E}var cf=(r)=>{if(H_(r))return D_(r);return new Promise((f,s)=>{const w=new cU;r.pipe(w),r.on("error",(h)=>{w.end(),s(h)}),w.on("error",s),w.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.bufferedBytes));f(h)})})},H_=(r)=>typeof ReadableStream==="function"&&r instanceof ReadableStream;var C7=G(()=>{G7()});var lw=G(()=>{I7();T7();C7()});var k_="169.254.170.2",N_="169.254.170.23",y_="[fd00:ec2::23]",L7=(r,f)=>{if(r.protocol==="https:")return;if(r.hostname===k_||r.hostname===N_||r.hostname===y_)return;if(r.hostname.includes("[")){if(r.hostname==="[::1]"||r.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(r.hostname==="localhost")return;const s=r.hostname.split("."),w=(h)=>{const E=parseInt(h,10);return 0<=E&&E<=255};if(s[0]==="127"&&w(s[1])&&w(s[2])&&w(s[3])&&s.length===4)return}throw new g(`URL not accepted. It must either be HTTPS or match one of the following:
22
22
  - loopback CIDR 127.0.0.0/8 or [::1/128]
23
23
  - ECS container host 169.254.170.2
24
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:f})};var cZ=G(()=>{Lr()});function bZ(r){return new Qr({protocol:r.protocol,hostname:r.hostname,port:Number(r.port),path:r.pathname,query:Array.from(r.searchParams.entries()).reduce((f,[s,w])=>{return f[s]=w,f},{}),fragment:r.hash})}async function gZ(r,f){const w=await gX(r.body).transformToString();if(r.statusCode===200){const h=JSON.parse(w);if(typeof h.AccessKeyId!=="string"||typeof h.SecretAccessKey!=="string"||typeof h.Token!=="string"||typeof h.Expiration!=="string")throw new _("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:f});return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.Token,expiration:hY(h.Expiration)}}if(r.statusCode>=400&&r.statusCode<500){let h={};try{h=JSON.parse(w)}catch($){}throw Object.assign(new _(`Server responded with status: ${r.statusCode}`,{logger:f}),{Code:h.Code,Message:h.Message})}throw new _(`Server responded with status: ${r.statusCode}`,{logger:f})}var _Z=G(()=>{Lr();ir();Y();W5()});var xZ=(r,f,s)=>{return async()=>{for(let w=0;w<f;++w)try{return await r()}catch(h){await new Promise(($)=>setTimeout($,s))}return await r()}};import I_ from"fs/promises";var F_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",U_="http://169.254.170.2",T_="AWS_CONTAINER_CREDENTIALS_FULL_URI",G_="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",C_="AWS_CONTAINER_AUTHORIZATION_TOKEN",eZ=(r={})=>{r.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let f;const s=r.awsContainerCredentialsRelativeUri??process.env[F_],w=r.awsContainerCredentialsFullUri??process.env[T_],h=r.awsContainerAuthorizationToken??process.env[C_],$=r.awsContainerAuthorizationTokenFile??process.env[G_],E=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console.warn:r.logger.warn;if(s&&w)E("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),E("awsContainerCredentialsFullUri will take precedence.");if(h&&$)E("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),E("awsContainerAuthorizationToken will take precedence.");if(w)f=w;else if(s)f=`${U_}${s}`;else throw new _(`No HTTP credential provider host provided.
25
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger});const I=new URL(f);OZ(I,r.logger);const F=new tr({requestTimeout:r.timeout??1000,connectionTimeout:r.timeout??1000});return xZ(async()=>{const U=bZ(I);if(h)U.headers.Authorization=h;else if($)U.headers.Authorization=(await I_.readFile($)).toString();try{const C=await F.handle(U);return gZ(C.response)}catch(C){throw new _(String(C),{logger:r.logger})}},r.maxRetries??3,r.timeout??1000)};var nZ=G(()=>{_0();Lr();cZ();_Z()});var o5={};Sf(o5,{fromHttp:()=>eZ});var a5=G(()=>{nZ()});var L_="AWS_EC2_METADATA_DISABLED",oZ=async(r)=>{const{ENV_CMDS_FULL_URI:f,ENV_CMDS_RELATIVE_URI:s,fromContainerMetadata:w,fromInstanceMetadata:h}=await Promise.resolve().then(() => (c1(),O1));if(process.env[s]||process.env[f]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:$}=await Promise.resolve().then(() => (a5(),o5));return A0($(r),w(r))}if(process.env[L_])return async()=>{throw new _("EC2 Instance Metadata Service access disabled",{logger:r.logger})};return r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),h(r)};var aZ=G(()=>{Lr()});var p5=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var pZ=300000,Yh="To refresh this SSO session run 'aws sso login' with the corresponding profile.";function A_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function u5(r){return{schemeId:"smithy.api#noAuth"}}var uZ,tZ=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},r7=(r)=>{const f=[];switch(r.operation){case"CreateToken":{f.push(u5(r));break}case"RegisterClient":{f.push(u5(r));break}case"StartDeviceAuthorization":{f.push(u5(r));break}default:f.push(A_(r))}return f},s7=(r)=>{return{...uZ.resolveAwsSdkSigV4Config(r)}};var t5=G(()=>{uZ=u(Br(),1);rf()});var f7=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},p0;var Kh=G(()=>{p0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var h7;var w7=G(()=>{h7={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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",peerDependencies:{"@aws-sdk/client-sts":"^3.637.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var rT;var sT=G(()=>{rT={isCrtAvailable:!1}});var $7=()=>{if(rT.isCrtAvailable)return["md/crt-avail"];return null};var E7=G(()=>{sT()});import{platform as W_,release as z_}from"os";import{env as I7,versions as S_}from"process";var P_="AWS_SDK_UA_APP_ID",X_="sdk-ua-app-id",nf=({serviceId:r,clientVersion:f})=>{const s=[["aws-sdk-js",f],["ua","2.0"],[`os/${W_()}`,z_()],["lang/js"],["md/nodejs",`${S_.node}`]],w=$7();if(w)s.push(w);if(r)s.push([`api/${r}`,f]);if(I7.AWS_EXECUTION_ENV)s.push([`exec-env/${I7.AWS_EXECUTION_ENV}`]);const h=t({environmentVariableSelector:(E)=>E[P_],configFileSelector:(E)=>E[X_],default:void 0})();let $=void 0;return async()=>{if(!$){const E=await h;$=E?[...s,[`app/${E}`]]:[...s]}return $}};var Zh=G(()=>{$f();E7();sT()});import{Buffer as Y_}from"buffer";import{createHash as K_,createHmac as Z_}from"crypto";function F7(r,f){if(Y_.isBuffer(r))return r;if(typeof r==="string")return Wh(r,f);if(ArrayBuffer.isView(r))return R0(r.buffer,r.byteOffset,r.byteLength);return R0(r)}class If{constructor(r,f){this.algorithmIdentifier=r,this.secret=f,this.reset()}update(r,f){this.hash.update(TX(F7(r,f)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Z_(this.algorithmIdentifier,F7(this.secret)):K_(this.algorithmIdentifier)}}var lh=G(()=>{Qw();jf()});import{fstatSync as l_,lstatSync as J_}from"fs";var of=(r)=>{if(!r)return 0;if(typeof r==="string")return Buffer.byteLength(r);else if(typeof r.byteLength==="number")return r.byteLength;else if(typeof r.size==="number")return r.size;else if(typeof r.start==="number"&&typeof r.end==="number")return r.end+1-r.start;else if(typeof r.path==="string"||Buffer.isBuffer(r.path))return J_(r.path).size;else if(typeof r.fd==="number")return l_(r.fd).size;throw new Error(`Body Length computation failed for ${r}`)};var U7=()=>{};var Jh=G(()=>{U7()});var T7,G7,C7,S7,P7,qs,L7,X7,A7,R7,W7,z7,Q_,Y7;var K7=G(()=>{T7={["required"]:!1,type:"String"},G7={["required"]:!0,default:!1,type:"Boolean"},C7={["ref"]:"Endpoint"},S7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},P7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},qs={},L7={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},X7={["ref"]:"PartitionResult"},A7={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[X7,"supportsDualStack"]}]},R7=[S7],W7=[P7],z7=[{["ref"]:"Region"}],Q_={version:"1.0",parameters:{Region:T7,UseDualStack:G7,UseFIPS:G7,Endpoint:T7},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[C7]}],rules:[{conditions:R7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:W7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:C7,properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:z7}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:z7,assign:"PartitionResult"}],rules:[{conditions:[S7,P7],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,L7]},A7],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:R7,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[L7,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[X7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:qs,headers:qs},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:W7,rules:[{conditions:[A7],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:qs,headers:qs},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},Y7=Q_});var Z7=(r,f={})=>{return ps(Y7,{endpointParams:r,logger:f.logger})};var l7=G(()=>{Ww();us();K7();ur.aws=ts});var J7,Q7,M7=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??Z7,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??r7,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new J7.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q7.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var B7=G(()=>{J7=u(Br(),1),Q7=u(Or(),1);Y();b0();W0();jf();t5();l7()});var H7="AWS_EXECUTION_ENV",fT="AWS_REGION",wT="AWS_DEFAULT_REGION",V7="AWS_EC2_METADATA_DISABLED",k7,D7="/latest/meta-data/placement/region";var i7=G(()=>{k7=["in-region","cross-region","mobile","standard","legacy"]});var y7;var m7=G(()=>{y7={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var af=({region:r=t(Qs),defaultsMode:f=t(y7)}={})=>Kw(async()=>{const s=typeof f==="function"?await f():f;switch(s?.toLowerCase()){case"auto":return M_(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(s?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${k7.join(", ")}, got ${s}`)}}),M_=async(r)=>{if(r){const f=typeof r==="function"?await r():r,s=await B_();if(!s)return"standard";if(f===s)return"in-region";else return"cross-region"}return"standard"},B_=async()=>{if(process.env[H7]&&(process.env[fT]||process.env[wT]))return process.env[fT]??process.env[wT];if(!process.env[V7])try{const{getInstanceMetadataEndpoint:r,httpRequest:f}=await Promise.resolve().then(() => (c1(),O1)),s=await r();return(await f({...s,path:D7})).toString()}catch(r){}};var N7=G(()=>{Ms();$f();Lr();i7();m7()});var Qh=G(()=>{N7()});var q7,v7=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=M7(r);return q7.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:h7.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};var j7=G(()=>{w7();q7=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();B7();Y();Qh();Y()});var pf=(r)=>{let f=async()=>{if(r.region===void 0)throw new Error("Region is missing from runtimeConfig");const s=r.region;if(typeof s==="string")return s;return s()};return{setRegion(s){f=s},region(){return f}}},uf=(r)=>{return{region:r.region()}};var d7=()=>{};var O7=()=>{};var c7=G(()=>{O7()});var b7=G(()=>{d7();c7()});var Mh=G(()=>{b7()});var g7=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},_7=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var b3=(r)=>r,x7=(r,f)=>{const s={...b3(pf(r)),...b3(_f(r)),...b3(Pf(r)),...b3(g7(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),..._7(s)}};var e7=G(()=>{Mh();ir();Y()});var Bh,g3;var hT=G(()=>{aw();pw();uw();rh();Ms();Bh=u(Or(),1);Th();M();Ef();Y();t5();Kh();j7();e7();g3=class g3 extends zs{constructor(...[r]){const f=v7(r||{}),s=f7(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=s7(I),U=x7(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Bh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:tZ,identityProviderConfigProvider:async(C)=>new Bh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Bh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var Hr;var _3=G(()=>{Y();Hr=class Hr extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,Hr.prototype)}}});var g1,_1,x1,e1,n1,o1,a1,p1,u1,t1,r$,s$,f$,w$,$T=(r)=>({...r,...r.clientSecret&&{clientSecret:o},...r.refreshToken&&{refreshToken:o},...r.codeVerifier&&{codeVerifier:o}}),ET=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),IT=(r)=>({...r,...r.refreshToken&&{refreshToken:o},...r.assertion&&{assertion:o},...r.subjectToken&&{subjectToken:o},...r.codeVerifier&&{codeVerifier:o}}),FT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),UT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}}),TT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}});var iw=G(()=>{Y();_3();g1=class g1 extends Hr{constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,g1.prototype),this.error=r.error,this.error_description=r.error_description}};_1=class _1 extends Hr{constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,_1.prototype),this.error=r.error,this.error_description=r.error_description}};x1=class x1 extends Hr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,x1.prototype),this.error=r.error,this.error_description=r.error_description}};e1=class e1 extends Hr{constructor(r){super({name:"InternalServerException",$fault:"server",...r});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,e1.prototype),this.error=r.error,this.error_description=r.error_description}};n1=class n1 extends Hr{constructor(r){super({name:"InvalidClientException",$fault:"client",...r});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,n1.prototype),this.error=r.error,this.error_description=r.error_description}};o1=class o1 extends Hr{constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,o1.prototype),this.error=r.error,this.error_description=r.error_description}};a1=class a1 extends Hr{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,a1.prototype),this.error=r.error,this.error_description=r.error_description}};p1=class p1 extends Hr{constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,p1.prototype),this.error=r.error,this.error_description=r.error_description}};u1=class u1 extends Hr{constructor(r){super({name:"SlowDownException",$fault:"client",...r});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,u1.prototype),this.error=r.error,this.error_description=r.error_description}};t1=class t1 extends Hr{constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,t1.prototype),this.error=r.error,this.error_description=r.error_description}};r$=class r$ extends Hr{constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,r$.prototype),this.error=r.error,this.error_description=r.error_description}};s$=class s$ extends Hr{constructor(r){super({name:"InvalidRequestRegionException",$fault:"client",...r});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,s$.prototype),this.error=r.error,this.error_description=r.error_description,this.endpoint=r.endpoint,this.region=r.region}};f$=class f$ extends Hr{constructor(r){super({name:"InvalidClientMetadataException",$fault:"client",...r});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,f$.prototype),this.error=r.error,this.error_description=r.error_description}};w$=class w$ extends Hr{constructor(r){super({name:"InvalidRedirectUriException",$fault:"client",...r});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,w$.prototype),this.error=r.error,this.error_description=r.error_description}}});var P0,h$,n7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:($)=>m($)})),s.m("POST").h(w).b(h),s.build()},o7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");const h=P({[__]:[,"t"]});let $;return $=JSON.stringify(p(r,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(E)=>m(E),subjectToken:[],subjectTokenType:[]})),s.m("POST").h(w).q(h).b($),s.build()},a7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/client/register");let h;return h=JSON.stringify(p(r,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:($)=>m($),issuerUrl:[],redirectUris:($)=>m($),scopes:($)=>m($)})),s.m("POST").h(w).b(h),s.build()},p7=async(r,f)=>{const s=h$.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/device_authorization");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],startUrl:[]})),s.m("POST").h(w).b(h),s.build()},u7=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Mw,idToken:T,refreshToken:T,tokenType:T});return Object.assign(s,h),s},t7=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Mw,idToken:T,issuedTokenType:T,refreshToken:T,scope:m,tokenType:T});return Object.assign(s,h),s},rl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{authorizationEndpoint:T,clientId:T,clientIdIssuedAt:zh,clientSecret:T,clientSecretExpiresAt:zh,tokenEndpoint:T});return Object.assign(s,h),s},sl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return x3(r,f);const s=P({$metadata:qr(r)}),w=y(d(await P0.parseJsonBody(r.body,f)),"body"),h=p(w,{deviceCode:T,expiresIn:Mw,interval:Mw,userCode:T,verificationUri:T,verificationUriComplete:T});return Object.assign(s,h),s},x3=async(r,f)=>{const s={...r,body:await P0.parseJsonErrorBody(r.body,f)},w=P0.loadRestJsonErrorCode(r,s.body);switch(w){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await k_(s,f);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await D_(s,f);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await i_(s,f);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await y_(s,f);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await m_(s,f);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await q_(s,f);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await j_(s,f);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await O_(s,f);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await c_(s,f);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await b_(s,f);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await g_(s,f);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await d_(s,f);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await N_(s,f);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await v_(s,f);default:const h=s.body;return V_({output:r,parsedBody:h,errorCode:w})}},V_,k_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new g1({$metadata:qr(r),...s});return k($,r.body)},D_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new _1({$metadata:qr(r),...s});return k($,r.body)},i_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new x1({$metadata:qr(r),...s});return k($,r.body)},y_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new e1({$metadata:qr(r),...s});return k($,r.body)},m_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new n1({$metadata:qr(r),...s});return k($,r.body)},N_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new f$({$metadata:qr(r),...s});return k($,r.body)},q_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new o1({$metadata:qr(r),...s});return k($,r.body)},v_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new w$({$metadata:qr(r),...s});return k($,r.body)},j_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new a1({$metadata:qr(r),...s});return k($,r.body)},d_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{endpoint:T,error:T,error_description:T,region:T});Object.assign(s,h);const $=new s$({$metadata:qr(r),...s});return k($,r.body)},O_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new p1({$metadata:qr(r),...s});return k($,r.body)},c_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new u1({$metadata:qr(r),...s});return k($,r.body)},b_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new t1({$metadata:qr(r),...s});return k($,r.body)},g_=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const $=new r$({$metadata:qr(r),...s});return k($,r.body)},qr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),__="aws_iam";var $$=G(()=>{P0=u(Br(),1),h$=u(Or(),1);Y();iw();_3();V_=cf(Hr)});var e3;var GT=G(()=>{M();H();Y();Kh();iw();$$();e3=class e3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f($T,ET).ser(n7).de(u7).build(){}});var n3;var CT=G(()=>{M();H();Y();Kh();iw();$$();n3=class n3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(IT,FT).ser(o7).de(t7).build(){}});var o3;var LT=G(()=>{M();H();Y();Kh();iw();$$();o3=class o3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,UT).ser(a7).de(rl).build(){}});var a3;var AT=G(()=>{M();H();Y();Kh();iw();$$();a3=class a3 extends A.classBuilder().ep({...p0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(TT,void 0).ser(p7).de(sl).build(){}});var x_,RT;var fl=G(()=>{Y();GT();CT();LT();AT();hT();x_={CreateTokenCommand:e3,CreateTokenWithIAMCommand:n3,RegisterClientCommand:o3,StartDeviceAuthorizationCommand:a3};RT=class RT extends g3{};df(x_,RT)});var wl=G(()=>{GT();CT();LT();AT()});var hl=G(()=>{iw()});var WT={};Sf(WT,{__Client:()=>zs,UnsupportedGrantTypeException:()=>r$,UnauthorizedClientException:()=>t1,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>TT,StartDeviceAuthorizationCommand:()=>a3,SlowDownException:()=>u1,SSOOIDCServiceException:()=>Hr,SSOOIDCClient:()=>g3,SSOOIDC:()=>RT,RegisterClientResponseFilterSensitiveLog:()=>UT,RegisterClientCommand:()=>o3,InvalidScopeException:()=>p1,InvalidRequestRegionException:()=>s$,InvalidRequestException:()=>a1,InvalidRedirectUriException:()=>w$,InvalidGrantException:()=>o1,InvalidClientMetadataException:()=>f$,InvalidClientException:()=>n1,InternalServerException:()=>e1,ExpiredTokenException:()=>x1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>FT,CreateTokenWithIAMRequestFilterSensitiveLog:()=>IT,CreateTokenWithIAMCommand:()=>n3,CreateTokenResponseFilterSensitiveLog:()=>ET,CreateTokenRequestFilterSensitiveLog:()=>$T,CreateTokenCommand:()=>e3,AuthorizationPendingException:()=>_1,AccessDeniedException:()=>g1,$Command:()=>A});var zT=G(()=>{hT();fl();wl();hl();_3()});var ST,$l=async(r)=>{const{SSOOIDCClient:f}=await Promise.resolve().then(() => (zT(),WT));if(ST[r])return ST[r];const s=new f({region:r});return ST[r]=s,s};var El=G(()=>{ST={}});var Il=async(r,f)=>{const{CreateTokenCommand:s}=await Promise.resolve().then(() => (zT(),WT));return(await $l(f)).send(new s({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var Fl=G(()=>{El()});var PT=(r)=>{if(r.expiration&&r.expiration.getTime()<Date.now())throw new Fs(`Token is expired. ${Yh}`,!1)};var Ul=G(()=>{Lr()});var u0=(r,f,s=!1)=>{if(typeof f==="undefined")throw new Fs(`Value not present for '${r}' in SSO Token${s?". Cannot refresh":""}. ${Yh}`,!1)};var Tl=G(()=>{Lr()});import{promises as e_}from"fs";var n_,Gl=(r,f)=>{const s=w3(r),w=JSON.stringify(f,null,2);return n_(s,w)};var Cl=G(()=>{hf();({writeFile:n_}=e_)});var Ll,Al=(r={})=>async()=>{r.logger?.debug("@aws-sdk/token-providers - fromSso");const f=await c0(r),s=ks(r),w=f[s];if(!w)throw new Fs(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new Fs(`Profile '${s}' is missing required property 'sso_session'.`);const h=w.sso_session,E=(await I3(r))[h];if(!E)throw new Fs(`Sso session '${h}' could not be found in shared credentials file.`,!1);for(let S of["sso_start_url","sso_region"])if(!E[S])throw new Fs(`Sso session '${h}' is missing required property '${S}'.`,!1);const{sso_start_url:I,sso_region:F}=E;let U;try{U=await h3(h)}catch(S){throw new Fs(`The SSO session token associated with profile=${s} was not found or is invalid. ${Yh}`,!1)}u0("accessToken",U.accessToken),u0("expiresAt",U.expiresAt);const{accessToken:C,expiresAt:L}=U,z={token:C,expiration:new Date(L)};if(z.expiration.getTime()-Date.now()>pZ)return z;if(Date.now()-Ll.getTime()<30000)return PT(z),z;u0("clientId",U.clientId,!0),u0("clientSecret",U.clientSecret,!0),u0("refreshToken",U.refreshToken,!0);try{Ll.setTime(Date.now());const S=await Il(U,F);u0("accessToken",S.accessToken),u0("expiresIn",S.expiresIn);const Z=new Date(Date.now()+S.expiresIn*1000);try{await Gl(h,{...U,accessToken:S.accessToken,expiresAt:Z.toISOString(),refreshToken:S.refreshToken})}catch(D){}return{token:S.accessToken,expiration:Z}}catch(S){return PT(z),z}};var Rl=G(()=>{Lr();hf();Fl();Ul();Tl();Cl();Ll=new Date(0)});var Wl=G(()=>{Lr()});var zl=G(()=>{Lr()});var Sl=G(()=>{Rl();Wl();zl()});function o_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function p3(r){return{schemeId:"smithy.api#noAuth"}}var Pl,Xl=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Yl=(r)=>{const f=[];switch(r.operation){case"GetRoleCredentials":{f.push(p3(r));break}case"ListAccountRoles":{f.push(p3(r));break}case"ListAccounts":{f.push(p3(r));break}case"Logout":{f.push(p3(r));break}default:f.push(o_(r))}return f},Kl=(r)=>{return{...Pl.resolveAwsSdkSigV4Config(r)}};var XT=G(()=>{Pl=u(Br(),1);rf()});var Zl=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},t0;var Hh=G(()=>{t0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Jl;var ll=G(()=>{Jl={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","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":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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 Ql,Ml,Bl,yl,ml,vs,Hl,Nl,Vl,kl,Dl,il,p_,ql;var vl=G(()=>{Ql={["required"]:!1,type:"String"},Ml={["required"]:!0,default:!1,type:"Boolean"},Bl={["ref"]:"Endpoint"},yl={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},ml={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},vs={},Hl={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Nl={["ref"]:"PartitionResult"},Vl={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Nl,"supportsDualStack"]}]},kl=[yl],Dl=[ml],il=[{["ref"]:"Region"}],p_={version:"1.0",parameters:{Region:Ql,UseDualStack:Ml,UseFIPS:Ml,Endpoint:Ql},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[Bl]}],rules:[{conditions:kl,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Dl,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:Bl,properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:il}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:il,assign:"PartitionResult"}],rules:[{conditions:[yl,ml],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Hl]},Vl],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:kl,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Hl,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Nl,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:vs,headers:vs},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Dl,rules:[{conditions:[Vl],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:vs,headers:vs},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},ql=p_});var jl=(r,f={})=>{return ps(ql,{endpointParams:r,logger:f.logger})};var dl=G(()=>{Ww();us();vl();ur.aws=ts});var Ol,cl,bl=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??jl,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??Yl,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new Ol.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new cl.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var gl=G(()=>{Ol=u(Br(),1),cl=u(Or(),1);Y();b0();W0();jf();XT();dl()});var _l,xl=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=bl(r);return _l.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:Jl.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};var el=G(()=>{ll();_l=u(Br(),1);Zh();Ms();lh();Ef();$f();_0();Jh();Rs();gl();Y();Qh();Y()});var nl=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},ol=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var u3=(r)=>r,al=(r,f)=>{const s={...u3(pf(r)),...u3(_f(r)),...u3(Pf(r)),...u3(nl(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...ol(s)}};var pl=G(()=>{Mh();ir();Y()});var Vh,X0;var E$=G(()=>{aw();pw();uw();rh();Ms();Vh=u(Or(),1);Th();M();Ef();Y();XT();Hh();el();pl();X0=class X0 extends zs{constructor(...[r]){const f=xl(r||{}),s=Zl(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=Kl(I),U=al(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Vh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Xl,identityProviderConfigProvider:async(C)=>new Vh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Vh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var Y0;var YT=G(()=>{Y();Y0=class Y0 extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,Y0.prototype)}}});var t3,rI,sI,fI,ul=(r)=>({...r,...r.accessToken&&{accessToken:o}}),u_=(r)=>({...r,...r.secretAccessKey&&{secretAccessKey:o},...r.sessionToken&&{sessionToken:o}}),tl=(r)=>({...r,...r.roleCredentials&&{roleCredentials:u_(r.roleCredentials)}}),rJ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),sJ=(r)=>({...r,...r.accessToken&&{accessToken:o}}),fJ=(r)=>({...r,...r.accessToken&&{accessToken:o}});var yw=G(()=>{Y();YT();t3=class t3 extends Y0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,t3.prototype)}};rI=class rI extends Y0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,rI.prototype)}};sI=class sI extends Y0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,sI.prototype)}};fI=class fI extends Y0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,fI.prototype)}}});var rw,I$,wJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/federation/credentials");const h=P({[$x]:[,y(r[hx],"roleName")],[CJ]:[,y(r[GJ],"accountId")]});let $;return s.m("GET").h(w).q(h).b($),s.build()},hJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/assignment/roles");const h=P({[WJ]:[,r[RJ]],[AJ]:[()=>r.maxResults!==void 0,()=>r[LJ].toString()],[CJ]:[,y(r[GJ],"accountId")]});let $;return s.m("GET").h(w).q(h).b($),s.build()},$J=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/assignment/accounts");const h=P({[WJ]:[,r[RJ]],[AJ]:[()=>r.maxResults!==void 0,()=>r[LJ].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},EJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},hI,{[EI]:r[$I]});s.bp("/logout");let h;return s.m("POST").h(w).b(h),s.build()},IJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)}),w=y(d(await rw.parseJsonBody(r.body,f)),"body"),h=p(w,{roleCredentials:m});return Object.assign(s,h),s},FJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)}),w=y(d(await rw.parseJsonBody(r.body,f)),"body"),h=p(w,{nextToken:T,roleList:m});return Object.assign(s,h),s},UJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)}),w=y(d(await rw.parseJsonBody(r.body,f)),"body"),h=p(w,{accountList:m,nextToken:T});return Object.assign(s,h),s},TJ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return wI(r,f);const s=P({$metadata:sw(r)});return await xr(r.body,f),s},wI=async(r,f)=>{const s={...r,body:await rw.parseJsonErrorBody(r.body,f)},w=rw.loadRestJsonErrorCode(r,s.body);switch(w){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await rx(s,f);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await sx(s,f);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await fx(s,f);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await wx(s,f);default:const h=s.body;return t_({output:r,parsedBody:h,errorCode:w})}},t_,rx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new t3({$metadata:sw(r),...s});return k($,r.body)},sx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new rI({$metadata:sw(r),...s});return k($,r.body)},fx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new sI({$metadata:sw(r),...s});return k($,r.body)},wx=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const $=new fI({$metadata:sw(r),...s});return k($,r.body)},sw=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),hI=(r)=>r!==void 0&&r!==null&&r!==""&&(!Object.getOwnPropertyNames(r).includes("length")||r.length!=0)&&(!Object.getOwnPropertyNames(r).includes("size")||r.size!=0),GJ="accountId",$I="accessToken",CJ="account_id",LJ="maxResults",AJ="max_result",RJ="nextToken",WJ="next_token",hx="roleName",$x="role_name",EI="x-amz-sso_bearer_token";var F$=G(()=>{rw=u(Br(),1),I$=u(Or(),1);Y();yw();YT();t_=cf(Y0)});var U$;var KT=G(()=>{M();H();Y();Hh();yw();F$();U$=class U$ extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(ul,tl).ser(wJ).de(IJ).build(){}});var T$;var II=G(()=>{M();H();Y();Hh();yw();F$();T$=class T$ extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(rJ,void 0).ser(hJ).de(FJ).build(){}});var G$;var FI=G(()=>{M();H();Y();Hh();yw();F$();G$=class G$ extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(sJ,void 0).ser($J).de(UJ).build(){}});var ZT;var lT=G(()=>{M();H();Y();Hh();yw();F$();ZT=class ZT extends A.classBuilder().ep({...t0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(fJ,void 0).ser(EJ).de(TJ).build(){}});var Ex,zJ;var SJ=G(()=>{Y();KT();II();FI();lT();E$();Ex={GetRoleCredentialsCommand:U$,ListAccountRolesCommand:T$,ListAccountsCommand:G$,LogoutCommand:ZT};zJ=class zJ extends X0{};df(Ex,zJ)});var PJ=G(()=>{KT();II();FI();lT()});var XJ=()=>{};var YJ,$4r;var KJ=G(()=>{YJ=u(Or(),1);II();E$();$4r=YJ.createPaginator(X0,T$,"nextToken","nextToken","maxResults")});var ZJ,U4r;var lJ=G(()=>{ZJ=u(Or(),1);FI();E$();U4r=ZJ.createPaginator(X0,G$,"nextToken","nextToken","maxResults")});var JJ=G(()=>{XJ();KJ();lJ()});var QJ=G(()=>{yw()});var MJ=G(()=>{E$();SJ();PJ();JJ();QJ()});var BJ={};Sf(BJ,{SSOClient:()=>X0,GetRoleCredentialsCommand:()=>U$});var HJ=G(()=>{MJ()});var C$=!1,JT=async({ssoStartUrl:r,ssoSession:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:$,clientConfig:E,profile:I,logger:F})=>{let U;const C="To refresh this SSO session run aws sso login with the corresponding profile.";if(f)try{const kr=await Al({profile:I})();U={accessToken:kr.token,expiresAt:new Date(kr.expiration).toISOString()}}catch(kr){throw new _(kr.message,{tryNextLink:C$,logger:F})}else try{U=await h3(r)}catch(kr){throw new _("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:C$,logger:F})}if(new Date(U.expiresAt).getTime()-Date.now()<=0)throw new _("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:C$,logger:F});const{accessToken:L}=U,{SSOClient:z,GetRoleCredentialsCommand:S}=await Promise.resolve().then(() => (HJ(),BJ)),Z=$||new z(Object.assign({},E??{},{region:E?.region??w}));let D;try{D=await Z.send(new S({accountId:s,roleName:h,accessToken:L}))}catch(kr){throw new _(kr,{tryNextLink:C$,logger:F})}const{roleCredentials:{accessKeyId:B,secretAccessKey:Q,sessionToken:i,expiration:x,credentialScope:e,accountId:hr}={}}=D;if(!B||!Q||!i||!x)throw new _("SSO returns an invalid temporary credential.",{tryNextLink:C$,logger:F});return{accessKeyId:B,secretAccessKey:Q,sessionToken:i,expiration:new Date(x),...e&&{credentialScope:e},...hr&&{accountId:hr}}};var VJ=G(()=>{Sl();Lr();hf()});var QT=(r,f)=>{const{sso_start_url:s,sso_account_id:w,sso_region:h,sso_role_name:$}=r;if(!s||!w||!h||!$)throw new _(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:f});return r};var MT=G(()=>{Lr()});var Ix=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:$}=r,{ssoClient:E}=r,I=ks(r);if(!f&&!s&&!w&&!h&&!$){const U=(await c0(r))[I];if(!U)throw new _(`Profile ${I} was not found.`,{logger:r.logger});if(!p5(U))throw new _(`Profile ${I} is not configured with SSO credentials.`,{logger:r.logger});if(U?.sso_session){const B=(await I3(r))[U.sso_session],Q=` configurations in profile ${I} and sso-session ${U.sso_session}`;if(w&&w!==B.sso_region)throw new _("Conflicting SSO region"+Q,{tryNextLink:!1,logger:r.logger});if(f&&f!==B.sso_start_url)throw new _("Conflicting SSO start_url"+Q,{tryNextLink:!1,logger:r.logger});U.sso_region=B.sso_region,U.sso_start_url=B.sso_start_url}const{sso_start_url:C,sso_account_id:L,sso_region:z,sso_role_name:S,sso_session:Z}=QT(U,r.logger);return JT({ssoStartUrl:C,ssoSession:Z,ssoAccountId:L,ssoRegion:z,ssoRoleName:S,ssoClient:E,clientConfig:r.clientConfig,profile:I})}else if(!f||!s||!w||!h)throw new _('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:r.logger});else return JT({ssoStartUrl:f,ssoSession:$,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:E,clientConfig:r.clientConfig,profile:I})};var kJ=G(()=>{Lr();hf();VJ();MT()});var DJ=()=>{};var BT={};Sf(BT,{validateSsoProfile:()=>QT,isSsoProfile:()=>p5,fromSSO:()=>Ix});var HT=G(()=>{kJ();DJ();MT()});var iJ=(r,f,s)=>{const w={EcsContainer:async(h)=>{const{fromHttp:$}=await Promise.resolve().then(() => (a5(),o5)),{fromContainerMetadata:E}=await Promise.resolve().then(() => (c1(),O1));return s?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),A0($(h??{}),E(h))},Ec2InstanceMetadata:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:$}=await Promise.resolve().then(() => (c1(),O1));return $(h)},Environment:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:$}=await Promise.resolve().then(() => (c5(),MZ));return $(h)}};if(r in w)return w[r];else throw new _(`Unsupported credential source in profile ${f}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:s})};var yJ=G(()=>{Lr()});function Fx(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function mJ(r){return{schemeId:"smithy.api#noAuth"}}var NJ,qJ=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},vJ=(r)=>{const f=[];switch(r.operation){case"AssumeRoleWithSAML":{f.push(mJ(r));break}case"AssumeRoleWithWebIdentity":{f.push(mJ(r));break}default:f.push(Fx(r))}return f},Ux=(r)=>({...r,stsClientCtor:K0}),jJ=(r)=>{const f=Ux(r);return{...NJ.resolveAwsSdkSigV4Config(f)}};var VT=G(()=>{NJ=u(Br(),1);rf();L$()});var dJ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}},nr;var tf=G(()=>{nr={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"}}});var cJ;var OJ=G(()=>{cJ={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var bJ,kT,uJ,gJ,cr,_J,tJ,r9,or,Xs,xJ,s9,f9,eJ,w9,nJ,oJ,aJ,pJ,Gx,h9;var $9=G(()=>{bJ={["required"]:!1,["type"]:"String"},kT={["required"]:!0,default:!1,["type"]:"Boolean"},uJ={["ref"]:"Endpoint"},gJ={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},cr={["ref"]:"Region"},_J={["fn"]:"aws.partition",["argv"]:[cr],assign:"PartitionResult"},tJ={["ref"]:"UseFIPS"},r9={["ref"]:"UseDualStack"},or={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},Xs={},xJ={conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"aws-global"]}],["endpoint"]:or,["type"]:"endpoint"},s9={["fn"]:"booleanEquals",["argv"]:[tJ,!0]},f9={["fn"]:"booleanEquals",["argv"]:[r9,!0]},eJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},w9={["ref"]:"PartitionResult"},nJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[w9,"supportsDualStack"]}]},oJ=[{["fn"]:"isSet",["argv"]:[uJ]}],aJ=[s9],pJ=[f9],Gx={version:"1.0",parameters:{Region:bJ,UseDualStack:kT,UseFIPS:kT,Endpoint:bJ,UseGlobalEndpoint:kT},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:oJ},gJ,_J,{["fn"]:"booleanEquals",["argv"]:[tJ,!1]},{["fn"]:"booleanEquals",["argv"]:[r9,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-northeast-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-south-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-southeast-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ap-southeast-2"]}],endpoint:or,["type"]:"endpoint"},xJ,{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"ca-central-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-central-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-north-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-2"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"eu-west-3"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"sa-east-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-east-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-east-2"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-west-1"]}],endpoint:or,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[cr,"us-west-2"]}],endpoint:or,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:oJ,rules:[{conditions:aJ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:pJ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:uJ,properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[gJ],rules:[{conditions:[_J],rules:[{conditions:[s9,f9],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,eJ]},nJ],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:aJ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[eJ,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[w9,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:Xs,headers:Xs},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:pJ,rules:[{conditions:[nJ],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},xJ,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:Xs,headers:Xs},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},h9=Gx});var E9=(r,f={})=>{return ps(h9,{endpointParams:r,logger:f.logger})};var I9=G(()=>{Ww();us();$9();ur.aws=ts});var F9,U9,T9=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??E9,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??vJ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new F9.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new U9.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var G9=G(()=>{F9=u(Br(),1),U9=u(Or(),1);Y();b0();W0();jf();VT();I9()});var UI,C9,L9=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=T9(r);return UI.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:cJ.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4")||(async($)=>await S0($?.__config||{})()),signer:new UI.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new C9.NoAuthSigner}],maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};var A9=G(()=>{OJ();UI=u(Br(),1);b1();Zh();Ms();C9=u(Or(),1);lh();Ef();$f();_0();Jh();Rs();G9();Y();Qh();Y()});var R9=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},W9=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var TI=(r)=>r,z9=(r,f)=>{const s={...TI(pf(r)),...TI(_f(r)),...TI(Pf(r)),...TI(R9(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...W9(s)}};var S9=G(()=>{Mh();ir();Y()});var kh,K0;var L$=G(()=>{aw();pw();uw();rh();Ms();kh=u(Or(),1);Th();M();Ef();Y();VT();tf();A9();S9();K0=class K0 extends zs{constructor(...[r]){const f=L9(r||{}),s=dJ(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=jJ(I),U=z9(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(kh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:qJ,identityProviderConfigProvider:async(C)=>new kh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(kh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var ss;var GI=G(()=>{Y();ss=class ss extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,ss.prototype)}}});var A$,R$,W$,z$,S$,P$,X$,Y$,Dh=(r)=>({...r,...r.SecretAccessKey&&{SecretAccessKey:o}}),DT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),iT=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:o}}),yT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),mT=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:o}}),NT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),qT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),vT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}});var fw=G(()=>{Y();GI();A$=class A$ extends ss{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,A$.prototype)}};R$=class R$ extends ss{constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,R$.prototype)}};W$=class W$ extends ss{constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,W$.prototype)}};z$=class z$ extends ss{constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,z$.prototype)}};S$=class S$ extends ss{constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,S$.prototype)}};P$=class P$ extends ss{constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,P$.prototype)}};X$=class X$ extends ss{constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,X$.prototype)}};Y$=class Y$ extends ss{constructor(r){super({name:"InvalidAuthorizationMessageException",$fault:"client",...r});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,Y$.prototype)}}});var Ff,P9=async(r,f)=>{const s=$w;let w;return w=Uw({...Xx(r,f),[Iw]:px,[Fw]:Ew}),hw(f,s,"/",void 0,w)},X9=async(r,f)=>{const s=$w;let w;return w=Uw({...Yx(r,f),[Iw]:ux,[Fw]:Ew}),hw(f,s,"/",void 0,w)},Y9=async(r,f)=>{const s=$w;let w;return w=Uw({...Kx(r,f),[Iw]:tx,[Fw]:Ew}),hw(f,s,"/",void 0,w)},K9=async(r,f)=>{const s=$w;let w;return w=Uw({...Zx(r,f),[Iw]:re,[Fw]:Ew}),hw(f,s,"/",void 0,w)},Z9=async(r,f)=>{const s=$w;let w;return w=Uw({...lx(r,f),[Iw]:se,[Fw]:Ew}),hw(f,s,"/",void 0,w)},l9=async(r,f)=>{const s=$w;let w;return w=Uw({...Jx(r,f),[Iw]:fe,[Fw]:Ew}),hw(f,s,"/",void 0,w)},J9=async(r,f)=>{const s=$w;let w;return w=Uw({...Qx(r,f),[Iw]:we,[Fw]:Ew}),hw(f,s,"/",void 0,w)},Q9=async(r,f)=>{const s=$w;let w;return w=Uw({...Mx(r,f),[Iw]:he,[Fw]:Ew}),hw(f,s,"/",void 0,w)},M9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=ix(s.AssumeRoleResult,f),{$metadata:ar(r),...w}},B9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=yx(s.AssumeRoleWithSAMLResult,f),{$metadata:ar(r),...w}},H9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=mx(s.AssumeRoleWithWebIdentityResult,f),{$metadata:ar(r),...w}},V9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=Nx(s.DecodeAuthorizationMessageResult,f),{$metadata:ar(r),...w}},k9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=jx(s.GetAccessKeyInfoResult,f),{$metadata:ar(r),...w}},D9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=dx(s.GetCallerIdentityResult,f),{$metadata:ar(r),...w}},i9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=Ox(s.GetFederationTokenResult,f),{$metadata:ar(r),...w}},y9=async(r,f)=>{if(r.statusCode>=300)return ww(r,f);const s=await Ff.parseXmlBody(r.body,f);let w={};return w=cx(s.GetSessionTokenResult,f),{$metadata:ar(r),...w}},ww=async(r,f)=>{const s={...r,body:await Ff.parseXmlErrorBody(r.body,f)},w=$e(r,s.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Cx(s,f);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await zx(s,f);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Sx(s,f);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await Px(s,f);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Ax(s,f);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await Wx(s,f);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await Lx(s,f);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await Rx(s,f);default:const h=s.body;return ax({output:r,parsedBody:h.Error,errorCode:w})}},Cx=async(r,f)=>{const s=r.body,w=qx(s.Error,f),h=new A$({$metadata:ar(r),...w});return k(h,s)},Lx=async(r,f)=>{const s=r.body,w=bx(s.Error,f),h=new X$({$metadata:ar(r),...w});return k(h,s)},Ax=async(r,f)=>{const s=r.body,w=gx(s.Error,f),h=new S$({$metadata:ar(r),...w});return k(h,s)},Rx=async(r,f)=>{const s=r.body,w=_x(s.Error,f),h=new Y$({$metadata:ar(r),...w});return k(h,s)},Wx=async(r,f)=>{const s=r.body,w=xx(s.Error,f),h=new P$({$metadata:ar(r),...w});return k(h,s)},zx=async(r,f)=>{const s=r.body,w=ex(s.Error,f),h=new R$({$metadata:ar(r),...w});return k(h,s)},Sx=async(r,f)=>{const s=r.body,w=nx(s.Error,f),h=new W$({$metadata:ar(r),...w});return k(h,s)},Px=async(r,f)=>{const s=r.body,w=ox(s.Error,f),h=new z$({$metadata:ar(r),...w});return k(h,s)},Xx=(r,f)=>{const s={};if(r[J0]!=null)s[J0]=r[J0];if(r[Nh]!=null)s[Nh]=r[Nh];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[js]!=null)s[js]=r[js];if(r[ws]!=null)s[ws]=r[ws];if(r[vh]!=null){const w=m9(r[vh],f);if(r[vh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,$])=>{const E=`Tags.${h}`;s[E]=$})}if(r[FG]!=null){const w=Dx(r[FG],f);if(r[FG]?.length===0)s.TransitiveTagKeys=[];Object.entries(w).forEach(([h,$])=>{const E=`TransitiveTagKeys.${h}`;s[E]=$})}if(r[bT]!=null)s[bT]=r[bT];if(r[qh]!=null)s[qh]=r[qh];if(r[jh]!=null)s[jh]=r[jh];if(r[cs]!=null)s[cs]=r[cs];if(r[tT]!=null){const w=Vx(r[tT],f);if(r[tT]?.length===0)s.ProvidedContexts=[];Object.entries(w).forEach(([h,$])=>{const E=`ProvidedContexts.${h}`;s[E]=$})}return s},Yx=(r,f)=>{const s={};if(r[J0]!=null)s[J0]=r[J0];if(r[pT]!=null)s[pT]=r[pT];if(r[hG]!=null)s[hG]=r[hG];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[js]!=null)s[js]=r[js];if(r[ws]!=null)s[ws]=r[ws];return s},Kx=(r,f)=>{const s={};if(r[J0]!=null)s[J0]=r[J0];if(r[Nh]!=null)s[Nh]=r[Nh];if(r[GG]!=null)s[GG]=r[GG];if(r[rG]!=null)s[rG]=r[rG];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[js]!=null)s[js]=r[js];if(r[ws]!=null)s[ws]=r[ws];return s},Zx=(r,f)=>{const s={};if(r[gT]!=null)s[gT]=r[gT];return s},lx=(r,f)=>{const s={};if(r[ih]!=null)s[ih]=r[ih];return s},Jx=(r,f)=>{return{}},Qx=(r,f)=>{const s={};if(r[oT]!=null)s[oT]=r[oT];if(r[js]!=null)s[js]=r[js];if(r[ds]!=null){const w=CI(r[ds],f);if(r[ds]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,$])=>{const E=`PolicyArns.${h}`;s[E]=$})}if(r[ws]!=null)s[ws]=r[ws];if(r[vh]!=null){const w=m9(r[vh],f);if(r[vh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,$])=>{const E=`Tags.${h}`;s[E]=$})}return s},Mx=(r,f)=>{const s={};if(r[ws]!=null)s[ws]=r[ws];if(r[qh]!=null)s[qh]=r[qh];if(r[jh]!=null)s[jh]=r[jh];return s},CI=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=Bx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},Bx=(r,f)=>{const s={};if(r[CG]!=null)s[CG]=r[CG];return s},Hx=(r,f)=>{const s={};if(r[uT]!=null)s[uT]=r[uT];if(r[dT]!=null)s[dT]=r[dT];return s},Vx=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=Hx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},kx=(r,f)=>{const s={};if(r[nT]!=null)s[nT]=r[nT];if(r[TG]!=null)s[TG]=r[TG];return s},Dx=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;s[`member.${w}`]=h,w++}return s},m9=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const $=kx(h,f);Object.entries($).forEach(([E,I])=>{s[`member.${w}.${E}`]=I}),w++}return s},LG=(r,f)=>{const s={};if(r[jT]!=null)s[jT]=T(r[jT]);if(r[l0]!=null)s[l0]=T(r[l0]);return s},ix=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[Z0]!=null)s[Z0]=LG(r[Z0],f);if(r[Os]!=null)s[Os]=$r(r[Os]);if(r[cs]!=null)s[cs]=T(r[cs]);return s},yx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[Z0]!=null)s[Z0]=LG(r[Z0],f);if(r[Os]!=null)s[Os]=$r(r[Os]);if(r[fG]!=null)s[fG]=T(r[fG]);if(r[EG]!=null)s[EG]=T(r[EG]);if(r[eT]!=null)s[eT]=T(r[eT]);if(r[mh]!=null)s[mh]=T(r[mh]);if(r[aT]!=null)s[aT]=T(r[aT]);if(r[cs]!=null)s[cs]=T(r[cs]);return s},mx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[$G]!=null)s[$G]=T(r[$G]);if(r[Z0]!=null)s[Z0]=LG(r[Z0],f);if(r[Os]!=null)s[Os]=$r(r[Os]);if(r[sG]!=null)s[sG]=T(r[sG]);if(r[mh]!=null)s[mh]=T(r[mh]);if(r[cs]!=null)s[cs]=T(r[cs]);return s},K$=(r,f)=>{const s={};if(r[ih]!=null)s[ih]=T(r[ih]);if(r[wG]!=null)s[wG]=T(r[wG]);if(r[IG]!=null)s[IG]=T(r[IG]);if(r[cT]!=null)s[cT]=y(Hw(r[cT]));return s},Nx=(r,f)=>{const s={};if(r[OT]!=null)s[OT]=T(r[OT]);return s},qx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},vx=(r,f)=>{const s={};if(r[xT]!=null)s[xT]=T(r[xT]);if(r[l0]!=null)s[l0]=T(r[l0]);return s},jx=(r,f)=>{const s={};if(r[yh]!=null)s[yh]=T(r[yh]);return s},dx=(r,f)=>{const s={};if(r[UG]!=null)s[UG]=T(r[UG]);if(r[yh]!=null)s[yh]=T(r[yh]);if(r[l0]!=null)s[l0]=T(r[l0]);return s},Ox=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);if(r[_T]!=null)s[_T]=vx(r[_T],f);if(r[Os]!=null)s[Os]=$r(r[Os]);return s},cx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=K$(r[fs],f);return s},bx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},gx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},_x=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},xx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},ex=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},nx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},ox=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},ar=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),ax,hw=async(r,f,s,w,h)=>{const{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)},$w,Ew="2011-06-15",Iw="Action",ih="AccessKeyId",px="AssumeRole",jT="AssumedRoleId",Z0="AssumedRoleUser",ux="AssumeRoleWithSAML",tx="AssumeRoleWithWebIdentity",yh="Account",l0="Arn",mh="Audience",fs="Credentials",dT="ContextAssertion",re="DecodeAuthorizationMessage",OT="DecodedMessage",ws="DurationSeconds",cT="Expiration",bT="ExternalId",gT="EncodedMessage",_T="FederatedUser",xT="FederatedUserId",se="GetAccessKeyInfo",fe="GetCallerIdentity",we="GetFederationToken",he="GetSessionToken",eT="Issuer",nT="Key",oT="Name",aT="NameQualifier",js="Policy",ds="PolicyArns",pT="PrincipalArn",uT="ProviderArn",tT="ProvidedContexts",rG="ProviderId",Os="PackedPolicySize",sG="Provider",J0="RoleArn",Nh="RoleSessionName",fG="Subject",wG="SecretAccessKey",hG="SAMLAssertion",$G="SubjectFromWebIdentityToken",cs="SourceIdentity",qh="SerialNumber",EG="SubjectType",IG="SessionToken",vh="Tags",jh="TokenCode",FG="TransitiveTagKeys",UG="UserId",Fw="Version",TG="Value",GG="WebIdentityToken",CG="arn",Sr="message",Uw=(r)=>Object.entries(r).map(([f,s])=>Y3(f)+"="+Y3(s)).join("&"),$e=(r,f)=>{if(f.Error?.Code!==void 0)return f.Error.Code;if(r.statusCode==404)return"NotFound"};var Q0=G(()=>{Ff=u(Br(),1);ir();Y();fw();GI();ax=cf(ss),$w={"content-type":"application/x-www-form-urlencoded"}});var dh;var LI=G(()=>{M();H();Y();tf();fw();Q0();dh=class dh extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,DT).ser(P9).de(M9).build(){}});var AI;var AG=G(()=>{M();H();Y();tf();fw();Q0();AI=class AI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(iT,yT).ser(X9).de(B9).build(){}});var Oh;var RI=G(()=>{M();H();Y();tf();fw();Q0();Oh=class Oh extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(mT,NT).ser(Y9).de(H9).build(){}});var WI;var RG=G(()=>{M();H();Y();tf();Q0();WI=class WI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(K9).de(V9).build(){}});var zI;var WG=G(()=>{M();H();Y();tf();Q0();zI=class zI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(Z9).de(k9).build(){}});var SI;var zG=G(()=>{M();H();Y();tf();Q0();SI=class SI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(l9).de(D9).build(){}});var PI;var SG=G(()=>{M();H();Y();tf();fw();Q0();PI=class PI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,qT).ser(J9).de(i9).build(){}});var XI;var PG=G(()=>{M();H();Y();tf();fw();Q0();XI=class XI extends A.classBuilder().ep({...nr}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,vT).ser(Q9).de(y9).build(){}});var Ee,XG;var N9=G(()=>{Y();LI();AG();RI();RG();WG();zG();SG();PG();L$();Ee={AssumeRoleCommand:dh,AssumeRoleWithSAMLCommand:AI,AssumeRoleWithWebIdentityCommand:Oh,DecodeAuthorizationMessageCommand:WI,GetAccessKeyInfoCommand:zI,GetCallerIdentityCommand:SI,GetFederationTokenCommand:PI,GetSessionTokenCommand:XI};XG=class XG extends K0{};df(Ee,XG)});var q9=G(()=>{LI();AG();RI();RG();WG();zG();SG();PG()});var v9=G(()=>{fw()});var j9="us-east-1",d9=(r)=>{if(typeof r?.Arn==="string"){const f=r.Arn.split(":");if(f.length>4&&f[4]!=="")return f[4]}return},O9=async(r,f,s)=>{const w=typeof r==="function"?await r():r,h=typeof f==="function"?await f():f;return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${h} (parent client)`,`${j9} (STS default)`),w??h??j9},c9=(r,f)=>{let s,w;return async(h,$)=>{if(w=h,!s){const{logger:U=r?.parentClientConfig?.logger,region:C,requestHandler:L=r?.parentClientConfig?.requestHandler,credentialProviderLogger:z}=r,S=await O9(C,r?.parentClientConfig?.region,z),Z=!g9(L);s=new f({credentialDefaultProvider:()=>async()=>w,region:S,requestHandler:Z?L:void 0,logger:U})}const{Credentials:E,AssumedRoleUser:I}=await s.send(new dh($));if(!E||!E.AccessKeyId||!E.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${$.RoleArn}`);const F=d9(I);return{accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...F&&{accountId:F}}}},b9=(r,f)=>{let s;return async(w)=>{if(!s){const{logger:I=r?.parentClientConfig?.logger,region:F,requestHandler:U=r?.parentClientConfig?.requestHandler,credentialProviderLogger:C}=r,L=await O9(F,r?.parentClientConfig?.region,C),z=!g9(U);s=new f({region:L,requestHandler:z?U:void 0,logger:I})}const{Credentials:h,AssumedRoleUser:$}=await s.send(new Oh(w));if(!h||!h.AccessKeyId||!h.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const E=d9($);return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.SessionToken,expiration:h.Expiration,...h.CredentialScope&&{credentialScope:h.CredentialScope},...E&&{accountId:E}}}},g9=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var _9=G(()=>{LI();RI()});var x9=(r,f)=>{if(!f)return r;else return class s extends r{constructor(w){super(w);for(let h of f)this.middlewareStack.use(h)}}},e9=(r={},f)=>c9(r,x9(K0,f)),n9=(r={},f)=>b9(r,x9(K0,f)),Ie=(r)=>(f)=>r({roleAssumer:e9(f),roleAssumerWithWebIdentity:n9(f),...f});var o9=G(()=>{_9();L$()});var YG={};Sf(YG,{getDefaultRoleAssumerWithWebIdentity:()=>n9,getDefaultRoleAssumer:()=>e9,decorateDefaultCredentialProvider:()=>Ie,__Client:()=>zs,STSServiceException:()=>ss,STSClient:()=>K0,STS:()=>XG,RegionDisabledException:()=>z$,PackedPolicyTooLargeException:()=>W$,MalformedPolicyDocumentException:()=>R$,InvalidIdentityTokenException:()=>P$,InvalidAuthorizationMessageException:()=>Y$,IDPRejectedClaimException:()=>S$,IDPCommunicationErrorException:()=>X$,GetSessionTokenResponseFilterSensitiveLog:()=>vT,GetSessionTokenCommand:()=>XI,GetFederationTokenResponseFilterSensitiveLog:()=>qT,GetFederationTokenCommand:()=>PI,GetCallerIdentityCommand:()=>SI,GetAccessKeyInfoCommand:()=>zI,ExpiredTokenException:()=>A$,DecodeAuthorizationMessageCommand:()=>WI,CredentialsFilterSensitiveLog:()=>Dh,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>NT,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>mT,AssumeRoleWithWebIdentityCommand:()=>Oh,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>yT,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>iT,AssumeRoleWithSAMLCommand:()=>AI,AssumeRoleResponseFilterSensitiveLog:()=>DT,AssumeRoleCommand:()=>dh,$Command:()=>A});var KG=G(()=>{L$();N9();q9();v9();o9();GI()});var a9=(r,{profile:f="default",logger:s}={})=>{return Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(Fe(r,{profile:f,logger:s})||Ue(r,{profile:f,logger:s}))},Fe=(r,{profile:f,logger:s})=>{const w=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(w)s?.debug?.(` ${f} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`);return w},Ue=(r,{profile:f,logger:s})=>{const w=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(w)s?.debug?.(` ${f} isCredentialSourceProfile credential_source=${r.credential_source}`);return w},p9=async(r,f,s,w={})=>{s.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const h=f[r];if(!s.roleAssumer){const{getDefaultRoleAssumer:C}=await Promise.resolve().then(() => (KG(),YG));s.roleAssumer=C({...s.clientConfig,credentialProviderLogger:s.logger,parentClientConfig:s?.parentClientConfig},s.clientPlugins)}const{source_profile:$}=h;if($&&$ in w)throw new _(`Detected a cycle attempting to resolve credentials for profile ${ks(s)}. Profiles visited: `+Object.keys(w).join(", "),{logger:s.logger});s.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${$?`source_profile=[${$}]`:`profile=[${r}]`}`);const E=$?YI($,{...f,[$]:{...f[$],role_arn:h.role_arn??f[$].role_arn}},s,{...w,[$]:!0}):(await iJ(h.credential_source,r,s.logger)(s))(),I={RoleArn:h.role_arn,RoleSessionName:h.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:h.external_id,DurationSeconds:parseInt(h.duration_seconds||"3600",10)},{mfa_serial:F}=h;if(F){if(!s.mfaCodeProvider)throw new _(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:s.logger,tryNextLink:!1});I.SerialNumber=F,I.TokenCode=await s.mfaCodeProvider(F)}const U=await E;return s.roleAssumer(U,I)};var u9=G(()=>{Lr();hf();yJ();ZG()});var t9=(r,f,s)=>{if(f.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(f.AccessKeyId===void 0||f.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(f.Expiration){const h=new Date;if(new Date(f.Expiration)<h)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let w=f.AccountId;if(!w&&s?.[r]?.aws_account_id)w=s[r].aws_account_id;return{accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,...f.SessionToken&&{sessionToken:f.SessionToken},...f.Expiration&&{expiration:new Date(f.Expiration)},...f.CredentialScope&&{credentialScope:f.CredentialScope},...w&&{accountId:w}}};import{exec as Te}from"child_process";import{promisify as Ge}from"util";var rQ=async(r,f,s)=>{const w=f[r];if(f[r]){const h=w.credential_process;if(h!==void 0){const $=Ge(Te);try{const{stdout:E}=await $(h);let I;try{I=JSON.parse(E.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return t9(r,I,f)}catch(E){throw new _(E.message,{logger:s})}}else throw new _(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new _(`Profile ${r} could not be found in shared credentials file.`,{logger:s})};var sQ=G(()=>{Lr()});var Ce=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const f=await c0(r);return rQ(ks(r),f,r.logger)};var fQ=G(()=>{hf();sQ()});var lG={};Sf(lG,{fromProcess:()=>Ce});var JG=G(()=>{fQ()});var wQ=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",hQ=async(r,f)=>Promise.resolve().then(() => (JG(),lG)).then(({fromProcess:s})=>s({...r,profile:f})());var $Q=async(r,f={})=>{const{fromSSO:s}=await Promise.resolve().then(() => (HT(),BT));return s({profile:r,logger:f.logger})()},EQ=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var QG=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1,MG=(r,f)=>{return f?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"),Promise.resolve({accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}})};var BG=(r)=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:f,roleSessionName:s,webIdentityToken:w,providerId:h,policyArns:$,policy:E,durationSeconds:I}=r;let{roleAssumerWithWebIdentity:F}=r;if(!F){const{getDefaultRoleAssumerWithWebIdentity:U}=await Promise.resolve().then(() => (KG(),YG));F=U({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r.parentClientConfig},r.clientPlugins)}return F({RoleArn:f,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:w,ProviderId:h,PolicyArns:$,Policy:E,DurationSeconds:I})};import{readFileSync as Le}from"fs";var Ae="AWS_WEB_IDENTITY_TOKEN_FILE",Re="AWS_ROLE_ARN",We="AWS_ROLE_SESSION_NAME",ze=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const f=r?.webIdentityTokenFile??process.env[Ae],s=r?.roleArn??process.env[Re],w=r?.roleSessionName??process.env[We];if(!f||!s)throw new _("Web identity configuration not specified",{logger:r.logger});return BG({...r,webIdentityToken:Le(f,{encoding:"ascii"}),roleArn:s,roleSessionName:w})()};var IQ=G(()=>{Lr()});var HG={};Sf(HG,{fromWebToken:()=>BG,fromTokenFile:()=>ze});var VG=G(()=>{IQ()});var FQ=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1,UQ=async(r,f)=>Promise.resolve().then(() => (VG(),HG)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:f.roleAssumerWithWebIdentity,logger:f.logger,parentClientConfig:f.parentClientConfig})());var YI=async(r,f,s,w={})=>{const h=f[r];if(Object.keys(w).length>0&&QG(h))return MG(h,s);if(a9(h,{profile:r,logger:s.logger}))return p9(r,f,s,w);if(QG(h))return MG(h,s);if(FQ(h))return UQ(h,s);if(wQ(h))return hQ(s,r);if(EQ(h))return await $Q(r,s);throw new _(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:s.logger})};var ZG=G(()=>{Lr();u9()});var Se=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const f=await c0(r);return YI(ks(r),f,r)};var TQ=G(()=>{hf();ZG()});var GQ={};Sf(GQ,{fromIni:()=>Se});var CQ=G(()=>{TQ()});var LQ=!1,S0=(r={})=>Kw(A0(async()=>{if(r.profile??process.env[sP]){if(process.env[y3]&&process.env[m3]){if(!LQ)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
24
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:f})};var A7=G(()=>{Lr()});function W7(r){return new Qr({protocol:r.protocol,hostname:r.hostname,port:Number(r.port),path:r.pathname,query:Array.from(r.searchParams.entries()).reduce((f,[s,w])=>{return f[s]=w,f},{}),fragment:r.hash})}async function z7(r,f){const w=await R7.sdkStreamMixin(r.body).transformToString();if(r.statusCode===200){const h=JSON.parse(w);if(typeof h.AccessKeyId!=="string"||typeof h.SecretAccessKey!=="string"||typeof h.Token!=="string"||typeof h.Expiration!=="string")throw new g("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:f});return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.Token,expiration:AX(h.Expiration)}}if(r.statusCode>=400&&r.statusCode<500){let h={};try{h=JSON.parse(w)}catch(E){}throw Object.assign(new g(`Server responded with status: ${r.statusCode}`,{logger:f}),{Code:h.Code,Message:h.Message})}throw new g(`Server responded with status: ${r.statusCode}`,{logger:f})}var R7;var S7=G(()=>{Lr();qr();Y();R7=u(g$(),1)});var P7=(r,f,s)=>{return async()=>{for(let w=0;w<f;++w)try{return await r()}catch(h){await new Promise((E)=>setTimeout(E,s))}return await r()}};import q_ from"fs/promises";var m_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",v_="http://169.254.170.2",j_="AWS_CONTAINER_CREDENTIALS_FULL_URI",i_="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",d_="AWS_CONTAINER_AUTHORIZATION_TOKEN",X7=(r={})=>{r.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let f;const s=r.awsContainerCredentialsRelativeUri??process.env[m_],w=r.awsContainerCredentialsFullUri??process.env[j_],h=r.awsContainerAuthorizationToken??process.env[d_],E=r.awsContainerAuthorizationTokenFile??process.env[i_],$=r.logger?.constructor?.name==="NoOpLogger"||!r.logger?console.warn:r.logger.warn;if(s&&w)$("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),$("awsContainerCredentialsFullUri will take precedence.");if(h&&E)$("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),$("awsContainerAuthorizationToken will take precedence.");if(w)f=w;else if(s)f=`${v_}${s}`;else throw new g(`No HTTP credential provider host provided.
25
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:r.logger});const I=new URL(f);L7(I,r.logger);const F=new tr({requestTimeout:r.timeout??1000,connectionTimeout:r.timeout??1000});return P7(async()=>{const U=W7(I);if(h)U.headers.Authorization=h;else if(E)U.headers.Authorization=(await q_.readFile(E)).toString();try{const C=await F.handle(U);return z7(C.response)}catch(C){throw new g(String(C),{logger:r.logger})}},r.maxRetries??3,r.timeout??1000)};var Y7=G(()=>{lw();Lr();A7();S7()});var _U={};Af(_U,{fromHttp:()=>X7});var gU=G(()=>{Y7()});var O_="AWS_EC2_METADATA_DISABLED",K7=async(r)=>{const{ENV_CMDS_FULL_URI:f,ENV_CMDS_RELATIVE_URI:s,fromContainerMetadata:w,fromInstanceMetadata:h}=await Promise.resolve().then(() => (i1(),j1));if(process.env[s]||process.env[f]){r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:E}=await Promise.resolve().then(() => (gU(),_U));return L0(E(r),w(r))}if(process.env[O_])return async()=>{throw new g("EC2 Instance Metadata Service access disabled",{logger:r.logger})};return r.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),h(r)};var Z7=G(()=>{Lr()});var xU=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var M7=300000,zh="To refresh this SSO session run 'aws sso login' with the corresponding profile.";function b_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function eU(r){return{schemeId:"smithy.api#noAuth"}}var J7,Q7=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},B7=(r)=>{const f=[];switch(r.operation){case"CreateToken":{f.push(eU(r));break}case"RegisterClient":{f.push(eU(r));break}case"StartDeviceAuthorization":{f.push(eU(r));break}default:f.push(b_(r))}return f},l7=(r)=>{return{...J7.resolveAwsSdkSigV4Config(r)}};var nU=G(()=>{J7=u(lr(),1);as()});var V7=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},g0;var Sh=G(()=>{g0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var D7;var H7=G(()=>{D7={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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",peerDependencies:{"@aws-sdk/client-sts":"^3.637.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}}});var oU;var aU=G(()=>{oU={isCrtAvailable:!1}});var k7=()=>{if(oU.isCrtAvailable)return["md/crt-avail"];return null};var N7=G(()=>{aU()});import{platform as __,release as g_}from"os";import{env as y7,versions as x_}from"process";var e_="AWS_SDK_UA_APP_ID",n_="sdk-ua-app-id",_f=({serviceId:r,clientVersion:f})=>{const s=[["aws-sdk-js",f],["ua","2.0"],[`os/${__()}`,g_()],["lang/js"],["md/nodejs",`${x_.node}`]],w=k7();if(w)s.push(w);if(r)s.push([`api/${r}`,f]);if(y7.AWS_EXECUTION_ENV)s.push([`exec-env/${y7.AWS_EXECUTION_ENV}`]);const h=t({environmentVariableSelector:($)=>$[e_],configFileSelector:($)=>$[n_],default:void 0})();let E=void 0;return async()=>{if(!E){const $=await h;E=$?[...s,[`app/${$}`]]:[...s]}return E}};var Ph=G(()=>{sf();N7();aU()});var q7=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as pU}from"buffer";var Vw=(r,f=0,s=r.byteLength-f)=>{if(!q7(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return pU.from(r,f,s)},Xh=(r,f)=>{if(typeof r!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return f?pU.from(r,f):pU.from(r)};var Yh=()=>{};var Us=(r)=>{const f=Xh(r,"utf8");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var uU=G(()=>{Yh()});var m7=(r)=>{if(typeof r==="string")return Us(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)};var v7=G(()=>{uU()});var gf=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Vw(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};var j7=G(()=>{Yh()});var x0=G(()=>{uU();v7();j7()});import{Buffer as o_}from"buffer";import{createHash as a_,createHmac as p_}from"crypto";function i7(r,f){if(o_.isBuffer(r))return r;if(typeof r==="string")return Xh(r,f);if(ArrayBuffer.isView(r))return Vw(r.buffer,r.byteOffset,r.byteLength);return Vw(r)}class wf{constructor(r,f){this.algorithmIdentifier=r,this.secret=f,this.reset()}update(r,f){this.hash.update(m7(i7(r,f)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?p_(this.algorithmIdentifier,i7(this.secret)):a_(this.algorithmIdentifier)}}var Kh=G(()=>{Yh();x0()});import{fstatSync as u_,lstatSync as t_}from"fs";var xf=(r)=>{if(!r)return 0;if(typeof r==="string")return Buffer.byteLength(r);else if(typeof r.byteLength==="number")return r.byteLength;else if(typeof r.size==="number")return r.size;else if(typeof r.start==="number"&&typeof r.end==="number")return r.end+1-r.start;else if(typeof r.path==="string"||Buffer.isBuffer(r.path))return t_(r.path).size;else if(typeof r.fd==="number")return u_(r.fd).size;throw new Error(`Body Length computation failed for ${r}`)};var d7=()=>{};var Zh=G(()=>{d7()});var rg,ef=(r)=>{if(r.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!rg.exec(r))throw new TypeError("Invalid base64 string.");const f=Xh(r,"base64");return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)};var O7=G(()=>{Yh();rg=/^[A-Za-z0-9+/]*={0,2}$/});var nf=(r)=>{let f;if(typeof r==="string")f=Us(r);else f=r;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Vw(f.buffer,f.byteOffset,f.byteLength).toString("base64")};var b7=G(()=>{Yh();x0()});var Mh=G(()=>{O7();b7()});var c7,_7,g7,p7,u7,Ns,x7,t7,e7,n7,o7,a7,sg,rZ;var sZ=G(()=>{c7={["required"]:!1,type:"String"},_7={["required"]:!0,default:!1,type:"Boolean"},g7={["ref"]:"Endpoint"},p7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},u7={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},Ns={},x7={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},t7={["ref"]:"PartitionResult"},e7={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[t7,"supportsDualStack"]}]},n7=[p7],o7=[u7],a7=[{["ref"]:"Region"}],sg={version:"1.0",parameters:{Region:c7,UseDualStack:_7,UseFIPS:_7,Endpoint:c7},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[g7]}],rules:[{conditions:n7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:o7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:g7,properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:a7}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:a7,assign:"PartitionResult"}],rules:[{conditions:[p7,u7],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,x7]},e7],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:n7,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[x7,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[t7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:Ns,headers:Ns},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:o7,rules:[{conditions:[e7],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:Ns,headers:Ns},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},rZ=sg});var fZ=(r,f={})=>{return es(rZ,{endpointParams:r,logger:f.logger})};var wZ=G(()=>{Cw();ns();sZ();pr.aws=os});var hZ,EZ,$Z=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??ef,base64Encoder:r?.base64Encoder??nf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??fZ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??B7,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new hZ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new EZ.NoAuthSigner}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??Us,utf8Encoder:r?.utf8Encoder??gf}};var IZ=G(()=>{hZ=u(lr(),1),EZ=u(Or(),1);Y();j0();Mh();x0();nU();wZ()});var FZ="AWS_EXECUTION_ENV",tU="AWS_REGION",rT="AWS_DEFAULT_REGION",UZ="AWS_EC2_METADATA_DISABLED",TZ,GZ="/latest/meta-data/placement/region";var CZ=G(()=>{TZ=["in-region","cross-region","mobile","standard","legacy"]});var LZ;var AZ=G(()=>{LZ={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var of=({region:r=t(Zs),defaultsMode:f=t(LZ)}={})=>Sw(async()=>{const s=typeof f==="function"?await f():f;switch(s?.toLowerCase()){case"auto":return fg(r);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(s?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${TZ.join(", ")}, got ${s}`)}}),fg=async(r)=>{if(r){const f=typeof r==="function"?await r():r,s=await wg();if(!s)return"standard";if(f===s)return"in-region";else return"cross-region"}return"standard"},wg=async()=>{if(process.env[FZ]&&(process.env[tU]||process.env[rT]))return process.env[tU]??process.env[rT];if(!process.env[UZ])try{const{getInstanceMetadataEndpoint:r,httpRequest:f}=await Promise.resolve().then(() => (i1(),j1)),s=await r();return(await f({...s,path:GZ})).toString()}catch(r){}};var RZ=G(()=>{Ms();sf();Lr();CZ();AZ()});var Jh=G(()=>{RZ()});var WZ,zZ=(r)=>{jf(process.version);const f=of(r),s=()=>f().then(vf),w=$Z(r);return WZ.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??xf,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??_f({serviceId:w.serviceId,clientVersion:D7.version}),maxAttempts:r?.maxAttempts??t(Df),region:r?.region??t(Zs,Jf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...Nf,default:async()=>(await s()).retryMode||Ds}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??cf,useDualstackEndpoint:r?.useDualstackEndpoint??t(Zf),useFipsEndpoint:r?.useFipsEndpoint??t(Mf)}};var SZ=G(()=>{H7();WZ=u(lr(),1);O1();Ph();Ms();Kh();ff();sf();lw();Zh();Cs();IZ();Y();Jh();Y()});var af=(r)=>{let f=async()=>{if(r.region===void 0)throw new Error("Region is missing from runtimeConfig");const s=r.region;if(typeof s==="string")return s;return s()};return{setRegion(s){f=s},region(){return f}}},pf=(r)=>{return{region:r.region()}};var PZ=()=>{};var XZ=()=>{};var YZ=G(()=>{XZ()});var KZ=G(()=>{PZ();YZ()});var Qh=G(()=>{KZ()});var ZZ=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const E=f.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)f.push(h);else f.splice(E,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},MZ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var d3=(r)=>r,JZ=(r,f)=>{const s={...d3(af(r)),...d3(df(r)),...d3(Rf(r)),...d3(ZZ(r))};return f.forEach((w)=>w.configure(s)),{...r,...pf(s),...Of(s),...Wf(s),...MZ(s)}};var QZ=G(()=>{Qh();qr();Y()});var Bh,O3;var sT=G(()=>{ew();nw();ow();pw();Ms();Bh=u(Or(),1);Ih();B();ff();Y();nU();Sh();SZ();QZ();O3=class O3 extends As{constructor(...[r]){const f=zZ(r||{}),s=V7(f),w=Yf(s),h=kf(w),E=Qf(h),$=zf(E),I=Vf($),F=l7(I),U=JZ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Bh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Q7,identityProviderConfigProvider:async(C)=>new Bh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Bh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var Vr;var b3=G(()=>{Y();Vr=class Vr extends ks{constructor(r){super(r);Object.setPrototypeOf(this,Vr.prototype)}}});var b1,c1,_1,g1,x1,e1,n1,o1,a1,p1,u1,t1,rE,sE,fT=(r)=>({...r,...r.clientSecret&&{clientSecret:o},...r.refreshToken&&{refreshToken:o},...r.codeVerifier&&{codeVerifier:o}}),wT=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),hT=(r)=>({...r,...r.refreshToken&&{refreshToken:o},...r.assertion&&{assertion:o},...r.subjectToken&&{subjectToken:o},...r.codeVerifier&&{codeVerifier:o}}),ET=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),$T=(r)=>({...r,...r.clientSecret&&{clientSecret:o}}),IT=(r)=>({...r,...r.clientSecret&&{clientSecret:o}});var Hw=G(()=>{Y();b3();b1=class b1 extends Vr{constructor(r){super({name:"AccessDeniedException",$fault:"client",...r});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,b1.prototype),this.error=r.error,this.error_description=r.error_description}};c1=class c1 extends Vr{constructor(r){super({name:"AuthorizationPendingException",$fault:"client",...r});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,c1.prototype),this.error=r.error,this.error_description=r.error_description}};_1=class _1 extends Vr{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,_1.prototype),this.error=r.error,this.error_description=r.error_description}};g1=class g1 extends Vr{constructor(r){super({name:"InternalServerException",$fault:"server",...r});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,g1.prototype),this.error=r.error,this.error_description=r.error_description}};x1=class x1 extends Vr{constructor(r){super({name:"InvalidClientException",$fault:"client",...r});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,x1.prototype),this.error=r.error,this.error_description=r.error_description}};e1=class e1 extends Vr{constructor(r){super({name:"InvalidGrantException",$fault:"client",...r});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,e1.prototype),this.error=r.error,this.error_description=r.error_description}};n1=class n1 extends Vr{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,n1.prototype),this.error=r.error,this.error_description=r.error_description}};o1=class o1 extends Vr{constructor(r){super({name:"InvalidScopeException",$fault:"client",...r});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,o1.prototype),this.error=r.error,this.error_description=r.error_description}};a1=class a1 extends Vr{constructor(r){super({name:"SlowDownException",$fault:"client",...r});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,a1.prototype),this.error=r.error,this.error_description=r.error_description}};p1=class p1 extends Vr{constructor(r){super({name:"UnauthorizedClientException",$fault:"client",...r});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,p1.prototype),this.error=r.error,this.error_description=r.error_description}};u1=class u1 extends Vr{constructor(r){super({name:"UnsupportedGrantTypeException",$fault:"client",...r});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,u1.prototype),this.error=r.error,this.error_description=r.error_description}};t1=class t1 extends Vr{constructor(r){super({name:"InvalidRequestRegionException",$fault:"client",...r});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,t1.prototype),this.error=r.error,this.error_description=r.error_description,this.endpoint=r.endpoint,this.region=r.region}};rE=class rE extends Vr{constructor(r){super({name:"InvalidClientMetadataException",$fault:"client",...r});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,rE.prototype),this.error=r.error,this.error_description=r.error_description}};sE=class sE extends Vr{constructor(r){super({name:"InvalidRedirectUriException",$fault:"client",...r});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,sE.prototype),this.error=r.error,this.error_description=r.error_description}}});var R0,fE,BZ=async(r,f)=>{const s=fE.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(E)=>q(E)})),s.m("POST").h(w).b(h),s.build()},lZ=async(r,f)=>{const s=fE.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/token");const h=P({[Xg]:[,"t"]});let E;return E=JSON.stringify(p(r,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:($)=>q($),subjectToken:[],subjectTokenType:[]})),s.m("POST").h(w).q(h).b(E),s.build()},VZ=async(r,f)=>{const s=fE.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/client/register");let h;return h=JSON.stringify(p(r,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(E)=>q(E),issuerUrl:[],redirectUris:(E)=>q(E),scopes:(E)=>q(E)})),s.m("POST").h(w).b(h),s.build()},HZ=async(r,f)=>{const s=fE.requestBuilder(r,f),w={"content-type":"application/json"};s.bp("/device_authorization");let h;return h=JSON.stringify(p(r,{clientId:[],clientSecret:[],startUrl:[]})),s.m("POST").h(w).b(h),s.build()},DZ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c3(r,f);const s=P({$metadata:vr(r)}),w=y(d(await R0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Kw,idToken:T,refreshToken:T,tokenType:T});return Object.assign(s,h),s},kZ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c3(r,f);const s=P({$metadata:vr(r)}),w=y(d(await R0.parseJsonBody(r.body,f)),"body"),h=p(w,{accessToken:T,expiresIn:Kw,idToken:T,issuedTokenType:T,refreshToken:T,scope:q,tokenType:T});return Object.assign(s,h),s},NZ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c3(r,f);const s=P({$metadata:vr(r)}),w=y(d(await R0.parseJsonBody(r.body,f)),"body"),h=p(w,{authorizationEndpoint:T,clientId:T,clientIdIssuedAt:Lh,clientSecret:T,clientSecretExpiresAt:Lh,tokenEndpoint:T});return Object.assign(s,h),s},yZ=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c3(r,f);const s=P({$metadata:vr(r)}),w=y(d(await R0.parseJsonBody(r.body,f)),"body"),h=p(w,{deviceCode:T,expiresIn:Kw,interval:Kw,userCode:T,verificationUri:T,verificationUriComplete:T});return Object.assign(s,h),s},c3=async(r,f)=>{const s={...r,body:await R0.parseJsonErrorBody(r.body,f)},w=R0.loadRestJsonErrorCode(r,s.body);switch(w){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await $g(s,f);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Ig(s,f);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Fg(s,f);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Ug(s,f);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Tg(s,f);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Cg(s,f);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Ag(s,f);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await Wg(s,f);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await zg(s,f);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await Sg(s,f);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await Pg(s,f);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await Rg(s,f);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await Gg(s,f);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await Lg(s,f);default:const h=s.body;return Eg({output:r,parsedBody:h,errorCode:w})}},Eg,$g=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new b1({$metadata:vr(r),...s});return D(E,r.body)},Ig=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new c1({$metadata:vr(r),...s});return D(E,r.body)},Fg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new _1({$metadata:vr(r),...s});return D(E,r.body)},Ug=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new g1({$metadata:vr(r),...s});return D(E,r.body)},Tg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new x1({$metadata:vr(r),...s});return D(E,r.body)},Gg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new rE({$metadata:vr(r),...s});return D(E,r.body)},Cg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new e1({$metadata:vr(r),...s});return D(E,r.body)},Lg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new sE({$metadata:vr(r),...s});return D(E,r.body)},Ag=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new n1({$metadata:vr(r),...s});return D(E,r.body)},Rg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{endpoint:T,error:T,error_description:T,region:T});Object.assign(s,h);const E=new t1({$metadata:vr(r),...s});return D(E,r.body)},Wg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new o1({$metadata:vr(r),...s});return D(E,r.body)},zg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new a1({$metadata:vr(r),...s});return D(E,r.body)},Sg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new p1({$metadata:vr(r),...s});return D(E,r.body)},Pg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{error:T,error_description:T});Object.assign(s,h);const E=new u1({$metadata:vr(r),...s});return D(E,r.body)},vr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),Xg="aws_iam";var wE=G(()=>{R0=u(lr(),1),fE=u(Or(),1);Y();Hw();b3();Eg=mf(Vr)});var _3;var FT=G(()=>{B();V();Y();Sh();Hw();wE();_3=class _3 extends A.classBuilder().ep({...g0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f(fT,wT).ser(BZ).de(DZ).build(){}});var g3;var UT=G(()=>{B();V();Y();Sh();Hw();wE();g3=class g3 extends A.classBuilder().ep({...g0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(hT,ET).ser(lZ).de(kZ).build(){}});var x3;var TT=G(()=>{B();V();Y();Sh();Hw();wE();x3=class x3 extends A.classBuilder().ep({...g0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,$T).ser(VZ).de(NZ).build(){}});var e3;var GT=G(()=>{B();V();Y();Sh();Hw();wE();e3=class e3 extends A.classBuilder().ep({...g0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(IT,void 0).ser(HZ).de(yZ).build(){}});var Yg,CT;var qZ=G(()=>{Y();FT();UT();TT();GT();sT();Yg={CreateTokenCommand:_3,CreateTokenWithIAMCommand:g3,RegisterClientCommand:x3,StartDeviceAuthorizationCommand:e3};CT=class CT extends O3{};yf(Yg,CT)});var mZ=G(()=>{FT();UT();TT();GT()});var vZ=G(()=>{Hw()});var LT={};Af(LT,{__Client:()=>As,UnsupportedGrantTypeException:()=>u1,UnauthorizedClientException:()=>p1,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>IT,StartDeviceAuthorizationCommand:()=>e3,SlowDownException:()=>a1,SSOOIDCServiceException:()=>Vr,SSOOIDCClient:()=>O3,SSOOIDC:()=>CT,RegisterClientResponseFilterSensitiveLog:()=>$T,RegisterClientCommand:()=>x3,InvalidScopeException:()=>o1,InvalidRequestRegionException:()=>t1,InvalidRequestException:()=>n1,InvalidRedirectUriException:()=>sE,InvalidGrantException:()=>e1,InvalidClientMetadataException:()=>rE,InvalidClientException:()=>x1,InternalServerException:()=>g1,ExpiredTokenException:()=>_1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>ET,CreateTokenWithIAMRequestFilterSensitiveLog:()=>hT,CreateTokenWithIAMCommand:()=>g3,CreateTokenResponseFilterSensitiveLog:()=>wT,CreateTokenRequestFilterSensitiveLog:()=>fT,CreateTokenCommand:()=>_3,AuthorizationPendingException:()=>c1,AccessDeniedException:()=>b1,$Command:()=>A});var AT=G(()=>{sT();qZ();mZ();vZ();b3()});var RT,jZ=async(r)=>{const{SSOOIDCClient:f}=await Promise.resolve().then(() => (AT(),LT));if(RT[r])return RT[r];const s=new f({region:r});return RT[r]=s,s};var iZ=G(()=>{RT={}});var dZ=async(r,f)=>{const{CreateTokenCommand:s}=await Promise.resolve().then(() => (AT(),LT));return(await jZ(f)).send(new s({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var OZ=G(()=>{iZ()});var WT=(r)=>{if(r.expiration&&r.expiration.getTime()<Date.now())throw new Is(`Token is expired. ${zh}`,!1)};var bZ=G(()=>{Lr()});var e0=(r,f,s=!1)=>{if(typeof f==="undefined")throw new Is(`Value not present for '${r}' in SSO Token${s?". Cannot refresh":""}. ${zh}`,!1)};var cZ=G(()=>{Lr()});import{promises as Kg}from"fs";var Zg,_Z=(r,f)=>{const s=s3(r),w=JSON.stringify(f,null,2);return Zg(s,w)};var gZ=G(()=>{rf();({writeFile:Zg}=Kg)});var xZ,eZ=(r={})=>async()=>{r.logger?.debug("@aws-sdk/token-providers - fromSso");const f=await v0(r),s=ls(r),w=f[s];if(!w)throw new Is(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new Is(`Profile '${s}' is missing required property 'sso_session'.`);const h=w.sso_session,$=(await E3(r))[h];if(!$)throw new Is(`Sso session '${h}' could not be found in shared credentials file.`,!1);for(let S of["sso_start_url","sso_region"])if(!$[S])throw new Is(`Sso session '${h}' is missing required property '${S}'.`,!1);const{sso_start_url:I,sso_region:F}=$;let U;try{U=await f3(h)}catch(S){throw new Is(`The SSO session token associated with profile=${s} was not found or is invalid. ${zh}`,!1)}e0("accessToken",U.accessToken),e0("expiresAt",U.expiresAt);const{accessToken:C,expiresAt:L}=U,z={token:C,expiration:new Date(L)};if(z.expiration.getTime()-Date.now()>M7)return z;if(Date.now()-xZ.getTime()<30000)return WT(z),z;e0("clientId",U.clientId,!0),e0("clientSecret",U.clientSecret,!0),e0("refreshToken",U.refreshToken,!0);try{xZ.setTime(Date.now());const S=await dZ(U,F);e0("accessToken",S.accessToken),e0("expiresIn",S.expiresIn);const K=new Date(Date.now()+S.expiresIn*1000);try{await _Z(h,{...U,accessToken:S.accessToken,expiresAt:K.toISOString(),refreshToken:S.refreshToken})}catch(k){}return{token:S.accessToken,expiration:K}}catch(S){return WT(z),z}};var nZ=G(()=>{Lr();rf();OZ();bZ();cZ();gZ();xZ=new Date(0)});var oZ=G(()=>{Lr()});var aZ=G(()=>{Lr()});var pZ=G(()=>{nZ();oZ();aZ()});function Mg(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function n3(r){return{schemeId:"smithy.api#noAuth"}}var uZ,tZ=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},r9=(r)=>{const f=[];switch(r.operation){case"GetRoleCredentials":{f.push(n3(r));break}case"ListAccountRoles":{f.push(n3(r));break}case"ListAccounts":{f.push(n3(r));break}case"Logout":{f.push(n3(r));break}default:f.push(Mg(r))}return f},s9=(r)=>{return{...uZ.resolveAwsSdkSigV4Config(r)}};var zT=G(()=>{uZ=u(lr(),1);as()});var f9=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},n0;var lh=G(()=>{n0={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var h9;var w9=G(()=>{h9={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","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":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.635.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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 E9,$9,I9,L9,A9,ys,F9,R9,U9,T9,G9,C9,Qg,W9;var z9=G(()=>{E9={["required"]:!1,type:"String"},$9={["required"]:!0,default:!1,type:"Boolean"},I9={["ref"]:"Endpoint"},L9={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},A9={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},ys={},F9={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},R9={["ref"]:"PartitionResult"},U9={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[R9,"supportsDualStack"]}]},T9=[L9],G9=[A9],C9=[{["ref"]:"Region"}],Qg={version:"1.0",parameters:{Region:E9,UseDualStack:$9,UseFIPS:$9,Endpoint:E9},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[I9]}],rules:[{conditions:T9,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:G9,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:I9,properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:C9}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:C9,assign:"PartitionResult"}],rules:[{conditions:[L9,A9],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,F9]},U9],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:T9,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[F9,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[R9,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:ys,headers:ys},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:G9,rules:[{conditions:[U9],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:ys,headers:ys},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},W9=Qg});var S9=(r,f={})=>{return es(W9,{endpointParams:r,logger:f.logger})};var P9=G(()=>{Cw();ns();z9();pr.aws=os});var X9,Y9,K9=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??ef,base64Encoder:r?.base64Encoder??nf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??S9,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??r9,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new X9.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Y9.NoAuthSigner}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"SSO",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??Us,utf8Encoder:r?.utf8Encoder??gf}};var Z9=G(()=>{X9=u(lr(),1),Y9=u(Or(),1);Y();j0();Mh();x0();zT();P9()});var M9,J9=(r)=>{jf(process.version);const f=of(r),s=()=>f().then(vf),w=K9(r);return M9.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??xf,defaultUserAgentProvider:r?.defaultUserAgentProvider??_f({serviceId:w.serviceId,clientVersion:h9.version}),maxAttempts:r?.maxAttempts??t(Df),region:r?.region??t(Zs,Jf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...Nf,default:async()=>(await s()).retryMode||Ds}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??cf,useDualstackEndpoint:r?.useDualstackEndpoint??t(Zf),useFipsEndpoint:r?.useFipsEndpoint??t(Mf)}};var Q9=G(()=>{w9();M9=u(lr(),1);Ph();Ms();Kh();ff();sf();lw();Zh();Cs();Z9();Y();Jh();Y()});var B9=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const E=f.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)f.push(h);else f.splice(E,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},l9=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var o3=(r)=>r,V9=(r,f)=>{const s={...o3(af(r)),...o3(df(r)),...o3(Rf(r)),...o3(B9(r))};return f.forEach((w)=>w.configure(s)),{...r,...pf(s),...Of(s),...Wf(s),...l9(s)}};var H9=G(()=>{Qh();qr();Y()});var Vh,W0;var hE=G(()=>{ew();nw();ow();pw();Ms();Vh=u(Or(),1);Ih();B();ff();Y();zT();lh();Q9();H9();W0=class W0 extends As{constructor(...[r]){const f=J9(r||{}),s=f9(f),w=Yf(s),h=kf(w),E=Qf(h),$=zf(E),I=Vf($),F=s9(I),U=V9(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Vh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:tZ,identityProviderConfigProvider:async(C)=>new Vh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Vh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var z0;var ST=G(()=>{Y();z0=class z0 extends ks{constructor(r){super(r);Object.setPrototypeOf(this,z0.prototype)}}});var a3,p3,u3,t3,D9=(r)=>({...r,...r.accessToken&&{accessToken:o}}),Bg=(r)=>({...r,...r.secretAccessKey&&{secretAccessKey:o},...r.sessionToken&&{sessionToken:o}}),k9=(r)=>({...r,...r.roleCredentials&&{roleCredentials:Bg(r.roleCredentials)}}),N9=(r)=>({...r,...r.accessToken&&{accessToken:o}}),y9=(r)=>({...r,...r.accessToken&&{accessToken:o}}),q9=(r)=>({...r,...r.accessToken&&{accessToken:o}});var Dw=G(()=>{Y();ST();a3=class a3 extends z0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,a3.prototype)}};p3=class p3 extends z0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,p3.prototype)}};u3=class u3 extends z0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,u3.prototype)}};t3=class t3 extends z0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,t3.prototype)}}});var o0,EE,m9=async(r,f)=>{const s=EE.requestBuilder(r,f),w=P({},sI,{[wI]:r[fI]});s.bp("/federation/credentials");const h=P({[yg]:[,y(r[Ng],"roleName")],[g9]:[,y(r[_9],"accountId")]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},v9=async(r,f)=>{const s=EE.requestBuilder(r,f),w=P({},sI,{[wI]:r[fI]});s.bp("/assignment/roles");const h=P({[o9]:[,r[n9]],[e9]:[()=>r.maxResults!==void 0,()=>r[x9].toString()],[g9]:[,y(r[_9],"accountId")]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},j9=async(r,f)=>{const s=EE.requestBuilder(r,f),w=P({},sI,{[wI]:r[fI]});s.bp("/assignment/accounts");const h=P({[o9]:[,r[n9]],[e9]:[()=>r.maxResults!==void 0,()=>r[x9].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},i9=async(r,f)=>{const s=EE.requestBuilder(r,f),w=P({},sI,{[wI]:r[fI]});s.bp("/logout");let h;return s.m("POST").h(w).b(h),s.build()},d9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return rI(r,f);const s=P({$metadata:a0(r)}),w=y(d(await o0.parseJsonBody(r.body,f)),"body"),h=p(w,{roleCredentials:q});return Object.assign(s,h),s},O9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return rI(r,f);const s=P({$metadata:a0(r)}),w=y(d(await o0.parseJsonBody(r.body,f)),"body"),h=p(w,{nextToken:T,roleList:q});return Object.assign(s,h),s},b9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return rI(r,f);const s=P({$metadata:a0(r)}),w=y(d(await o0.parseJsonBody(r.body,f)),"body"),h=p(w,{accountList:q,nextToken:T});return Object.assign(s,h),s},c9=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return rI(r,f);const s=P({$metadata:a0(r)});return await gr(r.body,f),s},rI=async(r,f)=>{const s={...r,body:await o0.parseJsonErrorBody(r.body,f)},w=o0.loadRestJsonErrorCode(r,s.body);switch(w){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Vg(s,f);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Hg(s,f);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Dg(s,f);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await kg(s,f);default:const h=s.body;return lg({output:r,parsedBody:h,errorCode:w})}},lg,Vg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const E=new a3({$metadata:a0(r),...s});return D(E,r.body)},Hg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const E=new p3({$metadata:a0(r),...s});return D(E,r.body)},Dg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const E=new u3({$metadata:a0(r),...s});return D(E,r.body)},kg=async(r,f)=>{const s=P({}),w=r.body,h=p(w,{message:T});Object.assign(s,h);const E=new t3({$metadata:a0(r),...s});return D(E,r.body)},a0=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),sI=(r)=>r!==void 0&&r!==null&&r!==""&&(!Object.getOwnPropertyNames(r).includes("length")||r.length!=0)&&(!Object.getOwnPropertyNames(r).includes("size")||r.size!=0),_9="accountId",fI="accessToken",g9="account_id",x9="maxResults",e9="max_result",n9="nextToken",o9="next_token",Ng="roleName",yg="role_name",wI="x-amz-sso_bearer_token";var $E=G(()=>{o0=u(lr(),1),EE=u(Or(),1);Y();Dw();ST();lg=mf(z0)});var IE;var PT=G(()=>{B();V();Y();lh();Dw();$E();IE=class IE extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(D9,k9).ser(m9).de(d9).build(){}});var FE;var hI=G(()=>{B();V();Y();lh();Dw();$E();FE=class FE extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").f(N9,void 0).ser(v9).de(O9).build(){}});var UE;var EI=G(()=>{B();V();Y();lh();Dw();$E();UE=class UE extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").f(y9,void 0).ser(j9).de(b9).build(){}});var XT;var YT=G(()=>{B();V();Y();lh();Dw();$E();XT=class XT extends A.classBuilder().ep({...n0}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").f(q9,void 0).ser(i9).de(c9).build(){}});var qg,a9;var p9=G(()=>{Y();PT();hI();EI();YT();hE();qg={GetRoleCredentialsCommand:IE,ListAccountRolesCommand:FE,ListAccountsCommand:UE,LogoutCommand:XT};a9=class a9 extends W0{};yf(qg,a9)});var u9=G(()=>{PT();hI();EI();YT()});var t9=()=>{};var rM,iGr;var sM=G(()=>{rM=u(Or(),1);hI();hE();iGr=rM.createPaginator(W0,FE,"nextToken","nextToken","maxResults")});var fM,cGr;var wM=G(()=>{fM=u(Or(),1);EI();hE();cGr=fM.createPaginator(W0,UE,"nextToken","nextToken","maxResults")});var hM=G(()=>{t9();sM();wM()});var EM=G(()=>{Dw()});var $M=G(()=>{hE();p9();u9();hM();EM()});var IM={};Af(IM,{SSOClient:()=>W0,GetRoleCredentialsCommand:()=>IE});var FM=G(()=>{$M()});var TE=!1,KT=async({ssoStartUrl:r,ssoSession:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:E,clientConfig:$,profile:I,logger:F})=>{let U;const C="To refresh this SSO session run aws sso login with the corresponding profile.";if(f)try{const Dr=await eZ({profile:I})();U={accessToken:Dr.token,expiresAt:new Date(Dr.expiration).toISOString()}}catch(Dr){throw new g(Dr.message,{tryNextLink:TE,logger:F})}else try{U=await f3(r)}catch(Dr){throw new g("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:TE,logger:F})}if(new Date(U.expiresAt).getTime()-Date.now()<=0)throw new g("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:TE,logger:F});const{accessToken:L}=U,{SSOClient:z,GetRoleCredentialsCommand:S}=await Promise.resolve().then(() => (FM(),IM)),K=E||new z(Object.assign({},$??{},{region:$?.region??w}));let k;try{k=await K.send(new S({accountId:s,roleName:h,accessToken:L}))}catch(Dr){throw new g(Dr,{tryNextLink:TE,logger:F})}const{roleCredentials:{accessKeyId:l,secretAccessKey:Q,sessionToken:N,expiration:x,credentialScope:e,accountId:hr}={}}=k;if(!l||!Q||!N||!x)throw new g("SSO returns an invalid temporary credential.",{tryNextLink:TE,logger:F});return{accessKeyId:l,secretAccessKey:Q,sessionToken:N,expiration:new Date(x),...e&&{credentialScope:e},...hr&&{accountId:hr}}};var UM=G(()=>{pZ();Lr();rf()});var ZT=(r,f)=>{const{sso_start_url:s,sso_account_id:w,sso_region:h,sso_role_name:E}=r;if(!s||!w||!h||!E)throw new g(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(r).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:f});return r};var MT=G(()=>{Lr()});var mg=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:E}=r,{ssoClient:$}=r,I=ls(r);if(!f&&!s&&!w&&!h&&!E){const U=(await v0(r))[I];if(!U)throw new g(`Profile ${I} was not found.`,{logger:r.logger});if(!xU(U))throw new g(`Profile ${I} is not configured with SSO credentials.`,{logger:r.logger});if(U?.sso_session){const l=(await E3(r))[U.sso_session],Q=` configurations in profile ${I} and sso-session ${U.sso_session}`;if(w&&w!==l.sso_region)throw new g("Conflicting SSO region"+Q,{tryNextLink:!1,logger:r.logger});if(f&&f!==l.sso_start_url)throw new g("Conflicting SSO start_url"+Q,{tryNextLink:!1,logger:r.logger});U.sso_region=l.sso_region,U.sso_start_url=l.sso_start_url}const{sso_start_url:C,sso_account_id:L,sso_region:z,sso_role_name:S,sso_session:K}=ZT(U,r.logger);return KT({ssoStartUrl:C,ssoSession:K,ssoAccountId:L,ssoRegion:z,ssoRoleName:S,ssoClient:$,clientConfig:r.clientConfig,profile:I})}else if(!f||!s||!w||!h)throw new g('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:r.logger});else return KT({ssoStartUrl:f,ssoSession:E,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:$,clientConfig:r.clientConfig,profile:I})};var TM=G(()=>{Lr();rf();UM();MT()});var GM=()=>{};var JT={};Af(JT,{validateSsoProfile:()=>ZT,isSsoProfile:()=>xU,fromSSO:()=>mg});var QT=G(()=>{TM();GM();MT()});var CM=(r,f,s)=>{const w={EcsContainer:async(h)=>{const{fromHttp:E}=await Promise.resolve().then(() => (gU(),_U)),{fromContainerMetadata:$}=await Promise.resolve().then(() => (i1(),j1));return s?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),L0(E(h??{}),$(h))},Ec2InstanceMetadata:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");const{fromInstanceMetadata:E}=await Promise.resolve().then(() => (i1(),j1));return E(h)},Environment:async(h)=>{s?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");const{fromEnv:E}=await Promise.resolve().then(() => (HU(),vK));return E(h)}};if(r in w)return w[r];else throw new g(`Unsupported credential source in profile ${f}. Got ${r}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:s})};var LM=G(()=>{Lr()});function vg(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}function AM(r){return{schemeId:"smithy.api#noAuth"}}var RM,WM=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},zM=(r)=>{const f=[];switch(r.operation){case"AssumeRoleWithSAML":{f.push(AM(r));break}case"AssumeRoleWithWebIdentity":{f.push(AM(r));break}default:f.push(vg(r))}return f},jg=(r)=>({...r,stsClientCtor:S0}),SM=(r)=>{const f=jg(r);return{...RM.resolveAwsSdkSigV4Config(f)}};var BT=G(()=>{RM=u(lr(),1);as();GE()});var PM=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,useGlobalEndpoint:r.useGlobalEndpoint??!1,defaultSigningName:"sts"}},er;var uf=G(()=>{er={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"}}});var YM;var XM=G(()=>{YM={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var KM,lT,DM,ZM,br,MM,kM,NM,nr,zs,JM,yM,qM,QM,mM,BM,lM,VM,HM,dg,vM;var jM=G(()=>{KM={["required"]:!1,["type"]:"String"},lT={["required"]:!0,default:!1,["type"]:"Boolean"},DM={["ref"]:"Endpoint"},ZM={["fn"]:"isSet",["argv"]:[{["ref"]:"Region"}]},br={["ref"]:"Region"},MM={["fn"]:"aws.partition",["argv"]:[br],assign:"PartitionResult"},kM={["ref"]:"UseFIPS"},NM={["ref"]:"UseDualStack"},nr={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},zs={},JM={conditions:[{["fn"]:"stringEquals",["argv"]:[br,"aws-global"]}],["endpoint"]:nr,["type"]:"endpoint"},yM={["fn"]:"booleanEquals",["argv"]:[kM,!0]},qM={["fn"]:"booleanEquals",["argv"]:[NM,!0]},QM={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},mM={["ref"]:"PartitionResult"},BM={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[mM,"supportsDualStack"]}]},lM=[{["fn"]:"isSet",["argv"]:[DM]}],VM=[yM],HM=[qM],dg={version:"1.0",parameters:{Region:KM,UseDualStack:lT,UseFIPS:lT,Endpoint:KM,UseGlobalEndpoint:lT},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:lM},ZM,MM,{["fn"]:"booleanEquals",["argv"]:[kM,!1]},{["fn"]:"booleanEquals",["argv"]:[NM,!1]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"ap-northeast-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"ap-south-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"ap-southeast-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"ap-southeast-2"]}],endpoint:nr,["type"]:"endpoint"},JM,{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"ca-central-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"eu-central-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"eu-north-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"eu-west-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"eu-west-2"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"eu-west-3"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"sa-east-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"us-east-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"us-east-2"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"us-west-1"]}],endpoint:nr,["type"]:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[br,"us-west-2"]}],endpoint:nr,["type"]:"endpoint"},{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:zs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:lM,rules:[{conditions:VM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",["type"]:"error"},{conditions:HM,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",["type"]:"error"},{endpoint:{url:DM,properties:zs,headers:zs},["type"]:"endpoint"}],["type"]:"tree"},{conditions:[ZM],rules:[{conditions:[MM],rules:[{conditions:[yM,qM],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,QM]},BM],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zs,headers:zs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",["type"]:"error"}],["type"]:"tree"},{conditions:VM,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[QM,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[mM,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:zs,headers:zs},["type"]:"endpoint"},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:zs,headers:zs},["type"]:"endpoint"}],["type"]:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",["type"]:"error"}],["type"]:"tree"},{conditions:HM,rules:[{conditions:[BM],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:zs,headers:zs},["type"]:"endpoint"}],["type"]:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",["type"]:"error"}],["type"]:"tree"},JM,{endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:zs,headers:zs},["type"]:"endpoint"}],["type"]:"tree"}],["type"]:"tree"},{error:"Invalid Configuration: Missing Region",["type"]:"error"}]},vM=dg});var iM=(r,f={})=>{return es(vM,{endpointParams:r,logger:f.logger})};var dM=G(()=>{Cw();ns();jM();pr.aws=os});var OM,bM,cM=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??ef,base64Encoder:r?.base64Encoder??nf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??iM,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??zM,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new OM.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new bM.NoAuthSigner}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??Us,utf8Encoder:r?.utf8Encoder??gf}};var _M=G(()=>{OM=u(lr(),1),bM=u(Or(),1);Y();j0();Mh();x0();BT();dM()});var $I,gM,xM=(r)=>{jf(process.version);const f=of(r),s=()=>f().then(vf),w=cM(r);return $I.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??xf,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??_f({serviceId:w.serviceId,clientVersion:YM.version}),httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4")||(async(E)=>await A0(E?.__config||{})()),signer:new $I.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new gM.NoAuthSigner}],maxAttempts:r?.maxAttempts??t(Df),region:r?.region??t(Zs,Jf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...Nf,default:async()=>(await s()).retryMode||Ds}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??cf,useDualstackEndpoint:r?.useDualstackEndpoint??t(Zf),useFipsEndpoint:r?.useFipsEndpoint??t(Mf)}};var eM=G(()=>{XM();$I=u(lr(),1);O1();Ph();Ms();gM=u(Or(),1);Kh();ff();sf();lw();Zh();Cs();_M();Y();Jh();Y()});var nM=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const E=f.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)f.push(h);else f.splice(E,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},oM=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var II=(r)=>r,aM=(r,f)=>{const s={...II(af(r)),...II(df(r)),...II(Rf(r)),...II(nM(r))};return f.forEach((w)=>w.configure(s)),{...r,...pf(s),...Of(s),...Wf(s),...oM(s)}};var pM=G(()=>{Qh();qr();Y()});var Hh,S0;var GE=G(()=>{ew();nw();ow();pw();Ms();Hh=u(Or(),1);Ih();B();ff();Y();BT();uf();eM();pM();S0=class S0 extends As{constructor(...[r]){const f=xM(r||{}),s=PM(f),w=Yf(s),h=kf(w),E=Qf(h),$=zf(E),I=Vf($),F=SM(I),U=aM(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(Hh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:WM,identityProviderConfigProvider:async(C)=>new Hh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(Hh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}});var rs;var FI=G(()=>{Y();rs=class rs extends ks{constructor(r){super(r);Object.setPrototypeOf(this,rs.prototype)}}});var CE,LE,AE,RE,WE,zE,SE,PE,Dh=(r)=>({...r,...r.SecretAccessKey&&{SecretAccessKey:o}}),VT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),HT=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:o}}),DT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),kT=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:o}}),NT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),yT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),qT=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}});var p0=G(()=>{Y();FI();CE=class CE extends rs{constructor(r){super({name:"ExpiredTokenException",$fault:"client",...r});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,CE.prototype)}};LE=class LE extends rs{constructor(r){super({name:"MalformedPolicyDocumentException",$fault:"client",...r});this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,LE.prototype)}};AE=class AE extends rs{constructor(r){super({name:"PackedPolicyTooLargeException",$fault:"client",...r});this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,AE.prototype)}};RE=class RE extends rs{constructor(r){super({name:"RegionDisabledException",$fault:"client",...r});this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,RE.prototype)}};WE=class WE extends rs{constructor(r){super({name:"IDPRejectedClaimException",$fault:"client",...r});this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,WE.prototype)}};zE=class zE extends rs{constructor(r){super({name:"InvalidIdentityTokenException",$fault:"client",...r});this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,zE.prototype)}};SE=class SE extends rs{constructor(r){super({name:"IDPCommunicationErrorException",$fault:"client",...r});this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,SE.prototype)}};PE=class PE extends rs{constructor(r){super({name:"InvalidAuthorizationMessageException",$fault:"client",...r});this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,PE.prototype)}}});var hf,uM=async(r,f)=>{const s=rw;let w;return w=hw({...og(r,f),[fw]:Qx,[ww]:sw}),t0(f,s,"/",void 0,w)},tM=async(r,f)=>{const s=rw;let w;return w=hw({...ag(r,f),[fw]:Bx,[ww]:sw}),t0(f,s,"/",void 0,w)},rJ=async(r,f)=>{const s=rw;let w;return w=hw({...pg(r,f),[fw]:lx,[ww]:sw}),t0(f,s,"/",void 0,w)},sJ=async(r,f)=>{const s=rw;let w;return w=hw({...ug(r,f),[fw]:Vx,[ww]:sw}),t0(f,s,"/",void 0,w)},fJ=async(r,f)=>{const s=rw;let w;return w=hw({...tg(r,f),[fw]:Hx,[ww]:sw}),t0(f,s,"/",void 0,w)},wJ=async(r,f)=>{const s=rw;let w;return w=hw({...rx(r,f),[fw]:Dx,[ww]:sw}),t0(f,s,"/",void 0,w)},hJ=async(r,f)=>{const s=rw;let w;return w=hw({...sx(r,f),[fw]:kx,[ww]:sw}),t0(f,s,"/",void 0,w)},EJ=async(r,f)=>{const s=rw;let w;return w=hw({...fx(r,f),[fw]:Nx,[ww]:sw}),t0(f,s,"/",void 0,w)},$J=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Fx(s.AssumeRoleResult,f),{$metadata:or(r),...w}},IJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Ux(s.AssumeRoleWithSAMLResult,f),{$metadata:or(r),...w}},FJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Tx(s.AssumeRoleWithWebIdentityResult,f),{$metadata:or(r),...w}},UJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Gx(s.DecodeAuthorizationMessageResult,f),{$metadata:or(r),...w}},TJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Ax(s.GetAccessKeyInfoResult,f),{$metadata:or(r),...w}},GJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Rx(s.GetCallerIdentityResult,f),{$metadata:or(r),...w}},CJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=Wx(s.GetFederationTokenResult,f),{$metadata:or(r),...w}},LJ=async(r,f)=>{if(r.statusCode>=300)return u0(r,f);const s=await hf.parseXmlBody(r.body,f);let w={};return w=zx(s.GetSessionTokenResult,f),{$metadata:or(r),...w}},u0=async(r,f)=>{const s={...r,body:await hf.parseXmlErrorBody(r.body,f)},w=yx(r,s.body);switch(w){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await Og(s,f);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await xg(s,f);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await eg(s,f);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await ng(s,f);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await cg(s,f);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await gg(s,f);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await bg(s,f);case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await _g(s,f);default:const h=s.body;return Jx({output:r,parsedBody:h.Error,errorCode:w})}},Og=async(r,f)=>{const s=r.body,w=Cx(s.Error,f),h=new CE({$metadata:or(r),...w});return D(h,s)},bg=async(r,f)=>{const s=r.body,w=Sx(s.Error,f),h=new SE({$metadata:or(r),...w});return D(h,s)},cg=async(r,f)=>{const s=r.body,w=Px(s.Error,f),h=new WE({$metadata:or(r),...w});return D(h,s)},_g=async(r,f)=>{const s=r.body,w=Xx(s.Error,f),h=new PE({$metadata:or(r),...w});return D(h,s)},gg=async(r,f)=>{const s=r.body,w=Yx(s.Error,f),h=new zE({$metadata:or(r),...w});return D(h,s)},xg=async(r,f)=>{const s=r.body,w=Kx(s.Error,f),h=new LE({$metadata:or(r),...w});return D(h,s)},eg=async(r,f)=>{const s=r.body,w=Zx(s.Error,f),h=new AE({$metadata:or(r),...w});return D(h,s)},ng=async(r,f)=>{const s=r.body,w=Mx(s.Error,f),h=new RE({$metadata:or(r),...w});return D(h,s)},og=(r,f)=>{const s={};if(r[Y0]!=null)s[Y0]=r[Y0];if(r[qh]!=null)s[qh]=r[qh];if(r[ms]!=null){const w=UI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;s[$]=E})}if(r[qs]!=null)s[qs]=r[qs];if(r[fs]!=null)s[fs]=r[fs];if(r[vh]!=null){const w=AJ(r[vh],f);if(r[vh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,E])=>{const $=`Tags.${h}`;s[$]=E})}if(r[EG]!=null){const w=Ix(r[EG],f);if(r[EG]?.length===0)s.TransitiveTagKeys=[];Object.entries(w).forEach(([h,E])=>{const $=`TransitiveTagKeys.${h}`;s[$]=E})}if(r[dT]!=null)s[dT]=r[dT];if(r[mh]!=null)s[mh]=r[mh];if(r[jh]!=null)s[jh]=r[jh];if(r[js]!=null)s[js]=r[js];if(r[aT]!=null){const w=Ex(r[aT],f);if(r[aT]?.length===0)s.ProvidedContexts=[];Object.entries(w).forEach(([h,E])=>{const $=`ProvidedContexts.${h}`;s[$]=E})}return s},ag=(r,f)=>{const s={};if(r[Y0]!=null)s[Y0]=r[Y0];if(r[nT]!=null)s[nT]=r[nT];if(r[sG]!=null)s[sG]=r[sG];if(r[ms]!=null){const w=UI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;s[$]=E})}if(r[qs]!=null)s[qs]=r[qs];if(r[fs]!=null)s[fs]=r[fs];return s},pg=(r,f)=>{const s={};if(r[Y0]!=null)s[Y0]=r[Y0];if(r[qh]!=null)s[qh]=r[qh];if(r[FG]!=null)s[FG]=r[FG];if(r[pT]!=null)s[pT]=r[pT];if(r[ms]!=null){const w=UI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;s[$]=E})}if(r[qs]!=null)s[qs]=r[qs];if(r[fs]!=null)s[fs]=r[fs];return s},ug=(r,f)=>{const s={};if(r[OT]!=null)s[OT]=r[OT];return s},tg=(r,f)=>{const s={};if(r[kh]!=null)s[kh]=r[kh];return s},rx=(r,f)=>{return{}},sx=(r,f)=>{const s={};if(r[xT]!=null)s[xT]=r[xT];if(r[qs]!=null)s[qs]=r[qs];if(r[ms]!=null){const w=UI(r[ms],f);if(r[ms]?.length===0)s.PolicyArns=[];Object.entries(w).forEach(([h,E])=>{const $=`PolicyArns.${h}`;s[$]=E})}if(r[fs]!=null)s[fs]=r[fs];if(r[vh]!=null){const w=AJ(r[vh],f);if(r[vh]?.length===0)s.Tags=[];Object.entries(w).forEach(([h,E])=>{const $=`Tags.${h}`;s[$]=E})}return s},fx=(r,f)=>{const s={};if(r[fs]!=null)s[fs]=r[fs];if(r[mh]!=null)s[mh]=r[mh];if(r[jh]!=null)s[jh]=r[jh];return s},UI=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const E=wx(h,f);Object.entries(E).forEach(([$,I])=>{s[`member.${w}.${$}`]=I}),w++}return s},wx=(r,f)=>{const s={};if(r[UG]!=null)s[UG]=r[UG];return s},hx=(r,f)=>{const s={};if(r[oT]!=null)s[oT]=r[oT];if(r[vT]!=null)s[vT]=r[vT];return s},Ex=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const E=hx(h,f);Object.entries(E).forEach(([$,I])=>{s[`member.${w}.${$}`]=I}),w++}return s},$x=(r,f)=>{const s={};if(r[gT]!=null)s[gT]=r[gT];if(r[IG]!=null)s[IG]=r[IG];return s},Ix=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;s[`member.${w}`]=h,w++}return s},AJ=(r,f)=>{const s={};let w=1;for(let h of r){if(h===null)continue;const E=$x(h,f);Object.entries(E).forEach(([$,I])=>{s[`member.${w}.${$}`]=I}),w++}return s},TG=(r,f)=>{const s={};if(r[mT]!=null)s[mT]=T(r[mT]);if(r[X0]!=null)s[X0]=T(r[X0]);return s},Fx=(r,f)=>{const s={};if(r[ss]!=null)s[ss]=XE(r[ss],f);if(r[P0]!=null)s[P0]=TG(r[P0],f);if(r[vs]!=null)s[vs]=Er(r[vs]);if(r[js]!=null)s[js]=T(r[js]);return s},Ux=(r,f)=>{const s={};if(r[ss]!=null)s[ss]=XE(r[ss],f);if(r[P0]!=null)s[P0]=TG(r[P0],f);if(r[vs]!=null)s[vs]=Er(r[vs]);if(r[tT]!=null)s[tT]=T(r[tT]);if(r[wG]!=null)s[wG]=T(r[wG]);if(r[_T]!=null)s[_T]=T(r[_T]);if(r[yh]!=null)s[yh]=T(r[yh]);if(r[eT]!=null)s[eT]=T(r[eT]);if(r[js]!=null)s[js]=T(r[js]);return s},Tx=(r,f)=>{const s={};if(r[ss]!=null)s[ss]=XE(r[ss],f);if(r[fG]!=null)s[fG]=T(r[fG]);if(r[P0]!=null)s[P0]=TG(r[P0],f);if(r[vs]!=null)s[vs]=Er(r[vs]);if(r[uT]!=null)s[uT]=T(r[uT]);if(r[yh]!=null)s[yh]=T(r[yh]);if(r[js]!=null)s[js]=T(r[js]);return s},XE=(r,f)=>{const s={};if(r[kh]!=null)s[kh]=T(r[kh]);if(r[rG]!=null)s[rG]=T(r[rG]);if(r[hG]!=null)s[hG]=T(r[hG]);if(r[iT]!=null)s[iT]=y(Mw(r[iT]));return s},Gx=(r,f)=>{const s={};if(r[jT]!=null)s[jT]=T(r[jT]);return s},Cx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Lx=(r,f)=>{const s={};if(r[cT]!=null)s[cT]=T(r[cT]);if(r[X0]!=null)s[X0]=T(r[X0]);return s},Ax=(r,f)=>{const s={};if(r[Nh]!=null)s[Nh]=T(r[Nh]);return s},Rx=(r,f)=>{const s={};if(r[$G]!=null)s[$G]=T(r[$G]);if(r[Nh]!=null)s[Nh]=T(r[Nh]);if(r[X0]!=null)s[X0]=T(r[X0]);return s},Wx=(r,f)=>{const s={};if(r[ss]!=null)s[ss]=XE(r[ss],f);if(r[bT]!=null)s[bT]=Lx(r[bT],f);if(r[vs]!=null)s[vs]=Er(r[vs]);return s},zx=(r,f)=>{const s={};if(r[ss]!=null)s[ss]=XE(r[ss],f);return s},Sx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Px=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Xx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Yx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Kx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Zx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},Mx=(r,f)=>{const s={};if(r[Sr]!=null)s[Sr]=T(r[Sr]);return s},or=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]}),Jx,t0=async(r,f,s,w,h)=>{const{hostname:E,protocol:$="https",port:I,path:F}=await r.endpoint(),U={protocol:$,hostname:E,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)},rw,sw="2011-06-15",fw="Action",kh="AccessKeyId",Qx="AssumeRole",mT="AssumedRoleId",P0="AssumedRoleUser",Bx="AssumeRoleWithSAML",lx="AssumeRoleWithWebIdentity",Nh="Account",X0="Arn",yh="Audience",ss="Credentials",vT="ContextAssertion",Vx="DecodeAuthorizationMessage",jT="DecodedMessage",fs="DurationSeconds",iT="Expiration",dT="ExternalId",OT="EncodedMessage",bT="FederatedUser",cT="FederatedUserId",Hx="GetAccessKeyInfo",Dx="GetCallerIdentity",kx="GetFederationToken",Nx="GetSessionToken",_T="Issuer",gT="Key",xT="Name",eT="NameQualifier",qs="Policy",ms="PolicyArns",nT="PrincipalArn",oT="ProviderArn",aT="ProvidedContexts",pT="ProviderId",vs="PackedPolicySize",uT="Provider",Y0="RoleArn",qh="RoleSessionName",tT="Subject",rG="SecretAccessKey",sG="SAMLAssertion",fG="SubjectFromWebIdentityToken",js="SourceIdentity",mh="SerialNumber",wG="SubjectType",hG="SessionToken",vh="Tags",jh="TokenCode",EG="TransitiveTagKeys",$G="UserId",ww="Version",IG="Value",FG="WebIdentityToken",UG="arn",Sr="message",hw=(r)=>Object.entries(r).map(([f,s])=>S3(f)+"="+S3(s)).join("&"),yx=(r,f)=>{if(f.Error?.Code!==void 0)return f.Error.Code;if(r.statusCode==404)return"NotFound"};var K0=G(()=>{hf=u(lr(),1);qr();Y();p0();FI();Jx=mf(rs),rw={"content-type":"application/x-www-form-urlencoded"}});var ih;var TI=G(()=>{B();V();Y();uf();p0();K0();ih=class ih extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").f(void 0,VT).ser(uM).de($J).build(){}});var GI;var GG=G(()=>{B();V();Y();uf();p0();K0();GI=class GI extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").f(HT,DT).ser(tM).de(IJ).build(){}});var dh;var CI=G(()=>{B();V();Y();uf();p0();K0();dh=class dh extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").f(kT,NT).ser(rJ).de(FJ).build(){}});var LI;var CG=G(()=>{B();V();Y();uf();K0();LI=class LI extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").f(void 0,void 0).ser(sJ).de(UJ).build(){}});var AI;var LG=G(()=>{B();V();Y();uf();K0();AI=class AI extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").f(void 0,void 0).ser(fJ).de(TJ).build(){}});var RI;var AG=G(()=>{B();V();Y();uf();K0();RI=class RI extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").f(void 0,void 0).ser(wJ).de(GJ).build(){}});var WI;var RG=G(()=>{B();V();Y();uf();p0();K0();WI=class WI extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").f(void 0,yT).ser(hJ).de(CJ).build(){}});var zI;var WG=G(()=>{B();V();Y();uf();p0();K0();zI=class zI extends A.classBuilder().ep({...er}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").f(void 0,qT).ser(EJ).de(LJ).build(){}});var qx,zG;var RJ=G(()=>{Y();TI();GG();CI();CG();LG();AG();RG();WG();GE();qx={AssumeRoleCommand:ih,AssumeRoleWithSAMLCommand:GI,AssumeRoleWithWebIdentityCommand:dh,DecodeAuthorizationMessageCommand:LI,GetAccessKeyInfoCommand:AI,GetCallerIdentityCommand:RI,GetFederationTokenCommand:WI,GetSessionTokenCommand:zI};zG=class zG extends S0{};yf(qx,zG)});var WJ=G(()=>{TI();GG();CI();CG();LG();AG();RG();WG()});var zJ=G(()=>{p0()});var SJ="us-east-1",PJ=(r)=>{if(typeof r?.Arn==="string"){const f=r.Arn.split(":");if(f.length>4&&f[4]!=="")return f[4]}return},XJ=async(r,f,s)=>{const w=typeof r==="function"?await r():r,h=typeof f==="function"?await f():f;return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${w} (provider)`,`${h} (parent client)`,`${SJ} (STS default)`),w??h??SJ},YJ=(r,f)=>{let s,w;return async(h,E)=>{if(w=h,!s){const{logger:U=r?.parentClientConfig?.logger,region:C,requestHandler:L=r?.parentClientConfig?.requestHandler,credentialProviderLogger:z}=r,S=await XJ(C,r?.parentClientConfig?.region,z),K=!ZJ(L);s=new f({credentialDefaultProvider:()=>async()=>w,region:S,requestHandler:K?L:void 0,logger:U})}const{Credentials:$,AssumedRoleUser:I}=await s.send(new ih(E));if(!$||!$.AccessKeyId||!$.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${E.RoleArn}`);const F=PJ(I);return{accessKeyId:$.AccessKeyId,secretAccessKey:$.SecretAccessKey,sessionToken:$.SessionToken,expiration:$.Expiration,...$.CredentialScope&&{credentialScope:$.CredentialScope},...F&&{accountId:F}}}},KJ=(r,f)=>{let s;return async(w)=>{if(!s){const{logger:I=r?.parentClientConfig?.logger,region:F,requestHandler:U=r?.parentClientConfig?.requestHandler,credentialProviderLogger:C}=r,L=await XJ(F,r?.parentClientConfig?.region,C),z=!ZJ(U);s=new f({region:L,requestHandler:z?U:void 0,logger:I})}const{Credentials:h,AssumedRoleUser:E}=await s.send(new dh(w));if(!h||!h.AccessKeyId||!h.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${w.RoleArn}`);const $=PJ(E);return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.SessionToken,expiration:h.Expiration,...h.CredentialScope&&{credentialScope:h.CredentialScope},...$&&{accountId:$}}}},ZJ=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var MJ=G(()=>{TI();CI()});var JJ=(r,f)=>{if(!f)return r;else return class s extends r{constructor(w){super(w);for(let h of f)this.middlewareStack.use(h)}}},QJ=(r={},f)=>YJ(r,JJ(S0,f)),BJ=(r={},f)=>KJ(r,JJ(S0,f)),mx=(r)=>(f)=>r({roleAssumer:QJ(f),roleAssumerWithWebIdentity:BJ(f),...f});var lJ=G(()=>{MJ();GE()});var SG={};Af(SG,{getDefaultRoleAssumerWithWebIdentity:()=>BJ,getDefaultRoleAssumer:()=>QJ,decorateDefaultCredentialProvider:()=>mx,__Client:()=>As,STSServiceException:()=>rs,STSClient:()=>S0,STS:()=>zG,RegionDisabledException:()=>RE,PackedPolicyTooLargeException:()=>AE,MalformedPolicyDocumentException:()=>LE,InvalidIdentityTokenException:()=>zE,InvalidAuthorizationMessageException:()=>PE,IDPRejectedClaimException:()=>WE,IDPCommunicationErrorException:()=>SE,GetSessionTokenResponseFilterSensitiveLog:()=>qT,GetSessionTokenCommand:()=>zI,GetFederationTokenResponseFilterSensitiveLog:()=>yT,GetFederationTokenCommand:()=>WI,GetCallerIdentityCommand:()=>RI,GetAccessKeyInfoCommand:()=>AI,ExpiredTokenException:()=>CE,DecodeAuthorizationMessageCommand:()=>LI,CredentialsFilterSensitiveLog:()=>Dh,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>NT,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>kT,AssumeRoleWithWebIdentityCommand:()=>dh,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>DT,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>HT,AssumeRoleWithSAMLCommand:()=>GI,AssumeRoleResponseFilterSensitiveLog:()=>VT,AssumeRoleCommand:()=>ih,$Command:()=>A});var PG=G(()=>{GE();RJ();WJ();zJ();lJ();FI()});var VJ=(r,{profile:f="default",logger:s}={})=>{return Boolean(r)&&typeof r==="object"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1&&["undefined","string"].indexOf(typeof r.external_id)>-1&&["undefined","string"].indexOf(typeof r.mfa_serial)>-1&&(vx(r,{profile:f,logger:s})||jx(r,{profile:f,logger:s}))},vx=(r,{profile:f,logger:s})=>{const w=typeof r.source_profile==="string"&&typeof r.credential_source==="undefined";if(w)s?.debug?.(` ${f} isAssumeRoleWithSourceProfile source_profile=${r.source_profile}`);return w},jx=(r,{profile:f,logger:s})=>{const w=typeof r.credential_source==="string"&&typeof r.source_profile==="undefined";if(w)s?.debug?.(` ${f} isCredentialSourceProfile credential_source=${r.credential_source}`);return w},HJ=async(r,f,s,w={})=>{s.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");const h=f[r];if(!s.roleAssumer){const{getDefaultRoleAssumer:C}=await Promise.resolve().then(() => (PG(),SG));s.roleAssumer=C({...s.clientConfig,credentialProviderLogger:s.logger,parentClientConfig:s?.parentClientConfig},s.clientPlugins)}const{source_profile:E}=h;if(E&&E in w)throw new g(`Detected a cycle attempting to resolve credentials for profile ${ls(s)}. Profiles visited: `+Object.keys(w).join(", "),{logger:s.logger});s.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${E?`source_profile=[${E}]`:`profile=[${r}]`}`);const $=E?SI(E,{...f,[E]:{...f[E],role_arn:h.role_arn??f[E].role_arn}},s,{...w,[E]:!0}):(await CM(h.credential_source,r,s.logger)(s))(),I={RoleArn:h.role_arn,RoleSessionName:h.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:h.external_id,DurationSeconds:parseInt(h.duration_seconds||"3600",10)},{mfa_serial:F}=h;if(F){if(!s.mfaCodeProvider)throw new g(`Profile ${r} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:s.logger,tryNextLink:!1});I.SerialNumber=F,I.TokenCode=await s.mfaCodeProvider(F)}const U=await $;return s.roleAssumer(U,I)};var DJ=G(()=>{Lr();rf();LM();XG()});var kJ=(r,f,s)=>{if(f.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(f.AccessKeyId===void 0||f.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(f.Expiration){const h=new Date;if(new Date(f.Expiration)<h)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let w=f.AccountId;if(!w&&s?.[r]?.aws_account_id)w=s[r].aws_account_id;return{accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,...f.SessionToken&&{sessionToken:f.SessionToken},...f.Expiration&&{expiration:new Date(f.Expiration)},...f.CredentialScope&&{credentialScope:f.CredentialScope},...w&&{accountId:w}}};import{exec as ix}from"child_process";import{promisify as dx}from"util";var NJ=async(r,f,s)=>{const w=f[r];if(f[r]){const h=w.credential_process;if(h!==void 0){const E=dx(ix);try{const{stdout:$}=await E(h);let I;try{I=JSON.parse($.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return kJ(r,I,f)}catch($){throw new g($.message,{logger:s})}}else throw new g(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new g(`Profile ${r} could not be found in shared credentials file.`,{logger:s})};var yJ=G(()=>{Lr()});var Ox=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const f=await v0(r);return NJ(ls(r),f,r.logger)};var qJ=G(()=>{rf();yJ()});var YG={};Af(YG,{fromProcess:()=>Ox});var KG=G(()=>{qJ()});var mJ=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",vJ=async(r,f)=>Promise.resolve().then(() => (KG(),YG)).then(({fromProcess:s})=>s({...r,profile:f})());var jJ=async(r,f={})=>{const{fromSSO:s}=await Promise.resolve().then(() => (QT(),JT));return s({profile:r,logger:f.logger})()},iJ=(r)=>r&&(typeof r.sso_start_url==="string"||typeof r.sso_account_id==="string"||typeof r.sso_session==="string"||typeof r.sso_region==="string"||typeof r.sso_role_name==="string");var ZG=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.aws_access_key_id==="string"&&typeof r.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof r.aws_session_token)>-1&&["undefined","string"].indexOf(typeof r.aws_account_id)>-1,MG=(r,f)=>{return f?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"),Promise.resolve({accessKeyId:r.aws_access_key_id,secretAccessKey:r.aws_secret_access_key,sessionToken:r.aws_session_token,...r.aws_credential_scope&&{credentialScope:r.aws_credential_scope},...r.aws_account_id&&{accountId:r.aws_account_id}})};var JG=(r)=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:f,roleSessionName:s,webIdentityToken:w,providerId:h,policyArns:E,policy:$,durationSeconds:I}=r;let{roleAssumerWithWebIdentity:F}=r;if(!F){const{getDefaultRoleAssumerWithWebIdentity:U}=await Promise.resolve().then(() => (PG(),SG));F=U({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:r.parentClientConfig},r.clientPlugins)}return F({RoleArn:f,RoleSessionName:s??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:w,ProviderId:h,PolicyArns:E,Policy:$,DurationSeconds:I})};import{readFileSync as bx}from"fs";var cx="AWS_WEB_IDENTITY_TOKEN_FILE",_x="AWS_ROLE_ARN",gx="AWS_ROLE_SESSION_NAME",xx=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const f=r?.webIdentityTokenFile??process.env[cx],s=r?.roleArn??process.env[_x],w=r?.roleSessionName??process.env[gx];if(!f||!s)throw new g("Web identity configuration not specified",{logger:r.logger});return JG({...r,webIdentityToken:bx(f,{encoding:"ascii"}),roleArn:s,roleSessionName:w})()};var dJ=G(()=>{Lr()});var QG={};Af(QG,{fromWebToken:()=>JG,fromTokenFile:()=>xx});var BG=G(()=>{dJ()});var OJ=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.web_identity_token_file==="string"&&typeof r.role_arn==="string"&&["undefined","string"].indexOf(typeof r.role_session_name)>-1,bJ=async(r,f)=>Promise.resolve().then(() => (BG(),QG)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:r.web_identity_token_file,roleArn:r.role_arn,roleSessionName:r.role_session_name,roleAssumerWithWebIdentity:f.roleAssumerWithWebIdentity,logger:f.logger,parentClientConfig:f.parentClientConfig})());var SI=async(r,f,s,w={})=>{const h=f[r];if(Object.keys(w).length>0&&ZG(h))return MG(h,s);if(VJ(h,{profile:r,logger:s.logger}))return HJ(r,f,s,w);if(ZG(h))return MG(h,s);if(OJ(h))return bJ(h,s);if(mJ(h))return vJ(s,r);if(iJ(h))return await jJ(r,s);throw new g(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:s.logger})};var XG=G(()=>{Lr();DJ()});var ex=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const f=await v0(r);return SI(ls(r),f,r)};var cJ=G(()=>{rf();XG()});var _J={};Af(_J,{fromIni:()=>ex});var gJ=G(()=>{cJ()});var xJ=!1,A0=(r={})=>Sw(L0(async()=>{if(r.profile??process.env[pS]){if(process.env[D3]&&process.env[k3]){if(!xJ)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
26
26
  Multiple credential sources detected:
27
27
  Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
28
28
  This SDK will proceed with the AWS_PROFILE value.
@@ -30,7 +30,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
30
30
  However, a future version may change this behavior to prefer the ENV static credentials.
31
31
  Please ensure that your environment only sets either the AWS_PROFILE or the
32
32
  AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
33
- `),LQ=!0}throw new _("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:!0})}return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),O5(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:$}=r;if(!f&&!s&&!w&&!h&&!$)throw new _("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger});const{fromSSO:E}=await Promise.resolve().then(() => (HT(),BT));return E(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:f}=await Promise.resolve().then(() => (CQ(),GQ));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:f}=await Promise.resolve().then(() => (JG(),lG));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:f}=await Promise.resolve().then(() => (VG(),HG));return f(r)()},async()=>{return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await oZ(r))()},async()=>{throw new _("Could not load credentials from any providers",{tryNextLink:!1,logger:r.logger})}),Xe,Pe),Pe=(r)=>r?.expiration!==void 0,Xe=(r)=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<300000;var AQ=G(()=>{c5();Lr();hf();aZ()});var b1=G(()=>{AQ()});aw();pw();uw();rh();Ms();var bh=u(Or(),1);Th();M();Ef();Y();var WZ=u(Br(),1);rf();function mg(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var zZ=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},SZ=(r)=>{const f=[];switch(r.operation){default:f.push(mg(r))}return f},PZ=(r)=>{return{...WZ.resolveAwsSdkSigV4Config(r)}};var XZ=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53"}},l={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var YZ={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53","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 route-53"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-sdk-route53":"3.609.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@aws-sdk/xml-builder":"3.609.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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-route-53",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53"}};var DQ=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();var VQ=u(Br(),1);Y();b0();W0();jf();Ww();us();var RQ={["required"]:!1,type:"String"},WQ={["required"]:!0,default:!1,type:"Boolean"},zQ={["ref"]:"Endpoint"},KI={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},MQ={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},br={},SQ={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},ch={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},mw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},M0={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},PQ={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},XQ={["fn"]:"stringEquals",["argv"]:[ch,"aws-us-gov"]},YQ={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},KQ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},ZQ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},lQ=[KI],JQ=[MQ],QQ=[{["ref"]:"Region"}],Ye={version:"1.0",parameters:{Region:RQ,UseDualStack:WQ,UseFIPS:WQ,Endpoint:RQ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[zQ]}],rules:[{conditions:lQ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:JQ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:zQ,properties:br,headers:br},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:QQ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:QQ,assign:"PartitionResult"}],rules:[{conditions:[SQ,mw,M0],endpoint:{url:"https://route53.amazonaws.com",properties:PQ,headers:br},type:"endpoint"},{conditions:[SQ,KI,M0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:PQ,headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-cn"]},mw,M0],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:br},type:"endpoint"},{conditions:[XQ,mw,M0],endpoint:YQ,type:"endpoint"},{conditions:[XQ,KI,M0],endpoint:YQ,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso"]},mw,M0],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso-b"]},mw,M0],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso-e"]},mw,M0],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:br},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[ch,"aws-iso-f"]},mw,M0],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:br},type:"endpoint"},{conditions:[KI,MQ],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,KQ]},ZQ],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:lQ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[KQ,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:JQ,rules:[{conditions:[ZQ],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53.{Region}.{PartitionResult#dnsSuffix}",properties:br,headers:br},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},BQ=Ye;var HQ=(r,f={})=>{return ps(BQ,{endpointParams:r,logger:f.logger})};ur.aws=ts;var kQ=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??HQ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??SZ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new VQ.AwsSdkSigV4Signer}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"Route 53",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};Y();Qh();Y();var iQ=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=kQ(r);return DQ.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:YZ.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};Mh();ir();Y();var yQ=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},mQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var ZI=(r)=>r,NQ=(r,f)=>{const s={...ZI(pf(r)),...ZI(_f(r)),...ZI(Pf(r)),...ZI(yQ(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...mQ(s)}};class kG extends zs{constructor(...[r]){const f=iQ(r||{}),s=XZ(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=PZ(I),U=NQ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(bh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:zZ,identityProviderConfigProvider:async(C)=>new bh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(bh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();var lI=/^\/(hostedzone|change|delegationset)\//;function Ke(){return(r)=>async(f)=>{const{ChangeBatch:s}=f.input,w=[];for(let h of s.Changes){const{AliasTarget:$}=h.ResourceRecordSet;if($)w.push({...h,ResourceRecordSet:{...h.ResourceRecordSet,AliasTarget:{...$,HostedZoneId:$.HostedZoneId.replace(lI,"")}}});else w.push(h)}return r({...f,input:{...f.input,ChangeBatch:{...s,Changes:w}}})}}var Ze={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},qQ=(r)=>({applyToStack:(f)=>{f.add(Ke(),Ze)}});function Je(){return(r)=>async(f)=>{const s={...f.input};for(let w of le){const h=s[w];if(h)s[w]=h.replace(lI,"")}return r({...f,input:s})}}var le=["DelegationSetId","HostedZoneId","Id"],Qe={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},N=(r)=>({applyToStack:(f)=>{f.add(Je(),Qe)}});M();H();Y();var g=u(Br(),1);function vQ(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function jQ(r){return r.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class DG{constructor(r){this.value=r}toString(){return jQ(""+this.value)}}class V{static of(r,f,s){const w=new V(r);if(f!==void 0)w.addChildNode(new DG(f));if(s!==void 0)w.withName(s);return w}constructor(r,f=[]){this.name=r,this.children=f,this.attributes={}}withName(r){return this.name=r,this}addAttribute(r,f){return this.attributes[r]=f,this}addChildNode(r){return this.children.push(r),this}removeAttribute(r){return delete this.attributes[r],this}n(r){return this.name=r,this}c(r){return this.children.push(r),this}a(r,f){if(f!=null)this.attributes[r]=f;return this}cc(r,f,s=f){if(r[f]!=null){const w=V.of(f,r[f]).withName(s);this.c(w)}}l(r,f,s,w){if(r[f]!=null)w().map(($)=>{$.withName(s),this.c($)})}lc(r,f,s,w){if(r[f]!=null){const h=w(),$=new V(s);h.map((E)=>{$.c(E)}),this.c($)}}toString(){const r=Boolean(this.children.length);let f=`<${this.name}`;const s=this.attributes;for(let w of Object.keys(s)){const h=s[w];if(h!=null)f+=` ${w}="${vQ(""+h)}"`}return f+=!r?"/>":`>${this.children.map((w)=>w.toString()).join("")}</${this.name}>`}}var O=u(Or(),1);Y();Y();class j extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,j.prototype)}}class JI extends j{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,JI.prototype)}}class QI extends j{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,QI.prototype)}}class MI extends j{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,MI.prototype)}}class BI extends j{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,BI.prototype)}}class HI extends j{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,HI.prototype)}}class VI extends j{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,VI.prototype)}}class kI extends j{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,kI.prototype)}}class DI extends j{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,DI.prototype)}}class iI extends j{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class yI extends j{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,yI.prototype)}}class mI extends j{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,mI.prototype)}}class NI extends j{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,NI.prototype)}}class qI extends j{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,qI.prototype)}}class vI extends j{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,vI.prototype),this.Message=r.Message}}class jI extends j{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,jI.prototype),this.Message=r.Message}}class dI extends j{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype),this.Message=r.Message}}class OI extends j{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,OI.prototype),this.messages=r.messages}}class cI extends j{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,cI.prototype)}}class bI extends j{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,bI.prototype)}}class gI extends j{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,gI.prototype),this.Message=r.Message}}class _I extends j{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,_I.prototype)}}class xI extends j{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,xI.prototype)}}class eI extends j{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,eI.prototype)}}class nI extends j{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,nI.prototype)}}class oI extends j{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,oI.prototype)}}class aI extends j{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,aI.prototype)}}class pI extends j{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,pI.prototype)}}class uI extends j{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,uI.prototype)}}class tI extends j{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,tI.prototype)}}class r2 extends j{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,r2.prototype)}}class s2 extends j{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}}class f2 extends j{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}class w2 extends j{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,w2.prototype)}}class h2 extends j{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,h2.prototype)}}class $2 extends j{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,$2.prototype)}}class E2 extends j{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,E2.prototype)}}class I2 extends j{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,I2.prototype)}}class F2 extends j{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,F2.prototype)}}class U2 extends j{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,U2.prototype)}}class T2 extends j{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,T2.prototype)}}class G2 extends j{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,G2.prototype)}}class C2 extends j{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,C2.prototype)}}class L2 extends j{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,L2.prototype)}}class A2 extends j{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,A2.prototype)}}class R2 extends j{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,R2.prototype)}}class W2 extends j{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,W2.prototype)}}class z2 extends j{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,z2.prototype)}}class S2 extends j{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,S2.prototype)}}class P2 extends j{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,P2.prototype),this.Message=r.Message}}class X2 extends j{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,X2.prototype)}}class Y2 extends j{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,Y2.prototype)}}class K2 extends j{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends j{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,Z2.prototype)}}class l2 extends j{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,l2.prototype)}}class J2 extends j{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,J2.prototype)}}class Q2 extends j{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class M2 extends j{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class B2 extends j{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,B2.prototype)}}class H2 extends j{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class V2 extends j{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class k2 extends j{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,k2.prototype)}}class D2 extends j{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class i2 extends j{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,i2.prototype)}}class y2 extends j{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class m2 extends j{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}class N2 extends j{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,N2.prototype),this.Message=r.Message}}class q2 extends j{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class v2 extends j{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,v2.prototype)}}class j2 extends j{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,j2.prototype)}}var eQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},nQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(Ta);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(Ua,r[Ur]).n(Ur));if(r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},oQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(Aa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"Changes","Changes",()=>on(r[mH],f)),r[d2]!=null)$.c(V.of(d2,String(r[d2])).n(d2));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},aQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(Qa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[c2]!=null)$.c(xn(r[c2],f).n(c2));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},pQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;h=Vr;const $=new V(Ma);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"AddTags","AddTags",()=>Uo(r[Fa],f)),$.lc(r,"RemoveTagKeys","RemoveTagKeys",()=>Fo(r[wp],f)),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},uQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection");let h;h=Vr;const $=new V(Ra);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(Ka,r[Pr]).n(Pr));if(r[n]!=null)$.c(V.of(Za,r[n]).n(n));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},tQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck");let h;h=Vr;const $=new V(Wa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(Oa,r[Pr]).n(Pr));if(r[ew]!=null)$.c(so(r[ew],f).n(ew));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},rM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone");let h;h=Vr;const $=new V(za);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(O6,r[Pr]).n(Pr));if(r[g2]!=null)$.c(V.of(E0,r[g2]).n(g2));if(r[_2]!=null)$.c(fo(r[_2],f).n(_2));if(r[n]!=null)$.c(V.of(Rf,r[n]).n(n));if(r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},sM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/keysigningkey");let h;h=Vr;const $=new V(Sa);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(O6,r[Pr]).n(Pr));if(r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));if(r[tG]!=null)$.c(V.of(Ip,r[tG]).n(tG));if(r[n]!=null)$.c(V.of(Ep,r[n]).n(n));if(r[$s]!=null)$.c(V.of(Fp,r[$s]).n($s));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},fM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/queryloggingconfig");let h;h=Vr;const $=new V(la);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.cc(r,b2),r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},wM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/delegationset");let h;h=Vr;const $=new V(Ja);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)$.c(V.of(O6,r[Pr]).n(Pr));if(r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},hM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy");let h;h=Vr;const $=new V(Ha);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(b6,r[Ur]).n(Ur));if(r[H0]!=null)$.c(V.of(vH,r[H0]).n(H0));if(r[n]!=null)$.c(V.of(Lp,r[n]).n(n));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},$M=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance");let h;h=Vr;const $=new V(Ba);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));if(r[n]!=null)$.c(V.of(Rf,r[n]).n(n));if(r[vr]!=null)$.c(V.of(vr,String(r[vr])).n(vr));if($.cc(r,f1),r[bs]!=null)$.c(V.of(bs,String(r[bs])).n(bs));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},EM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(Va);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(b6,r[Ur]).n(Ur));if(r[H0]!=null)$.c(V.of(vH,r[H0]).n(H0));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},IM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(ka);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},FM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},UM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},TM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},GM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},CM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},LM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},AM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},RM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},WM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},zM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(ia);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},SM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},PM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Vr;const $=new V(ma);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(ya,r[Ur]).n(Ur));if(r[Rr]!=null)$.c(p$(r[Rr],f).n(Rr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},XM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},YM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/accountlimit/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1);let h;return s.m("GET").h(w).b(h),s.build()},KM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/change/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},ZM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/checkeripranges");let h;return s.m("GET").h(w).b(h),s.build()},lM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},JM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocation");const h=P({[Yp]:[,r[h0]],[Kp]:[,r[$0]],[ip]:[,r[I0]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},QM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},MM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheckcount");let h;return s.m("GET").h(w).b(h),s.build()},BM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},HM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},VM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},kM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonecount");let h;return s.m("GET").h(w).b(h),s.build()},DM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},iM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},yM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},mM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("DelegationSetId",()=>r.DelegationSetId,"{DelegationSetId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},NM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("GET").h(w).b(h),s.build()},qM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},vM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstancecount");let h;return s.m("GET").h(w).b(h),s.build()},jM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[F0]:[,r[pr]],[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},dM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection");const h=P({[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},OM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},cM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocations");const h=P({[yp]:[,r[hp]],[mp]:[,r[$p]],[Np]:[,r[Cp]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},bM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck");const h=P({[g6]:[,r[gs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},gM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone");const h=P({[g6]:[,r[gs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[Zp]:[,r[g2]],[Mp]:[,r[ga]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},_M=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyname");const h=P({[lp]:[,r[Rf]],[sE]:[,r[sr]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},xM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyvpc");const h=P({[dp]:[,y(r[o$],"VPCId")],[cp]:[,y(r[a$],"VPCRegion")],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[h1]:[,r[Xr]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},eM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig");const h=P({[sE]:[,r[sr]],[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},nM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[Hp]:[,r[Tp]],[qp]:[,r[Gp]],[Bp]:[,r[Up]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},oM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset");const h=P({[g6]:[,r[gs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},aM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},pM=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1);let h;h=Vr;const $=new V(xa);return $.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),$.lc(r,"ResourceIds","ResourceIds",()=>To(r[aa],f)),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},uM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies");const h=P({[vp]:[,r[t2]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},tM=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances");const h=P({[sE]:[,r[Tw]],[_6]:[,r[_s]],[x6]:[,r[xs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},rB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/hostedzone");const h=P({[jH]:[,y(r[sr],"HostedZoneId")],[_6]:[,r[_s]],[x6]:[,r[xs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},sB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");const h=P({[jH]:[,y(r[f1],"TrafficPolicyId")],[Op]:[y(r.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>r[bs].toString()],[sE]:[,r[Tw]],[_6]:[,r[_s]],[x6]:[,r[xs]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},fB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies/{Id}/versions"),s.p("Id",()=>r.Id,"{Id}",!1);const h=P({[jp]:[,r[rF]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},wB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[h1]:[,r[Xr]],[fE]:[()=>r.MaxResults!==void 0,()=>r[rE].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},hB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/testdnsanswer");const h=P({[sE]:[,y(r[sr],"HostedZoneId")],[Vp]:[,y(r[a2],"RecordName")],[kp]:[,y(r[p2],"RecordType")],[Dp]:[,r[oa]],[Jp]:[,r[Na]],[Qp]:[,r[qa]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},$B=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;h=Vr;const $=new V(Wp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[w0]!=null)$.c(JH(r[w0],f).n(w0));if($.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>QH(r[Nw],f)),r[Uf]!=null)$.c(V.of(Uf,String(r[Uf])).n(Uf));if(r[Tf]!=null)$.c(V.of(Tf,String(r[Tf])).n(Tf));if(r[Gf]!=null)$.c(V.of(Gf,String(r[Gf])).n(Gf));if($.cc(r,c$),r[jw]!=null)$.c(V.of(jw,String(r[jw])).n(jw));if(r[Cf]!=null)$.c(V.of(Cf,String(r[Cf])).n(Cf));if($.cc(r,Gw),$.cc(r,_$),r[Lf]!=null)$.c(V.of(Lf,String(r[Lf])).n(Lf));if(r[Af]!=null)$.c(V.of(Af,String(r[Af])).n(Af));return $.lc(r,"Regions","Regions",()=>MH(r[qw],f)),$.lc(r,"ResetElements","ResetElements",()=>wo(r[na],f)),$.cc(r,x$),$.cc(r,n$),h+=$.toString(),s.m("POST").h(w).b(h),s.build()},EB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(zp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(c6,r[Ur]).n(Ur));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},IB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;h=Vr;const $=new V(Sp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)$.c(V.of(b6,r[Ur]).n(Ur));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},FB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Vr;const $=new V(Pp);if($.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[vr]!=null)$.c(V.of(vr,String(r[vr])).n(vr));if($.cc(r,f1),r[bs]!=null)$.c(V.of(bs,String(r[bs])).n(bs));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},UB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},TB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},GB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Gr]!=null)s[Gr]=T(w[Gr]);return s},CB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},LB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},AB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[dG]!=null)s[dG]=So(w[dG],f);return s},RB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Wf]!=null)s[Wf]=hF(w[Wf],f);return s},WB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);if(w[Ys]!=null)s[Ys]=$F(w[Ys],f);if(w[Rr]!=null)s[Rr]=d6(w[Rr],f);return s},zB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);if(w[r6]!=null)s[r6]=kH(w[r6],f);return s},SB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Cw]!=null)s[Cw]=v6(w[Cw],f);return s},PB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);return s},XB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},YB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=EF(w[Es],f);return s},KB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r),[i0]:[,r.headers[F0]]}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},ZB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[sr]!=null)s[sr]=T(w[sr]);if(w[Rr]!=null)s[Rr]=d6(w[Rr],f);return s},lB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},JB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},QB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},MB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},BB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},HB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},VB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},kB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},DB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},iB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)});return await xr(r.body,f),s},yB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},mB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},NB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},qB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[B0]!=null)s[B0]=er(w[B0]);if(w[V0]!=null)s[V0]=Go(w[V0],f);return s},vB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=es(w[wr],f);return s},jB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CheckerIpRanges==="")s[J$]=[];else if(w[J$]!=null&&w[J$][zf]!=null)s[J$]=Ao(Cr(w[J$][zf]),f);return s},dB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.KeySigningKeys==="")s[D$]=[];else if(w[D$]!=null&&w[D$][zf]!=null)s[D$]=bo(Cr(w[D$][zf]),f);if(w[$s]!=null)s[$s]=Bo(w[$s],f);return s},OB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[b$]!=null)s[b$]=BH(w[b$],f);return s},cB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Wf]!=null)s[Wf]=hF(w[Wf],f);return s},bB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[aG]!=null)s[aG]=er(w[aG]);return s},gB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[r0]=[];else if(w[r0]!=null&&w[r0][sF]!=null)s[r0]=HH(Cr(w[r0][sF]),f);return s},_B=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[r0]=[];else if(w[r0]!=null&&w[r0][sF]!=null)s[r0]=HH(Cr(w[r0][sF]),f);return s},xB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);if(w[Ys]!=null)s[Ys]=$F(w[Ys],f);if(w.VPCs==="")s[f0]=[];else if(w[f0]!=null&&w[f0][Rr]!=null)s[f0]=yH(Cr(w[f0][Rr]),f);return s},eB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[pG]!=null)s[pG]=er(w[pG]);return s},nB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[B0]!=null)s[B0]=er(w[B0]);if(w[V0]!=null)s[V0]=vo(w[V0],f);return s},oB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Cw]!=null)s[Cw]=v6(w[Cw],f);return s},aB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ls]!=null)s[Ls]=u$(w[Ls],f);return s},pB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[B0]!=null)s[B0]=er(w[B0]);if(w[V0]!=null)s[V0]=to(w[V0],f);return s},uB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},tB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=EF(w[Es],f);return s},rH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[y6]!=null)s[y6]=$r(w[y6]);return s},sH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CidrBlocks==="")s[Z$]=[];else if(w[Z$]!=null&&w[Z$][zf]!=null)s[Z$]=Wo(Cr(w[Z$][zf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},fH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CidrCollections==="")s[l$]=[];else if(w[l$]!=null&&w[l$][zf]!=null)s[l$]=Yo(Cr(w[l$][zf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},wH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.CidrLocations==="")s[Q$]=[];else if(w[Q$]!=null&&w[Q$][zf]!=null)s[Q$]=go(Cr(w[Q$][zf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},hH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.GeoLocationDetailsList==="")s[H$]=[];else if(w[H$]!=null&&w[H$][b$]!=null)s[H$]=ko(Cr(w[H$][b$]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[$6]!=null)s[$6]=T(w[$6]);if(w[E6]!=null)s[E6]=T(w[E6]);if(w[C6]!=null)s[C6]=T(w[C6]);return s},$H=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HealthChecks==="")s[V$]=[];else if(w[V$]!=null&&w[V$][Wf]!=null)s[V$]=No(Cr(w[V$][Wf]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[gs]!=null)s[gs]=T(w[gs]);if(w[a]!=null)s[a]=$r(w[a]);if(w[k0]!=null)s[k0]=T(w[k0]);return s},EH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HostedZones==="")s[s0]=[];else if(w[s0]!=null&&w[s0][Ys]!=null)s[s0]=VH(Cr(w[s0][Ys]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[gs]!=null)s[gs]=T(w[gs]);if(w[a]!=null)s[a]=$r(w[a]);if(w[k0]!=null)s[k0]=T(w[k0]);return s},IH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Rf]!=null)s[Rf]=T(w[Rf]);if(w[sr]!=null)s[sr]=T(w[sr]);if(w.HostedZones==="")s[s0]=[];else if(w[s0]!=null&&w[s0][Ys]!=null)s[s0]=VH(Cr(w[s0][Ys]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[I6]!=null)s[I6]=T(w[I6]);if(w[F6]!=null)s[F6]=T(w[F6]);return s},FH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.HostedZoneSummaries==="")s[k$]=[];else if(w[k$]!=null&&w[k$][cQ]!=null)s[k$]=Oo(Cr(w[k$][cQ]),f);if(w[a]!=null)s[a]=$r(w[a]);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},UH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Xr]!=null)s[Xr]=T(w[Xr]);if(w.QueryLoggingConfigs==="")s[y$]=[];else if(w[y$]!=null&&w[y$][Cw]!=null)s[y$]=xo(Cr(w[y$][Cw]),f);return s},TH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[U6]!=null)s[U6]=T(w[U6]);if(w[T6]!=null)s[T6]=T(w[T6]);if(w[G6]!=null)s[G6]=T(w[G6]);if(w.ResourceRecordSets==="")s[N$]=[];else if(w[N$]!=null&&w[N$][th]!=null)s[N$]=po(Cr(w[N$][th]),f);return s},GH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.DelegationSets==="")s[M$]=[];else if(w[M$]!=null&&w[M$][Ls]!=null)s[M$]=Jo(Cr(w[M$][Ls]),f);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[gs]!=null)s[gs]=T(w[gs]);if(w[a]!=null)s[a]=$r(w[a]);if(w[k0]!=null)s[k0]=T(w[k0]);return s},CH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[e$]!=null)s[e$]=iH(w[e$],f);return s},LH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w.ResourceTagSets==="")s[q$]=[];else if(w[q$]!=null&&w[q$][e$]!=null)s[q$]=uo(Cr(w[q$][e$]),f);return s},AH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[t2]!=null)s[t2]=T(w[t2]);if(w.TrafficPolicySummaries==="")s[v$]=[];else if(w[v$]!=null&&w[v$][xQ]!=null)s[v$]=ha(Cr(w[v$][xQ]),f);return s},RH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tw]!=null)s[Tw]=T(w[Tw]);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[_s]!=null)s[_s]=T(w[_s]);if(w[xs]!=null)s[xs]=T(w[xs]);if(w.TrafficPolicyInstances==="")s[hs]=[];else if(w[hs]!=null&&w[hs][Es]!=null)s[hs]=j6(Cr(w[hs][Es]),f);return s},WH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[_s]!=null)s[_s]=T(w[_s]);if(w[xs]!=null)s[xs]=T(w[xs]);if(w.TrafficPolicyInstances==="")s[hs]=[];else if(w[hs]!=null&&w[hs][Es]!=null)s[hs]=j6(Cr(w[hs][Es]),f);return s},zH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tw]!=null)s[Tw]=T(w[Tw]);if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w[_s]!=null)s[_s]=T(w[_s]);if(w[xs]!=null)s[xs]=T(w[xs]);if(w.TrafficPolicyInstances==="")s[hs]=[];else if(w[hs]!=null&&w[hs][Es]!=null)s[hs]=j6(Cr(w[hs][Es]),f);return s},SH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=mr(w[Tr]);if(w[a]!=null)s[a]=$r(w[a]);if(w.TrafficPolicies==="")s[j$]=[];else if(w[j$]!=null&&w[j$][As]!=null)s[j$]=wa(Cr(w[j$][As]),f);if(w[rF]!=null)s[rF]=T(w[rF]);return s},PH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[sr]!=null)s[sr]=T(w[sr]);if(w[Xr]!=null)s[Xr]=T(w[Xr]);if(w.VPCs==="")s[f0]=[];else if(w[f0]!=null&&w[f0][Rr]!=null)s[f0]=yH(Cr(w[f0][Rr]),f);return s},XH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[L6]!=null)s[L6]=T(w[L6]);if(w[X6]!=null)s[X6]=T(w[X6]);if(w.RecordData==="")s[m$]=[];else if(w[m$]!=null&&w[m$][gQ]!=null)s[m$]=eo(Cr(w[m$][gQ]),f);if(w[a2]!=null)s[a2]=T(w[a2]);if(w[p2]!=null)s[p2]=T(w[p2]);if(w[Y6]!=null)s[Y6]=T(w[Y6]);return s},YH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Wf]!=null)s[Wf]=hF(w[Wf],f);return s},KH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Ys]!=null)s[Ys]=$F(w[Ys],f);return s},ZH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[As]!=null)s[As]=t$(w[As],f);return s},lH=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return c(r,f);const s=P({$metadata:J(r)}),w=y(d(await g.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=EF(w[Es],f);return s},c=async(r,f)=>{const s={...r,body:await g.parseXmlErrorBody(r.body,f)},w=g.loadRestXmlErrorCode(r,s.body);switch(w){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await De(s,f);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await rn(s,f);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await wn(s,f);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await fn(s,f);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await $n(s,f);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await Kn(s,f);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await ie(s,f);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await In(s,f);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await Ln(s,f);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await Yn(s,f);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await Qn(s,f);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await Mn(s,f);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await Bn(s,f);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await Be(s,f);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await ke(s,f);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await Rn(s,f);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await ue(s,f);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await Xn(s,f);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await Vn(s,f);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await He(s,f);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await Oe(s,f);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await kn(s,f);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await ve(s,f);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await je(s,f);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await ge(s,f);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await te(s,f);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await Sn(s,f);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await Dn(s,f);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await pe(s,f);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await sn(s,f);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await Fn(s,f);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await yn(s,f);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await ae(s,f);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await zn(s,f);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await Hn(s,f);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await me(s,f);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await Ne(s,f);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await xe(s,f);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await En(s,f);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await mn(s,f);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await jn(s,f);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await ln(s,f);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await Nn(s,f);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await dn(s,f);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await qn(s,f);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await vn(s,f);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await Un(s,f);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await Tn(s,f);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await Ve(s,f);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await ce(s,f);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await _e(s,f);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await Zn(s,f);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await qe(s,f);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await On(s,f);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await Jn(s,f);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await cn(s,f);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await de(s,f);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Cn(s,f);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await bn(s,f);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await ne(s,f);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await Gn(s,f);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await An(s,f);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await Pn(s,f);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await oe(s,f);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await ee(s,f);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await Wn(s,f);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await hn(s,f);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await be(s,f);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await ye(s,f);default:const h=s.body;return Me({output:r,parsedBody:h.Error,errorCode:w})}},Me=cf(j),Be=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new vI({$metadata:J(r),...s});return k(h,r.body.Error)},He=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new gI({$metadata:J(r),...s});return k(h,r.body.Error)},Ve=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new P2({$metadata:J(r),...s});return k(h,r.body.Error)},ke=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new jI({$metadata:J(r),...s});return k(h,r.body.Error)},De=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new JI({$metadata:J(r),...s});return k(h,r.body.Error)},ie=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new kI({$metadata:J(r),...s});return k(h,r.body.Error)},ye=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new j2({$metadata:J(r),...s});return k(h,r.body.Error)},me=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new E2({$metadata:J(r),...s});return k(h,r.body.Error)},Ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new I2({$metadata:J(r),...s});return k(h,r.body.Error)},qe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Z2({$metadata:J(r),...s});return k(h,r.body.Error)},ve=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new eI({$metadata:J(r),...s});return k(h,r.body.Error)},je=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new nI({$metadata:J(r),...s});return k(h,r.body.Error)},de=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new M2({$metadata:J(r),...s});return k(h,r.body.Error)},Oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new _I({$metadata:J(r),...s});return k(h,r.body.Error)},ce=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new X2({$metadata:J(r),...s});return k(h,r.body.Error)},be=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new v2({$metadata:J(r),...s});return k(h,r.body.Error)},ge=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new oI({$metadata:J(r),...s});return k(h,r.body.Error)},_e=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Y2({$metadata:J(r),...s});return k(h,r.body.Error)},xe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new F2({$metadata:J(r),...s});return k(h,r.body.Error)},ee=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new m2({$metadata:J(r),...s});return k(h,r.body.Error)},ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new V2({$metadata:J(r),...s});return k(h,r.body.Error)},oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new y2({$metadata:J(r),...s});return k(h,r.body.Error)},ae=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new w2({$metadata:J(r),...s});return k(h,r.body.Error)},pe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new tI({$metadata:J(r),...s});return k(h,r.body.Error)},ue=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);if(w.messages==="")s[O$]=[];else if(w[O$]!=null&&w[O$][Zr]!=null)s[O$]=Ho(Cr(w[O$][Zr]),f);const h=new OI({$metadata:J(r),...s});return k(h,r.body.Error)},te=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new aI({$metadata:J(r),...s});return k(h,r.body.Error)},rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new QI({$metadata:J(r),...s});return k(h,r.body.Error)},sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new r2({$metadata:J(r),...s});return k(h,r.body.Error)},fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new MI({$metadata:J(r),...s});return k(h,r.body.Error)},wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new BI({$metadata:J(r),...s});return k(h,r.body.Error)},hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new q2({$metadata:J(r),...s});return k(h,r.body.Error)},$n=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new HI({$metadata:J(r),...s});return k(h,r.body.Error)},En=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new U2({$metadata:J(r),...s});return k(h,r.body.Error)},In=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new DI({$metadata:J(r),...s});return k(h,r.body.Error)},Fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new s2({$metadata:J(r),...s});return k(h,r.body.Error)},Un=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new z2({$metadata:J(r),...s});return k(h,r.body.Error)},Tn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new S2({$metadata:J(r),...s});return k(h,r.body.Error)},Gn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new k2({$metadata:J(r),...s});return k(h,r.body.Error)},Cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new B2({$metadata:J(r),...s});return k(h,r.body.Error)},Ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new iI({$metadata:J(r),...s});return k(h,r.body.Error)},An=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new D2({$metadata:J(r),...s});return k(h,r.body.Error)},Rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new dI({$metadata:J(r),...s});return k(h,r.body.Error)},Wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new N2({$metadata:J(r),...s});return k(h,r.body.Error)},zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new h2({$metadata:J(r),...s});return k(h,r.body.Error)},Sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new pI({$metadata:J(r),...s});return k(h,r.body.Error)},Pn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new i2({$metadata:J(r),...s});return k(h,r.body.Error)},Xn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new cI({$metadata:J(r),...s});return k(h,r.body.Error)},Yn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new yI({$metadata:J(r),...s});return k(h,r.body.Error)},Kn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new VI({$metadata:J(r),...s});return k(h,r.body.Error)},Zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new K2({$metadata:J(r),...s});return k(h,r.body.Error)},ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new C2({$metadata:J(r),...s});return k(h,r.body.Error)},Jn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new J2({$metadata:J(r),...s});return k(h,r.body.Error)},Qn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new mI({$metadata:J(r),...s});return k(h,r.body.Error)},Mn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new NI({$metadata:J(r),...s});return k(h,r.body.Error)},Bn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new qI({$metadata:J(r),...s});return k(h,r.body.Error)},Hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new $2({$metadata:J(r),...s});return k(h,r.body.Error)},Vn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new bI({$metadata:J(r),...s});return k(h,r.body.Error)},kn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new xI({$metadata:J(r),...s});return k(h,r.body.Error)},Dn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new uI({$metadata:J(r),...s});return k(h,r.body.Error)},yn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new f2({$metadata:J(r),...s});return k(h,r.body.Error)},mn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new T2({$metadata:J(r),...s});return k(h,r.body.Error)},Nn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new L2({$metadata:J(r),...s});return k(h,r.body.Error)},qn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new R2({$metadata:J(r),...s});return k(h,r.body.Error)},vn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new W2({$metadata:J(r),...s});return k(h,r.body.Error)},jn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new G2({$metadata:J(r),...s});return k(h,r.body.Error)},dn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new A2({$metadata:J(r),...s});return k(h,r.body.Error)},On=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new l2({$metadata:J(r),...s});return k(h,r.body.Error)},cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Q2({$metadata:J(r),...s});return k(h,r.body.Error)},bn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new H2({$metadata:J(r),...s});return k(h,r.body.Error)},JH=(r,f)=>{const s=new V(w0);if(r[jr]!=null)s.c(V.of(Da,r[jr]).n(jr));if(r[n]!=null)s.c(V.of(Ia,r[n]).n(n));return s},gn=(r,f)=>{const s=new V(cw);if(r[sr]!=null)s.c(V.of(E0,r[sr]).n(sr));if(s.cc(r,Rf),r[nh]!=null)s.c(V.of(Ea,String(r[nh])).n(nh));return s},_n=(r,f)=>{const s=new V(NH);if(r[_h]!=null)s.c(V.of(Ga,r[_h]).n(_h));if(r[th]!=null)s.c(Eo(r[th],f).n(th));return s},xn=(r,f)=>{const s=new V(c2);if(r[Ur]!=null)s.c(V.of(c6,r[Ur]).n(Ur));return s.lc(r,"Changes","Changes",()=>en(r[mH],f)),s},en=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return _n(s,f).n(NH)})},QH=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(g$,s).n(q6)})},nn=(r,f)=>{const s=new V(Ca);if(r[pr]!=null)s.c(V.of(Xa,r[pr]).n(pr));if(r[_h]!=null)s.c(V.of(La,r[_h]).n(_h));return s.lc(r,"CidrList","CidrList",()=>an(r[Ya],f)),s},on=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return nn(s,f).n(zf)})},an=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(dQ,s).n(dQ)})},pn=(r,f)=>{const s=new V(bw);if(r[eh]!=null)s.c(V.of(Xp,r[eh]).n(eh));if(r[pr]!=null)s.c(V.of(Pa,r[pr]).n(pr));return s},un=(r,f)=>{const s=new V(gw);return s.cc(r,e2),s.cc(r,n2),s},tn=(r,f)=>{const s=new V(_w);if(r[h0]!=null)s.c(V.of(va,r[h0]).n(h0));if(r[$0]!=null)s.c(V.of(ja,r[$0]).n($0));if(r[I0]!=null)s.c(V.of(da,r[I0]).n(I0));return s},ro=(r,f)=>{const s=new V(xw);if(s.cc(r,O2),s.cc(r,x2),r[gw]!=null)s.c(un(r[gw],f).n(gw));if(r[vw]!=null)s.c(V.of(vw,String(r[vw])).n(vw));return s},so=(r,f)=>{const s=new V(ew);if(s.cc(r,Gw),r[Af]!=null)s.c(V.of(Af,String(r[Af])).n(Af));if(r[Ar]!=null)s.c(V.of(ba,r[Ar]).n(Ar));if(s.cc(r,x$),s.cc(r,c$),s.cc(r,n$),r[Ow]!=null)s.c(V.of(Ow,String(r[Ow])).n(Ow));if(r[Gf]!=null)s.c(V.of(Gf,String(r[Gf])).n(Gf));if(r[dw]!=null)s.c(V.of(dw,String(r[dw])).n(dw));if(r[Lf]!=null)s.c(V.of(Lf,String(r[Lf])).n(Lf));if(r[Uf]!=null)s.c(V.of(Uf,String(r[Uf])).n(Uf));if(r[Cf]!=null)s.c(V.of(Cf,String(r[Cf])).n(Cf));if(s.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>QH(r[Nw],f)),r[Tf]!=null)s.c(V.of(Tf,String(r[Tf])).n(Tf));if(s.lc(r,"Regions","Regions",()=>MH(r[qw],f)),r[w0]!=null)s.c(JH(r[w0],f).n(w0));return s.cc(r,_$),s.cc(r,o2),s},MH=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(ca,s).n(jr)})},fo=(r,f)=>{const s=new V(_2);if(r[Ur]!=null)s.c(V.of(c6,r[Ur]).n(Ur));if(r[uh]!=null)s.c(V.of(_a,String(r[uh])).n(uh));return s},wo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(_Q,s).n(_Q)})},ho=(r,f)=>{const s=new V(fF);if(r[Yr]!=null)s.c(V.of(ea,r[Yr]).n(Yr));return s},$o=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return ho(s,f).n(fF)})},Eo=(r,f)=>{const s=new V(th);if(r[n]!=null)s.c(V.of(Rf,r[n]).n(n));if(r[Ar]!=null)s.c(V.of(fp,r[Ar]).n(Ar));if(r[r1]!=null)s.c(V.of(ua,r[r1]).n(r1));if(r[w1]!=null)s.c(V.of(sp,String(r[w1])).n(w1));if(r[jr]!=null)s.c(V.of(rp,r[jr]).n(jr));if(r[_w]!=null)s.c(tn(r[_w],f).n(_w));if(r[oh]!=null)s.c(V.of(pa,r[oh]).n(oh));if(r[ph]!=null)s.c(V.of(ta,String(r[ph])).n(ph));if(r[vr]!=null)s.c(V.of(vr,String(r[vr])).n(vr));if(s.lc(r,"ResourceRecords","ResourceRecords",()=>$o(r[gh],f)),r[cw]!=null)s.c(gn(r[cw],f).n(cw));if(s.cc(r,g$),s.cc(r,u2),r[bw]!=null)s.c(pn(r[bw],f).n(bw));if(r[xw]!=null)s.c(ro(r[xw],f).n(xw));return s},Io=(r,f)=>{const s=new V(wF);if(r[nw]!=null)s.c(V.of(qH,r[nw]).n(nw));if(r[Yr]!=null)s.c(V.of(Rp,r[Yr]).n(Yr));return s},Fo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(qH,s).n(nw)})},Uo=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Io(s,f).n(wF)})},To=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return V.of(Ap,s).n(E0)})},p$=(r,f)=>{const s=new V(Rr);return s.cc(r,a$),s.cc(r,o$),s},Go=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=er(r[Yr]);return s},Co=(r,f)=>{const s={};if(r[jr]!=null)s[jr]=T(r[jr]);if(r[n]!=null)s[n]=T(r[n]);return s},Lo=(r,f)=>{const s={};if(r[sr]!=null)s[sr]=T(r[sr]);if(r[Rf]!=null)s[Rf]=T(r[Rf]);if(r[nh]!=null)s[nh]=mr(r[nh]);return s},es=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[$s]!=null)s[$s]=T(r[$s]);if(r[l6]!=null)s[l6]=y(Hw(r[l6]));if(r[Ur]!=null)s[Ur]=T(r[Ur]);return s},Ao=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Ro=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Wo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return zo(s,f)})},zo=(r,f)=>{const s={};if(r[iG]!=null)s[iG]=T(r[iG]);if(r[pr]!=null)s[pr]=T(r[pr]);return s},So=(r,f)=>{const s={};if(r[xh]!=null)s[xh]=T(r[xh]);if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[D0]!=null)s[D0]=er(r[D0]);return s},Po=(r,f)=>{const s={};if(r[eh]!=null)s[eh]=T(r[eh]);if(r[pr]!=null)s[pr]=T(r[pr]);return s},Xo=(r,f)=>{const s={};if(r[nG]!=null)s[nG]=$r(r[nG]);if(r[N6]!=null)s[N6]=sY(r[N6]);if(r[qG]!=null)s[qG]=T(r[qG]);if(r[P6]!=null)s[P6]=$r(r[P6]);if(r[h6]!=null)s[h6]=T(r[h6]);if(r[A6]!=null)s[A6]=T(r[A6]);if(r[k6]!=null)s[k6]=T(r[k6]);if(r.Dimensions==="")s[B$]=[];else if(r[B$]!=null&&r[B$][OQ]!=null)s[B$]=Mo(Cr(r[B$][OQ]),f);return s},Yo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Ko(s,f)})},Ko=(r,f)=>{const s={};if(r[xh]!=null)s[xh]=T(r[xh]);if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[D0]!=null)s[D0]=er(r[D0]);return s},Zo=(r,f)=>{const s={};if(r[e2]!=null)s[e2]=T(r[e2]);if(r[n2]!=null)s[n2]=T(r[n2]);return s},u$=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r.NameServers==="")s[i$]=[];else if(r[i$]!=null&&r[i$][bQ]!=null)s[i$]=lo(Cr(r[i$][bQ]),f);return s},lo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Jo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return u$(s,f)})},Qo=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},Mo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Qo(s,f)})},Bo=(r,f)=>{const s={};if(r[V6]!=null)s[V6]=T(r[V6]);if(r[s1]!=null)s[s1]=T(r[s1]);return s},Ho=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Vo=(r,f)=>{const s={};if(r[h0]!=null)s[h0]=T(r[h0]);if(r[$0]!=null)s[$0]=T(r[$0]);if(r[I0]!=null)s[I0]=T(r[I0]);return s},BH=(r,f)=>{const s={};if(r[h0]!=null)s[h0]=T(r[h0]);if(r[mG]!=null)s[mG]=T(r[mG]);if(r[$0]!=null)s[$0]=T(r[$0]);if(r[NG]!=null)s[NG]=T(r[NG]);if(r[I0]!=null)s[I0]=T(r[I0]);if(r[M6]!=null)s[M6]=T(r[M6]);return s},ko=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return BH(s,f)})},Do=(r,f)=>{const s={};if(r[O2]!=null)s[O2]=T(r[O2]);if(r[x2]!=null)s[x2]=T(r[x2]);if(r[gw]!=null)s[gw]=Zo(r[gw],f);if(r[vw]!=null)s[vw]=$r(r[vw]);return s},hF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r[ah]!=null)s[ah]=DH(r[ah],f);if(r[ew]!=null)s[ew]=io(r[ew],f);if(r[jw]!=null)s[jw]=er(r[jw]);if(r[jG]!=null)s[jG]=Xo(r[jG],f);return s},io=(r,f)=>{const s={};if(r[Gw]!=null)s[Gw]=T(r[Gw]);if(r[Af]!=null)s[Af]=$r(r[Af]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[x$]!=null)s[x$]=T(r[x$]);if(r[c$]!=null)s[c$]=T(r[c$]);if(r[n$]!=null)s[n$]=T(r[n$]);if(r[Ow]!=null)s[Ow]=$r(r[Ow]);if(r[Gf]!=null)s[Gf]=$r(r[Gf]);if(r[dw]!=null)s[dw]=mr(r[dw]);if(r[Lf]!=null)s[Lf]=mr(r[Lf]);if(r[Uf]!=null)s[Uf]=mr(r[Uf]);if(r[Cf]!=null)s[Cf]=$r(r[Cf]);if(r.ChildHealthChecks==="")s[Nw]=[];else if(r[Nw]!=null&&r[Nw][q6]!=null)s[Nw]=Ro(Cr(r[Nw][q6]),f);if(r[Tf]!=null)s[Tf]=mr(r[Tf]);if(r.Regions==="")s[qw]=[];else if(r[qw]!=null&&r[qw][jr]!=null)s[qw]=mo(Cr(r[qw][jr]),f);if(r[w0]!=null)s[w0]=Co(r[w0],f);if(r[_$]!=null)s[_$]=T(r[_$]);if(r[o2]!=null)s[o2]=T(r[o2]);return s},yo=(r,f)=>{const s={};if(r[jr]!=null)s[jr]=T(r[jr]);if(r[Gw]!=null)s[Gw]=T(r[Gw]);if(r[H6]!=null)s[H6]=ra(r[H6],f);return s},HH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return yo(s,f)})},mo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},No=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return hF(s,f)})},$F=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r[OG]!=null)s[OG]=qo(r[OG],f);if(r[K6]!=null)s[K6]=er(r[K6]);if(r[ah]!=null)s[ah]=DH(r[ah],f);return s},qo=(r,f)=>{const s={};if(r[Ur]!=null)s[Ur]=T(r[Ur]);if(r[uh]!=null)s[uh]=mr(r[uh]);return s},vo=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=er(r[Yr]);return s},jo=(r,f)=>{const s={};if(r[W6]!=null)s[W6]=T(r[W6]);if(r[z6]!=null)s[z6]=T(r[z6]);return s},VH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return $F(s,f)})},Oo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return co(s,f)})},co=(r,f)=>{const s={};if(r[sr]!=null)s[sr]=T(r[sr]);if(r[n]!=null)s[n]=T(r[n]);if(r[R6]!=null)s[R6]=jo(r[R6],f);return s},kH=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[uG]!=null)s[uG]=T(r[uG]);if(r[oG]!=null)s[oG]=$r(r[oG]);if(r[J6]!=null)s[J6]=T(r[J6]);if(r[Q6]!=null)s[Q6]=$r(r[Q6]);if(r[cG]!=null)s[cG]=T(r[cG]);if(r[bG]!=null)s[bG]=$r(r[bG]);if(r[s6]!=null)s[s6]=$r(r[s6]);if(r[xG]!=null)s[xG]=T(r[xG]);if(r[S6]!=null)s[S6]=T(r[S6]);if(r[_G]!=null)s[_G]=T(r[_G]);if(r[gG]!=null)s[gG]=T(r[gG]);if(r[$s]!=null)s[$s]=T(r[$s]);if(r[s1]!=null)s[s1]=T(r[s1]);if(r[yG]!=null)s[yG]=y(Hw(r[yG]));if(r[f6]!=null)s[f6]=y(Hw(r[f6]));return s},bo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return kH(s,f)})},DH=(r,f)=>{const s={};if(r[B6]!=null)s[B6]=T(r[B6]);if(r[eG]!=null)s[eG]=T(r[eG]);return s},go=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return _o(s,f)})},_o=(r,f)=>{const s={};if(r[pr]!=null)s[pr]=T(r[pr]);return s},v6=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[sr]!=null)s[sr]=T(r[sr]);if(r[b2]!=null)s[b2]=T(r[b2]);return s},xo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return v6(s,f)})},eo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},no=(r,f)=>{const s={};if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},oo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return no(s,f)})},ao=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[r1]!=null)s[r1]=T(r[r1]);if(r[w1]!=null)s[w1]=er(r[w1]);if(r[jr]!=null)s[jr]=T(r[jr]);if(r[_w]!=null)s[_w]=Vo(r[_w],f);if(r[oh]!=null)s[oh]=T(r[oh]);if(r[ph]!=null)s[ph]=mr(r[ph]);if(r[vr]!=null)s[vr]=er(r[vr]);if(r.ResourceRecords==="")s[gh]=[];else if(r[gh]!=null&&r[gh][fF]!=null)s[gh]=oo(Cr(r[gh][fF]),f);if(r[cw]!=null)s[cw]=Lo(r[cw],f);if(r[g$]!=null)s[g$]=T(r[g$]);if(r[u2]!=null)s[u2]=T(r[u2]);if(r[bw]!=null)s[bw]=Po(r[bw],f);if(r[xw]!=null)s[xw]=Do(r[xw],f);return s},po=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return ao(s,f)})},iH=(r,f)=>{const s={};if(r[Z6]!=null)s[Z6]=T(r[Z6]);if(r[E0]!=null)s[E0]=T(r[E0]);if(r.Tags==="")s[d$]=[];else if(r[d$]!=null&&r[d$][wF]!=null)s[d$]=fa(Cr(r[d$][wF]),f);return s},uo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return iH(s,f)})},to=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=er(r[Yr]);return s},ra=(r,f)=>{const s={};if(r[$s]!=null)s[$s]=T(r[$s]);if(r[vG]!=null)s[vG]=y(Hw(r[vG]));return s},sa=(r,f)=>{const s={};if(r[nw]!=null)s[nw]=T(r[nw]);if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},fa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return sa(s,f)})},wa=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return t$(s,f)})},t$=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[D0]!=null)s[D0]=$r(r[D0]);if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[H0]!=null)s[H0]=T(r[H0]);if(r[Ur]!=null)s[Ur]=T(r[Ur]);return s},EF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[sr]!=null)s[sr]=T(r[sr]);if(r[n]!=null)s[n]=T(r[n]);if(r[vr]!=null)s[vr]=er(r[vr]);if(r[D6]!=null)s[D6]=T(r[D6]);if(r[Zr]!=null)s[Zr]=T(r[Zr]);if(r[f1]!=null)s[f1]=T(r[f1]);if(r[bs]!=null)s[bs]=$r(r[bs]);if(r[m6]!=null)s[m6]=T(r[m6]);return s},j6=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return EF(s,f)})},ha=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return $a(s,f)})},$a=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[w6]!=null)s[w6]=$r(r[w6]);if(r[i6]!=null)s[i6]=$r(r[i6]);return s},d6=(r,f)=>{const s={};if(r[a$]!=null)s[a$]=T(r[a$]);if(r[o$]!=null)s[o$]=T(r[o$]);return s},yH=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return d6(s,f)})},J=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var _h="Action",Ea="AliasHealthEnabled",w0="AlarmIdentifier",Ia="AlarmName",Fa="AddTags",cw="AliasTarget",Ua="AssociateVPCComment",Ta="AssociateVPCWithHostedZoneRequest",O2="AWSRegion",xh="Arn",vw="Bias",Ur="Comment",Ga="ChangeAction",c2="ChangeBatch",Z$="CidrBlocks",iG="CidrBlock",h0="ContinentCode",Ca="CidrCollectionChange",La="CidrCollectionChangeAction",Aa="ChangeCidrCollectionRequest",Ra="CreateCidrCollectionRequest",l$="CidrCollections",$0="CountryCode",yG="CreatedDate",Nw="ChildHealthChecks",Wa="CreateHealthCheckRequest",q6="ChildHealthCheck",za="CreateHostedZoneRequest",wr="ChangeInfo",J$="CheckerIpRanges",eh="CollectionId",Sa="CreateKeySigningKeyRequest",Q$="CidrLocations",Pa="CidrLocationNameDefaultAllowed",Xa="CidrLocationNameDefaultNotAllowed",Ya="CidrList",Ka="CidrNonce",Za="CollectionName",mG="ContinentName",NG="CountryName",qG="ComparisonOperator",la="CreateQueryLoggingConfigRequest",Pr="CallerReference",bw="CidrRoutingConfig",Ja="CreateReusableDelegationSetRequest",Qa="ChangeResourceRecordSetsRequest",vG="CheckedTime",Ma="ChangeTagsForResourceRequest",Ba="CreateTrafficPolicyInstanceRequest",Ha="CreateTrafficPolicyRequest",Va="CreateTrafficPolicyVersionRequest",d2="CollectionVersion",ka="CreateVPCAssociationAuthorizationRequest",jG="CloudWatchAlarmConfiguration",b2="CloudWatchLogsLogGroupArn",Da="CloudWatchRegion",mH="Changes",NH="Change",dQ="Cidr",dG="Collection",OG="Config",gw="Coordinates",B0="Count",H0="Document",cG="DigestAlgorithmMnemonic",bG="DigestAlgorithmType",gG="DNSKEYRecord",Rf="DNSName",Ls="DelegationSet",g2="DelegationSetId",_G="DSRecord",M$="DelegationSets",xG="DigestValue",ia="DeleteVPCAssociationAuthorizationRequest",ya="DisassociateVPCComment",ma="DisassociateVPCFromHostedZoneRequest",eG="Description",Uf="Disabled",B$="Dimensions",OQ="Dimension",Na="EDNS0ClientSubnetIP",qa="EDNS0ClientSubnetMask",nG="EvaluationPeriods",Tf="EnableSNI",nh="EvaluateTargetHealth",oh="Failover",c$="FullyQualifiedDomainName",Gf="FailureThreshold",oG="Flag",_w="GeoLocation",va="GeoLocationContinentCode",ja="GeoLocationCountryCode",b$="GeoLocationDetails",H$="GeoLocationDetailsList",da="GeoLocationSubdivisionCode",xw="GeoProximityLocation",Wf="HealthCheck",ew="HealthCheckConfig",aG="HealthCheckCount",g$="HealthCheckId",Oa="HealthCheckNonce",r0="HealthCheckObservations",sF="HealthCheckObservation",ca="HealthCheckRegion",ba="HealthCheckType",jw="HealthCheckVersion",V$="HealthChecks",Cf="HealthThreshold",Ys="HostedZone",_2="HostedZoneConfig",pG="HostedZoneCount",sr="HostedZoneId",Tw="HostedZoneIdMarker",k$="HostedZoneSummaries",cQ="HostedZoneSummary",ga="HostedZoneType",s0="HostedZones",Lf="Inverted",_$="InsufficientDataHealthStatus",Gw="IPAddress",_a="IsPrivateZone",Tr="IsTruncated",Gr="Id",nw="Key",uG="KmsArn",tG="KeyManagementServiceArn",r6="KeySigningKey",D$="KeySigningKeys",s6="KeyTag",i0="Location",f6="LastModifiedDate",pr="LocationName",ah="LinkedService",xa="ListTagsForResourcesRequest",w6="LatestVersion",x2="LocalZoneGroup",e2="Latitude",V0="Limit",n2="Longitude",gs="Marker",a="MaxItems",dw="MeasureLatency",h6="MetricName",rE="MaxResults",ph="MultiValueAnswer",Zr="Message",n="Name",$6="NextContinentCode",E6="NextCountryCode",I6="NextDNSName",F6="NextHostedZoneId",k0="NextMarker",U6="NextRecordIdentifier",T6="NextRecordName",G6="NextRecordType",i$="NameServers",C6="NextSubdivisionCode",bQ="NameServer",Xr="NextToken",L6="Nameserver",A6="Namespace",O6="Nonce",R6="Owner",W6="OwningAccount",z6="OwningService",Af="Port",S6="PublicKey",uh="PrivateZone",P6="Period",X6="Protocol",Cw="QueryLoggingConfig",y$="QueryLoggingConfigs",qw="Regions",Y6="ResponseCode",o2="RoutingControlArn",c6="ResourceDescription",gQ="RecordDataEntry",ea="RData",m$="RecordData",na="ResetElements",_Q="ResettableElementName",E0="ResourceId",oa="ResolverIP",aa="ResourceIds",Ow="RequestInterval",a2="RecordName",x$="ResourcePath",fF="ResourceRecord",N$="ResourceRecordSets",K6="ResourceRecordSetCount",pa="ResourceRecordSetFailover",ua="ResourceRecordSetIdentifier",ta="ResourceRecordSetMultiValueAnswer",rp="ResourceRecordSetRegion",sp="ResourceRecordSetWeight",th="ResourceRecordSet",fp="RRType",gh="ResourceRecords",p2="RecordType",wp="RemoveTagKeys",e$="ResourceTagSet",q$="ResourceTagSets",Z6="ResourceType",jr="Region",$s="Status",l6="SubmittedAt",J6="SigningAlgorithmMnemonic",Q6="SigningAlgorithmType",I0="SubdivisionCode",hp="StartContinentCode",$p="StartCountryCode",r1="SetIdentifier",Ep="SigningKeyName",Ip="SigningKeyString",Fp="SigningKeyStatus",s1="StatusMessage",M6="SubdivisionName",B6="ServicePrincipal",H6="StatusReport",Up="StartRecordIdentifier",Tp="StartRecordName",Gp="StartRecordType",n$="SearchString",Cp="StartSubdivisionCode",V6="ServeSignature",k6="Statistic",D6="State",Ar="Type",qH="TagKey",As="TrafficPolicy",b6="TrafficPolicyComment",i6="TrafficPolicyCount",vH="TrafficPolicyDocument",f1="TrafficPolicyId",y6="TrafficPolicyInstanceCount",u2="TrafficPolicyInstanceId",t2="TrafficPolicyIdMarker",_s="TrafficPolicyInstanceNameMarker",xs="TrafficPolicyInstanceTypeMarker",Es="TrafficPolicyInstance",hs="TrafficPolicyInstances",Lp="TrafficPolicyName",v$="TrafficPolicySummaries",xQ="TrafficPolicySummary",m6="TrafficPolicyType",bs="TrafficPolicyVersion",rF="TrafficPolicyVersionMarker",j$="TrafficPolicies",Ap="TagResourceId",vr="TTL",Rp="TagValue",wF="Tag",d$="Tags",N6="Threshold",Wp="UpdateHealthCheckRequest",zp="UpdateHostedZoneCommentRequest",Sp="UpdateTrafficPolicyCommentRequest",Pp="UpdateTrafficPolicyInstanceRequest",Xp="UUID",Yr="Value",Rr="VPC",o$="VPCId",a$="VPCRegion",f0="VPCs",D0="Version",w1="Weight",Yp="continentcode",Kp="countrycode",Zp="delegationsetid",lp="dnsname",Jp="edns0clientsubnetip",Qp="edns0clientsubnetmask",Mp="hostedzonetype",sE="hostedzoneid",Bp="identifier",jH="id",F0="location",fE="maxresults",ns="maxitems",g6="marker",zf="member",X="message",O$="messages",h1="nexttoken",Hp="name",Vp="recordname",kp="recordtype",Dp="resolverip",ip="subdivisioncode",yp="startcontinentcode",mp="startcountrycode",Np="startsubdivisioncode",qp="type",vp="trafficpolicyid",_6="trafficpolicyinstancename",x6="trafficpolicyinstancetype",jp="trafficpolicyversion",dp="vpcid",Vr='<?xml version="1.0" encoding="UTF-8"?>',Op="version",cp="vpcregion";class e6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(eQ).de(UB).build(){}M();H();Y();class n6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(nQ).de(TB).build(){}M();H();Y();class o6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(oQ).de(GB).build(){}M();H();Y();class a6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),qQ(s),N(s)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(aQ).de(CB).build(){}M();H();Y();class p6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(pQ).de(LB).build(){}M();H();Y();class u6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(uQ).de(AB).build(){}M();H();Y();class t6 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(tQ).de(RB).build(){}M();H();Y();class r4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(rM).de(WB).build(){}M();H();Y();class s4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(sM).de(zB).build(){}M();H();Y();class f4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(fM).de(SB).build(){}M();H();Y();class w4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(wM).de(PB).build(){}M();H();Y();class h4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(hM).de(XB).build(){}M();H();Y();class $4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser($M).de(YB).build(){}M();H();Y();class E4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(EM).de(KB).build(){}M();H();Y();class I4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(IM).de(ZB).build(){}M();H();Y();class F4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(FM).de(lB).build(){}M();H();Y();class U4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(UM).de(JB).build(){}M();H();Y();class T4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(TM).de(QB).build(){}M();H();Y();class G4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(GM).de(MB).build(){}M();H();Y();class C4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(CM).de(BB).build(){}M();H();Y();class L4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(LM).de(HB).build(){}M();H();Y();class A4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(AM).de(VB).build(){}M();H();Y();class R4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(RM).de(kB).build(){}M();H();Y();class W4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(WM).de(DB).build(){}M();H();Y();class z4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(zM).de(iB).build(){}M();H();Y();class S4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(SM).de(yB).build(){}M();H();Y();class P4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(PM).de(mB).build(){}M();H();Y();class X4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(XM).de(NB).build(){}M();H();Y();class Y4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(YM).de(qB).build(){}M();H();Y();class K4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(KM).de(vB).build(){}M();H();Y();class Z4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(ZM).de(jB).build(){}M();H();Y();class l4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(lM).de(dB).build(){}M();H();Y();class J4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(JM).de(OB).build(){}M();H();Y();class Q4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(QM).de(cB).build(){}M();H();Y();class M4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser(MM).de(bB).build(){}M();H();Y();class B4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(BM).de(gB).build(){}M();H();Y();class H4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(HM).de(_B).build(){}M();H();Y();class V4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(VM).de(xB).build(){}M();H();Y();class k4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(kM).de(eB).build(){}M();H();Y();class D4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(DM).de(nB).build(){}M();H();Y();class i4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(iM).de(oB).build(){}M();H();Y();class y4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(yM).de(aB).build(){}M();H();Y();class m4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(mM).de(pB).build(){}M();H();Y();class N4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(NM).de(uB).build(){}M();H();Y();class q4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(qM).de(tB).build(){}M();H();Y();class v4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(vM).de(rH).build(){}M();H();Y();class j4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(jM).de(sH).build(){}M();H();Y();class d4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(dM).de(fH).build(){}M();H();Y();class O4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(OM).de(wH).build(){}M();H();Y();class c4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(cM).de(hH).build(){}M();H();Y();class b4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(bM).de($H).build(){}M();H();Y();class g4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(_M).de(IH).build(){}M();H();Y();class _4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(xM).de(FH).build(){}M();H();Y();class x4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(gM).de(EH).build(){}M();H();Y();class e4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(eM).de(UH).build(){}M();H();Y();class n4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(nM).de(TH).build(){}M();H();Y();class o4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(oM).de(GH).build(){}M();H();Y();class a4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(aM).de(CH).build(){}M();H();Y();class p4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(pM).de(LH).build(){}M();H();Y();class u4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(uM).de(AH).build(){}M();H();Y();class t4 extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(rB).de(WH).build(){}M();H();Y();class rC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(sB).de(zH).build(){}M();H();Y();class sC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(tM).de(RH).build(){}M();H();Y();class fC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(fB).de(SH).build(){}M();H();Y();class wC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(wB).de(PH).build(){}M();H();Y();class hC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(hB).de(XH).build(){}M();H();Y();class $C extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser($B).de(YH).build(){}M();H();Y();class EC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(EB).de(KH).build(){}M();H();Y();class IC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(IB).de(ZH).build(){}M();H();Y();class FC extends A.classBuilder().ep({...l}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),N(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(FB).de(lH).build(){}var bp={ActivateKeySigningKeyCommand:e6,AssociateVPCWithHostedZoneCommand:n6,ChangeCidrCollectionCommand:o6,ChangeResourceRecordSetsCommand:a6,ChangeTagsForResourceCommand:p6,CreateCidrCollectionCommand:u6,CreateHealthCheckCommand:t6,CreateHostedZoneCommand:r4,CreateKeySigningKeyCommand:s4,CreateQueryLoggingConfigCommand:f4,CreateReusableDelegationSetCommand:w4,CreateTrafficPolicyCommand:h4,CreateTrafficPolicyInstanceCommand:$4,CreateTrafficPolicyVersionCommand:E4,CreateVPCAssociationAuthorizationCommand:I4,DeactivateKeySigningKeyCommand:F4,DeleteCidrCollectionCommand:U4,DeleteHealthCheckCommand:T4,DeleteHostedZoneCommand:G4,DeleteKeySigningKeyCommand:C4,DeleteQueryLoggingConfigCommand:L4,DeleteReusableDelegationSetCommand:A4,DeleteTrafficPolicyCommand:R4,DeleteTrafficPolicyInstanceCommand:W4,DeleteVPCAssociationAuthorizationCommand:z4,DisableHostedZoneDNSSECCommand:S4,DisassociateVPCFromHostedZoneCommand:P4,EnableHostedZoneDNSSECCommand:X4,GetAccountLimitCommand:Y4,GetChangeCommand:K4,GetCheckerIpRangesCommand:Z4,GetDNSSECCommand:l4,GetGeoLocationCommand:J4,GetHealthCheckCommand:Q4,GetHealthCheckCountCommand:M4,GetHealthCheckLastFailureReasonCommand:B4,GetHealthCheckStatusCommand:H4,GetHostedZoneCommand:V4,GetHostedZoneCountCommand:k4,GetHostedZoneLimitCommand:D4,GetQueryLoggingConfigCommand:i4,GetReusableDelegationSetCommand:y4,GetReusableDelegationSetLimitCommand:m4,GetTrafficPolicyCommand:N4,GetTrafficPolicyInstanceCommand:q4,GetTrafficPolicyInstanceCountCommand:v4,ListCidrBlocksCommand:j4,ListCidrCollectionsCommand:d4,ListCidrLocationsCommand:O4,ListGeoLocationsCommand:c4,ListHealthChecksCommand:b4,ListHostedZonesCommand:x4,ListHostedZonesByNameCommand:g4,ListHostedZonesByVPCCommand:_4,ListQueryLoggingConfigsCommand:e4,ListResourceRecordSetsCommand:n4,ListReusableDelegationSetsCommand:o4,ListTagsForResourceCommand:a4,ListTagsForResourcesCommand:p4,ListTrafficPoliciesCommand:u4,ListTrafficPolicyInstancesCommand:sC,ListTrafficPolicyInstancesByHostedZoneCommand:t4,ListTrafficPolicyInstancesByPolicyCommand:rC,ListTrafficPolicyVersionsCommand:fC,ListVPCAssociationAuthorizationsCommand:wC,TestDNSAnswerCommand:hC,UpdateHealthCheckCommand:$C,UpdateHostedZoneCommentCommand:EC,UpdateTrafficPolicyCommentCommand:IC,UpdateTrafficPolicyInstanceCommand:FC};class Lw extends kG{}df(bp,Lw);aw();pw();uw();rh();Ms();var $1=u(Or(),1);Th();M();Ef();Y();var dH=u(Br(),1);rf();function gp(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var OH=async(r,f,s)=>{return{operation:Js(f).operation,region:await yr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},cH=(r)=>{const f=[];switch(r.operation){default:f.push(gp(r))}return f},bH=(r)=>{return{...dH.resolveAwsSdkSigV4Config(r)}};var gH=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},b={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var _H={name:"@aws-sdk/client-route-53-domains",description:"AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53-domains","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 route-53-domains"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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-route-53-domains",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53-domains"}};var EV=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();var hV=u(Br(),1);Y();b0();W0();jf();Ww();us();var xH={["required"]:!1,type:"String"},eH={["required"]:!0,default:!1,type:"Boolean"},nH={["ref"]:"Endpoint"},rV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},sV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},U0={},oH={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},aH={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},pH=[rV],uH=[sV],tH=[{["ref"]:"Region"}],xp={version:"1.0",parameters:{Region:xH,UseDualStack:eH,UseFIPS:eH,Endpoint:xH},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[nH]}],rules:[{conditions:pH,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:uH,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:nH,properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:tH}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:tH,assign:"PartitionResult"}],rules:[{conditions:[rV,sV],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,oH]},aH],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:pH,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[oH,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:uH,rules:[{conditions:[aH],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:U0,headers:U0},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},fV=xp;var wV=(r,f={})=>{return ps(fV,{endpointParams:r,logger:f.logger})};ur.aws=ts;var $V=(r)=>{return{apiVersion:"2014-05-15",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??wV,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??cH,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new hV.AwsSdkSigV4Signer}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"Route 53 Domains",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};Y();Qh();Y();var IV=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=$V(r);return EV.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??of,credentialDefaultProvider:r?.credentialDefaultProvider??S0,defaultUserAgentProvider:r?.defaultUserAgentProvider??nf({serviceId:w.serviceId,clientVersion:_H.version}),maxAttempts:r?.maxAttempts??t(Nf),region:r?.region??t(Qs,Hf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...vf,default:async()=>(await s()).retryMode||ys}),sha256:r?.sha256??If.bind(null,"sha256"),streamCollector:r?.streamCollector??ms,useDualstackEndpoint:r?.useDualstackEndpoint??t(Mf),useFipsEndpoint:r?.useFipsEndpoint??t(Bf)}};Mh();ir();Y();var FV=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const $=f.findIndex((E)=>E.schemeId===h.schemeId);if($===-1)f.push(h);else f.splice($,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},UV=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var IF=(r)=>r,TV=(r,f)=>{const s={...IF(pf(r)),...IF(_f(r)),...IF(Pf(r)),...IF(FV(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...UV(s)}};class UC extends zs{constructor(...[r]){const f=IV(r||{}),s=gH(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=bH(I),U=TV(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Qf(this.config)),this.middlewareStack.use(ef(this.config)),this.middlewareStack.use(Df(this.config)),this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(Zf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use($1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:OH,identityProviderConfigProvider:async(C)=>new $1.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use($1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();M();H();Y();Y();Y();class os extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,os.prototype)}}class FF extends os{constructor(r){super({name:"DomainLimitExceeded",$fault:"client",...r});this.name="DomainLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,FF.prototype)}}class UF extends os{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,UF.prototype)}}class TF extends os{constructor(r){super({name:"OperationLimitExceeded",$fault:"client",...r});this.name="OperationLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,TF.prototype)}}class GF extends os{constructor(r){super({name:"UnsupportedTLD",$fault:"client",...r});this.name="UnsupportedTLD",this.$fault="client",Object.setPrototypeOf(this,GF.prototype)}}class CF extends os{constructor(r){super({name:"DnssecLimitExceeded",$fault:"client",...r});this.name="DnssecLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,CF.prototype)}}class LF extends os{constructor(r){super({name:"DuplicateRequest",$fault:"client",...r});this.name="DuplicateRequest",this.$fault="client",Object.setPrototypeOf(this,LF.prototype),this.requestId=r.requestId}}class AF extends os{constructor(r){super({name:"TLDRulesViolation",$fault:"client",...r});this.name="TLDRulesViolation",this.$fault="client",Object.setPrototypeOf(this,AF.prototype)}}var GV=(r)=>({...r,...r.Password&&{Password:o}}),CV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}});var LV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.AbuseContactEmail&&{AbuseContactEmail:o},...r.AbuseContactPhone&&{AbuseContactPhone:o},...r.BillingContact&&{BillingContact:o}}),AV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),RV=(r)=>({...r,...r.emailAddress&&{emailAddress:o}}),WV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}}),zV=(r)=>({...r,...r.AuthCode&&{AuthCode:o},...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),SV=(r)=>({...r,...r.Password&&{Password:o}}),PV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),XV=(r)=>({...r,...r.FIAuthKey&&{FIAuthKey:o}});var fr=u(Br(),1);ir();Y();function Fr(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${r}`}}var YV=async(r,f)=>{const s=Fr("AcceptDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},KV=async(r,f)=>{const s=Fr("AssociateDelegationSignerToDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},ZV=async(r,f)=>{const s=Fr("CancelDomainTransferToAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},lV=async(r,f)=>{const s=Fr("CheckDomainAvailability");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},JV=async(r,f)=>{const s=Fr("CheckDomainTransferability");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},QV=async(r,f)=>{const s=Fr("DeleteDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},MV=async(r,f)=>{const s=Fr("DeleteTagsForDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},BV=async(r,f)=>{const s=Fr("DisableDomainAutoRenew");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},HV=async(r,f)=>{const s=Fr("DisableDomainTransferLock");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},VV=async(r,f)=>{const s=Fr("DisassociateDelegationSignerFromDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},kV=async(r,f)=>{const s=Fr("EnableDomainAutoRenew");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},DV=async(r,f)=>{const s=Fr("EnableDomainTransferLock");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},iV=async(r,f)=>{const s=Fr("GetContactReachabilityStatus");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},yV=async(r,f)=>{const s=Fr("GetDomainDetail");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},mV=async(r,f)=>{const s=Fr("GetDomainSuggestions");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},NV=async(r,f)=>{const s=Fr("GetOperationDetail");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},qV=async(r,f)=>{const s=Fr("ListDomains");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},vV=async(r,f)=>{const s=Fr("ListOperations");let w;return w=JSON.stringify(su(r,f)),Ir(f,s,"/",void 0,w)},jV=async(r,f)=>{const s=Fr("ListPrices");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},dV=async(r,f)=>{const s=Fr("ListTagsForDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},OV=async(r,f)=>{const s=Fr("PushDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},cV=async(r,f)=>{const s=Fr("RegisterDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},bV=async(r,f)=>{const s=Fr("RejectDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},gV=async(r,f)=>{const s=Fr("RenewDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},_V=async(r,f)=>{const s=Fr("ResendContactReachabilityEmail");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},xV=async(r,f)=>{const s=Fr("ResendOperationAuthorization");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},eV=async(r,f)=>{const s=Fr("RetrieveDomainAuthCode");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},nV=async(r,f)=>{const s=Fr("TransferDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},oV=async(r,f)=>{const s=Fr("TransferDomainToAnotherAwsAccount");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},aV=async(r,f)=>{const s=Fr("UpdateDomainContact");let w;return w=JSON.stringify(fu(r,f)),Ir(f,s,"/",void 0,w)},pV=async(r,f)=>{const s=Fr("UpdateDomainContactPrivacy");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},uV=async(r,f)=>{const s=Fr("UpdateDomainNameservers");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},tV=async(r,f)=>{const s=Fr("UpdateTagsForDomain");let w;return w=JSON.stringify(m(r)),Ir(f,s,"/",void 0,w)},rk=async(r,f)=>{const s=Fr("ViewBilling");let w;return w=JSON.stringify(wu(r,f)),Ir(f,s,"/",void 0,w)},sk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},fk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},wk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},hk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},$k=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ek=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ik=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Fk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Uk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Tk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Gk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ck=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Lk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Ak=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Tu(s,f),{$metadata:rr(r),...w}},Rk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Wk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Gu(s,f),{$metadata:rr(r),...w}},zk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Cu(s,f),{$metadata:rr(r),...w}},Sk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Lu(s,f),{$metadata:rr(r),...w}},Pk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Au(s,f),{$metadata:rr(r),...w}},Xk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Yk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);return await xr(r.body,f),{$metadata:rr(r)}},Kk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Zk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},lk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Jk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Qk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);return await xr(r.body,f),{$metadata:rr(r)}},Mk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Bk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Hk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Vk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},kk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},Dk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},ik=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=m(s),{$metadata:rr(r),...w}},yk=async(r,f)=>{if(r.statusCode>=300)return Er(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=zu(s,f),{$metadata:rr(r),...w}},Er=async(r,f)=>{const s={...r,body:await fr.parseJsonErrorBody(r.body,f)},w=fr.loadRestJsonErrorCode(r,s.body);switch(w){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await np(s,f);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await ap(s,f);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await pp(s,f);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await tp(s,f);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await ep(s,f);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await op(s,f);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await up(s,f);default:const h=s.body;return Su({output:r,parsedBody:h,errorCode:w})}},ep=async(r,f)=>{const s=r.body,w=m(s),h=new CF({$metadata:rr(r),...w});return k(h,s)},np=async(r,f)=>{const s=r.body,w=m(s),h=new FF({$metadata:rr(r),...w});return k(h,s)},op=async(r,f)=>{const s=r.body,w=m(s),h=new LF({$metadata:rr(r),...w});return k(h,s)},ap=async(r,f)=>{const s=r.body,w=m(s),h=new UF({$metadata:rr(r),...w});return k(h,s)},pp=async(r,f)=>{const s=r.body,w=m(s),h=new TF({$metadata:rr(r),...w});return k(h,s)},up=async(r,f)=>{const s=r.body,w=m(s),h=new AF({$metadata:rr(r),...w});return k(h,s)},tp=async(r,f)=>{const s=r.body,w=m(s),h=new GF({$metadata:rr(r),...w});return k(h,s)},ru=(r,f)=>{return p(r,{Currency:[],MaxPrice:PY})},su=(r,f)=>{return p(r,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:m,SubmittedSince:(s)=>s.getTime()/1000,Type:m})},fu=(r,f)=>{return p(r,{AdminContact:m,BillingContact:m,Consent:(s)=>ru(s,f),DomainName:[],RegistrantContact:m,TechContact:m})},wu=(r,f)=>{return p(r,{End:(s)=>s.getTime()/1000,Marker:[],MaxItems:[],Start:(s)=>s.getTime()/1000})},hu=(r,f)=>{return p(r,{BillDate:(s)=>y(Of(Cs(s))),DomainName:T,InvoiceId:T,Operation:T,Price:P5})},$u=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return hu(w,f)})},Eu=(r,f)=>{return p(r,{ChangeOwnershipPrice:(s)=>wE(s,f),Name:T,RegistrationPrice:(s)=>wE(s,f),RenewalPrice:(s)=>wE(s,f),RestorationPrice:(s)=>wE(s,f),TransferPrice:(s)=>wE(s,f)})},Iu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Eu(w,f)})},Fu=(r,f)=>{return p(r,{AutoRenew:x0,DomainName:T,Expiry:(s)=>y(Of(Cs(s))),TransferLock:x0})},Uu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Fu(w,f)})},Tu=(r,f)=>{return p(r,{AbuseContactEmail:T,AbuseContactPhone:T,AdminContact:m,AdminPrivacy:x0,AutoRenew:x0,BillingContact:m,BillingPrivacy:x0,CreationDate:(s)=>y(Of(Cs(s))),DnsSec:T,DnssecKeys:m,DomainName:T,ExpirationDate:(s)=>y(Of(Cs(s))),Nameservers:m,RegistrantContact:m,RegistrantPrivacy:x0,RegistrarName:T,RegistrarUrl:T,RegistryDomainId:T,Reseller:T,StatusList:m,TechContact:m,TechPrivacy:x0,UpdatedDate:(s)=>y(Of(Cs(s))),WhoIsServer:T})},Gu=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(Of(Cs(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(Of(Cs(s))),Type:T})},Cu=(r,f)=>{return p(r,{Domains:(s)=>Uu(s,f),NextPageMarker:T})},Lu=(r,f)=>{return p(r,{NextPageMarker:T,Operations:(s)=>Wu(s,f)})},Au=(r,f)=>{return p(r,{NextPageMarker:T,Prices:(s)=>Iu(s,f)})},Ru=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(Of(Cs(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(Of(Cs(s))),Type:T})},Wu=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Ru(w,f)})},wE=(r,f)=>{return p(r,{Currency:T,Price:P5})},zu=(r,f)=>{return p(r,{BillingRecords:(s)=>$u(s,f),NextPageMarker:T})},rr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var Su=cf(os),Ir=async(r,f,s,w,h)=>{const{hostname:$,protocol:E="https",port:I,path:F}=await r.endpoint(),U={protocol:E,hostname:$,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)};class TC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(GV,void 0).ser(YV).de(sk).build(){}M();H();Y();class GC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(KV).de(fk).build(){}M();H();Y();class CC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(ZV).de(wk).build(){}M();H();Y();class LC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(lV).de(hk).build(){}M();H();Y();class AC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(CV,void 0).ser(JV).de($k).build(){}M();H();Y();class RC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(QV).de(Ek).build(){}M();H();Y();class WC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser(MV).de(Ik).build(){}M();H();Y();class zC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(BV).de(Fk).build(){}M();H();Y();class SC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(HV).de(Uk).build(){}M();H();Y();class PC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(VV).de(Tk).build(){}M();H();Y();class XC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(kV).de(Gk).build(){}M();H();Y();class YC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(DV).de(Ck).build(){}M();H();Y();class KC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(iV).de(Lk).build(){}M();H();Y();class ZC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,LV).ser(yV).de(Ak).build(){}M();H();Y();class lC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(mV).de(Rk).build(){}M();H();Y();class JC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(NV).de(Wk).build(){}M();H();Y();class QC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(qV).de(zk).build(){}M();H();Y();class MC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(vV).de(Sk).build(){}M();H();Y();class BC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(jV).de(Pk).build(){}M();H();Y();class HC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(dV).de(Xk).build(){}M();H();Y();class VC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(OV).de(Yk).build(){}M();H();Y();class kC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(AV,void 0).ser(cV).de(Kk).build(){}M();H();Y();class DC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(bV).de(Zk).build(){}M();H();Y();class iC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(gV).de(lk).build(){}M();H();Y();class yC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,RV).ser(_V).de(Jk).build(){}M();H();Y();class mC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(xV).de(Qk).build(){}M();H();Y();class NC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,WV).ser(eV).de(Mk).build(){}M();H();Y();class qC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(zV,void 0).ser(nV).de(Bk).build(){}M();H();Y();class vC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,SV).ser(oV).de(Hk).build(){}M();H();Y();class jC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(PV,void 0).ser(aV).de(Vk).build(){}M();H();Y();class dC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(pV).de(kk).build(){}M();H();Y();class OC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(XV,void 0).ser(uV).de(Dk).build(){}M();H();Y();class cC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(tV).de(ik).build(){}M();H();Y();class bC extends A.classBuilder().ep({...b}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(rk).de(yk).build(){}var Pu={AcceptDomainTransferFromAnotherAwsAccountCommand:TC,AssociateDelegationSignerToDomainCommand:GC,CancelDomainTransferToAnotherAwsAccountCommand:CC,CheckDomainAvailabilityCommand:LC,CheckDomainTransferabilityCommand:AC,DeleteDomainCommand:RC,DeleteTagsForDomainCommand:WC,DisableDomainAutoRenewCommand:zC,DisableDomainTransferLockCommand:SC,DisassociateDelegationSignerFromDomainCommand:PC,EnableDomainAutoRenewCommand:XC,EnableDomainTransferLockCommand:YC,GetContactReachabilityStatusCommand:KC,GetDomainDetailCommand:ZC,GetDomainSuggestionsCommand:lC,GetOperationDetailCommand:JC,ListDomainsCommand:QC,ListOperationsCommand:MC,ListPricesCommand:BC,ListTagsForDomainCommand:HC,PushDomainCommand:VC,RegisterDomainCommand:kC,RejectDomainTransferFromAnotherAwsAccountCommand:DC,RenewDomainCommand:iC,ResendContactReachabilityEmailCommand:yC,ResendOperationAuthorizationCommand:mC,RetrieveDomainAuthCodeCommand:NC,TransferDomainCommand:qC,TransferDomainToAnotherAwsAccountCommand:vC,UpdateDomainContactCommand:jC,UpdateDomainContactPrivacyCommand:dC,UpdateDomainNameserversCommand:OC,UpdateTagsForDomainCommand:cC,ViewBillingCommand:bC};class hE extends UC{}df(Pu,hE);import{runAction as Xu}from"@stacksjs/actions";import{config as Nk}from"@stacksjs/config";import{Action as Yu}from"@stacksjs/enums";import{err as ow,handleError as gC,ok as E1}from"@stacksjs/error-handling";import{log as Aw}from"@stacksjs/logging";import{path as Ku}from"@stacksjs/path";import{fs as mk}from"@stacksjs/storage";async function DHr(r){const f=new Lw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return ow(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find(($)=>$.Name===`${r}.`);if(!w)return ow(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return ow(`No DNS records found for domain: ${r}`);for(let $ of h.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return await f.deleteHostedZone({Id:w.Id}),Aw.info(`Deleted Hosted Zone for domain: ${r}`),E1("success")}async function iHr(r){const f=new Lw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return ow(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find(($)=>$.Name===`${r}.`);if(!w)return ow(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return ow(`No DNS records found for domain: ${r}`);for(let $ of h.ResourceRecordSets)if($.Type!=="NS"&&$.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:$}]}});return Aw.info(`Deleted DNS records for domain: ${r}`),E1("success")}async function yHr(r){const f=new Lw,w=(await f.listHostedZonesByName({DNSName:r})).HostedZones?.find(($)=>$.Name===`${r}.`);if(w)return E1(w);const h=await f.createHostedZone({Name:r,CallerReference:`${Date.now()}`});if(!h.HostedZone)return ow("Failed to create hosted zone");return E1(h)}function Zu(r){try{const f=Ku.projectConfigPath("dns.ts"),w=mk.readFileSync(f,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${r.map((h)=>`'${h}'`).join(", ")}]`);mk.writeFileSync(f,w,"utf-8"),Aw.info("Nameservers have been set.")}catch(f){console.error("Error updating nameservers:",f)}}async function mHr(r){try{const f=new Lw,{HostedZones:s}=await f.listHostedZonesByName({DNSName:r});if(!s)return gC(`No hosted zones found for domain ${r}`);const w=s[0];if(w&&w.Name===`${r}.`)return E1(w.Id);return E1(null)}catch(f){return console.error(f),gC(`Failed to find hosted zone for domain ${r}`)}}async function lu(r){if(!r)return[];try{return(await new hE().getDomainDetail({DomainName:r}))?.Nameservers?.map((w)=>w.Name)||[]}catch(f){console.error(f),gC("Error getting domain detail")}}async function Ju(r,f){if(!f)f=Nk.app.url;const s=await lu(f);if(s&&r&&JSON.stringify(s.sort())!==JSON.stringify(r.sort()))return Aw.info("Updating your domain nameservers to match the ones in your hosted zone..."),Aw.debug("Hosted zone nameservers:",r),Aw.debug("Domain nameservers:",s),await new hE().updateDomainNameservers({DomainName:f,Nameservers:r.map((h)=>({Name:h}))}),Zu(r),Aw.info("Nameservers updated."),!0;Aw.success("Your nameservers are up to date.")}async function NHr(r){if(!r)r=Nk.app.url;const f=new Lw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return!1;const w=s.HostedZones.find((h)=>h.Name===`${r}.`);if(w){const $=(await f.getHostedZone({Id:w.Id})).DelegationSet?.NameServers||[];return await Ju($,r),!0}return!1}async function qHr(r){return await Xu(Yu.DomainsAdd,r)}export{Zu as writeNameserversToConfig,Ju as updateNameservers,NHr as hasUserDomainBeenAddedToCloud,lu as getNameservers,mHr as findHostedZone,iHr as deleteHostedZoneRecords,DHr as deleteHostedZone,yHr as createHostedZone,qHr as addDomain};
33
+ `),xJ=!0}throw new g("AWS_PROFILE is set, skipping fromEnv provider.",{logger:r.logger,tryNextLink:!0})}return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),VU(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:f,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoSession:E}=r;if(!f&&!s&&!w&&!h&&!E)throw new g("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:r.logger});const{fromSSO:$}=await Promise.resolve().then(() => (QT(),JT));return $(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:f}=await Promise.resolve().then(() => (gJ(),_J));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:f}=await Promise.resolve().then(() => (KG(),YG));return f(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:f}=await Promise.resolve().then(() => (BG(),QG));return f(r)()},async()=>{return r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await K7(r))()},async()=>{throw new g("Could not load credentials from any providers",{tryNextLink:!1,logger:r.logger})}),ox,nx),nx=(r)=>r?.expiration!==void 0,ox=(r)=>r?.expiration!==void 0&&r.expiration.getTime()-Date.now()<300000;var eJ=G(()=>{HU();Lr();rf();Z7()});var O1=G(()=>{eJ()});ew();nw();ow();pw();Ms();var bh=u(Or(),1);Ih();B();ff();Y();var QK=u(lr(),1);as();function s_(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var BK=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},lK=(r)=>{const f=[];switch(r.operation){default:f.push(s_(r))}return f},VK=(r)=>{return{...QK.resolveAwsSdkSigV4Config(r)}};var HK=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53"}},M={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var DK={name:"@aws-sdk/client-route-53",description:"AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53","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 route-53"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-sdk-route53":"3.609.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@aws-sdk/xml-builder":"3.609.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0","@smithy/util-waiter":"^3.1.2",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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-route-53",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53"}};var GQ=u(lr(),1);O1();Ph();Ms();Kh();ff();sf();lw();Zh();Cs();var UQ=u(lr(),1);Y();j0();Mh();x0();Cw();ns();var nJ={["required"]:!1,type:"String"},oJ={["required"]:!0,default:!1,type:"Boolean"},aJ={["ref"]:"Endpoint"},PI={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},$Q={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},cr={},pJ={["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},"aws"]},Oh={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"name"]},kw={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!1]},Z0={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!1]},uJ={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},tJ={["fn"]:"stringEquals",["argv"]:[Oh,"aws-us-gov"]},rQ={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},sQ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},fQ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},wQ=[PI],hQ=[$Q],EQ=[{["ref"]:"Region"}],ax={version:"1.0",parameters:{Region:nJ,UseDualStack:oJ,UseFIPS:oJ,Endpoint:nJ},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[aJ]}],rules:[{conditions:wQ,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:hQ,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:aJ,properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:EQ}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:EQ,assign:"PartitionResult"}],rules:[{conditions:[pJ,kw,Z0],endpoint:{url:"https://route53.amazonaws.com",properties:uJ,headers:cr},type:"endpoint"},{conditions:[pJ,PI,Z0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:uJ,headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Oh,"aws-cn"]},kw,Z0],endpoint:{url:"https://route53.amazonaws.com.cn",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"cn-northwest-1"}]},headers:cr},type:"endpoint"},{conditions:[tJ,kw,Z0],endpoint:rQ,type:"endpoint"},{conditions:[tJ,PI,Z0],endpoint:rQ,type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Oh,"aws-iso"]},kw,Z0],endpoint:{url:"https://route53.c2s.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-iso-east-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Oh,"aws-iso-b"]},kw,Z0],endpoint:{url:"https://route53.sc2s.sgov.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isob-east-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Oh,"aws-iso-e"]},kw,Z0],endpoint:{url:"https://route53.cloud.adc-e.uk",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"eu-isoe-west-1"}]},headers:cr},type:"endpoint"},{conditions:[{["fn"]:"stringEquals",["argv"]:[Oh,"aws-iso-f"]},kw,Z0],endpoint:{url:"https://route53.csp.hci.ic.gov",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-isof-south-1"}]},headers:cr},type:"endpoint"},{conditions:[PI,$Q],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,sQ]},fQ],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:wQ,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[sQ,!0]}],rules:[{endpoint:{url:"https://route53-fips.{Region}.{PartitionResult#dnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:hQ,rules:[{conditions:[fQ],rules:[{endpoint:{url:"https://route53.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53.{Region}.{PartitionResult#dnsSuffix}",properties:cr,headers:cr},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},IQ=ax;var FQ=(r,f={})=>{return es(IQ,{endpointParams:r,logger:f.logger})};pr.aws=os;var TQ=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??ef,base64Encoder:r?.base64Encoder??nf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??FQ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??lK,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new UQ.AwsSdkSigV4Signer}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"Route 53",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??Us,utf8Encoder:r?.utf8Encoder??gf}};Y();Jh();Y();var CQ=(r)=>{jf(process.version);const f=of(r),s=()=>f().then(vf),w=TQ(r);return GQ.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??xf,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??_f({serviceId:w.serviceId,clientVersion:DK.version}),maxAttempts:r?.maxAttempts??t(Df),region:r?.region??t(Zs,Jf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...Nf,default:async()=>(await s()).retryMode||Ds}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??cf,useDualstackEndpoint:r?.useDualstackEndpoint??t(Zf),useFipsEndpoint:r?.useFipsEndpoint??t(Mf)}};Qh();qr();Y();var LQ=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const E=f.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)f.push(h);else f.splice(E,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},AQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var XI=(r)=>r,RQ=(r,f)=>{const s={...XI(af(r)),...XI(df(r)),...XI(Rf(r)),...XI(LQ(r))};return f.forEach((w)=>w.configure(s)),{...r,...pf(s),...Of(s),...Wf(s),...AQ(s)}};class lG extends As{constructor(...[r]){const f=CQ(r||{}),s=HK(f),w=Yf(s),h=kf(w),E=Qf(h),$=zf(E),I=Vf($),F=VK(I),U=RQ(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(bh.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:BK,identityProviderConfigProvider:async(C)=>new bh.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(bh.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();var YI=/^\/(hostedzone|change|delegationset)\//;function px(){return(r)=>async(f)=>{const{ChangeBatch:s}=f.input,w=[];for(let h of s.Changes){const{AliasTarget:E}=h.ResourceRecordSet;if(E)w.push({...h,ResourceRecordSet:{...h.ResourceRecordSet,AliasTarget:{...E,HostedZoneId:E.HostedZoneId.replace(YI,"")}}});else w.push(h)}return r({...f,input:{...f.input,ChangeBatch:{...s,Changes:w}}})}}var ux={step:"initialize",tags:["ROUTE53_IDS","CHANGE_RESOURCE_RECORD_SETS"],name:"changeResourceRecordSetsMiddleware",override:!0},WQ=(r)=>({applyToStack:(f)=>{f.add(px(),ux)}});function re(){return(r)=>async(f)=>{const s={...f.input};for(let w of tx){const h=s[w];if(h)s[w]=h.replace(YI,"")}return r({...f,input:s})}}var tx=["DelegationSetId","HostedZoneId","Id"],se={step:"initialize",tags:["ROUTE53_IDS"],name:"idNormalizerMiddleware",override:!0},m=(r)=>({applyToStack:(f)=>{f.add(re(),se)}});B();V();Y();var _=u(lr(),1);function zQ(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function SQ(r){return r.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class VG{constructor(r){this.value=r}toString(){return SQ(""+this.value)}}class H{static of(r,f,s){const w=new H(r);if(f!==void 0)w.addChildNode(new VG(f));if(s!==void 0)w.withName(s);return w}constructor(r,f=[]){this.name=r,this.children=f,this.attributes={}}withName(r){return this.name=r,this}addAttribute(r,f){return this.attributes[r]=f,this}addChildNode(r){return this.children.push(r),this}removeAttribute(r){return delete this.attributes[r],this}n(r){return this.name=r,this}c(r){return this.children.push(r),this}a(r,f){if(f!=null)this.attributes[r]=f;return this}cc(r,f,s=f){if(r[f]!=null){const w=H.of(f,r[f]).withName(s);this.c(w)}}l(r,f,s,w){if(r[f]!=null)w().map((E)=>{E.withName(s),this.c(E)})}lc(r,f,s,w){if(r[f]!=null){const h=w(),E=new H(s);h.map(($)=>{E.c($)}),this.c(E)}}toString(){const r=Boolean(this.children.length);let f=`<${this.name}`;const s=this.attributes;for(let w of Object.keys(s)){const h=s[w];if(h!=null)f+=` ${w}="${zQ(""+h)}"`}return f+=!r?"/>":`>${this.children.map((w)=>w.toString()).join("")}</${this.name}>`}}var O=u(Or(),1);Y();Y();class i extends ks{constructor(r){super(r);Object.setPrototypeOf(this,i.prototype)}}class KI extends i{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,KI.prototype)}}class ZI extends i{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,ZI.prototype)}}class MI extends i{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,MI.prototype)}}class JI extends i{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,JI.prototype)}}class QI extends i{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,QI.prototype)}}class BI extends i{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,BI.prototype)}}class lI extends i{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,lI.prototype)}}class VI extends i{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,VI.prototype)}}class HI extends i{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,HI.prototype)}}class DI extends i{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,DI.prototype)}}class kI extends i{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,kI.prototype)}}class NI extends i{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,NI.prototype)}}class yI extends i{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,yI.prototype)}}class qI extends i{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,qI.prototype),this.Message=r.Message}}class mI extends i{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,mI.prototype),this.Message=r.Message}}class vI extends i{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,vI.prototype),this.Message=r.Message}}class jI extends i{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,jI.prototype),this.messages=r.messages}}class iI extends i{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class dI extends i{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,dI.prototype)}}class OI extends i{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,OI.prototype),this.Message=r.Message}}class bI extends i{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,bI.prototype)}}class cI extends i{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,cI.prototype)}}class _I extends i{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,_I.prototype)}}class gI extends i{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,gI.prototype)}}class xI extends i{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,xI.prototype)}}class eI extends i{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,eI.prototype)}}class nI extends i{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,nI.prototype)}}class oI extends i{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,oI.prototype)}}class aI extends i{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,aI.prototype)}}class pI extends i{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,pI.prototype)}}class uI extends i{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,uI.prototype)}}class tI extends i{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,tI.prototype)}}class r2 extends i{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,r2.prototype)}}class s2 extends i{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}}class f2 extends i{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}class w2 extends i{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,w2.prototype)}}class h2 extends i{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,h2.prototype)}}class E2 extends i{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,E2.prototype)}}class $2 extends i{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,$2.prototype)}}class I2 extends i{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,I2.prototype)}}class F2 extends i{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,F2.prototype)}}class U2 extends i{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,U2.prototype)}}class T2 extends i{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,T2.prototype)}}class G2 extends i{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,G2.prototype)}}class C2 extends i{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,C2.prototype)}}class L2 extends i{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,L2.prototype)}}class A2 extends i{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,A2.prototype)}}class R2 extends i{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,R2.prototype)}}class W2 extends i{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,W2.prototype),this.Message=r.Message}}class z2 extends i{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,z2.prototype)}}class S2 extends i{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,S2.prototype)}}class P2 extends i{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,P2.prototype)}}class X2 extends i{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,X2.prototype)}}class Y2 extends i{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,Y2.prototype)}}class K2 extends i{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,K2.prototype)}}class Z2 extends i{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,Z2.prototype)}}class M2 extends i{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class J2 extends i{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,J2.prototype)}}class Q2 extends i{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class B2 extends i{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,B2.prototype)}}class l2 extends i{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,l2.prototype)}}class V2 extends i{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class H2 extends i{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class D2 extends i{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class k2 extends i{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,k2.prototype)}}class N2 extends i{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,N2.prototype),this.Message=r.Message}}class y2 extends i{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class q2 extends i{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class m2 extends i{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}var QQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/activate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},BQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/associatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const E=new H(jo);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)E.c(H.of(vo,r[Ur]).n(Ur));if(r[Rr]!=null)E.c(oE(r[Rr],f).n(Rr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},lQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const E=new H(co);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.lc(r,"Changes","Changes",()=>Zn(r[AV],f)),r[v2]!=null)E.c(H.of(v2,String(r[v2])).n(v2));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},VQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const E=new H(sa);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[i2]!=null)E.c(Xn(r[i2],f).n(i2));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},HQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;h=Hr;const E=new H(fa);return E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.lc(r,"AddTags","AddTags",()=>vn(r[mo],f)),E.lc(r,"RemoveTagKeys","RemoveTagKeys",()=>mn(r[ka],f)),h+=E.toString(),s.m("POST").h(w).b(h),s.build()},DQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/cidrcollection");let h;h=Hr;const E=new H(_o);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)E.c(H.of(po,r[Pr]).n(Pr));if(r[n]!=null)E.c(H.of(uo,r[n]).n(n));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},kQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck");let h;h=Hr;const E=new H(go);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)E.c(H.of(Wa,r[Pr]).n(Pr));if(r[_w]!=null)E.c(Vn(r[_w],f).n(_w));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},NQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone");let h;h=Hr;const E=new H(xo);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)E.c(H.of(j6,r[Pr]).n(Pr));if(r[O2]!=null)E.c(H.of(E0,r[O2]).n(O2));if(r[b2]!=null)E.c(Hn(r[b2],f).n(b2));if(r[n]!=null)E.c(H.of(Gf,r[n]).n(n));if(r[Rr]!=null)E.c(oE(r[Rr],f).n(Rr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},yQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/keysigningkey");let h;h=Hr;const E=new H(eo);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)E.c(H.of(j6,r[Pr]).n(Pr));if(r[sr]!=null)E.c(H.of(E0,r[sr]).n(sr));if(r[aG]!=null)E.c(H.of(ma,r[aG]).n(aG));if(r[n]!=null)E.c(H.of(qa,r[n]).n(n));if(r[hs]!=null)E.c(H.of(va,r[hs]).n(hs));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},qQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/queryloggingconfig");let h;h=Hr;const E=new H(to);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.cc(r,d2),r[sr]!=null)E.c(H.of(E0,r[sr]).n(sr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},mQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/delegationset");let h;h=Hr;const E=new H(ra);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Pr]!=null)E.c(H.of(j6,r[Pr]).n(Pr));if(r[sr]!=null)E.c(H.of(E0,r[sr]).n(sr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},vQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy");let h;h=Hr;const E=new H(ha);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)E.c(H.of(d6,r[Ur]).n(Ur));if(r[J0]!=null)E.c(H.of(zV,r[J0]).n(J0));if(r[n]!=null)E.c(H.of(ba,r[n]).n(n));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},jQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance");let h;h=Hr;const E=new H(wa);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[sr]!=null)E.c(H.of(E0,r[sr]).n(sr));if(r[n]!=null)E.c(H.of(Gf,r[n]).n(n));if(r[jr]!=null)E.c(H.of(jr,String(r[jr])).n(jr));if(E.cc(r,s1),r[is]!=null)E.c(H.of(is,String(r[is])).n(is));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},iQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const E=new H(Ea);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)E.c(H.of(d6,r[Ur]).n(Ur));if(r[J0]!=null)E.c(H.of(zV,r[J0]).n(J0));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},dQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const E=new H($a);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Rr]!=null)E.c(oE(r[Rr],f).n(Rr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},OQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}/deactivate"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("POST").h(w).b(h),s.build()},bQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},cQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},_Q=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},gQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/keysigningkey/{HostedZoneId}/{Name}"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1),s.p("Name",()=>r.Name,"{Name}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},xQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},eQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},nQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},oQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("DELETE").h(w).b(h),s.build()},aQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/deauthorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const E=new H(Fa);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Rr]!=null)E.c(oE(r[Rr],f).n(Rr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},pQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},uQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/disassociatevpc"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;h=Hr;const E=new H(Ta);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)E.c(H.of(Ua,r[Ur]).n(Ur));if(r[Rr]!=null)E.c(oE(r[Rr],f).n(Rr));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},tQ=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/enable-dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("POST").h(w).b(h),s.build()},rB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/accountlimit/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1);let h;return s.m("GET").h(w).b(h),s.build()},sB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/change/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},fB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/checkeripranges");let h;return s.m("GET").h(w).b(h),s.build()},wB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/dnssec"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},hB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocation");const h=P({[aa]:[,r[w0]],[pa]:[,r[h0]],[Fp]:[,r[$0]]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},EB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},$B=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheckcount");let h;return s.m("GET").h(w).b(h),s.build()},IB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},FB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck/{HealthCheckId}/status"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},UB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},TB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonecount");let h;return s.m("GET").h(w).b(h),s.build()},GB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonelimit/{HostedZoneId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},CB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},LB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},AB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/reusabledelegationsetlimit/{DelegationSetId}/{Type}"),s.p("Type",()=>r.Type,"{Type}",!1),s.p("DelegationSetId",()=>r.DelegationSetId,"{DelegationSetId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},RB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;return s.m("GET").h(w).b(h),s.build()},WB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;return s.m("GET").h(w).b(h),s.build()},zB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstancecount");let h;return s.m("GET").h(w).b(h),s.build()},SB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}/cidrblocks"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[I0]:[,r[ar]],[w1]:[,r[Xr]],[r$]:[()=>r.MaxResults!==void 0,()=>r[uE].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},PB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection");const h=P({[w1]:[,r[Xr]],[r$]:[()=>r.MaxResults!==void 0,()=>r[uE].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},XB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/cidrcollection/{CollectionId}"),s.p("CollectionId",()=>r.CollectionId,"{CollectionId}",!1);const h=P({[w1]:[,r[Xr]],[r$]:[()=>r.MaxResults!==void 0,()=>r[uE].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},YB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/geolocations");const h=P({[Up]:[,r[Na]],[Tp]:[,r[ya]],[Gp]:[,r[Oa]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},KB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/healthcheck");const h=P({[O6]:[,r[ds]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},ZB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone");const h=P({[O6]:[,r[ds]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[ua]:[,r[O2]],[fp]:[,r[Pa]]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},MB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyname");const h=P({[ta]:[,r[Gf]],[tE]:[,r[sr]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},JB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzonesbyvpc");const h=P({[Rp]:[,y(r[eE],"VPCId")],[zp]:[,y(r[nE],"VPCRegion")],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()],[w1]:[,r[Xr]]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},QB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/queryloggingconfig");const h=P({[tE]:[,r[sr]],[w1]:[,r[Xr]],[r$]:[()=>r.MaxResults!==void 0,()=>r[uE].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},BB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/rrset"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[hp]:[,r[ia]],[Cp]:[,r[da]],[wp]:[,r[ja]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},lB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/delegationset");const h=P({[O6]:[,r[ds]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},VB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/tags/{ResourceType}/{ResourceId}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1),s.p("ResourceId",()=>r.ResourceId,"{ResourceId}",!1);let h;return s.m("GET").h(w).b(h),s.build()},HB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/tags/{ResourceType}"),s.p("ResourceType",()=>r.ResourceType,"{ResourceType}",!1);let h;h=Hr;const E=new H(Ya);return E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),E.lc(r,"ResourceIds","ResourceIds",()=>jn(r[Ja],f)),h+=E.toString(),s.m("POST").h(w).b(h),s.build()},DB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies");const h=P({[Lp]:[,r[a2]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},kB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances");const h=P({[tE]:[,r[Ew]],[b6]:[,r[Os]],[c6]:[,r[bs]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},NB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/hostedzone");const h=P({[SV]:[,y(r[sr],"HostedZoneId")],[b6]:[,r[Os]],[c6]:[,r[bs]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},yB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicyinstances/trafficpolicy");const h=P({[SV]:[,y(r[s1],"TrafficPolicyId")],[Wp]:[y(r.TrafficPolicyVersion,"TrafficPolicyVersion")!=null,()=>r[is].toString()],[tE]:[,r[Ew]],[b6]:[,r[Os]],[c6]:[,r[bs]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},qB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies/{Id}/versions"),s.p("Id",()=>r.Id,"{Id}",!1);const h=P({[Ap]:[,r[p2]],[_s]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},mB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/hostedzone/{HostedZoneId}/authorizevpcassociation"),s.p("HostedZoneId",()=>r.HostedZoneId,"{HostedZoneId}",!1);const h=P({[w1]:[,r[Xr]],[r$]:[()=>r.MaxResults!==void 0,()=>r[uE].toString()]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},vB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/testdnsanswer");const h=P({[tE]:[,y(r[sr],"HostedZoneId")],[Ep]:[,y(r[e2],"RecordName")],[$p]:[,y(r[n2],"RecordType")],[Ip]:[,r[Ma]],[rp]:[,r[Ga]],[sp]:[,r[Ca]]});let E;return s.m("GET").h(w).q(h).b(E),s.build()},jB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/healthcheck/{HealthCheckId}"),s.p("HealthCheckId",()=>r.HealthCheckId,"{HealthCheckId}",!1);let h;h=Hr;const E=new H(ga);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[f0]!=null)E.c(hV(r[f0],f).n(f0));if(E.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>EV(r[Nw],f)),r[Ef]!=null)E.c(H.of(Ef,String(r[Ef])).n(Ef));if(r[$f]!=null)E.c(H.of($f,String(r[$f])).n($f));if(r[If]!=null)E.c(H.of(If,String(r[If])).n(If));if(E.cc(r,dE),r[mw]!=null)E.c(H.of(mw,String(r[mw])).n(mw));if(r[Ff]!=null)E.c(H.of(Ff,String(r[Ff])).n(Ff));if(E.cc(r,$w),E.cc(r,cE),r[Uf]!=null)E.c(H.of(Uf,String(r[Uf])).n(Uf));if(r[Tf]!=null)E.c(H.of(Tf,String(r[Tf])).n(Tf));return E.lc(r,"Regions","Regions",()=>$V(r[yw],f)),E.lc(r,"ResetElements","ResetElements",()=>Dn(r[Za],f)),E.cc(r,_E),E.cc(r,xE),h+=E.toString(),s.m("POST").h(w).b(h),s.build()},iB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/hostedzone/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const E=new H(xa);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)E.c(H.of(i6,r[Ur]).n(Ur));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},dB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicy/{Id}/{Version}"),s.p("Id",()=>r.Id,"{Id}",!1),s.p("Version",()=>r.Version.toString(),"{Version}",!1);let h;h=Hr;const E=new H(ea);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[Ur]!=null)E.c(H.of(d6,r[Ur]).n(Ur));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},OB=async(r,f)=>{const s=O.requestBuilder(r,f),w={"content-type":"application/xml"};s.bp("/2013-04-01/trafficpolicyinstance/{Id}"),s.p("Id",()=>r.Id,"{Id}",!1);let h;h=Hr;const E=new H(na);if(E.a("xmlns","https://route53.amazonaws.com/doc/2013-04-01/"),r[jr]!=null)E.c(H.of(jr,String(r[jr])).n(jr));if(E.cc(r,s1),r[is]!=null)E.c(H.of(is,String(r[is])).n(is));return h+=E.toString(),s.m("POST").h(w).b(h),s.build()},bB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},cB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},_B=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Gr]!=null)s[Gr]=T(w[Gr]);return s},gB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},xB=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},eB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[vG]!=null)s[vG]=en(w[vG],f);return s},nB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Cf]!=null)s[Cf]=sF(w[Cf],f);return s},oB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);if(w[Ts]!=null)s[Ts]=aE(w[Ts],f);if(w[Ss]!=null)s[Ss]=fF(w[Ss],f);if(w[Rr]!=null)s[Rr]=v6(w[Rr],f);return s},aB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);if(w[pG]!=null)s[pG]=TV(w[pG],f);return s},pB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Iw]!=null)s[Iw]=q6(w[Iw],f);return s},uB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Ts]!=null)s[Ts]=aE(w[Ts],f);return s},tB=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=pE(w[Gs],f);return s},rl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=wF(w[Es],f);return s},sl=async(r,f)=>{if(r.statusCode!==201&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r),[V0]:[,r.headers[I0]]}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=pE(w[Gs],f);return s},fl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[sr]!=null)s[sr]=T(w[sr]);if(w[Rr]!=null)s[Rr]=v6(w[Rr],f);return s},wl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},hl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},El=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},$l=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},Il=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},Fl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},Ul=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},Tl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},Gl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},Cl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)});return await gr(r.body,f),s},Ll=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},Al=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},Rl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},Wl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[M0]!=null)s[M0]=xr(w[M0]);if(w[Q0]!=null)s[Q0]=dn(w[Q0],f);return s},zl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[wr]!=null)s[wr]=cs(w[wr],f);return s},Sl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.CheckerIpRanges==="")s[ZE]=[];else if(w[ZE]!=null&&w[ZE][Lf]!=null)s[ZE]=cn(Cr(w[ZE][Lf]),f);return s},Pl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.KeySigningKeys==="")s[HE]=[];else if(w[HE]!=null&&w[HE][Lf]!=null)s[HE]=zo(Cr(w[HE][Lf]),f);if(w[hs]!=null)s[hs]=wo(w[hs],f);return s},Xl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[OE]!=null)s[OE]=IV(w[OE],f);return s},Yl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Cf]!=null)s[Cf]=sF(w[Cf],f);return s},Kl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[eG]!=null)s[eG]=xr(w[eG]);return s},Zl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[tf]=[];else if(w[tf]!=null&&w[tf][u2]!=null)s[tf]=FV(Cr(w[tf][u2]),f);return s},Ml=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.HealthCheckObservations==="")s[tf]=[];else if(w[tf]!=null&&w[tf][u2]!=null)s[tf]=FV(Cr(w[tf][u2]),f);return s},Jl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Ts]!=null)s[Ts]=aE(w[Ts],f);if(w[Ss]!=null)s[Ss]=fF(w[Ss],f);if(w.VPCs==="")s[s0]=[];else if(w[s0]!=null&&w[s0][Rr]!=null)s[s0]=LV(Cr(w[s0][Rr]),f);return s},Ql=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[nG]!=null)s[nG]=xr(w[nG]);return s},Bl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[M0]!=null)s[M0]=xr(w[M0]);if(w[Q0]!=null)s[Q0]=Lo(w[Q0],f);return s},ll=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Iw]!=null)s[Iw]=q6(w[Iw],f);return s},Vl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Ts]!=null)s[Ts]=aE(w[Ts],f);return s},Hl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[M0]!=null)s[M0]=xr(w[M0]);if(w[Q0]!=null)s[Q0]=Bo(w[Q0],f);return s},Dl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=pE(w[Gs],f);return s},kl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=wF(w[Es],f);return s},Nl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[D6]!=null)s[D6]=Er(w[D6]);return s},yl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.CidrBlocks==="")s[YE]=[];else if(w[YE]!=null&&w[YE][Lf]!=null)s[YE]=gn(Cr(w[YE][Lf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},ql=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.CidrCollections==="")s[KE]=[];else if(w[KE]!=null&&w[KE][Lf]!=null)s[KE]=an(Cr(w[KE][Lf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},ml=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.CidrLocations==="")s[ME]=[];else if(w[ME]!=null&&w[ME][Lf]!=null)s[ME]=So(Cr(w[ME][Lf]),f);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},vl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.GeoLocationDetailsList==="")s[BE]=[];else if(w[BE]!=null&&w[BE][OE]!=null)s[BE]=$o(Cr(w[BE][OE]),f);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[f6]!=null)s[f6]=T(w[f6]);if(w[w6]!=null)s[w6]=T(w[w6]);if(w[U6]!=null)s[U6]=T(w[U6]);return s},jl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.HealthChecks==="")s[lE]=[];else if(w[lE]!=null&&w[lE][Cf]!=null)s[lE]=Go(Cr(w[lE][Cf]),f);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[ds]!=null)s[ds]=T(w[ds]);if(w[a]!=null)s[a]=Er(w[a]);if(w[B0]!=null)s[B0]=T(w[B0]);return s},il=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.HostedZones==="")s[r0]=[];else if(w[r0]!=null&&w[r0][Ss]!=null)s[r0]=UV(Cr(w[r0][Ss]),f);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[ds]!=null)s[ds]=T(w[ds]);if(w[a]!=null)s[a]=Er(w[a]);if(w[B0]!=null)s[B0]=T(w[B0]);return s},dl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Gf]!=null)s[Gf]=T(w[Gf]);if(w[sr]!=null)s[sr]=T(w[sr]);if(w.HostedZones==="")s[r0]=[];else if(w[r0]!=null&&w[r0][Ss]!=null)s[r0]=UV(Cr(w[r0][Ss]),f);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[h6]!=null)s[h6]=T(w[h6]);if(w[E6]!=null)s[E6]=T(w[E6]);return s},Ol=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.HostedZoneSummaries==="")s[VE]=[];else if(w[VE]!=null&&w[VE][YQ]!=null)s[VE]=Ro(Cr(w[VE][YQ]),f);if(w[a]!=null)s[a]=Er(w[a]);if(w[Xr]!=null)s[Xr]=T(w[Xr]);return s},bl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Xr]!=null)s[Xr]=T(w[Xr]);if(w.QueryLoggingConfigs==="")s[kE]=[];else if(w[kE]!=null&&w[kE][Iw]!=null)s[kE]=Xo(Cr(w[kE][Iw]),f);return s},cl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[$6]!=null)s[$6]=T(w[$6]);if(w[I6]!=null)s[I6]=T(w[I6]);if(w[F6]!=null)s[F6]=T(w[F6]);if(w.ResourceRecordSets==="")s[yE]=[];else if(w[yE]!=null&&w[yE][uh]!=null)s[yE]=Jo(Cr(w[yE][uh]),f);return s},_l=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.DelegationSets==="")s[JE]=[];else if(w[JE]!=null&&w[JE][Ts]!=null)s[JE]=ro(Cr(w[JE][Ts]),f);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[ds]!=null)s[ds]=T(w[ds]);if(w[a]!=null)s[a]=Er(w[a]);if(w[B0]!=null)s[B0]=T(w[B0]);return s},gl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[gE]!=null)s[gE]=CV(w[gE],f);return s},xl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w.ResourceTagSets==="")s[qE]=[];else if(w[qE]!=null&&w[qE][gE]!=null)s[qE]=Qo(Cr(w[qE][gE]),f);return s},el=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[a2]!=null)s[a2]=T(w[a2]);if(w.TrafficPolicySummaries==="")s[mE]=[];else if(w[mE]!=null&&w[mE][JQ]!=null)s[mE]=ko(Cr(w[mE][JQ]),f);return s},nl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Ew]!=null)s[Ew]=T(w[Ew]);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[Os]!=null)s[Os]=T(w[Os]);if(w[bs]!=null)s[bs]=T(w[bs]);if(w.TrafficPolicyInstances==="")s[ws]=[];else if(w[ws]!=null&&w[ws][Es]!=null)s[ws]=m6(Cr(w[ws][Es]),f);return s},ol=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[Os]!=null)s[Os]=T(w[Os]);if(w[bs]!=null)s[bs]=T(w[bs]);if(w.TrafficPolicyInstances==="")s[ws]=[];else if(w[ws]!=null&&w[ws][Es]!=null)s[ws]=m6(Cr(w[ws][Es]),f);return s},al=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Ew]!=null)s[Ew]=T(w[Ew]);if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w[Os]!=null)s[Os]=T(w[Os]);if(w[bs]!=null)s[bs]=T(w[bs]);if(w.TrafficPolicyInstances==="")s[ws]=[];else if(w[ws]!=null&&w[ws][Es]!=null)s[ws]=m6(Cr(w[ws][Es]),f);return s},pl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Tr]!=null)s[Tr]=yr(w[Tr]);if(w[a]!=null)s[a]=Er(w[a]);if(w.TrafficPolicies==="")s[vE]=[];else if(w[vE]!=null&&w[vE][Gs]!=null)s[vE]=Do(Cr(w[vE][Gs]),f);if(w[p2]!=null)s[p2]=T(w[p2]);return s},ul=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[sr]!=null)s[sr]=T(w[sr]);if(w[Xr]!=null)s[Xr]=T(w[Xr]);if(w.VPCs==="")s[s0]=[];else if(w[s0]!=null&&w[s0][Rr]!=null)s[s0]=LV(Cr(w[s0][Rr]),f);return s},tl=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[T6]!=null)s[T6]=T(w[T6]);if(w[z6]!=null)s[z6]=T(w[z6]);if(w.RecordData==="")s[NE]=[];else if(w[NE]!=null&&w[NE][ZQ]!=null)s[NE]=Yo(Cr(w[NE][ZQ]),f);if(w[e2]!=null)s[e2]=T(w[e2]);if(w[n2]!=null)s[n2]=T(w[n2]);if(w[S6]!=null)s[S6]=T(w[S6]);return s},rV=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Cf]!=null)s[Cf]=sF(w[Cf],f);return s},sV=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Ss]!=null)s[Ss]=fF(w[Ss],f);return s},fV=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Gs]!=null)s[Gs]=pE(w[Gs],f);return s},wV=async(r,f)=>{if(r.statusCode!==200&&r.statusCode>=300)return b(r,f);const s=P({$metadata:J(r)}),w=y(d(await _.parseXmlBody(r.body,f)),"body");if(w[Es]!=null)s[Es]=wF(w[Es],f);return s},b=async(r,f)=>{const s={...r,body:await _.parseXmlErrorBody(r.body,f)},w=_.loadRestXmlErrorCode(r,s.body);switch(w){case"ConcurrentModification":case"com.amazonaws.route53#ConcurrentModification":throw await Ie(s,f);case"InvalidInput":case"com.amazonaws.route53#InvalidInput":throw await Ve(s,f);case"InvalidKMSArn":case"com.amazonaws.route53#InvalidKMSArn":throw await ke(s,f);case"InvalidKeySigningKeyStatus":case"com.amazonaws.route53#InvalidKeySigningKeyStatus":throw await De(s,f);case"InvalidSigningStatus":case"com.amazonaws.route53#InvalidSigningStatus":throw await ye(s,f);case"NoSuchKeySigningKey":case"com.amazonaws.route53#NoSuchKeySigningKey":throw await pe(s,f);case"ConflictingDomainExists":case"com.amazonaws.route53#ConflictingDomainExists":throw await Fe(s,f);case"InvalidVPCId":case"com.amazonaws.route53#InvalidVPCId":throw await me(s,f);case"LimitsExceeded":case"com.amazonaws.route53#LimitsExceeded":throw await be(s,f);case"NoSuchHostedZone":case"com.amazonaws.route53#NoSuchHostedZone":throw await ae(s,f);case"NotAuthorizedException":case"com.amazonaws.route53#NotAuthorizedException":throw await sn(s,f);case"PriorRequestNotComplete":case"com.amazonaws.route53#PriorRequestNotComplete":throw await fn(s,f);case"PublicZoneVPCAssociation":case"com.amazonaws.route53#PublicZoneVPCAssociation":throw await wn(s,f);case"CidrBlockInUseException":case"com.amazonaws.route53#CidrBlockInUseException":throw await we(s,f);case"CidrCollectionVersionMismatchException":case"com.amazonaws.route53#CidrCollectionVersionMismatchException":throw await $e(s,f);case"NoSuchCidrCollectionException":case"com.amazonaws.route53#NoSuchCidrCollectionException":throw await _e(s,f);case"InvalidChangeBatch":case"com.amazonaws.route53#InvalidChangeBatch":throw await Be(s,f);case"NoSuchHealthCheck":case"com.amazonaws.route53#NoSuchHealthCheck":throw await oe(s,f);case"ThrottlingException":case"com.amazonaws.route53#ThrottlingException":throw await En(s,f);case"CidrCollectionAlreadyExistsException":case"com.amazonaws.route53#CidrCollectionAlreadyExistsException":throw await he(s,f);case"HealthCheckAlreadyExists":case"com.amazonaws.route53#HealthCheckAlreadyExists":throw await We(s,f);case"TooManyHealthChecks":case"com.amazonaws.route53#TooManyHealthChecks":throw await $n(s,f);case"DelegationSetNotAvailable":case"com.amazonaws.route53#DelegationSetNotAvailable":throw await Le(s,f);case"DelegationSetNotReusable":case"com.amazonaws.route53#DelegationSetNotReusable":throw await Ae(s,f);case"HostedZoneAlreadyExists":case"com.amazonaws.route53#HostedZoneAlreadyExists":throw await Pe(s,f);case"InvalidDomainName":case"com.amazonaws.route53#InvalidDomainName":throw await le(s,f);case"NoSuchDelegationSet":case"com.amazonaws.route53#NoSuchDelegationSet":throw await ee(s,f);case"TooManyHostedZones":case"com.amazonaws.route53#TooManyHostedZones":throw await In(s,f);case"InvalidArgument":case"com.amazonaws.route53#InvalidArgument":throw await Qe(s,f);case"InvalidKeySigningKeyName":case"com.amazonaws.route53#InvalidKeySigningKeyName":throw await He(s,f);case"KeySigningKeyAlreadyExists":case"com.amazonaws.route53#KeySigningKeyAlreadyExists":throw await ve(s,f);case"TooManyKeySigningKeys":case"com.amazonaws.route53#TooManyKeySigningKeys":throw await Fn(s,f);case"InsufficientCloudWatchLogsResourcePolicy":case"com.amazonaws.route53#InsufficientCloudWatchLogsResourcePolicy":throw await Je(s,f);case"NoSuchCloudWatchLogsLogGroup":case"com.amazonaws.route53#NoSuchCloudWatchLogsLogGroup":throw await xe(s,f);case"QueryLoggingConfigAlreadyExists":case"com.amazonaws.route53#QueryLoggingConfigAlreadyExists":throw await hn(s,f);case"DelegationSetAlreadyCreated":case"com.amazonaws.route53#DelegationSetAlreadyCreated":throw await Te(s,f);case"DelegationSetAlreadyReusable":case"com.amazonaws.route53#DelegationSetAlreadyReusable":throw await Ge(s,f);case"HostedZoneNotFound":case"com.amazonaws.route53#HostedZoneNotFound":throw await Ye(s,f);case"InvalidTrafficPolicyDocument":case"com.amazonaws.route53#InvalidTrafficPolicyDocument":throw await qe(s,f);case"TooManyTrafficPolicies":case"com.amazonaws.route53#TooManyTrafficPolicies":throw await Un(s,f);case"TrafficPolicyAlreadyExists":case"com.amazonaws.route53#TrafficPolicyAlreadyExists":throw await Ln(s,f);case"NoSuchTrafficPolicy":case"com.amazonaws.route53#NoSuchTrafficPolicy":throw await te(s,f);case"TooManyTrafficPolicyInstances":case"com.amazonaws.route53#TooManyTrafficPolicyInstances":throw await Tn(s,f);case"TrafficPolicyInstanceAlreadyExists":case"com.amazonaws.route53#TrafficPolicyInstanceAlreadyExists":throw await An(s,f);case"TooManyTrafficPolicyVersionsForCurrentPolicy":case"com.amazonaws.route53#TooManyTrafficPolicyVersionsForCurrentPolicy":throw await Gn(s,f);case"TooManyVPCAssociationAuthorizations":case"com.amazonaws.route53#TooManyVPCAssociationAuthorizations":throw await Cn(s,f);case"KeySigningKeyInParentDSRecord":case"com.amazonaws.route53#KeySigningKeyInParentDSRecord":throw await je(s,f);case"KeySigningKeyInUse":case"com.amazonaws.route53#KeySigningKeyInUse":throw await ie(s,f);case"CidrCollectionInUseException":case"com.amazonaws.route53#CidrCollectionInUseException":throw await Ee(s,f);case"HealthCheckInUse":case"com.amazonaws.route53#HealthCheckInUse":throw await ze(s,f);case"HostedZoneNotEmpty":case"com.amazonaws.route53#HostedZoneNotEmpty":throw await Xe(s,f);case"NoSuchQueryLoggingConfig":case"com.amazonaws.route53#NoSuchQueryLoggingConfig":throw await ue(s,f);case"DelegationSetInUse":case"com.amazonaws.route53#DelegationSetInUse":throw await Ce(s,f);case"TrafficPolicyInUse":case"com.amazonaws.route53#TrafficPolicyInUse":throw await Rn(s,f);case"NoSuchTrafficPolicyInstance":case"com.amazonaws.route53#NoSuchTrafficPolicyInstance":throw await rn(s,f);case"VPCAssociationAuthorizationNotFound":case"com.amazonaws.route53#VPCAssociationAuthorizationNotFound":throw await Wn(s,f);case"DNSSECNotFound":case"com.amazonaws.route53#DNSSECNotFound":throw await Re(s,f);case"LastVPCAssociation":case"com.amazonaws.route53#LastVPCAssociation":throw await Oe(s,f);case"VPCAssociationNotFound":case"com.amazonaws.route53#VPCAssociationNotFound":throw await zn(s,f);case"HostedZonePartiallyDelegated":case"com.amazonaws.route53#HostedZonePartiallyDelegated":throw await Ze(s,f);case"KeySigningKeyWithActiveStatusNotFound":case"com.amazonaws.route53#KeySigningKeyWithActiveStatusNotFound":throw await de(s,f);case"NoSuchChange":case"com.amazonaws.route53#NoSuchChange":throw await ce(s,f);case"NoSuchGeoLocation":case"com.amazonaws.route53#NoSuchGeoLocation":throw await ne(s,f);case"IncompatibleVersion":case"com.amazonaws.route53#IncompatibleVersion":throw await Me(s,f);case"HostedZoneNotPrivate":case"com.amazonaws.route53#HostedZoneNotPrivate":throw await Ke(s,f);case"NoSuchCidrLocationException":case"com.amazonaws.route53#NoSuchCidrLocationException":throw await ge(s,f);case"InvalidPaginationToken":case"com.amazonaws.route53#InvalidPaginationToken":throw await Ne(s,f);case"HealthCheckVersionMismatch":case"com.amazonaws.route53#HealthCheckVersionMismatch":throw await Se(s,f);case"ConflictingTypes":case"com.amazonaws.route53#ConflictingTypes":throw await Ue(s,f);default:const h=s.body;return fe({output:r,parsedBody:h.Error,errorCode:w})}},fe=mf(i),we=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new qI({$metadata:J(r),...s});return D(h,r.body.Error)},he=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new OI({$metadata:J(r),...s});return D(h,r.body.Error)},Ee=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new W2({$metadata:J(r),...s});return D(h,r.body.Error)},$e=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new mI({$metadata:J(r),...s});return D(h,r.body.Error)},Ie=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new KI({$metadata:J(r),...s});return D(h,r.body.Error)},Fe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new lI({$metadata:J(r),...s});return D(h,r.body.Error)},Ue=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new m2({$metadata:J(r),...s});return D(h,r.body.Error)},Te=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new w2({$metadata:J(r),...s});return D(h,r.body.Error)},Ge=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new h2({$metadata:J(r),...s});return D(h,r.body.Error)},Ce=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new X2({$metadata:J(r),...s});return D(h,r.body.Error)},Le=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new _I({$metadata:J(r),...s});return D(h,r.body.Error)},Ae=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new gI({$metadata:J(r),...s});return D(h,r.body.Error)},Re=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new M2({$metadata:J(r),...s});return D(h,r.body.Error)},We=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new bI({$metadata:J(r),...s});return D(h,r.body.Error)},ze=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new z2({$metadata:J(r),...s});return D(h,r.body.Error)},Se=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new q2({$metadata:J(r),...s});return D(h,r.body.Error)},Pe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new xI({$metadata:J(r),...s});return D(h,r.body.Error)},Xe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new S2({$metadata:J(r),...s});return D(h,r.body.Error)},Ye=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new E2({$metadata:J(r),...s});return D(h,r.body.Error)},Ke=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new k2({$metadata:J(r),...s});return D(h,r.body.Error)},Ze=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new B2({$metadata:J(r),...s});return D(h,r.body.Error)},Me=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new D2({$metadata:J(r),...s});return D(h,r.body.Error)},Je=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new r2({$metadata:J(r),...s});return D(h,r.body.Error)},Qe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new aI({$metadata:J(r),...s});return D(h,r.body.Error)},Be=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);if(w.messages==="")s[iE]=[];else if(w[iE]!=null&&w[iE][Zr]!=null)s[iE]=ho(Cr(w[iE][Zr]),f);const h=new jI({$metadata:J(r),...s});return D(h,r.body.Error)},le=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new eI({$metadata:J(r),...s});return D(h,r.body.Error)},Ve=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new ZI({$metadata:J(r),...s});return D(h,r.body.Error)},He=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new pI({$metadata:J(r),...s});return D(h,r.body.Error)},De=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new MI({$metadata:J(r),...s});return D(h,r.body.Error)},ke=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new JI({$metadata:J(r),...s});return D(h,r.body.Error)},Ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new y2({$metadata:J(r),...s});return D(h,r.body.Error)},ye=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new QI({$metadata:J(r),...s});return D(h,r.body.Error)},qe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new $2({$metadata:J(r),...s});return D(h,r.body.Error)},me=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new VI({$metadata:J(r),...s});return D(h,r.body.Error)},ve=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new uI({$metadata:J(r),...s});return D(h,r.body.Error)},je=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new A2({$metadata:J(r),...s});return D(h,r.body.Error)},ie=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new R2({$metadata:J(r),...s});return D(h,r.body.Error)},de=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new l2({$metadata:J(r),...s});return D(h,r.body.Error)},Oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new J2({$metadata:J(r),...s});return D(h,r.body.Error)},be=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new HI({$metadata:J(r),...s});return D(h,r.body.Error)},ce=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new V2({$metadata:J(r),...s});return D(h,r.body.Error)},_e=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new vI({$metadata:J(r),...s});return D(h,r.body.Error)},ge=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[Zr]!=null)s[Zr]=T(w[Zr]);const h=new N2({$metadata:J(r),...s});return D(h,r.body.Error)},xe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new s2({$metadata:J(r),...s});return D(h,r.body.Error)},ee=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new nI({$metadata:J(r),...s});return D(h,r.body.Error)},ne=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new H2({$metadata:J(r),...s});return D(h,r.body.Error)},oe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new iI({$metadata:J(r),...s});return D(h,r.body.Error)},ae=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new DI({$metadata:J(r),...s});return D(h,r.body.Error)},pe=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new BI({$metadata:J(r),...s});return D(h,r.body.Error)},ue=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new P2({$metadata:J(r),...s});return D(h,r.body.Error)},te=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new U2({$metadata:J(r),...s});return D(h,r.body.Error)},rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new K2({$metadata:J(r),...s});return D(h,r.body.Error)},sn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new kI({$metadata:J(r),...s});return D(h,r.body.Error)},fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new NI({$metadata:J(r),...s});return D(h,r.body.Error)},wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new yI({$metadata:J(r),...s});return D(h,r.body.Error)},hn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new f2({$metadata:J(r),...s});return D(h,r.body.Error)},En=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new dI({$metadata:J(r),...s});return D(h,r.body.Error)},$n=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new cI({$metadata:J(r),...s});return D(h,r.body.Error)},In=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new oI({$metadata:J(r),...s});return D(h,r.body.Error)},Fn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new tI({$metadata:J(r),...s});return D(h,r.body.Error)},Un=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new I2({$metadata:J(r),...s});return D(h,r.body.Error)},Tn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new T2({$metadata:J(r),...s});return D(h,r.body.Error)},Gn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new C2({$metadata:J(r),...s});return D(h,r.body.Error)},Cn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new L2({$metadata:J(r),...s});return D(h,r.body.Error)},Ln=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new F2({$metadata:J(r),...s});return D(h,r.body.Error)},An=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new G2({$metadata:J(r),...s});return D(h,r.body.Error)},Rn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Y2({$metadata:J(r),...s});return D(h,r.body.Error)},Wn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Z2({$metadata:J(r),...s});return D(h,r.body.Error)},zn=async(r,f)=>{const s=P({}),w=r.body.Error;if(w[X]!=null)s[X]=T(w[X]);const h=new Q2({$metadata:J(r),...s});return D(h,r.body.Error)},hV=(r,f)=>{const s=new H(f0);if(r[ir]!=null)s.c(H.of(Ia,r[ir]).n(ir));if(r[n]!=null)s.c(H.of(qo,r[n]).n(n));return s},Sn=(r,f)=>{const s=new H(iw);if(r[sr]!=null)s.c(H.of(E0,r[sr]).n(sr));if(s.cc(r,Gf),r[eh]!=null)s.c(H.of(yo,String(r[eh])).n(eh));return s},Pn=(r,f)=>{const s=new H(RV);if(r[_h]!=null)s.c(H.of(io,r[_h]).n(_h));if(r[uh]!=null)s.c(yn(r[uh],f).n(uh));return s},Xn=(r,f)=>{const s=new H(i2);if(r[Ur]!=null)s.c(H.of(i6,r[Ur]).n(Ur));return s.lc(r,"Changes","Changes",()=>Yn(r[AV],f)),s},Yn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Pn(s,f).n(RV)})},EV=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return H.of(bE,s).n(y6)})},Kn=(r,f)=>{const s=new H(Oo);if(r[ar]!=null)s.c(H.of(oo,r[ar]).n(ar));if(r[_h]!=null)s.c(H.of(bo,r[_h]).n(_h));return s.lc(r,"CidrList","CidrList",()=>Mn(r[ao],f)),s},Zn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return Kn(s,f).n(Lf)})},Mn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return H.of(PQ,s).n(PQ)})},Jn=(r,f)=>{const s=new H(dw);if(r[xh]!=null)s.c(H.of(oa,r[xh]).n(xh));if(r[ar]!=null)s.c(H.of(no,r[ar]).n(ar));return s},Qn=(r,f)=>{const s=new H(Ow);return s.cc(r,_2),s.cc(r,g2),s},Bn=(r,f)=>{const s=new H(bw);if(r[w0]!=null)s.c(H.of(La,r[w0]).n(w0));if(r[h0]!=null)s.c(H.of(Aa,r[h0]).n(h0));if(r[$0]!=null)s.c(H.of(Ra,r[$0]).n($0));return s},ln=(r,f)=>{const s=new H(cw);if(s.cc(r,j2),s.cc(r,c2),r[Ow]!=null)s.c(Qn(r[Ow],f).n(Ow));if(r[qw]!=null)s.c(H.of(qw,String(r[qw])).n(qw));return s},Vn=(r,f)=>{const s=new H(_w);if(s.cc(r,$w),r[Tf]!=null)s.c(H.of(Tf,String(r[Tf])).n(Tf));if(r[Ar]!=null)s.c(H.of(Sa,r[Ar]).n(Ar));if(s.cc(r,_E),s.cc(r,dE),s.cc(r,xE),r[jw]!=null)s.c(H.of(jw,String(r[jw])).n(jw));if(r[If]!=null)s.c(H.of(If,String(r[If])).n(If));if(r[vw]!=null)s.c(H.of(vw,String(r[vw])).n(vw));if(r[Uf]!=null)s.c(H.of(Uf,String(r[Uf])).n(Uf));if(r[Ef]!=null)s.c(H.of(Ef,String(r[Ef])).n(Ef));if(r[Ff]!=null)s.c(H.of(Ff,String(r[Ff])).n(Ff));if(s.lc(r,"ChildHealthChecks","ChildHealthChecks",()=>EV(r[Nw],f)),r[$f]!=null)s.c(H.of($f,String(r[$f])).n($f));if(s.lc(r,"Regions","Regions",()=>$V(r[yw],f)),r[f0]!=null)s.c(hV(r[f0],f).n(f0));return s.cc(r,cE),s.cc(r,x2),s},$V=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return H.of(za,s).n(ir)})},Hn=(r,f)=>{const s=new H(b2);if(r[Ur]!=null)s.c(H.of(i6,r[Ur]).n(Ur));if(r[ph]!=null)s.c(H.of(Xa,String(r[ph])).n(ph));return s},Dn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return H.of(MQ,s).n(MQ)})},kn=(r,f)=>{const s=new H(t2);if(r[Yr]!=null)s.c(H.of(Ka,r[Yr]).n(Yr));return s},Nn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return kn(s,f).n(t2)})},yn=(r,f)=>{const s=new H(uh);if(r[n]!=null)s.c(H.of(Gf,r[n]).n(n));if(r[Ar]!=null)s.c(H.of(Da,r[Ar]).n(Ar));if(r[th]!=null)s.c(H.of(Ba,r[th]).n(th));if(r[f1]!=null)s.c(H.of(Ha,String(r[f1])).n(f1));if(r[ir]!=null)s.c(H.of(Va,r[ir]).n(ir));if(r[bw]!=null)s.c(Bn(r[bw],f).n(bw));if(r[nh]!=null)s.c(H.of(Qa,r[nh]).n(nh));if(r[ah]!=null)s.c(H.of(la,String(r[ah])).n(ah));if(r[jr]!=null)s.c(H.of(jr,String(r[jr])).n(jr));if(s.lc(r,"ResourceRecords","ResourceRecords",()=>Nn(r[ch],f)),r[iw]!=null)s.c(Sn(r[iw],f).n(iw));if(s.cc(r,bE),s.cc(r,o2),r[dw]!=null)s.c(Jn(r[dw],f).n(dw));if(r[cw]!=null)s.c(ln(r[cw],f).n(cw));return s},qn=(r,f)=>{const s=new H(rF);if(r[gw]!=null)s.c(H.of(WV,r[gw]).n(gw));if(r[Yr]!=null)s.c(H.of(_a,r[Yr]).n(Yr));return s},mn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return H.of(WV,s).n(gw)})},vn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return qn(s,f).n(rF)})},jn=(r,f)=>{return r.filter((s)=>s!=null).map((s)=>{return H.of(ca,s).n(E0)})},oE=(r,f)=>{const s=new H(Rr);return s.cc(r,nE),s.cc(r,eE),s},dn=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=xr(r[Yr]);return s},On=(r,f)=>{const s={};if(r[ir]!=null)s[ir]=T(r[ir]);if(r[n]!=null)s[n]=T(r[n]);return s},bn=(r,f)=>{const s={};if(r[sr]!=null)s[sr]=T(r[sr]);if(r[Gf]!=null)s[Gf]=T(r[Gf]);if(r[eh]!=null)s[eh]=yr(r[eh]);return s},cs=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[hs]!=null)s[hs]=T(r[hs]);if(r[Y6]!=null)s[Y6]=y(Mw(r[Y6]));if(r[Ur]!=null)s[Ur]=T(r[Ur]);return s},cn=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},_n=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},gn=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return xn(s,f)})},xn=(r,f)=>{const s={};if(r[HG]!=null)s[HG]=T(r[HG]);if(r[ar]!=null)s[ar]=T(r[ar]);return s},en=(r,f)=>{const s={};if(r[gh]!=null)s[gh]=T(r[gh]);if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[l0]!=null)s[l0]=xr(r[l0]);return s},nn=(r,f)=>{const s={};if(r[xh]!=null)s[xh]=T(r[xh]);if(r[ar]!=null)s[ar]=T(r[ar]);return s},on=(r,f)=>{const s={};if(r[gG]!=null)s[gG]=Er(r[gG]);if(r[N6]!=null)s[N6]=GX(r[N6]);if(r[yG]!=null)s[yG]=T(r[yG]);if(r[W6]!=null)s[W6]=Er(r[W6]);if(r[s6]!=null)s[s6]=T(r[s6]);if(r[G6]!=null)s[G6]=T(r[G6]);if(r[l6]!=null)s[l6]=T(r[l6]);if(r.Dimensions==="")s[QE]=[];else if(r[QE]!=null&&r[QE][XQ]!=null)s[QE]=fo(Cr(r[QE][XQ]),f);return s},an=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return pn(s,f)})},pn=(r,f)=>{const s={};if(r[gh]!=null)s[gh]=T(r[gh]);if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[l0]!=null)s[l0]=xr(r[l0]);return s},un=(r,f)=>{const s={};if(r[_2]!=null)s[_2]=T(r[_2]);if(r[g2]!=null)s[g2]=T(r[g2]);return s},aE=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r.NameServers==="")s[DE]=[];else if(r[DE]!=null&&r[DE][KQ]!=null)s[DE]=tn(Cr(r[DE][KQ]),f);return s},tn=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},ro=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return aE(s,f)})},so=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},fo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return so(s,f)})},wo=(r,f)=>{const s={};if(r[B6]!=null)s[B6]=T(r[B6]);if(r[r1]!=null)s[r1]=T(r[r1]);return s},ho=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Eo=(r,f)=>{const s={};if(r[w0]!=null)s[w0]=T(r[w0]);if(r[h0]!=null)s[h0]=T(r[h0]);if(r[$0]!=null)s[$0]=T(r[$0]);return s},IV=(r,f)=>{const s={};if(r[w0]!=null)s[w0]=T(r[w0]);if(r[kG]!=null)s[kG]=T(r[kG]);if(r[h0]!=null)s[h0]=T(r[h0]);if(r[NG]!=null)s[NG]=T(r[NG]);if(r[$0]!=null)s[$0]=T(r[$0]);if(r[M6]!=null)s[M6]=T(r[M6]);return s},$o=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return IV(s,f)})},Io=(r,f)=>{const s={};if(r[j2]!=null)s[j2]=T(r[j2]);if(r[c2]!=null)s[c2]=T(r[c2]);if(r[Ow]!=null)s[Ow]=un(r[Ow],f);if(r[qw]!=null)s[qw]=Er(r[qw]);return s},sF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r[oh]!=null)s[oh]=GV(r[oh],f);if(r[_w]!=null)s[_w]=Fo(r[_w],f);if(r[mw]!=null)s[mw]=xr(r[mw]);if(r[mG]!=null)s[mG]=on(r[mG],f);return s},Fo=(r,f)=>{const s={};if(r[$w]!=null)s[$w]=T(r[$w]);if(r[Tf]!=null)s[Tf]=Er(r[Tf]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[_E]!=null)s[_E]=T(r[_E]);if(r[dE]!=null)s[dE]=T(r[dE]);if(r[xE]!=null)s[xE]=T(r[xE]);if(r[jw]!=null)s[jw]=Er(r[jw]);if(r[If]!=null)s[If]=Er(r[If]);if(r[vw]!=null)s[vw]=yr(r[vw]);if(r[Uf]!=null)s[Uf]=yr(r[Uf]);if(r[Ef]!=null)s[Ef]=yr(r[Ef]);if(r[Ff]!=null)s[Ff]=Er(r[Ff]);if(r.ChildHealthChecks==="")s[Nw]=[];else if(r[Nw]!=null&&r[Nw][y6]!=null)s[Nw]=_n(Cr(r[Nw][y6]),f);if(r[$f]!=null)s[$f]=yr(r[$f]);if(r.Regions==="")s[yw]=[];else if(r[yw]!=null&&r[yw][ir]!=null)s[yw]=To(Cr(r[yw][ir]),f);if(r[f0]!=null)s[f0]=On(r[f0],f);if(r[cE]!=null)s[cE]=T(r[cE]);if(r[x2]!=null)s[x2]=T(r[x2]);return s},Uo=(r,f)=>{const s={};if(r[ir]!=null)s[ir]=T(r[ir]);if(r[$w]!=null)s[$w]=T(r[$w]);if(r[Q6]!=null)s[Q6]=lo(r[Q6],f);return s},FV=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Uo(s,f)})},To=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Go=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return sF(s,f)})},fF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Pr]!=null)s[Pr]=T(r[Pr]);if(r[jG]!=null)s[jG]=Co(r[jG],f);if(r[P6]!=null)s[P6]=xr(r[P6]);if(r[oh]!=null)s[oh]=GV(r[oh],f);return s},Co=(r,f)=>{const s={};if(r[Ur]!=null)s[Ur]=T(r[Ur]);if(r[ph]!=null)s[ph]=yr(r[ph]);return s},Lo=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=xr(r[Yr]);return s},Ao=(r,f)=>{const s={};if(r[L6]!=null)s[L6]=T(r[L6]);if(r[A6]!=null)s[A6]=T(r[A6]);return s},UV=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return fF(s,f)})},Ro=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Wo(s,f)})},Wo=(r,f)=>{const s={};if(r[sr]!=null)s[sr]=T(r[sr]);if(r[n]!=null)s[n]=T(r[n]);if(r[C6]!=null)s[C6]=Ao(r[C6],f);return s},TV=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[oG]!=null)s[oG]=T(r[oG]);if(r[xG]!=null)s[xG]=Er(r[xG]);if(r[K6]!=null)s[K6]=T(r[K6]);if(r[Z6]!=null)s[Z6]=Er(r[Z6]);if(r[iG]!=null)s[iG]=T(r[iG]);if(r[dG]!=null)s[dG]=Er(r[dG]);if(r[uG]!=null)s[uG]=Er(r[uG]);if(r[cG]!=null)s[cG]=T(r[cG]);if(r[R6]!=null)s[R6]=T(r[R6]);if(r[bG]!=null)s[bG]=T(r[bG]);if(r[OG]!=null)s[OG]=T(r[OG]);if(r[hs]!=null)s[hs]=T(r[hs]);if(r[r1]!=null)s[r1]=T(r[r1]);if(r[DG]!=null)s[DG]=y(Mw(r[DG]));if(r[tG]!=null)s[tG]=y(Mw(r[tG]));return s},zo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return TV(s,f)})},GV=(r,f)=>{const s={};if(r[J6]!=null)s[J6]=T(r[J6]);if(r[_G]!=null)s[_G]=T(r[_G]);return s},So=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Po(s,f)})},Po=(r,f)=>{const s={};if(r[ar]!=null)s[ar]=T(r[ar]);return s},q6=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[sr]!=null)s[sr]=T(r[sr]);if(r[d2]!=null)s[d2]=T(r[d2]);return s},Xo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return q6(s,f)})},Yo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return T(s)})},Ko=(r,f)=>{const s={};if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},Zo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Ko(s,f)})},Mo=(r,f)=>{const s={};if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[th]!=null)s[th]=T(r[th]);if(r[f1]!=null)s[f1]=xr(r[f1]);if(r[ir]!=null)s[ir]=T(r[ir]);if(r[bw]!=null)s[bw]=Eo(r[bw],f);if(r[nh]!=null)s[nh]=T(r[nh]);if(r[ah]!=null)s[ah]=yr(r[ah]);if(r[jr]!=null)s[jr]=xr(r[jr]);if(r.ResourceRecords==="")s[ch]=[];else if(r[ch]!=null&&r[ch][t2]!=null)s[ch]=Zo(Cr(r[ch][t2]),f);if(r[iw]!=null)s[iw]=bn(r[iw],f);if(r[bE]!=null)s[bE]=T(r[bE]);if(r[o2]!=null)s[o2]=T(r[o2]);if(r[dw]!=null)s[dw]=nn(r[dw],f);if(r[cw]!=null)s[cw]=Io(r[cw],f);return s},Jo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Mo(s,f)})},CV=(r,f)=>{const s={};if(r[X6]!=null)s[X6]=T(r[X6]);if(r[E0]!=null)s[E0]=T(r[E0]);if(r.Tags==="")s[jE]=[];else if(r[jE]!=null&&r[jE][rF]!=null)s[jE]=Ho(Cr(r[jE][rF]),f);return s},Qo=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return CV(s,f)})},Bo=(r,f)=>{const s={};if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[Yr]!=null)s[Yr]=xr(r[Yr]);return s},lo=(r,f)=>{const s={};if(r[hs]!=null)s[hs]=T(r[hs]);if(r[qG]!=null)s[qG]=y(Mw(r[qG]));return s},Vo=(r,f)=>{const s={};if(r[gw]!=null)s[gw]=T(r[gw]);if(r[Yr]!=null)s[Yr]=T(r[Yr]);return s},Ho=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return Vo(s,f)})},Do=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return pE(s,f)})},pE=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[l0]!=null)s[l0]=Er(r[l0]);if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[J0]!=null)s[J0]=T(r[J0]);if(r[Ur]!=null)s[Ur]=T(r[Ur]);return s},wF=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[sr]!=null)s[sr]=T(r[sr]);if(r[n]!=null)s[n]=T(r[n]);if(r[jr]!=null)s[jr]=xr(r[jr]);if(r[V6]!=null)s[V6]=T(r[V6]);if(r[Zr]!=null)s[Zr]=T(r[Zr]);if(r[s1]!=null)s[s1]=T(r[s1]);if(r[is]!=null)s[is]=Er(r[is]);if(r[k6]!=null)s[k6]=T(r[k6]);return s},m6=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return wF(s,f)})},ko=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return No(s,f)})},No=(r,f)=>{const s={};if(r[Gr]!=null)s[Gr]=T(r[Gr]);if(r[n]!=null)s[n]=T(r[n]);if(r[Ar]!=null)s[Ar]=T(r[Ar]);if(r[r6]!=null)s[r6]=Er(r[r6]);if(r[H6]!=null)s[H6]=Er(r[H6]);return s},v6=(r,f)=>{const s={};if(r[nE]!=null)s[nE]=T(r[nE]);if(r[eE]!=null)s[eE]=T(r[eE]);return s},LV=(r,f)=>{return(r||[]).filter((s)=>s!=null).map((s)=>{return v6(s,f)})},J=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var _h="Action",yo="AliasHealthEnabled",f0="AlarmIdentifier",qo="AlarmName",mo="AddTags",iw="AliasTarget",vo="AssociateVPCComment",jo="AssociateVPCWithHostedZoneRequest",j2="AWSRegion",gh="Arn",qw="Bias",Ur="Comment",io="ChangeAction",i2="ChangeBatch",YE="CidrBlocks",HG="CidrBlock",w0="ContinentCode",Oo="CidrCollectionChange",bo="CidrCollectionChangeAction",co="ChangeCidrCollectionRequest",_o="CreateCidrCollectionRequest",KE="CidrCollections",h0="CountryCode",DG="CreatedDate",Nw="ChildHealthChecks",go="CreateHealthCheckRequest",y6="ChildHealthCheck",xo="CreateHostedZoneRequest",wr="ChangeInfo",ZE="CheckerIpRanges",xh="CollectionId",eo="CreateKeySigningKeyRequest",ME="CidrLocations",no="CidrLocationNameDefaultAllowed",oo="CidrLocationNameDefaultNotAllowed",ao="CidrList",po="CidrNonce",uo="CollectionName",kG="ContinentName",NG="CountryName",yG="ComparisonOperator",to="CreateQueryLoggingConfigRequest",Pr="CallerReference",dw="CidrRoutingConfig",ra="CreateReusableDelegationSetRequest",sa="ChangeResourceRecordSetsRequest",qG="CheckedTime",fa="ChangeTagsForResourceRequest",wa="CreateTrafficPolicyInstanceRequest",ha="CreateTrafficPolicyRequest",Ea="CreateTrafficPolicyVersionRequest",v2="CollectionVersion",$a="CreateVPCAssociationAuthorizationRequest",mG="CloudWatchAlarmConfiguration",d2="CloudWatchLogsLogGroupArn",Ia="CloudWatchRegion",AV="Changes",RV="Change",PQ="Cidr",vG="Collection",jG="Config",Ow="Coordinates",M0="Count",J0="Document",iG="DigestAlgorithmMnemonic",dG="DigestAlgorithmType",OG="DNSKEYRecord",Gf="DNSName",Ts="DelegationSet",O2="DelegationSetId",bG="DSRecord",JE="DelegationSets",cG="DigestValue",Fa="DeleteVPCAssociationAuthorizationRequest",Ua="DisassociateVPCComment",Ta="DisassociateVPCFromHostedZoneRequest",_G="Description",Ef="Disabled",QE="Dimensions",XQ="Dimension",Ga="EDNS0ClientSubnetIP",Ca="EDNS0ClientSubnetMask",gG="EvaluationPeriods",$f="EnableSNI",eh="EvaluateTargetHealth",nh="Failover",dE="FullyQualifiedDomainName",If="FailureThreshold",xG="Flag",bw="GeoLocation",La="GeoLocationContinentCode",Aa="GeoLocationCountryCode",OE="GeoLocationDetails",BE="GeoLocationDetailsList",Ra="GeoLocationSubdivisionCode",cw="GeoProximityLocation",Cf="HealthCheck",_w="HealthCheckConfig",eG="HealthCheckCount",bE="HealthCheckId",Wa="HealthCheckNonce",tf="HealthCheckObservations",u2="HealthCheckObservation",za="HealthCheckRegion",Sa="HealthCheckType",mw="HealthCheckVersion",lE="HealthChecks",Ff="HealthThreshold",Ss="HostedZone",b2="HostedZoneConfig",nG="HostedZoneCount",sr="HostedZoneId",Ew="HostedZoneIdMarker",VE="HostedZoneSummaries",YQ="HostedZoneSummary",Pa="HostedZoneType",r0="HostedZones",Uf="Inverted",cE="InsufficientDataHealthStatus",$w="IPAddress",Xa="IsPrivateZone",Tr="IsTruncated",Gr="Id",gw="Key",oG="KmsArn",aG="KeyManagementServiceArn",pG="KeySigningKey",HE="KeySigningKeys",uG="KeyTag",V0="Location",tG="LastModifiedDate",ar="LocationName",oh="LinkedService",Ya="ListTagsForResourcesRequest",r6="LatestVersion",c2="LocalZoneGroup",_2="Latitude",Q0="Limit",g2="Longitude",ds="Marker",a="MaxItems",vw="MeasureLatency",s6="MetricName",uE="MaxResults",ah="MultiValueAnswer",Zr="Message",n="Name",f6="NextContinentCode",w6="NextCountryCode",h6="NextDNSName",E6="NextHostedZoneId",B0="NextMarker",$6="NextRecordIdentifier",I6="NextRecordName",F6="NextRecordType",DE="NameServers",U6="NextSubdivisionCode",KQ="NameServer",Xr="NextToken",T6="Nameserver",G6="Namespace",j6="Nonce",C6="Owner",L6="OwningAccount",A6="OwningService",Tf="Port",R6="PublicKey",ph="PrivateZone",W6="Period",z6="Protocol",Iw="QueryLoggingConfig",kE="QueryLoggingConfigs",yw="Regions",S6="ResponseCode",x2="RoutingControlArn",i6="ResourceDescription",ZQ="RecordDataEntry",Ka="RData",NE="RecordData",Za="ResetElements",MQ="ResettableElementName",E0="ResourceId",Ma="ResolverIP",Ja="ResourceIds",jw="RequestInterval",e2="RecordName",_E="ResourcePath",t2="ResourceRecord",yE="ResourceRecordSets",P6="ResourceRecordSetCount",Qa="ResourceRecordSetFailover",Ba="ResourceRecordSetIdentifier",la="ResourceRecordSetMultiValueAnswer",Va="ResourceRecordSetRegion",Ha="ResourceRecordSetWeight",uh="ResourceRecordSet",Da="RRType",ch="ResourceRecords",n2="RecordType",ka="RemoveTagKeys",gE="ResourceTagSet",qE="ResourceTagSets",X6="ResourceType",ir="Region",hs="Status",Y6="SubmittedAt",K6="SigningAlgorithmMnemonic",Z6="SigningAlgorithmType",$0="SubdivisionCode",Na="StartContinentCode",ya="StartCountryCode",th="SetIdentifier",qa="SigningKeyName",ma="SigningKeyString",va="SigningKeyStatus",r1="StatusMessage",M6="SubdivisionName",J6="ServicePrincipal",Q6="StatusReport",ja="StartRecordIdentifier",ia="StartRecordName",da="StartRecordType",xE="SearchString",Oa="StartSubdivisionCode",B6="ServeSignature",l6="Statistic",V6="State",Ar="Type",WV="TagKey",Gs="TrafficPolicy",d6="TrafficPolicyComment",H6="TrafficPolicyCount",zV="TrafficPolicyDocument",s1="TrafficPolicyId",D6="TrafficPolicyInstanceCount",o2="TrafficPolicyInstanceId",a2="TrafficPolicyIdMarker",Os="TrafficPolicyInstanceNameMarker",bs="TrafficPolicyInstanceTypeMarker",Es="TrafficPolicyInstance",ws="TrafficPolicyInstances",ba="TrafficPolicyName",mE="TrafficPolicySummaries",JQ="TrafficPolicySummary",k6="TrafficPolicyType",is="TrafficPolicyVersion",p2="TrafficPolicyVersionMarker",vE="TrafficPolicies",ca="TagResourceId",jr="TTL",_a="TagValue",rF="Tag",jE="Tags",N6="Threshold",ga="UpdateHealthCheckRequest",xa="UpdateHostedZoneCommentRequest",ea="UpdateTrafficPolicyCommentRequest",na="UpdateTrafficPolicyInstanceRequest",oa="UUID",Yr="Value",Rr="VPC",eE="VPCId",nE="VPCRegion",s0="VPCs",l0="Version",f1="Weight",aa="continentcode",pa="countrycode",ua="delegationsetid",ta="dnsname",rp="edns0clientsubnetip",sp="edns0clientsubnetmask",fp="hostedzonetype",tE="hostedzoneid",wp="identifier",SV="id",I0="location",r$="maxresults",_s="maxitems",O6="marker",Lf="member",X="message",iE="messages",w1="nexttoken",hp="name",Ep="recordname",$p="recordtype",Ip="resolverip",Fp="subdivisioncode",Up="startcontinentcode",Tp="startcountrycode",Gp="startsubdivisioncode",Cp="type",Lp="trafficpolicyid",b6="trafficpolicyinstancename",c6="trafficpolicyinstancetype",Ap="trafficpolicyversion",Rp="vpcid",Hr='<?xml version="1.0" encoding="UTF-8"?>',Wp="version",zp="vpcregion";class _6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ActivateKeySigningKey",{}).n("Route53Client","ActivateKeySigningKeyCommand").f(void 0,void 0).ser(QQ).de(bB).build(){}B();V();Y();class g6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","AssociateVPCWithHostedZone",{}).n("Route53Client","AssociateVPCWithHostedZoneCommand").f(void 0,void 0).ser(BQ).de(cB).build(){}B();V();Y();class x6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ChangeCidrCollection",{}).n("Route53Client","ChangeCidrCollectionCommand").f(void 0,void 0).ser(lQ).de(_B).build(){}B();V();Y();class e6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),WQ(s),m(s)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(VQ).de(gB).build(){}B();V();Y();class n6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ChangeTagsForResource",{}).n("Route53Client","ChangeTagsForResourceCommand").f(void 0,void 0).ser(HQ).de(xB).build(){}B();V();Y();class o6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateCidrCollection",{}).n("Route53Client","CreateCidrCollectionCommand").f(void 0,void 0).ser(DQ).de(eB).build(){}B();V();Y();class a6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateHealthCheck",{}).n("Route53Client","CreateHealthCheckCommand").f(void 0,void 0).ser(kQ).de(nB).build(){}B();V();Y();class p6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateHostedZone",{}).n("Route53Client","CreateHostedZoneCommand").f(void 0,void 0).ser(NQ).de(oB).build(){}B();V();Y();class u6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateKeySigningKey",{}).n("Route53Client","CreateKeySigningKeyCommand").f(void 0,void 0).ser(yQ).de(aB).build(){}B();V();Y();class t6 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateQueryLoggingConfig",{}).n("Route53Client","CreateQueryLoggingConfigCommand").f(void 0,void 0).ser(qQ).de(pB).build(){}B();V();Y();class rC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateReusableDelegationSet",{}).n("Route53Client","CreateReusableDelegationSetCommand").f(void 0,void 0).ser(mQ).de(uB).build(){}B();V();Y();class sC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","CreateTrafficPolicy",{}).n("Route53Client","CreateTrafficPolicyCommand").f(void 0,void 0).ser(vQ).de(tB).build(){}B();V();Y();class fC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyInstance",{}).n("Route53Client","CreateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(jQ).de(rl).build(){}B();V();Y();class wC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateTrafficPolicyVersion",{}).n("Route53Client","CreateTrafficPolicyVersionCommand").f(void 0,void 0).ser(iQ).de(sl).build(){}B();V();Y();class hC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","CreateVPCAssociationAuthorization",{}).n("Route53Client","CreateVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(dQ).de(fl).build(){}B();V();Y();class EC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeactivateKeySigningKey",{}).n("Route53Client","DeactivateKeySigningKeyCommand").f(void 0,void 0).ser(OQ).de(wl).build(){}B();V();Y();class $C extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteCidrCollection",{}).n("Route53Client","DeleteCidrCollectionCommand").f(void 0,void 0).ser(bQ).de(hl).build(){}B();V();Y();class IC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","DeleteHealthCheck",{}).n("Route53Client","DeleteHealthCheckCommand").f(void 0,void 0).ser(cQ).de(El).build(){}B();V();Y();class FC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteHostedZone",{}).n("Route53Client","DeleteHostedZoneCommand").f(void 0,void 0).ser(_Q).de($l).build(){}B();V();Y();class UC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteKeySigningKey",{}).n("Route53Client","DeleteKeySigningKeyCommand").f(void 0,void 0).ser(gQ).de(Il).build(){}B();V();Y();class TC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteQueryLoggingConfig",{}).n("Route53Client","DeleteQueryLoggingConfigCommand").f(void 0,void 0).ser(xQ).de(Fl).build(){}B();V();Y();class GC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteReusableDelegationSet",{}).n("Route53Client","DeleteReusableDelegationSetCommand").f(void 0,void 0).ser(eQ).de(Ul).build(){}B();V();Y();class CC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicy",{}).n("Route53Client","DeleteTrafficPolicyCommand").f(void 0,void 0).ser(nQ).de(Tl).build(){}B();V();Y();class LC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteTrafficPolicyInstance",{}).n("Route53Client","DeleteTrafficPolicyInstanceCommand").f(void 0,void 0).ser(oQ).de(Gl).build(){}B();V();Y();class AC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DeleteVPCAssociationAuthorization",{}).n("Route53Client","DeleteVPCAssociationAuthorizationCommand").f(void 0,void 0).ser(aQ).de(Cl).build(){}B();V();Y();class RC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DisableHostedZoneDNSSEC",{}).n("Route53Client","DisableHostedZoneDNSSECCommand").f(void 0,void 0).ser(pQ).de(Ll).build(){}B();V();Y();class WC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","DisassociateVPCFromHostedZone",{}).n("Route53Client","DisassociateVPCFromHostedZoneCommand").f(void 0,void 0).ser(uQ).de(Al).build(){}B();V();Y();class zC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","EnableHostedZoneDNSSEC",{}).n("Route53Client","EnableHostedZoneDNSSECCommand").f(void 0,void 0).ser(tQ).de(Rl).build(){}B();V();Y();class SC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetAccountLimit",{}).n("Route53Client","GetAccountLimitCommand").f(void 0,void 0).ser(rB).de(Wl).build(){}B();V();Y();class PC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetChange",{}).n("Route53Client","GetChangeCommand").f(void 0,void 0).ser(sB).de(zl).build(){}B();V();Y();class XC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetCheckerIpRanges",{}).n("Route53Client","GetCheckerIpRangesCommand").f(void 0,void 0).ser(fB).de(Sl).build(){}B();V();Y();class YC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetDNSSEC",{}).n("Route53Client","GetDNSSECCommand").f(void 0,void 0).ser(wB).de(Pl).build(){}B();V();Y();class KC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetGeoLocation",{}).n("Route53Client","GetGeoLocationCommand").f(void 0,void 0).ser(hB).de(Xl).build(){}B();V();Y();class ZC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheck",{}).n("Route53Client","GetHealthCheckCommand").f(void 0,void 0).ser(EB).de(Yl).build(){}B();V();Y();class MC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckCount",{}).n("Route53Client","GetHealthCheckCountCommand").f(void 0,void 0).ser($B).de(Kl).build(){}B();V();Y();class JC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckLastFailureReason",{}).n("Route53Client","GetHealthCheckLastFailureReasonCommand").f(void 0,void 0).ser(IB).de(Zl).build(){}B();V();Y();class QC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHealthCheckStatus",{}).n("Route53Client","GetHealthCheckStatusCommand").f(void 0,void 0).ser(FB).de(Ml).build(){}B();V();Y();class BC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetHostedZone",{}).n("Route53Client","GetHostedZoneCommand").f(void 0,void 0).ser(UB).de(Jl).build(){}B();V();Y();class lC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetHostedZoneCount",{}).n("Route53Client","GetHostedZoneCountCommand").f(void 0,void 0).ser(TB).de(Ql).build(){}B();V();Y();class VC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetHostedZoneLimit",{}).n("Route53Client","GetHostedZoneLimitCommand").f(void 0,void 0).ser(GB).de(Bl).build(){}B();V();Y();class HC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetQueryLoggingConfig",{}).n("Route53Client","GetQueryLoggingConfigCommand").f(void 0,void 0).ser(CB).de(ll).build(){}B();V();Y();class DC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetReusableDelegationSet",{}).n("Route53Client","GetReusableDelegationSetCommand").f(void 0,void 0).ser(LB).de(Vl).build(){}B();V();Y();class kC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetReusableDelegationSetLimit",{}).n("Route53Client","GetReusableDelegationSetLimitCommand").f(void 0,void 0).ser(AB).de(Hl).build(){}B();V();Y();class NC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetTrafficPolicy",{}).n("Route53Client","GetTrafficPolicyCommand").f(void 0,void 0).ser(RB).de(Dl).build(){}B();V();Y();class yC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","GetTrafficPolicyInstance",{}).n("Route53Client","GetTrafficPolicyInstanceCommand").f(void 0,void 0).ser(WB).de(kl).build(){}B();V();Y();class qC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","GetTrafficPolicyInstanceCount",{}).n("Route53Client","GetTrafficPolicyInstanceCountCommand").f(void 0,void 0).ser(zB).de(Nl).build(){}B();V();Y();class mC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrBlocks",{}).n("Route53Client","ListCidrBlocksCommand").f(void 0,void 0).ser(SB).de(yl).build(){}B();V();Y();class vC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrCollections",{}).n("Route53Client","ListCidrCollectionsCommand").f(void 0,void 0).ser(PB).de(ql).build(){}B();V();Y();class jC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListCidrLocations",{}).n("Route53Client","ListCidrLocationsCommand").f(void 0,void 0).ser(XB).de(ml).build(){}B();V();Y();class iC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListGeoLocations",{}).n("Route53Client","ListGeoLocationsCommand").f(void 0,void 0).ser(YB).de(vl).build(){}B();V();Y();class dC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHealthChecks",{}).n("Route53Client","ListHealthChecksCommand").f(void 0,void 0).ser(KB).de(jl).build(){}B();V();Y();class OC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListHostedZonesByName",{}).n("Route53Client","ListHostedZonesByNameCommand").f(void 0,void 0).ser(MB).de(dl).build(){}B();V();Y();class bC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListHostedZonesByVPC",{}).n("Route53Client","ListHostedZonesByVPCCommand").f(void 0,void 0).ser(JB).de(Ol).build(){}B();V();Y();class cC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListHostedZones",{}).n("Route53Client","ListHostedZonesCommand").f(void 0,void 0).ser(ZB).de(il).build(){}B();V();Y();class _C extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListQueryLoggingConfigs",{}).n("Route53Client","ListQueryLoggingConfigsCommand").f(void 0,void 0).ser(QB).de(bl).build(){}B();V();Y();class gC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListResourceRecordSets",{}).n("Route53Client","ListResourceRecordSetsCommand").f(void 0,void 0).ser(BB).de(cl).build(){}B();V();Y();class xC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListReusableDelegationSets",{}).n("Route53Client","ListReusableDelegationSetsCommand").f(void 0,void 0).ser(lB).de(_l).build(){}B();V();Y();class eC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResource",{}).n("Route53Client","ListTagsForResourceCommand").f(void 0,void 0).ser(VB).de(gl).build(){}B();V();Y();class nC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTagsForResources",{}).n("Route53Client","ListTagsForResourcesCommand").f(void 0,void 0).ser(HB).de(xl).build(){}B();V();Y();class oC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicies",{}).n("Route53Client","ListTrafficPoliciesCommand").f(void 0,void 0).ser(DB).de(el).build(){}B();V();Y();class aC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByHostedZone",{}).n("Route53Client","ListTrafficPolicyInstancesByHostedZoneCommand").f(void 0,void 0).ser(NB).de(ol).build(){}B();V();Y();class pC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstancesByPolicy",{}).n("Route53Client","ListTrafficPolicyInstancesByPolicyCommand").f(void 0,void 0).ser(yB).de(al).build(){}B();V();Y();class uC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","ListTrafficPolicyInstances",{}).n("Route53Client","ListTrafficPolicyInstancesCommand").f(void 0,void 0).ser(kB).de(nl).build(){}B();V();Y();class tC extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListTrafficPolicyVersions",{}).n("Route53Client","ListTrafficPolicyVersionsCommand").f(void 0,void 0).ser(qB).de(pl).build(){}B();V();Y();class r4 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","ListVPCAssociationAuthorizations",{}).n("Route53Client","ListVPCAssociationAuthorizationsCommand").f(void 0,void 0).ser(mB).de(ul).build(){}B();V();Y();class s4 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","TestDNSAnswer",{}).n("Route53Client","TestDNSAnswerCommand").f(void 0,void 0).ser(vB).de(tl).build(){}B();V();Y();class f4 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("AWSDnsV20130401","UpdateHealthCheck",{}).n("Route53Client","UpdateHealthCheckCommand").f(void 0,void 0).ser(jB).de(rV).build(){}B();V();Y();class w4 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","UpdateHostedZoneComment",{}).n("Route53Client","UpdateHostedZoneCommentCommand").f(void 0,void 0).ser(iB).de(sV).build(){}B();V();Y();class h4 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyComment",{}).n("Route53Client","UpdateTrafficPolicyCommentCommand").f(void 0,void 0).ser(dB).de(fV).build(){}B();V();Y();class E4 extends A.classBuilder().ep({...M}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions()),m(s)]}).s("AWSDnsV20130401","UpdateTrafficPolicyInstance",{}).n("Route53Client","UpdateTrafficPolicyInstanceCommand").f(void 0,void 0).ser(OB).de(wV).build(){}var Sp={ActivateKeySigningKeyCommand:_6,AssociateVPCWithHostedZoneCommand:g6,ChangeCidrCollectionCommand:x6,ChangeResourceRecordSetsCommand:e6,ChangeTagsForResourceCommand:n6,CreateCidrCollectionCommand:o6,CreateHealthCheckCommand:a6,CreateHostedZoneCommand:p6,CreateKeySigningKeyCommand:u6,CreateQueryLoggingConfigCommand:t6,CreateReusableDelegationSetCommand:rC,CreateTrafficPolicyCommand:sC,CreateTrafficPolicyInstanceCommand:fC,CreateTrafficPolicyVersionCommand:wC,CreateVPCAssociationAuthorizationCommand:hC,DeactivateKeySigningKeyCommand:EC,DeleteCidrCollectionCommand:$C,DeleteHealthCheckCommand:IC,DeleteHostedZoneCommand:FC,DeleteKeySigningKeyCommand:UC,DeleteQueryLoggingConfigCommand:TC,DeleteReusableDelegationSetCommand:GC,DeleteTrafficPolicyCommand:CC,DeleteTrafficPolicyInstanceCommand:LC,DeleteVPCAssociationAuthorizationCommand:AC,DisableHostedZoneDNSSECCommand:RC,DisassociateVPCFromHostedZoneCommand:WC,EnableHostedZoneDNSSECCommand:zC,GetAccountLimitCommand:SC,GetChangeCommand:PC,GetCheckerIpRangesCommand:XC,GetDNSSECCommand:YC,GetGeoLocationCommand:KC,GetHealthCheckCommand:ZC,GetHealthCheckCountCommand:MC,GetHealthCheckLastFailureReasonCommand:JC,GetHealthCheckStatusCommand:QC,GetHostedZoneCommand:BC,GetHostedZoneCountCommand:lC,GetHostedZoneLimitCommand:VC,GetQueryLoggingConfigCommand:HC,GetReusableDelegationSetCommand:DC,GetReusableDelegationSetLimitCommand:kC,GetTrafficPolicyCommand:NC,GetTrafficPolicyInstanceCommand:yC,GetTrafficPolicyInstanceCountCommand:qC,ListCidrBlocksCommand:mC,ListCidrCollectionsCommand:vC,ListCidrLocationsCommand:jC,ListGeoLocationsCommand:iC,ListHealthChecksCommand:dC,ListHostedZonesCommand:cC,ListHostedZonesByNameCommand:OC,ListHostedZonesByVPCCommand:bC,ListQueryLoggingConfigsCommand:_C,ListResourceRecordSetsCommand:gC,ListReusableDelegationSetsCommand:xC,ListTagsForResourceCommand:eC,ListTagsForResourcesCommand:nC,ListTrafficPoliciesCommand:oC,ListTrafficPolicyInstancesCommand:uC,ListTrafficPolicyInstancesByHostedZoneCommand:aC,ListTrafficPolicyInstancesByPolicyCommand:pC,ListTrafficPolicyVersionsCommand:tC,ListVPCAssociationAuthorizationsCommand:r4,TestDNSAnswerCommand:s4,UpdateHealthCheckCommand:f4,UpdateHostedZoneCommentCommand:w4,UpdateTrafficPolicyCommentCommand:h4,UpdateTrafficPolicyInstanceCommand:E4};class Fw extends lG{}yf(Sp,Fw);ew();nw();ow();pw();Ms();var h1=u(Or(),1);Ih();B();ff();Y();var PV=u(lr(),1);as();function Pp(r){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"route53domains",region:r.region},propertiesExtractor:(f,s)=>({signingProperties:{config:f,context:s}})}}var XV=async(r,f,s)=>{return{operation:Ks(f).operation,region:await Nr(r.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},YV=(r)=>{const f=[];switch(r.operation){default:f.push(Pp(r))}return f},KV=(r)=>{return{...PV.resolveAwsSdkSigV4Config(r)}};var ZV=(r)=>{return{...r,useDualstackEndpoint:r.useDualstackEndpoint??!1,useFipsEndpoint:r.useFipsEndpoint??!1,defaultSigningName:"route53domains"}},c={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var MV={name:"@aws-sdk/client-route-53-domains",description:"AWS SDK for JavaScript Route 53 Domains Client for Node.js, Browser and React Native",version:"3.637.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-route-53-domains","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 route-53-domains"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/client-sso-oidc":"3.637.0","@aws-sdk/client-sts":"3.637.0","@aws-sdk/core":"3.635.0","@aws-sdk/credential-provider-node":"3.637.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.637.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.637.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.4.0","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.15","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.2.0","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.15","@smithy/util-defaults-mode-node":"^3.0.15","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.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-route-53-domains",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-route-53-domains"}};var iV=u(lr(),1);O1();Ph();Ms();Kh();ff();sf();lw();Zh();Cs();var vV=u(lr(),1);Y();j0();Mh();x0();Cw();ns();var JV={["required"]:!1,type:"String"},QV={["required"]:!0,default:!1,type:"Boolean"},BV={["ref"]:"Endpoint"},NV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},yV={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},F0={},lV={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},VV={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},HV=[NV],DV=[yV],kV=[{["ref"]:"Region"}],Yp={version:"1.0",parameters:{Region:JV,UseDualStack:QV,UseFIPS:QV,Endpoint:JV},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[BV]}],rules:[{conditions:HV,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:DV,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:BV,properties:F0,headers:F0},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:kV}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:kV,assign:"PartitionResult"}],rules:[{conditions:[NV,yV],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,lV]},VV],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:F0,headers:F0},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:HV,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[lV,!0]}],rules:[{endpoint:{url:"https://route53domains-fips.{Region}.{PartitionResult#dnsSuffix}",properties:F0,headers:F0},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:DV,rules:[{conditions:[VV],rules:[{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:F0,headers:F0},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://route53domains.{Region}.{PartitionResult#dnsSuffix}",properties:F0,headers:F0},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},qV=Yp;var mV=(r,f={})=>{return es(qV,{endpointParams:r,logger:f.logger})};pr.aws=os;var jV=(r)=>{return{apiVersion:"2014-05-15",base64Decoder:r?.base64Decoder??ef,base64Encoder:r?.base64Encoder??nf,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??mV,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??YV,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new vV.AwsSdkSigV4Signer}],logger:r?.logger??new Ls,serviceId:r?.serviceId??"Route 53 Domains",urlParser:r?.urlParser??_r,utf8Decoder:r?.utf8Decoder??Us,utf8Encoder:r?.utf8Encoder??gf}};Y();Jh();Y();var dV=(r)=>{jf(process.version);const f=of(r),s=()=>f().then(vf),w=jV(r);return iV.emitWarningIfUnsupportedVersion(process.version),{...w,...r,runtime:"node",defaultsMode:f,bodyLengthChecker:r?.bodyLengthChecker??xf,credentialDefaultProvider:r?.credentialDefaultProvider??A0,defaultUserAgentProvider:r?.defaultUserAgentProvider??_f({serviceId:w.serviceId,clientVersion:MV.version}),maxAttempts:r?.maxAttempts??t(Df),region:r?.region??t(Zs,Jf),requestHandler:tr.create(r?.requestHandler??s),retryMode:r?.retryMode??t({...Nf,default:async()=>(await s()).retryMode||Ds}),sha256:r?.sha256??wf.bind(null,"sha256"),streamCollector:r?.streamCollector??cf,useDualstackEndpoint:r?.useDualstackEndpoint??t(Zf),useFipsEndpoint:r?.useFipsEndpoint??t(Mf)}};Qh();qr();Y();var OV=(r)=>{const f=r.httpAuthSchemes;let{httpAuthSchemeProvider:s,credentials:w}=r;return{setHttpAuthScheme(h){const E=f.findIndex(($)=>$.schemeId===h.schemeId);if(E===-1)f.push(h);else f.splice(E,1,h)},httpAuthSchemes(){return f},setHttpAuthSchemeProvider(h){s=h},httpAuthSchemeProvider(){return s},setCredentials(h){w=h},credentials(){return w}}},bV=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var hF=(r)=>r,cV=(r,f)=>{const s={...hF(af(r)),...hF(df(r)),...hF(Rf(r)),...hF(OV(r))};return f.forEach((w)=>w.configure(s)),{...r,...pf(s),...Of(s),...Wf(s),...bV(s)}};class $4 extends As{constructor(...[r]){const f=dV(r||{}),s=ZV(f),w=Yf(s),h=kf(w),E=Qf(h),$=zf(E),I=Vf($),F=KV(I),U=cV(F,r?.extensions||[]);super(U);this.config=U,this.middlewareStack.use(Kf(this.config)),this.middlewareStack.use(bf(this.config)),this.middlewareStack.use(lf(this.config)),this.middlewareStack.use(Sf(this.config)),this.middlewareStack.use(Pf(this.config)),this.middlewareStack.use(Xf(this.config)),this.middlewareStack.use(h1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:XV,identityProviderConfigProvider:async(C)=>new h1.DefaultIdentityProviderConfig({"aws.auth#sigv4":C.credentials})})),this.middlewareStack.use(h1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}Y();B();V();Y();Y();Y();class gs extends ks{constructor(r){super(r);Object.setPrototypeOf(this,gs.prototype)}}class EF extends gs{constructor(r){super({name:"DomainLimitExceeded",$fault:"client",...r});this.name="DomainLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,EF.prototype)}}class $F extends gs{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,$F.prototype)}}class IF extends gs{constructor(r){super({name:"OperationLimitExceeded",$fault:"client",...r});this.name="OperationLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,IF.prototype)}}class FF extends gs{constructor(r){super({name:"UnsupportedTLD",$fault:"client",...r});this.name="UnsupportedTLD",this.$fault="client",Object.setPrototypeOf(this,FF.prototype)}}class UF extends gs{constructor(r){super({name:"DnssecLimitExceeded",$fault:"client",...r});this.name="DnssecLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,UF.prototype)}}class TF extends gs{constructor(r){super({name:"DuplicateRequest",$fault:"client",...r});this.name="DuplicateRequest",this.$fault="client",Object.setPrototypeOf(this,TF.prototype),this.requestId=r.requestId}}class GF extends gs{constructor(r){super({name:"TLDRulesViolation",$fault:"client",...r});this.name="TLDRulesViolation",this.$fault="client",Object.setPrototypeOf(this,GF.prototype)}}var _V=(r)=>({...r,...r.Password&&{Password:o}}),gV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}});var xV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.AbuseContactEmail&&{AbuseContactEmail:o},...r.AbuseContactPhone&&{AbuseContactPhone:o},...r.BillingContact&&{BillingContact:o}}),eV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),nV=(r)=>({...r,...r.emailAddress&&{emailAddress:o}}),oV=(r)=>({...r,...r.AuthCode&&{AuthCode:o}}),aV=(r)=>({...r,...r.AuthCode&&{AuthCode:o},...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),pV=(r)=>({...r,...r.Password&&{Password:o}}),uV=(r)=>({...r,...r.AdminContact&&{AdminContact:o},...r.RegistrantContact&&{RegistrantContact:o},...r.TechContact&&{TechContact:o},...r.BillingContact&&{BillingContact:o}}),tV=(r)=>({...r,...r.FIAuthKey&&{FIAuthKey:o}});var fr=u(lr(),1);qr();Y();function Fr(r){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`Route53Domains_v20140515.${r}`}}var rH=async(r,f)=>{const s=Fr("AcceptDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},sH=async(r,f)=>{const s=Fr("AssociateDelegationSignerToDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},fH=async(r,f)=>{const s=Fr("CancelDomainTransferToAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},wH=async(r,f)=>{const s=Fr("CheckDomainAvailability");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},hH=async(r,f)=>{const s=Fr("CheckDomainTransferability");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},EH=async(r,f)=>{const s=Fr("DeleteDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},$H=async(r,f)=>{const s=Fr("DeleteTagsForDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},IH=async(r,f)=>{const s=Fr("DisableDomainAutoRenew");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},FH=async(r,f)=>{const s=Fr("DisableDomainTransferLock");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},UH=async(r,f)=>{const s=Fr("DisassociateDelegationSignerFromDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},TH=async(r,f)=>{const s=Fr("EnableDomainAutoRenew");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},GH=async(r,f)=>{const s=Fr("EnableDomainTransferLock");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},CH=async(r,f)=>{const s=Fr("GetContactReachabilityStatus");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},LH=async(r,f)=>{const s=Fr("GetDomainDetail");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},AH=async(r,f)=>{const s=Fr("GetDomainSuggestions");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},RH=async(r,f)=>{const s=Fr("GetOperationDetail");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},WH=async(r,f)=>{const s=Fr("ListDomains");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},zH=async(r,f)=>{const s=Fr("ListOperations");let w;return w=JSON.stringify(Hp(r,f)),Ir(f,s,"/",void 0,w)},SH=async(r,f)=>{const s=Fr("ListPrices");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},PH=async(r,f)=>{const s=Fr("ListTagsForDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},XH=async(r,f)=>{const s=Fr("PushDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},YH=async(r,f)=>{const s=Fr("RegisterDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},KH=async(r,f)=>{const s=Fr("RejectDomainTransferFromAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},ZH=async(r,f)=>{const s=Fr("RenewDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},MH=async(r,f)=>{const s=Fr("ResendContactReachabilityEmail");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},JH=async(r,f)=>{const s=Fr("ResendOperationAuthorization");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},QH=async(r,f)=>{const s=Fr("RetrieveDomainAuthCode");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},BH=async(r,f)=>{const s=Fr("TransferDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},lH=async(r,f)=>{const s=Fr("TransferDomainToAnotherAwsAccount");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},VH=async(r,f)=>{const s=Fr("UpdateDomainContact");let w;return w=JSON.stringify(Dp(r,f)),Ir(f,s,"/",void 0,w)},HH=async(r,f)=>{const s=Fr("UpdateDomainContactPrivacy");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},DH=async(r,f)=>{const s=Fr("UpdateDomainNameservers");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},kH=async(r,f)=>{const s=Fr("UpdateTagsForDomain");let w;return w=JSON.stringify(q(r)),Ir(f,s,"/",void 0,w)},NH=async(r,f)=>{const s=Fr("ViewBilling");let w;return w=JSON.stringify(kp(r,f)),Ir(f,s,"/",void 0,w)},yH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},qH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},mH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},vH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},jH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},iH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},dH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},OH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},bH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},cH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},_H=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},gH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},xH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},eH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=ip(s,f),{$metadata:rr(r),...w}},nH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},oH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=dp(s,f),{$metadata:rr(r),...w}},aH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=Op(s,f),{$metadata:rr(r),...w}},pH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=bp(s,f),{$metadata:rr(r),...w}},uH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=cp(s,f),{$metadata:rr(r),...w}},tH=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},rD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);return await gr(r.body,f),{$metadata:rr(r)}},sD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},fD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},wD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},hD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},ED=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);return await gr(r.body,f),{$metadata:rr(r)}},$D=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},ID=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},FD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},UD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},TD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},GD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},CD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=q(s),{$metadata:rr(r),...w}},LD=async(r,f)=>{if(r.statusCode>=300)return $r(r,f);const s=await fr.parseJsonBody(r.body,f);let w={};return w=xp(s,f),{$metadata:rr(r),...w}},$r=async(r,f)=>{const s={...r,body:await fr.parseJsonErrorBody(r.body,f)},w=fr.loadRestJsonErrorCode(r,s.body);switch(w){case"DomainLimitExceeded":case"com.amazonaws.route53domains#DomainLimitExceeded":throw await Zp(s,f);case"InvalidInput":case"com.amazonaws.route53domains#InvalidInput":throw await Jp(s,f);case"OperationLimitExceeded":case"com.amazonaws.route53domains#OperationLimitExceeded":throw await Qp(s,f);case"UnsupportedTLD":case"com.amazonaws.route53domains#UnsupportedTLD":throw await lp(s,f);case"DnssecLimitExceeded":case"com.amazonaws.route53domains#DnssecLimitExceeded":throw await Kp(s,f);case"DuplicateRequest":case"com.amazonaws.route53domains#DuplicateRequest":throw await Mp(s,f);case"TLDRulesViolation":case"com.amazonaws.route53domains#TLDRulesViolation":throw await Bp(s,f);default:const h=s.body;return ep({output:r,parsedBody:h,errorCode:w})}},Kp=async(r,f)=>{const s=r.body,w=q(s),h=new UF({$metadata:rr(r),...w});return D(h,s)},Zp=async(r,f)=>{const s=r.body,w=q(s),h=new EF({$metadata:rr(r),...w});return D(h,s)},Mp=async(r,f)=>{const s=r.body,w=q(s),h=new TF({$metadata:rr(r),...w});return D(h,s)},Jp=async(r,f)=>{const s=r.body,w=q(s),h=new $F({$metadata:rr(r),...w});return D(h,s)},Qp=async(r,f)=>{const s=r.body,w=q(s),h=new IF({$metadata:rr(r),...w});return D(h,s)},Bp=async(r,f)=>{const s=r.body,w=q(s),h=new GF({$metadata:rr(r),...w});return D(h,s)},lp=async(r,f)=>{const s=r.body,w=q(s),h=new FF({$metadata:rr(r),...w});return D(h,s)},Vp=(r,f)=>{return p(r,{Currency:[],MaxPrice:VX})},Hp=(r,f)=>{return p(r,{Marker:[],MaxItems:[],SortBy:[],SortOrder:[],Status:q,SubmittedSince:(s)=>s.getTime()/1000,Type:q})},Dp=(r,f)=>{return p(r,{AdminContact:q,BillingContact:q,Consent:(s)=>Vp(s,f),DomainName:[],RegistrantContact:q,TechContact:q})},kp=(r,f)=>{return p(r,{End:(s)=>s.getTime()/1000,Marker:[],MaxItems:[],Start:(s)=>s.getTime()/1000})},Np=(r,f)=>{return p(r,{BillDate:(s)=>y(qf(Fs(s))),DomainName:T,InvoiceId:T,Operation:T,Price:IU})},yp=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return Np(w,f)})},qp=(r,f)=>{return p(r,{ChangeOwnershipPrice:(s)=>s$(s,f),Name:T,RegistrationPrice:(s)=>s$(s,f),RenewalPrice:(s)=>s$(s,f),RestorationPrice:(s)=>s$(s,f),TransferPrice:(s)=>s$(s,f)})},mp=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return qp(w,f)})},vp=(r,f)=>{return p(r,{AutoRenew:d0,DomainName:T,Expiry:(s)=>y(qf(Fs(s))),TransferLock:d0})},jp=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return vp(w,f)})},ip=(r,f)=>{return p(r,{AbuseContactEmail:T,AbuseContactPhone:T,AdminContact:q,AdminPrivacy:d0,AutoRenew:d0,BillingContact:q,BillingPrivacy:d0,CreationDate:(s)=>y(qf(Fs(s))),DnsSec:T,DnssecKeys:q,DomainName:T,ExpirationDate:(s)=>y(qf(Fs(s))),Nameservers:q,RegistrantContact:q,RegistrantPrivacy:d0,RegistrarName:T,RegistrarUrl:T,RegistryDomainId:T,Reseller:T,StatusList:q,TechContact:q,TechPrivacy:d0,UpdatedDate:(s)=>y(qf(Fs(s))),WhoIsServer:T})},dp=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(qf(Fs(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(qf(Fs(s))),Type:T})},Op=(r,f)=>{return p(r,{Domains:(s)=>jp(s,f),NextPageMarker:T})},bp=(r,f)=>{return p(r,{NextPageMarker:T,Operations:(s)=>gp(s,f)})},cp=(r,f)=>{return p(r,{NextPageMarker:T,Prices:(s)=>mp(s,f)})},_p=(r,f)=>{return p(r,{DomainName:T,LastUpdatedDate:(s)=>y(qf(Fs(s))),Message:T,OperationId:T,Status:T,StatusFlag:T,SubmittedDate:(s)=>y(qf(Fs(s))),Type:T})},gp=(r,f)=>{return(r||[]).filter((w)=>w!=null).map((w)=>{return _p(w,f)})},s$=(r,f)=>{return p(r,{Currency:T,Price:IU})},xp=(r,f)=>{return p(r,{BillingRecords:(s)=>yp(s,f),NextPageMarker:T})},rr=(r)=>({httpStatusCode:r.statusCode,requestId:r.headers["x-amzn-requestid"]??r.headers["x-amzn-request-id"]??r.headers["x-amz-request-id"],extendedRequestId:r.headers["x-amz-id-2"],cfId:r.headers["x-amz-cf-id"]});var ep=mf(gs),Ir=async(r,f,s,w,h)=>{const{hostname:E,protocol:$="https",port:I,path:F}=await r.endpoint(),U={protocol:$,hostname:E,port:I,method:"POST",path:F.endsWith("/")?F.slice(0,-1)+s:F+s,headers:f};if(w!==void 0)U.hostname=w;if(h!==void 0)U.body=h;return new Qr(U)};class I4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AcceptDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","AcceptDomainTransferFromAnotherAwsAccountCommand").f(_V,void 0).ser(rH).de(yH).build(){}B();V();Y();class F4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","AssociateDelegationSignerToDomain",{}).n("Route53DomainsClient","AssociateDelegationSignerToDomainCommand").f(void 0,void 0).ser(sH).de(qH).build(){}B();V();Y();class U4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CancelDomainTransferToAnotherAwsAccount",{}).n("Route53DomainsClient","CancelDomainTransferToAnotherAwsAccountCommand").f(void 0,void 0).ser(fH).de(mH).build(){}B();V();Y();class T4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainAvailability",{}).n("Route53DomainsClient","CheckDomainAvailabilityCommand").f(void 0,void 0).ser(wH).de(vH).build(){}B();V();Y();class G4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","CheckDomainTransferability",{}).n("Route53DomainsClient","CheckDomainTransferabilityCommand").f(gV,void 0).ser(hH).de(jH).build(){}B();V();Y();class C4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteDomain",{}).n("Route53DomainsClient","DeleteDomainCommand").f(void 0,void 0).ser(EH).de(iH).build(){}B();V();Y();class L4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DeleteTagsForDomain",{}).n("Route53DomainsClient","DeleteTagsForDomainCommand").f(void 0,void 0).ser($H).de(dH).build(){}B();V();Y();class A4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainAutoRenew",{}).n("Route53DomainsClient","DisableDomainAutoRenewCommand").f(void 0,void 0).ser(IH).de(OH).build(){}B();V();Y();class R4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisableDomainTransferLock",{}).n("Route53DomainsClient","DisableDomainTransferLockCommand").f(void 0,void 0).ser(FH).de(bH).build(){}B();V();Y();class W4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","DisassociateDelegationSignerFromDomain",{}).n("Route53DomainsClient","DisassociateDelegationSignerFromDomainCommand").f(void 0,void 0).ser(UH).de(cH).build(){}B();V();Y();class z4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainAutoRenew",{}).n("Route53DomainsClient","EnableDomainAutoRenewCommand").f(void 0,void 0).ser(TH).de(_H).build(){}B();V();Y();class S4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","EnableDomainTransferLock",{}).n("Route53DomainsClient","EnableDomainTransferLockCommand").f(void 0,void 0).ser(GH).de(gH).build(){}B();V();Y();class P4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetContactReachabilityStatus",{}).n("Route53DomainsClient","GetContactReachabilityStatusCommand").f(void 0,void 0).ser(CH).de(xH).build(){}B();V();Y();class X4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainDetail",{}).n("Route53DomainsClient","GetDomainDetailCommand").f(void 0,xV).ser(LH).de(eH).build(){}B();V();Y();class Y4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetDomainSuggestions",{}).n("Route53DomainsClient","GetDomainSuggestionsCommand").f(void 0,void 0).ser(AH).de(nH).build(){}B();V();Y();class K4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","GetOperationDetail",{}).n("Route53DomainsClient","GetOperationDetailCommand").f(void 0,void 0).ser(RH).de(oH).build(){}B();V();Y();class Z4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListDomains",{}).n("Route53DomainsClient","ListDomainsCommand").f(void 0,void 0).ser(WH).de(aH).build(){}B();V();Y();class M4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListOperations",{}).n("Route53DomainsClient","ListOperationsCommand").f(void 0,void 0).ser(zH).de(pH).build(){}B();V();Y();class J4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListPrices",{}).n("Route53DomainsClient","ListPricesCommand").f(void 0,void 0).ser(SH).de(uH).build(){}B();V();Y();class Q4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ListTagsForDomain",{}).n("Route53DomainsClient","ListTagsForDomainCommand").f(void 0,void 0).ser(PH).de(tH).build(){}B();V();Y();class B4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","PushDomain",{}).n("Route53DomainsClient","PushDomainCommand").f(void 0,void 0).ser(XH).de(rD).build(){}B();V();Y();class l4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RegisterDomain",{}).n("Route53DomainsClient","RegisterDomainCommand").f(eV,void 0).ser(YH).de(sD).build(){}B();V();Y();class V4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RejectDomainTransferFromAnotherAwsAccount",{}).n("Route53DomainsClient","RejectDomainTransferFromAnotherAwsAccountCommand").f(void 0,void 0).ser(KH).de(fD).build(){}B();V();Y();class H4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RenewDomain",{}).n("Route53DomainsClient","RenewDomainCommand").f(void 0,void 0).ser(ZH).de(wD).build(){}B();V();Y();class D4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendContactReachabilityEmail",{}).n("Route53DomainsClient","ResendContactReachabilityEmailCommand").f(void 0,nV).ser(MH).de(hD).build(){}B();V();Y();class k4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ResendOperationAuthorization",{}).n("Route53DomainsClient","ResendOperationAuthorizationCommand").f(void 0,void 0).ser(JH).de(ED).build(){}B();V();Y();class N4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","RetrieveDomainAuthCode",{}).n("Route53DomainsClient","RetrieveDomainAuthCodeCommand").f(void 0,oV).ser(QH).de($D).build(){}B();V();Y();class y4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomain",{}).n("Route53DomainsClient","TransferDomainCommand").f(aV,void 0).ser(BH).de(ID).build(){}B();V();Y();class q4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","TransferDomainToAnotherAwsAccount",{}).n("Route53DomainsClient","TransferDomainToAnotherAwsAccountCommand").f(void 0,pV).ser(lH).de(FD).build(){}B();V();Y();class m4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContact",{}).n("Route53DomainsClient","UpdateDomainContactCommand").f(uV,void 0).ser(VH).de(UD).build(){}B();V();Y();class v4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainContactPrivacy",{}).n("Route53DomainsClient","UpdateDomainContactPrivacyCommand").f(void 0,void 0).ser(HH).de(TD).build(){}B();V();Y();class j4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateDomainNameservers",{}).n("Route53DomainsClient","UpdateDomainNameserversCommand").f(tV,void 0).ser(DH).de(GD).build(){}B();V();Y();class i4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","UpdateTagsForDomain",{}).n("Route53DomainsClient","UpdateTagsForDomainCommand").f(void 0,void 0).ser(kH).de(CD).build(){}B();V();Y();class d4 extends A.classBuilder().ep({...c}).m(function(r,f,s,w){return[R(s,this.serialize,this.deserialize),W(s,r.getEndpointParameterInstructions())]}).s("Route53Domains_v20140515","ViewBilling",{}).n("Route53DomainsClient","ViewBillingCommand").f(void 0,void 0).ser(NH).de(LD).build(){}var np={AcceptDomainTransferFromAnotherAwsAccountCommand:I4,AssociateDelegationSignerToDomainCommand:F4,CancelDomainTransferToAnotherAwsAccountCommand:U4,CheckDomainAvailabilityCommand:T4,CheckDomainTransferabilityCommand:G4,DeleteDomainCommand:C4,DeleteTagsForDomainCommand:L4,DisableDomainAutoRenewCommand:A4,DisableDomainTransferLockCommand:R4,DisassociateDelegationSignerFromDomainCommand:W4,EnableDomainAutoRenewCommand:z4,EnableDomainTransferLockCommand:S4,GetContactReachabilityStatusCommand:P4,GetDomainDetailCommand:X4,GetDomainSuggestionsCommand:Y4,GetOperationDetailCommand:K4,ListDomainsCommand:Z4,ListOperationsCommand:M4,ListPricesCommand:J4,ListTagsForDomainCommand:Q4,PushDomainCommand:B4,RegisterDomainCommand:l4,RejectDomainTransferFromAnotherAwsAccountCommand:V4,RenewDomainCommand:H4,ResendContactReachabilityEmailCommand:D4,ResendOperationAuthorizationCommand:k4,RetrieveDomainAuthCodeCommand:N4,TransferDomainCommand:y4,TransferDomainToAnotherAwsAccountCommand:q4,UpdateDomainContactCommand:m4,UpdateDomainContactPrivacyCommand:v4,UpdateDomainNameserversCommand:j4,UpdateTagsForDomainCommand:i4,ViewBillingCommand:d4};class f$ extends $4{}yf(np,f$);import{runAction as op}from"@stacksjs/actions";import{config as RD}from"@stacksjs/config";import{Action as ap}from"@stacksjs/enums";import{err as xw,handleError as O4,ok as E1}from"@stacksjs/error-handling";import{log as Uw}from"@stacksjs/logging";import{path as pp}from"@stacksjs/path";import{fs as AD}from"@stacksjs/storage";async function Clr(r){const f=new Fw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return xw(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find((E)=>E.Name===`${r}.`);if(!w)return xw(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return xw(`No DNS records found for domain: ${r}`);for(let E of h.ResourceRecordSets)if(E.Type!=="NS"&&E.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:E}]}});return await f.deleteHostedZone({Id:w.Id}),Uw.info(`Deleted Hosted Zone for domain: ${r}`),E1("success")}async function Llr(r){const f=new Fw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return xw(`No hosted zones found for domain: ${r}`);const w=s.HostedZones.find((E)=>E.Name===`${r}.`);if(!w)return xw(`Hosted Zone not found for domain: ${r}`);const h=await f.listResourceRecordSets({HostedZoneId:w.Id});if(!h||!h.ResourceRecordSets)return xw(`No DNS records found for domain: ${r}`);for(let E of h.ResourceRecordSets)if(E.Type!=="NS"&&E.Type!=="SOA")await f.changeResourceRecordSets({HostedZoneId:w.Id,ChangeBatch:{Changes:[{Action:"DELETE",ResourceRecordSet:E}]}});return Uw.info(`Deleted DNS records for domain: ${r}`),E1("success")}async function Alr(r){const f=new Fw,w=(await f.listHostedZonesByName({DNSName:r})).HostedZones?.find((E)=>E.Name===`${r}.`);if(w)return E1(w);const h=await f.createHostedZone({Name:r,CallerReference:`${Date.now()}`});if(!h.HostedZone)return xw("Failed to create hosted zone");return E1(h)}function up(r){try{const f=pp.projectConfigPath("dns.ts"),w=AD.readFileSync(f,"utf-8").replace(/nameservers: \[.*?\]/s,`nameservers: [${r.map((h)=>`'${h}'`).join(", ")}]`);AD.writeFileSync(f,w,"utf-8"),Uw.info("Nameservers have been set.")}catch(f){console.error("Error updating nameservers:",f)}}async function Rlr(r){try{const f=new Fw,{HostedZones:s}=await f.listHostedZonesByName({DNSName:r});if(!s)return O4(`No hosted zones found for domain ${r}`);const w=s[0];if(w&&w.Name===`${r}.`)return E1(w.Id);return E1(null)}catch(f){return console.error(f),O4(`Failed to find hosted zone for domain ${r}`)}}async function tp(r){if(!r)return[];try{return(await new f$().getDomainDetail({DomainName:r}))?.Nameservers?.map((w)=>w.Name)||[]}catch(f){console.error(f),O4("Error getting domain detail")}}async function ru(r,f){if(!f)f=RD.app.url;const s=await tp(f);if(s&&r&&JSON.stringify(s.sort())!==JSON.stringify(r.sort()))return Uw.info("Updating your domain nameservers to match the ones in your hosted zone..."),Uw.debug("Hosted zone nameservers:",r),Uw.debug("Domain nameservers:",s),await new f$().updateDomainNameservers({DomainName:f,Nameservers:r.map((h)=>({Name:h}))}),up(r),Uw.info("Nameservers updated."),!0;Uw.success("Your nameservers are up to date.")}async function Wlr(r){if(!r)r=RD.app.url;const f=new Fw,s=await f.listHostedZonesByName({DNSName:r});if(!s||!s.HostedZones)return!1;const w=s.HostedZones.find((h)=>h.Name===`${r}.`);if(w){const E=(await f.getHostedZone({Id:w.Id})).DelegationSet?.NameServers||[];return await ru(E,r),!0}return!1}async function zlr(r){return await op(ap.DomainsAdd,r)}export{up as writeNameserversToConfig,ru as updateNameservers,Wlr as hasUserDomainBeenAddedToCloud,tp as getNameservers,Rlr as findHostedZone,Llr as deleteHostedZoneRecords,Clr as deleteHostedZone,Alr as createHostedZone,zlr as addDomain};
34
34
 
35
- //# debugId=4DCE8F45792298AF64756E2164756E21
35
+ //# debugId=3FD63C39E026543764756E2164756E21
36
36
  //# sourceMappingURL=index.js.map