@stacksjs/dns 0.62.0 → 0.63.1
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 +35 -188
- package/dist/index.js.map +567 -0
- package/package.json +4 -14
package/dist/index.js
CHANGED
|
@@ -1,189 +1,36 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// src/drivers/aws.ts
|
|
3
|
-
|
|
4
|
-
import {Route53Domains} from "@aws-sdk/client-route-53-domains";
|
|
5
|
-
|
|
6
|
-
import {config as config2} from "@stacksjs/config";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return err(`Hosted Zone not found for domain: ${domainName}`);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
25
|
-
if (!recordSets || !recordSets.ResourceRecordSets)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
await route53.deleteHostedZone({ Id: hostedZone.Id });
|
|
43
|
-
log.info(`Deleted Hosted Zone for domain: ${domainName}`);
|
|
44
|
-
return ok("success");
|
|
45
|
-
}
|
|
46
|
-
async function deleteHostedZoneRecords(domainName) {
|
|
47
|
-
const route53 = new Route53;
|
|
48
|
-
const hostedZones = await route53.listHostedZonesByName({
|
|
49
|
-
DNSName: domainName
|
|
50
|
-
});
|
|
51
|
-
if (!hostedZones || !hostedZones.HostedZones)
|
|
52
|
-
return err(`No hosted zones found for domain: ${domainName}`);
|
|
53
|
-
const hostedZone = hostedZones.HostedZones.find((zone) => zone.Name === `${domainName}.`);
|
|
54
|
-
if (!hostedZone)
|
|
55
|
-
return err(`Hosted Zone not found for domain: ${domainName}`);
|
|
56
|
-
const recordSets = await route53.listResourceRecordSets({
|
|
57
|
-
HostedZoneId: hostedZone.Id
|
|
58
|
-
});
|
|
59
|
-
if (!recordSets || !recordSets.ResourceRecordSets)
|
|
60
|
-
return err(`No DNS records found for domain: ${domainName}`);
|
|
61
|
-
for (const recordSet of recordSets.ResourceRecordSets) {
|
|
62
|
-
if (recordSet.Type !== "NS" && recordSet.Type !== "SOA") {
|
|
63
|
-
await route53.changeResourceRecordSets({
|
|
64
|
-
HostedZoneId: hostedZone.Id,
|
|
65
|
-
ChangeBatch: {
|
|
66
|
-
Changes: [
|
|
67
|
-
{
|
|
68
|
-
Action: "DELETE",
|
|
69
|
-
ResourceRecordSet: recordSet
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
log.info(`Deleted DNS records for domain: ${domainName}`);
|
|
77
|
-
return ok("success");
|
|
78
|
-
}
|
|
79
|
-
async function createHostedZone(domainName) {
|
|
80
|
-
const route53 = new Route53;
|
|
81
|
-
const existingHostedZones = await route53.listHostedZonesByName({
|
|
82
|
-
DNSName: domainName
|
|
83
|
-
});
|
|
84
|
-
const existingHostedZone = existingHostedZones.HostedZones?.find((zone) => zone.Name === `${domainName}.`);
|
|
85
|
-
if (existingHostedZone)
|
|
86
|
-
return ok(existingHostedZone);
|
|
87
|
-
const createHostedZoneOutput = await route53.createHostedZone({
|
|
88
|
-
Name: domainName,
|
|
89
|
-
CallerReference: `${Date.now()}`
|
|
90
|
-
});
|
|
91
|
-
if (!createHostedZoneOutput.HostedZone)
|
|
92
|
-
return err("Failed to create hosted zone");
|
|
93
|
-
return ok(createHostedZoneOutput);
|
|
94
|
-
}
|
|
95
|
-
function writeNameserversToConfig(nameservers) {
|
|
96
|
-
try {
|
|
97
|
-
const path2 = p.projectConfigPath("dns.ts");
|
|
98
|
-
const fileContent = fs.readFileSync(path2, "utf-8");
|
|
99
|
-
const modifiedContent = fileContent.replace(/nameservers: \[.*?\]/s, `nameservers: [${nameservers.map((ns) => `'${ns}'`).join(", ")}]`);
|
|
100
|
-
fs.writeFileSync(path2, modifiedContent, "utf-8");
|
|
101
|
-
log.info("Nameservers have been set.");
|
|
102
|
-
} catch (err2) {
|
|
103
|
-
console.error("Error updating nameservers:", err2);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
async function findHostedZone(domain) {
|
|
107
|
-
try {
|
|
108
|
-
const route53 = new Route53;
|
|
109
|
-
const { HostedZones } = await route53.listHostedZonesByName({
|
|
110
|
-
DNSName: domain
|
|
111
|
-
});
|
|
112
|
-
if (!HostedZones)
|
|
113
|
-
return handleError(`No hosted zones found for domain ${domain}`);
|
|
114
|
-
const hostedZone = HostedZones[0];
|
|
115
|
-
if (hostedZone && hostedZone.Name === `${domain}.`)
|
|
116
|
-
return ok(hostedZone.Id);
|
|
117
|
-
return ok(null);
|
|
118
|
-
} catch (error) {
|
|
119
|
-
console.error(error);
|
|
120
|
-
return handleError(`Failed to find hosted zone for domain ${domain}`);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
async function getNameservers(domainName) {
|
|
124
|
-
if (!domainName)
|
|
125
|
-
return [];
|
|
126
|
-
try {
|
|
127
|
-
const route53Domains = new Route53Domains;
|
|
128
|
-
const domainDetail = await route53Domains.getDomainDetail({
|
|
129
|
-
DomainName: domainName
|
|
130
|
-
});
|
|
131
|
-
return domainDetail?.Nameservers?.map((ns) => ns.Name) || [];
|
|
132
|
-
} catch (error) {
|
|
133
|
-
console.error(error);
|
|
134
|
-
handleError("Error getting domain detail");
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
async function updateNameservers(hostedZoneNameservers, domainName) {
|
|
138
|
-
if (!domainName)
|
|
139
|
-
domainName = config2.app.url;
|
|
140
|
-
const domainNameservers = await getNameservers(domainName);
|
|
141
|
-
if (domainNameservers && hostedZoneNameservers && JSON.stringify(domainNameservers.sort()) !== JSON.stringify(hostedZoneNameservers.sort())) {
|
|
142
|
-
log.info("Updating your domain nameservers to match the ones in your hosted zone...");
|
|
143
|
-
log.debug("Hosted zone nameservers:", hostedZoneNameservers);
|
|
144
|
-
log.debug("Domain nameservers:", domainNameservers);
|
|
145
|
-
const route53Domains = new Route53Domains;
|
|
146
|
-
await route53Domains.updateDomainNameservers({
|
|
147
|
-
DomainName: domainName,
|
|
148
|
-
Nameservers: hostedZoneNameservers.map((ns) => ({ Name: ns }))
|
|
149
|
-
});
|
|
150
|
-
writeNameserversToConfig(hostedZoneNameservers);
|
|
151
|
-
log.info("Nameservers updated.");
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
log.success("Your nameservers are up to date.");
|
|
155
|
-
}
|
|
156
|
-
async function hasUserDomainBeenAddedToCloud(domainName) {
|
|
157
|
-
if (!domainName)
|
|
158
|
-
domainName = config2.app.url;
|
|
159
|
-
const route53 = new Route53;
|
|
160
|
-
const existingHostedZones = await route53.listHostedZonesByName({
|
|
161
|
-
DNSName: domainName
|
|
162
|
-
});
|
|
163
|
-
if (!existingHostedZones || !existingHostedZones.HostedZones)
|
|
164
|
-
return false;
|
|
165
|
-
const existingHostedZone = existingHostedZones.HostedZones.find((zone) => zone.Name === `${domainName}.`);
|
|
166
|
-
if (existingHostedZone) {
|
|
167
|
-
const hostedZoneDetail = await route53.getHostedZone({
|
|
168
|
-
Id: existingHostedZone.Id
|
|
169
|
-
});
|
|
170
|
-
const hostedZoneNameservers = hostedZoneDetail.DelegationSet?.NameServers || [];
|
|
171
|
-
await updateNameservers(hostedZoneNameservers, domainName);
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
return false;
|
|
175
|
-
}
|
|
176
|
-
async function addDomain(options) {
|
|
177
|
-
return await runAction(Action.DomainsAdd, options);
|
|
178
|
-
}
|
|
179
|
-
export {
|
|
180
|
-
writeNameserversToConfig,
|
|
181
|
-
updateNameservers,
|
|
182
|
-
hasUserDomainBeenAddedToCloud,
|
|
183
|
-
getNameservers,
|
|
184
|
-
findHostedZone,
|
|
185
|
-
deleteHostedZoneRecords,
|
|
186
|
-
deleteHostedZone,
|
|
187
|
-
createHostedZone,
|
|
188
|
-
addDomain
|
|
189
|
-
};
|
|
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)"},"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.
|
|
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 rT=({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 rT({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,rT({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 sT{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 fT=G(()=>{Rs()});var wT=G(()=>{V1()});var hT=(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 $T=G(()=>{ir();V1();Rs();uP();fT();wT()});var tP=G(()=>{Rs();$T()});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 sT(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 ET=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(()=>{ET()});var FX=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as IT}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 IT.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?IT.from(r,f):IT.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 FT=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(()=>{FT()});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(()=>{FT();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();UT()});var z0;var UT=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 TT=(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 GT=()=>{};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 CT(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 LT=()=>{};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:TT(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});$=CT(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();GT();LT()});var HX=()=>{};var VX=G(()=>{HX()});var kX=G(()=>{ir();S3();GT();VX();LT()});import{Writable as zO}from"stream";var AT;var DX=G(()=>{AT=class AT 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 AT;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 RT}from"stream";import{TextDecoder as ZO}from"util";var bX="The stream has already been transformed.",gX=(r)=>{if(!(r instanceof RT))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 RT.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,RT.toWeb(r)}})};var _X=G(()=>{_0();Qw();cX()});var xX=()=>{};var eX=()=>{};var WT=G(()=>{UT();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(()=>{WT()});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(()=>{ET();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)=>zT(r,32),tX=(r)=>zT(r,16),rY=(r)=>zT(r,8),zT=(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}`)},ST=(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)},PT=(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)},XT=(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 YT=G(()=>{lO=Math.ceil(340282346638528860000000000000000000000),sY=ST,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=XT(KT(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=XT(KT(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,r2r,Of=(r)=>{if(r===null||r===void 0)return;let f;if(typeof r==="number")f=r;else if(typeof r==="string")f=ST(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(KT(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},KT=(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(()=>{YT();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$/),r2r=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 ZT=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(()=>{ZT()});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 lT,UY=(r)=>{const f=[];for(let s in lT.AlgorithmId){const w=lT.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(()=>{lT=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 JT=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(()=>{JT.prototype=Object.create(String.prototype,{constructor:{value:JT,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(JT,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();ZT();WY();YT();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=hT(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();$T();fX();fT();wX();wT();KY()});var aY=v((GIr,l3)=>{var ZY,lY,JY,QY,MY,BY,HY,VY,kY,DY,iY,yY,mY,K3,QT,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 GIr==="object")r(s(f,s(GIr)));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.")},QT=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(QT(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",QT),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((CIr,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
|
|
7
|
+
no longer support Node.js 16.x on January 6, 2025.
|
|
8
|
+
|
|
9
|
+
To continue receiving updates to AWS services, bug fixes, and security
|
|
10
|
+
updates please upgrade to a supported Node.js LTS version.
|
|
11
|
+
|
|
12
|
+
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var XK=v((LIr,PK)=>{function kT(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:()=>VT,getCanonicalQuery:()=>LK,getPayloadHash:()=>H3,getSigningKey:()=>CK,moveHeadersToQuery:()=>zK,prepareRequest:()=>DT});PK.exports=Ic($K);var sK=G1(),MT=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(),HT="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-/,BT="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"),VT=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()===HT)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)kT(s);return new r(s)}valueOf(){const f=this.bytes.slice(0),s=f[0]&128;if(s)kT(f);return parseInt(e0.toHex(f),16)*(s?-1:1)}toString(){return String(this.valueOf())}};Nr(RK,"Int64");var Hc=RK;Nr(kT,"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"),DT=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(DT(f),{unhoistableHeaders:E});if(C.sessionToken)D.query[FK]=C.sessionToken;D.query[Fc]=BT,D.query[Uc]=`${C.accessKeyId}/${Z}`,D.query[EK]=z,D.query[Gc]=h.toString(10);const B=VT(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(MT.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=DT(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(HT,U.headers)&&this.applyChecksum)U.headers[HT]=S;const Z=VT(U,h,w),D=await this.getSignature(C,z,this.getSigningKey(I,F,L,E),this.createCanonicalRequest(U,Z,S));return U.headers[UK]=`${BT} Credential=${I.accessKeyId}/${z}, SignedHeaders=${hK(Z)}, Signature=${D}`,U}createCanonicalRequest(f,s,w){const h=Object.keys(s).sort();return`${f.method}
|
|
13
|
+
${this.getCanonicalPath(f)}
|
|
14
|
+
${LK(f)}
|
|
15
|
+
${h.map(($)=>`${$}:${s[$]}`).join("\n")}
|
|
16
|
+
|
|
17
|
+
${h.join(";")}
|
|
18
|
+
${w}`}async createStringToSign(f,s,w){const h=new this.sha256;h.update(MT.toUint8Array(w));const $=await h.digest();return`${BT}
|
|
19
|
+
${f}
|
|
20
|
+
${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(MT.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((AIr,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:()=>mT,NODE_SIGV4A_CONFIG_OPTIONS:()=>nc,resolveAWSSDKSigV4Config:()=>oc,resolveAwsSdkSigV4AConfig:()=>ec,resolveAwsSdkSigV4Config:()=>BK,validateSigningProperties:()=>yT});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"),iT=Ss((r)=>new Date(Date.now()+r),"getSkewCorrectedDate"),cc=Ss((r,f)=>Math.abs(iT(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"),yT=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 yT(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:iT(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 mT=QK,bc=mT,gc=G0(),MK=class r extends mT{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 yT(w),L=(await((h=$.sigv4aSigningRegionSet)==null?void 0:h.call($))??F??[I]).join(",");return await E.sign(f,{signingDate:iT($.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 qT=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=NT.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 NT.isName(r)}function Rb(r){return NT.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 NT=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((SIr,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((PIr,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((XIr,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((YIr,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 jT(r,this.options.parseTagValue,this.options.numberParseOptions);else if(r.trim()===r)return jT(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]=jT(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 vT(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 $=vT(r,s,">");if($){if(($&&$.tagName)===f&&$.tagExp[$.tagExp.length-1]!=="/")h++;s=$.closeIndex}}}function jT(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=vT(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=vT(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((ZIr,tK)=>{var{buildOptions:fg}=vK(),wg=oK(),{prettify:hg}=pK(),$g=qT();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 '
'");else if(f==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[r]=f}}tK.exports=uK});var $Z=v((lIr,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((JIr,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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};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((QIr,FZ)=>{var Ag=qT(),Rg=rZ(),Wg=IZ();FZ.exports={XMLParser:Rg,XMLValidator:Ag,XMLBuilder:Wg}});var RZ=v((MIr,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 dT=aY();dT.__exportStar(rK(),v1);dT.__exportStar(VK(),v1);dT.__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",OT=(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:()=>OT,ENV_SESSION:()=>KZ,ENV_SECRET:()=>m3,ENV_KEY:()=>y3,ENV_EXPIRATION:()=>ZZ,ENV_CREDENTIAL_SCOPE:()=>lZ,ENV_ACCOUNT_ID:()=>JZ});var cT=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",bT="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[bT])f.headers={...f.headers,Authorization:process.env[bT]};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 gT=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 _T=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(()=>{_T();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 xT=G(()=>{$f();b0();gT();kZ();_T();iZ()});var eT=(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=eT(h,s)}catch($){if(w)s.warn("Credential renew failed: ",$),h=eT(w,s);else throw $}return w=h,h}};var mZ=()=>{};var vZ="/latest/meta-data/iam/security-credentials/",ug="/latest/api/token",nT="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[nT];if(z=!!D&&D!=="false",D===void 0)throw new _(`${nT} 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 (${nT})`);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();xT();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:()=>bT,DEFAULT_TIMEOUT:()=>jg,DEFAULT_MAX_RETRIES:()=>dg});var c1=G(()=>{BZ();jZ();dZ();N3();xT();gT()});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:
|
|
22
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
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();WT()});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 oT={};Sf(oT,{fromHttp:()=>eZ});var aT=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(() => (aT(),oT));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 pT=(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 uT(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`")})()}},r9=(r)=>{const f=[];switch(r.operation){case"CreateToken":{f.push(uT(r));break}case"RegisterClient":{f.push(uT(r));break}case"StartDeviceAuthorization":{f.push(uT(r));break}default:f.push(A_(r))}return f},s9=(r)=>{return{...uZ.resolveAwsSdkSigV4Config(r)}};var tT=G(()=>{uZ=u(Br(),1);rf()});var f9=(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 h9;var w9=G(()=>{h9={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.632.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.629.0","@aws-sdk/credential-provider-node":"3.632.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.632.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.632.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.3.2","@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.14","@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.1.12","@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.14","@smithy/util-defaults-mode-node":"^3.0.14","@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.632.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 r5;var s5=G(()=>{r5={isCrtAvailable:!1}});var $9=()=>{if(r5.isCrtAvailable)return["md/crt-avail"];return null};var E9=G(()=>{s5()});import{platform as W_,release as z_}from"os";import{env as I9,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=$9();if(w)s.push(w);if(r)s.push([`api/${r}`,f]);if(I9.AWS_EXECUTION_ENV)s.push([`exec-env/${I9.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();E9();s5()});import{Buffer as Y_}from"buffer";import{createHash as K_,createHmac as Z_}from"crypto";function F9(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(F9(r,f)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Z_(this.algorithmIdentifier,F9(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 U9=()=>{};var Jh=G(()=>{U9()});var T9,G9,C9,S9,P9,qs,L9,X9,A9,R9,W9,z9,Q_,Y9;var K9=G(()=>{T9={["required"]:!1,type:"String"},G9={["required"]:!0,default:!1,type:"Boolean"},C9={["ref"]:"Endpoint"},S9={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},P9={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},qs={},L9={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},X9={["ref"]:"PartitionResult"},A9={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[X9,"supportsDualStack"]}]},R9=[S9],W9=[P9],z9=[{["ref"]:"Region"}],Q_={version:"1.0",parameters:{Region:T9,UseDualStack:G9,UseFIPS:G9,Endpoint:T9},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[C9]}],rules:[{conditions:R9,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:W9,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:C9,properties:qs,headers:qs},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:z9}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:z9,assign:"PartitionResult"}],rules:[{conditions:[S9,P9],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,L9]},A9],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:R9,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[L9,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[X9,"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:W9,rules:[{conditions:[A9],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"}]},Y9=Q_});var Z9=(r,f={})=>{return ps(Y9,{endpointParams:r,logger:f.logger})};var l9=G(()=>{Ww();us();K9();ur.aws=ts});var J9,Q9,M9=(r)=>{return{apiVersion:"2019-06-10",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??Z9,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??r9,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new J9.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Q9.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"SSO OIDC",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var B9=G(()=>{J9=u(Br(),1),Q9=u(Or(),1);Y();b0();W0();jf();tT();l9()});var H9="AWS_EXECUTION_ENV",f5="AWS_REGION",w5="AWS_DEFAULT_REGION",V9="AWS_EC2_METADATA_DISABLED",k9,D9="/latest/meta-data/placement/region";var i9=G(()=>{k9=["in-region","cross-region","mobile","standard","legacy"]});var y9;var m9=G(()=>{y9={environmentVariableSelector:(r)=>{return r.AWS_DEFAULTS_MODE},configFileSelector:(r)=>{return r.defaults_mode},default:"legacy"}});var af=({region:r=t(Qs),defaultsMode:f=t(y9)}={})=>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 ${k9.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[H9]&&(process.env[f5]||process.env[w5]))return process.env[f5]??process.env[w5];if(!process.env[V9])try{const{getInstanceMetadataEndpoint:r,httpRequest:f}=await Promise.resolve().then(() => (c1(),O1)),s=await r();return(await f({...s,path:D9})).toString()}catch(r){}};var N9=G(()=>{Ms();$f();Lr();i9();m9()});var Qh=G(()=>{N9()});var q9,v9=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=M9(r);return q9.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:h9.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 j9=G(()=>{w9();q9=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();B9();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 d9=()=>{};var O9=()=>{};var c9=G(()=>{O9()});var b9=G(()=>{d9();c9()});var Mh=G(()=>{b9()});var g9=(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}}},_9=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var b3=(r)=>r,x9=(r,f)=>{const s={...b3(pf(r)),...b3(_f(r)),...b3(Pf(r)),...b3(g9(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),..._9(s)}};var e9=G(()=>{Mh();ir();Y()});var Bh,g3;var h5=G(()=>{aw();pw();uw();rh();Ms();Bh=u(Or(),1);Th();M();Ef();Y();tT();Kh();j9();e9();g3=class g3 extends zs{constructor(...[r]){const f=v9(r||{}),s=f9(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=s9(I),U=x9(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$,$5=(r)=>({...r,...r.clientSecret&&{clientSecret:o},...r.refreshToken&&{refreshToken:o},...r.codeVerifier&&{codeVerifier:o}}),E5=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),I5=(r)=>({...r,...r.refreshToken&&{refreshToken:o},...r.assertion&&{assertion:o},...r.subjectToken&&{subjectToken:o},...r.codeVerifier&&{codeVerifier:o}}),F5=(r)=>({...r,...r.accessToken&&{accessToken:o},...r.refreshToken&&{refreshToken:o},...r.idToken&&{idToken:o}}),U5=(r)=>({...r,...r.clientSecret&&{clientSecret:o}}),T5=(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$,n9=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()},o9=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()},a9=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()},p9=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()},u9=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},t9=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 G5=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($5,E5).ser(n9).de(u9).build(){}});var n3;var C5=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(I5,F5).ser(o9).de(t9).build(){}});var o3;var L5=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,U5).ser(a9).de(rl).build(){}});var a3;var A5=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(T5,void 0).ser(p9).de(sl).build(){}});var x_,R5;var fl=G(()=>{Y();G5();C5();L5();A5();h5();x_={CreateTokenCommand:e3,CreateTokenWithIAMCommand:n3,RegisterClientCommand:o3,StartDeviceAuthorizationCommand:a3};R5=class R5 extends g3{};df(x_,R5)});var wl=G(()=>{G5();C5();L5();A5()});var hl=G(()=>{iw()});var W5={};Sf(W5,{__Client:()=>zs,UnsupportedGrantTypeException:()=>r$,UnauthorizedClientException:()=>t1,StartDeviceAuthorizationRequestFilterSensitiveLog:()=>T5,StartDeviceAuthorizationCommand:()=>a3,SlowDownException:()=>u1,SSOOIDCServiceException:()=>Hr,SSOOIDCClient:()=>g3,SSOOIDC:()=>R5,RegisterClientResponseFilterSensitiveLog:()=>U5,RegisterClientCommand:()=>o3,InvalidScopeException:()=>p1,InvalidRequestRegionException:()=>s$,InvalidRequestException:()=>a1,InvalidRedirectUriException:()=>w$,InvalidGrantException:()=>o1,InvalidClientMetadataException:()=>f$,InvalidClientException:()=>n1,InternalServerException:()=>e1,ExpiredTokenException:()=>x1,CreateTokenWithIAMResponseFilterSensitiveLog:()=>F5,CreateTokenWithIAMRequestFilterSensitiveLog:()=>I5,CreateTokenWithIAMCommand:()=>n3,CreateTokenResponseFilterSensitiveLog:()=>E5,CreateTokenRequestFilterSensitiveLog:()=>$5,CreateTokenCommand:()=>e3,AuthorizationPendingException:()=>_1,AccessDeniedException:()=>g1,$Command:()=>A});var z5=G(()=>{h5();fl();wl();hl();_3()});var S5,$l=async(r)=>{const{SSOOIDCClient:f}=await Promise.resolve().then(() => (z5(),W5));if(S5[r])return S5[r];const s=new f({region:r});return S5[r]=s,s};var El=G(()=>{S5={}});var Il=async(r,f)=>{const{CreateTokenCommand:s}=await Promise.resolve().then(() => (z5(),W5));return(await $l(f)).send(new s({clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:r.refreshToken,grantType:"refresh_token"}))};var Fl=G(()=>{El()});var P5=(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 P5(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 P5(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 X5=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.632.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.629.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.632.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.632.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.3.2","@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.14","@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.1.12","@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.14","@smithy/util-defaults-mode-node":"^3.0.14","@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();X5();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();X5();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 Y5=G(()=>{Y();Y0=class Y0 extends Ns{constructor(r){super(r);Object.setPrototypeOf(this,Y0.prototype)}}});var t3,r2,s2,f2,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();Y5();t3=class t3 extends Y0{constructor(r){super({name:"InvalidRequestException",$fault:"client",...r});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,t3.prototype)}};r2=class r2 extends Y0{constructor(r){super({name:"ResourceNotFoundException",$fault:"client",...r});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,r2.prototype)}};s2=class s2 extends Y0{constructor(r){super({name:"TooManyRequestsException",$fault:"client",...r});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,s2.prototype)}};f2=class f2 extends Y0{constructor(r){super({name:"UnauthorizedException",$fault:"client",...r});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,f2.prototype)}}});var rw,I$,wJ=async(r,f)=>{const s=I$.requestBuilder(r,f),w=P({},h2,{[E2]:r[$2]});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({},h2,{[E2]:r[$2]});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({},h2,{[E2]:r[$2]});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({},h2,{[E2]:r[$2]});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 w2(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 w2(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 w2(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 w2(r,f);const s=P({$metadata:sw(r)});return await xr(r.body,f),s},w2=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 r2({$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 s2({$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 f2({$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"]}),h2=(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",$2="accessToken",CJ="account_id",LJ="maxResults",AJ="max_result",RJ="nextToken",WJ="next_token",hx="roleName",$x="role_name",E2="x-amz-sso_bearer_token";var F$=G(()=>{rw=u(Br(),1),I$=u(Or(),1);Y();yw();Y5();t_=cf(Y0)});var U$;var K5=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 I2=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 F2=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 Z5;var l5=G(()=>{M();H();Y();Hh();yw();F$();Z5=class Z5 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();K5();I2();F2();l5();E$();Ex={GetRoleCredentialsCommand:U$,ListAccountRolesCommand:T$,ListAccountsCommand:G$,LogoutCommand:Z5};zJ=class zJ extends X0{};df(Ex,zJ)});var PJ=G(()=>{K5();I2();F2();l5()});var XJ=()=>{};var YJ,$4r;var KJ=G(()=>{YJ=u(Or(),1);I2();E$();$4r=YJ.createPaginator(X0,T$,"nextToken","nextToken","maxResults")});var ZJ,U4r;var lJ=G(()=>{ZJ=u(Or(),1);F2();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,J5=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 Q5=(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 M5=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(!pT(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}=Q5(U,r.logger);return J5({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 J5({ssoStartUrl:f,ssoSession:$,ssoAccountId:s,ssoRegion:w,ssoRoleName:h,ssoClient:E,clientConfig:r.clientConfig,profile:I})};var kJ=G(()=>{Lr();hf();VJ();M5()});var DJ=()=>{};var B5={};Sf(B5,{validateSsoProfile:()=>Q5,isSsoProfile:()=>pT,fromSSO:()=>Ix});var H5=G(()=>{kJ();DJ();M5()});var iJ=(r,f,s)=>{const w={EcsContainer:async(h)=>{const{fromHttp:$}=await Promise.resolve().then(() => (aT(),oT)),{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(() => (cT(),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 V5=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.632.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.632.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.632.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.632.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.632.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.3.2","@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.14","@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.1.12","@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.14","@smithy/util-defaults-mode-node":"^3.0.14","@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,k5,uJ,gJ,cr,_J,tJ,rQ,or,Xs,xJ,sQ,fQ,eJ,wQ,nJ,oJ,aJ,pJ,Gx,hQ;var $Q=G(()=>{bJ={["required"]:!1,["type"]:"String"},k5={["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"},rQ={["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"},sQ={["fn"]:"booleanEquals",["argv"]:[tJ,!0]},fQ={["fn"]:"booleanEquals",["argv"]:[rQ,!0]},eJ={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},wQ={["ref"]:"PartitionResult"},nJ={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[wQ,"supportsDualStack"]}]},oJ=[{["fn"]:"isSet",["argv"]:[uJ]}],aJ=[sQ],pJ=[fQ],Gx={version:"1.0",parameters:{Region:bJ,UseDualStack:k5,UseFIPS:k5,Endpoint:bJ,UseGlobalEndpoint:k5},rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseGlobalEndpoint"},!0]},{["fn"]:"not",["argv"]:oJ},gJ,_J,{["fn"]:"booleanEquals",["argv"]:[tJ,!1]},{["fn"]:"booleanEquals",["argv"]:[rQ,!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:[sQ,fQ],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"]:[wQ,"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"}]},hQ=Gx});var EQ=(r,f={})=>{return ps(hQ,{endpointParams:r,logger:f.logger})};var IQ=G(()=>{Ww();us();$Q();ur.aws=ts});var FQ,UQ,TQ=(r)=>{return{apiVersion:"2011-06-15",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??EQ,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??vJ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new FQ.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(f)=>f.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new UQ.NoAuthSigner}],logger:r?.logger??new Ws,serviceId:r?.serviceId??"STS",urlParser:r?.urlParser??gr,utf8Decoder:r?.utf8Decoder??_r,utf8Encoder:r?.utf8Encoder??Ts}};var GQ=G(()=>{FQ=u(Br(),1),UQ=u(Or(),1);Y();b0();W0();jf();V5();IQ()});var U2,CQ,LQ=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=TQ(r);return U2.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 U2.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new CQ.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 AQ=G(()=>{OJ();U2=u(Br(),1);b1();Zh();Ms();CQ=u(Or(),1);lh();Ef();$f();_0();Jh();Rs();GQ();Y();Qh();Y()});var RQ=(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}}},WQ=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var T2=(r)=>r,zQ=(r,f)=>{const s={...T2(pf(r)),...T2(_f(r)),...T2(Pf(r)),...T2(RQ(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...WQ(s)}};var SQ=G(()=>{Mh();ir();Y()});var kh,K0;var L$=G(()=>{aw();pw();uw();rh();Ms();kh=u(Or(),1);Th();M();Ef();Y();V5();tf();AQ();SQ();K0=class K0 extends zs{constructor(...[r]){const f=LQ(r||{}),s=dJ(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=jJ(I),U=zQ(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 G2=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}}),D5=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),i5=(r)=>({...r,...r.SAMLAssertion&&{SAMLAssertion:o}}),y5=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),m5=(r)=>({...r,...r.WebIdentityToken&&{WebIdentityToken:o}}),N5=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),q5=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}}),v5=(r)=>({...r,...r.Credentials&&{Credentials:Dh(r.Credentials)}});var fw=G(()=>{Y();G2();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,PQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Xx(r,f),[Iw]:px,[Fw]:Ew}),hw(f,s,"/",void 0,w)},XQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Yx(r,f),[Iw]:ux,[Fw]:Ew}),hw(f,s,"/",void 0,w)},YQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Kx(r,f),[Iw]:tx,[Fw]:Ew}),hw(f,s,"/",void 0,w)},KQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Zx(r,f),[Iw]:re,[Fw]:Ew}),hw(f,s,"/",void 0,w)},ZQ=async(r,f)=>{const s=$w;let w;return w=Uw({...lx(r,f),[Iw]:se,[Fw]:Ew}),hw(f,s,"/",void 0,w)},lQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Jx(r,f),[Iw]:fe,[Fw]:Ew}),hw(f,s,"/",void 0,w)},JQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Qx(r,f),[Iw]:we,[Fw]:Ew}),hw(f,s,"/",void 0,w)},QQ=async(r,f)=>{const s=$w;let w;return w=Uw({...Mx(r,f),[Iw]:he,[Fw]:Ew}),hw(f,s,"/",void 0,w)},MQ=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}},BQ=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}},HQ=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}},VQ=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}},kQ=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}},DQ=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}},iQ=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}},yQ=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=C2(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=mQ(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[b5]!=null)s[b5]=r[b5];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[t5]!=null){const w=Vx(r[t5],f);if(r[t5]?.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[p5]!=null)s[p5]=r[p5];if(r[hG]!=null)s[hG]=r[hG];if(r[ds]!=null){const w=C2(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=C2(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[g5]!=null)s[g5]=r[g5];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[o5]!=null)s[o5]=r[o5];if(r[js]!=null)s[js]=r[js];if(r[ds]!=null){const w=C2(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=mQ(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},C2=(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[u5]!=null)s[u5]=r[u5];if(r[d5]!=null)s[d5]=r[d5];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[n5]!=null)s[n5]=r[n5];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},mQ=(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[j5]!=null)s[j5]=T(r[j5]);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[e5]!=null)s[e5]=T(r[e5]);if(r[mh]!=null)s[mh]=T(r[mh]);if(r[a5]!=null)s[a5]=T(r[a5]);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[c5]!=null)s[c5]=y(Hw(r[c5]));return s},Nx=(r,f)=>{const s={};if(r[O5]!=null)s[O5]=T(r[O5]);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[x5]!=null)s[x5]=T(r[x5]);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[_5]!=null)s[_5]=vx(r[_5],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",j5="AssumedRoleId",Z0="AssumedRoleUser",ux="AssumeRoleWithSAML",tx="AssumeRoleWithWebIdentity",yh="Account",l0="Arn",mh="Audience",fs="Credentials",d5="ContextAssertion",re="DecodeAuthorizationMessage",O5="DecodedMessage",ws="DurationSeconds",c5="Expiration",b5="ExternalId",g5="EncodedMessage",_5="FederatedUser",x5="FederatedUserId",se="GetAccessKeyInfo",fe="GetCallerIdentity",we="GetFederationToken",he="GetSessionToken",e5="Issuer",n5="Key",o5="Name",a5="NameQualifier",js="Policy",ds="PolicyArns",p5="PrincipalArn",u5="ProviderArn",t5="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();G2();ax=cf(ss),$w={"content-type":"application/x-www-form-urlencoded"}});var dh;var L2=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,D5).ser(PQ).de(MQ).build(){}});var A2;var AG=G(()=>{M();H();Y();tf();fw();Q0();A2=class A2 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(i5,y5).ser(XQ).de(BQ).build(){}});var Oh;var R2=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(m5,N5).ser(YQ).de(HQ).build(){}});var W2;var RG=G(()=>{M();H();Y();tf();Q0();W2=class W2 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(KQ).de(VQ).build(){}});var z2;var WG=G(()=>{M();H();Y();tf();Q0();z2=class z2 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(ZQ).de(kQ).build(){}});var S2;var zG=G(()=>{M();H();Y();tf();Q0();S2=class S2 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(lQ).de(DQ).build(){}});var P2;var SG=G(()=>{M();H();Y();tf();fw();Q0();P2=class P2 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,q5).ser(JQ).de(iQ).build(){}});var X2;var PG=G(()=>{M();H();Y();tf();fw();Q0();X2=class X2 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,v5).ser(QQ).de(yQ).build(){}});var Ee,XG;var NQ=G(()=>{Y();L2();AG();R2();RG();WG();zG();SG();PG();L$();Ee={AssumeRoleCommand:dh,AssumeRoleWithSAMLCommand:A2,AssumeRoleWithWebIdentityCommand:Oh,DecodeAuthorizationMessageCommand:W2,GetAccessKeyInfoCommand:z2,GetCallerIdentityCommand:S2,GetFederationTokenCommand:P2,GetSessionTokenCommand:X2};XG=class XG extends K0{};df(Ee,XG)});var qQ=G(()=>{L2();AG();R2();RG();WG();zG();SG();PG()});var vQ=G(()=>{fw()});var jQ="us-east-1",dQ=(r)=>{if(typeof r?.Arn==="string"){const f=r.Arn.split(":");if(f.length>4&&f[4]!=="")return f[4]}return},OQ=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)`,`${jQ} (STS default)`),w??h??jQ},cQ=(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 OQ(C,r?.parentClientConfig?.region,z),Z=!gQ(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=dQ(I);return{accessKeyId:E.AccessKeyId,secretAccessKey:E.SecretAccessKey,sessionToken:E.SessionToken,expiration:E.Expiration,...E.CredentialScope&&{credentialScope:E.CredentialScope},...F&&{accountId:F}}}},bQ=(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 OQ(F,r?.parentClientConfig?.region,C),z=!gQ(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=dQ($);return{accessKeyId:h.AccessKeyId,secretAccessKey:h.SecretAccessKey,sessionToken:h.SessionToken,expiration:h.Expiration,...h.CredentialScope&&{credentialScope:h.CredentialScope},...E&&{accountId:E}}}},gQ=(r)=>{return r?.metadata?.handlerProtocol==="h2"};var _Q=G(()=>{L2();R2()});var xQ=(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)}}},eQ=(r={},f)=>cQ(r,xQ(K0,f)),nQ=(r={},f)=>bQ(r,xQ(K0,f)),Ie=(r)=>(f)=>r({roleAssumer:eQ(f),roleAssumerWithWebIdentity:nQ(f),...f});var oQ=G(()=>{_Q();L$()});var YG={};Sf(YG,{getDefaultRoleAssumerWithWebIdentity:()=>nQ,getDefaultRoleAssumer:()=>eQ,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:()=>v5,GetSessionTokenCommand:()=>X2,GetFederationTokenResponseFilterSensitiveLog:()=>q5,GetFederationTokenCommand:()=>P2,GetCallerIdentityCommand:()=>S2,GetAccessKeyInfoCommand:()=>z2,ExpiredTokenException:()=>A$,DecodeAuthorizationMessageCommand:()=>W2,CredentialsFilterSensitiveLog:()=>Dh,AssumeRoleWithWebIdentityResponseFilterSensitiveLog:()=>N5,AssumeRoleWithWebIdentityRequestFilterSensitiveLog:()=>m5,AssumeRoleWithWebIdentityCommand:()=>Oh,AssumeRoleWithSAMLResponseFilterSensitiveLog:()=>y5,AssumeRoleWithSAMLRequestFilterSensitiveLog:()=>i5,AssumeRoleWithSAMLCommand:()=>A2,AssumeRoleResponseFilterSensitiveLog:()=>D5,AssumeRoleCommand:()=>dh,$Command:()=>A});var KG=G(()=>{L$();NQ();qQ();vQ();oQ();G2()});var aQ=(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},pQ=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=$?Y2($,{...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 uQ=G(()=>{Lr();hf();yJ();ZG()});var tQ=(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 rM=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 tQ(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 sM=G(()=>{Lr()});var Ce=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const f=await c0(r);return rM(ks(r),f,r.logger)};var fM=G(()=>{hf();sM()});var lG={};Sf(lG,{fromProcess:()=>Ce});var JG=G(()=>{fM()});var wM=(r)=>Boolean(r)&&typeof r==="object"&&typeof r.credential_process==="string",hM=async(r,f)=>Promise.resolve().then(() => (JG(),lG)).then(({fromProcess:s})=>s({...r,profile:f})());var $M=async(r,f={})=>{const{fromSSO:s}=await Promise.resolve().then(() => (H5(),B5));return s({profile:r,logger:f.logger})()},EM=(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 IM=G(()=>{Lr()});var HG={};Sf(HG,{fromWebToken:()=>BG,fromTokenFile:()=>ze});var VG=G(()=>{IM()});var FM=(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,UM=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 Y2=async(r,f,s,w={})=>{const h=f[r];if(Object.keys(w).length>0&&QG(h))return MG(h,s);if(aQ(h,{profile:r,logger:s.logger}))return pQ(r,f,s,w);if(QG(h))return MG(h,s);if(FM(h))return UM(h,s);if(wM(h))return hM(s,r);if(EM(h))return await $M(r,s);throw new _(`Could not resolve credentials using profile: [${r}] in configuration/credentials file(s).`,{logger:s.logger})};var ZG=G(()=>{Lr();uQ()});var Se=(r={})=>async()=>{r.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");const f=await c0(r);return Y2(ks(r),f,r)};var TM=G(()=>{hf();ZG()});var GM={};Sf(GM,{fromIni:()=>Se});var CM=G(()=>{TM()});var LM=!1,S0=(r={})=>Kw(A0(async()=>{if(r.profile??process.env[sP]){if(process.env[y3]&&process.env[m3]){if(!LM)(r.logger?.warn&&r.logger?.constructor?.name!=="NoOpLogger"?r.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
26
|
+
Multiple credential sources detected:
|
|
27
|
+
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
28
|
+
This SDK will proceed with the AWS_PROFILE value.
|
|
29
|
+
|
|
30
|
+
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
31
|
+
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
32
|
+
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
33
|
+
`),LM=!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"),OT(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(() => (H5(),B5));return E(r)()},async()=>{r.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:f}=await Promise.resolve().then(() => (CM(),GM));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 AM=G(()=>{cT();Lr();hf();aZ()});var b1=G(()=>{AM()});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.632.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.632.0","@aws-sdk/client-sts":"3.632.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.632.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.632.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.632.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.3.2","@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.14","@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.1.12","@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.14","@smithy/util-defaults-mode-node":"^3.0.14","@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 DM=u(Br(),1);b1();Zh();Ms();lh();Ef();$f();_0();Jh();Rs();var VM=u(Br(),1);Y();b0();W0();jf();Ww();us();var RM={["required"]:!1,type:"String"},WM={["required"]:!0,default:!1,type:"Boolean"},zM={["ref"]:"Endpoint"},K2={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},MM={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},br={},SM={["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]},PM={["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-east-1"}]},XM={["fn"]:"stringEquals",["argv"]:[ch,"aws-us-gov"]},YM={url:"https://route53.us-gov.amazonaws.com",properties:{["authSchemes"]:[{name:"sigv4",["signingName"]:"route53",["signingRegion"]:"us-gov-west-1"}]},headers:{}},KM={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},ZM={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsDualStack"]}]},lM=[K2],JM=[MM],QM=[{["ref"]:"Region"}],Ye={version:"1.0",parameters:{Region:RM,UseDualStack:WM,UseFIPS:WM,Endpoint:RM},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[zM]}],rules:[{conditions:lM,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:JM,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:zM,properties:br,headers:br},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:QM}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:QM,assign:"PartitionResult"}],rules:[{conditions:[SM,mw,M0],endpoint:{url:"https://route53.amazonaws.com",properties:PM,headers:br},type:"endpoint"},{conditions:[SM,K2,M0],endpoint:{url:"https://route53-fips.amazonaws.com",properties:PM,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:[XM,mw,M0],endpoint:YM,type:"endpoint"},{conditions:[XM,K2,M0],endpoint:YM,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:[K2,MM],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,KM]},ZM],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:lM,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[KM,!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:JM,rules:[{conditions:[ZM],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"}]},BM=Ye;var HM=(r,f={})=>{return ps(BM,{endpointParams:r,logger:f.logger})};ur.aws=ts;var kM=(r)=>{return{apiVersion:"2013-04-01",base64Decoder:r?.base64Decoder??Us,base64Encoder:r?.base64Encoder??Gs,disableHostPrefix:r?.disableHostPrefix??!1,endpointProvider:r?.endpointProvider??HM,extensions:r?.extensions??[],httpAuthSchemeProvider:r?.httpAuthSchemeProvider??SZ,httpAuthSchemes:r?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(f)=>f.getIdentityProvider("aws.auth#sigv4"),signer:new VM.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 iM=(r)=>{gf(process.version);const f=af(r),s=()=>f().then(bf),w=kM(r);return DM.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 yM=(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}}},mM=(r)=>{return{httpAuthSchemes:r.httpAuthSchemes(),httpAuthSchemeProvider:r.httpAuthSchemeProvider(),credentials:r.credentials()}};var Z2=(r)=>r,NM=(r,f)=>{const s={...Z2(pf(r)),...Z2(_f(r)),...Z2(Pf(r)),...Z2(yM(r))};return f.forEach((w)=>w.configure(s)),{...r,...uf(s),...xf(s),...Xf(s),...mM(s)}};class kG extends zs{constructor(...[r]){const f=iM(r||{}),s=XZ(f),w=Jf(s),h=qf(w),$=Vf(h),E=Yf($),I=yf(E),F=PZ(I),U=NM(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 l2=/^\/(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(l2,"")}}});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},qM=(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(l2,"")}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 vM(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function jM(r){return r.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}class DG{constructor(r){this.value=r}toString(){return jM(""+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}="${vM(""+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 J2 extends j{constructor(r){super({name:"ConcurrentModification",$fault:"client",...r});this.name="ConcurrentModification",this.$fault="client",Object.setPrototypeOf(this,J2.prototype)}}class Q2 extends j{constructor(r){super({name:"InvalidInput",$fault:"client",...r});this.name="InvalidInput",this.$fault="client",Object.setPrototypeOf(this,Q2.prototype)}}class M2 extends j{constructor(r){super({name:"InvalidKeySigningKeyStatus",$fault:"client",...r});this.name="InvalidKeySigningKeyStatus",this.$fault="client",Object.setPrototypeOf(this,M2.prototype)}}class B2 extends j{constructor(r){super({name:"InvalidKMSArn",$fault:"client",...r});this.name="InvalidKMSArn",this.$fault="client",Object.setPrototypeOf(this,B2.prototype)}}class H2 extends j{constructor(r){super({name:"InvalidSigningStatus",$fault:"client",...r});this.name="InvalidSigningStatus",this.$fault="client",Object.setPrototypeOf(this,H2.prototype)}}class V2 extends j{constructor(r){super({name:"NoSuchKeySigningKey",$fault:"client",...r});this.name="NoSuchKeySigningKey",this.$fault="client",Object.setPrototypeOf(this,V2.prototype)}}class k2 extends j{constructor(r){super({name:"ConflictingDomainExists",$fault:"client",...r});this.name="ConflictingDomainExists",this.$fault="client",Object.setPrototypeOf(this,k2.prototype)}}class D2 extends j{constructor(r){super({name:"InvalidVPCId",$fault:"client",...r});this.name="InvalidVPCId",this.$fault="client",Object.setPrototypeOf(this,D2.prototype)}}class i2 extends j{constructor(r){super({name:"LimitsExceeded",$fault:"client",...r});this.name="LimitsExceeded",this.$fault="client",Object.setPrototypeOf(this,i2.prototype)}}class y2 extends j{constructor(r){super({name:"NoSuchHostedZone",$fault:"client",...r});this.name="NoSuchHostedZone",this.$fault="client",Object.setPrototypeOf(this,y2.prototype)}}class m2 extends j{constructor(r){super({name:"NotAuthorizedException",$fault:"client",...r});this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,m2.prototype)}}class N2 extends j{constructor(r){super({name:"PriorRequestNotComplete",$fault:"client",...r});this.name="PriorRequestNotComplete",this.$fault="client",Object.setPrototypeOf(this,N2.prototype)}}class q2 extends j{constructor(r){super({name:"PublicZoneVPCAssociation",$fault:"client",...r});this.name="PublicZoneVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,q2.prototype)}}class v2 extends j{constructor(r){super({name:"CidrBlockInUseException",$fault:"client",...r});this.name="CidrBlockInUseException",this.$fault="client",Object.setPrototypeOf(this,v2.prototype),this.Message=r.Message}}class j2 extends j{constructor(r){super({name:"CidrCollectionVersionMismatchException",$fault:"client",...r});this.name="CidrCollectionVersionMismatchException",this.$fault="client",Object.setPrototypeOf(this,j2.prototype),this.Message=r.Message}}class d2 extends j{constructor(r){super({name:"NoSuchCidrCollectionException",$fault:"client",...r});this.name="NoSuchCidrCollectionException",this.$fault="client",Object.setPrototypeOf(this,d2.prototype),this.Message=r.Message}}class O2 extends j{constructor(r){super({name:"InvalidChangeBatch",$fault:"client",...r});this.name="InvalidChangeBatch",this.$fault="client",Object.setPrototypeOf(this,O2.prototype),this.messages=r.messages}}class c2 extends j{constructor(r){super({name:"NoSuchHealthCheck",$fault:"client",...r});this.name="NoSuchHealthCheck",this.$fault="client",Object.setPrototypeOf(this,c2.prototype)}}class b2 extends j{constructor(r){super({name:"ThrottlingException",$fault:"client",...r});this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,b2.prototype)}}class g2 extends j{constructor(r){super({name:"CidrCollectionAlreadyExistsException",$fault:"client",...r});this.name="CidrCollectionAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,g2.prototype),this.Message=r.Message}}class _2 extends j{constructor(r){super({name:"HealthCheckAlreadyExists",$fault:"client",...r});this.name="HealthCheckAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,_2.prototype)}}class x2 extends j{constructor(r){super({name:"TooManyHealthChecks",$fault:"client",...r});this.name="TooManyHealthChecks",this.$fault="client",Object.setPrototypeOf(this,x2.prototype)}}class e2 extends j{constructor(r){super({name:"DelegationSetNotAvailable",$fault:"client",...r});this.name="DelegationSetNotAvailable",this.$fault="client",Object.setPrototypeOf(this,e2.prototype)}}class n2 extends j{constructor(r){super({name:"DelegationSetNotReusable",$fault:"client",...r});this.name="DelegationSetNotReusable",this.$fault="client",Object.setPrototypeOf(this,n2.prototype)}}class o2 extends j{constructor(r){super({name:"HostedZoneAlreadyExists",$fault:"client",...r});this.name="HostedZoneAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,o2.prototype)}}class a2 extends j{constructor(r){super({name:"InvalidDomainName",$fault:"client",...r});this.name="InvalidDomainName",this.$fault="client",Object.setPrototypeOf(this,a2.prototype)}}class p2 extends j{constructor(r){super({name:"NoSuchDelegationSet",$fault:"client",...r});this.name="NoSuchDelegationSet",this.$fault="client",Object.setPrototypeOf(this,p2.prototype)}}class u2 extends j{constructor(r){super({name:"TooManyHostedZones",$fault:"client",...r});this.name="TooManyHostedZones",this.$fault="client",Object.setPrototypeOf(this,u2.prototype)}}class t2 extends j{constructor(r){super({name:"InvalidArgument",$fault:"client",...r});this.name="InvalidArgument",this.$fault="client",Object.setPrototypeOf(this,t2.prototype)}}class rI extends j{constructor(r){super({name:"InvalidKeySigningKeyName",$fault:"client",...r});this.name="InvalidKeySigningKeyName",this.$fault="client",Object.setPrototypeOf(this,rI.prototype)}}class sI extends j{constructor(r){super({name:"KeySigningKeyAlreadyExists",$fault:"client",...r});this.name="KeySigningKeyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,sI.prototype)}}class fI extends j{constructor(r){super({name:"TooManyKeySigningKeys",$fault:"client",...r});this.name="TooManyKeySigningKeys",this.$fault="client",Object.setPrototypeOf(this,fI.prototype)}}class wI extends j{constructor(r){super({name:"InsufficientCloudWatchLogsResourcePolicy",$fault:"client",...r});this.name="InsufficientCloudWatchLogsResourcePolicy",this.$fault="client",Object.setPrototypeOf(this,wI.prototype)}}class hI extends j{constructor(r){super({name:"NoSuchCloudWatchLogsLogGroup",$fault:"client",...r});this.name="NoSuchCloudWatchLogsLogGroup",this.$fault="client",Object.setPrototypeOf(this,hI.prototype)}}class $I extends j{constructor(r){super({name:"QueryLoggingConfigAlreadyExists",$fault:"client",...r});this.name="QueryLoggingConfigAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,$I.prototype)}}class EI extends j{constructor(r){super({name:"DelegationSetAlreadyCreated",$fault:"client",...r});this.name="DelegationSetAlreadyCreated",this.$fault="client",Object.setPrototypeOf(this,EI.prototype)}}class II extends j{constructor(r){super({name:"DelegationSetAlreadyReusable",$fault:"client",...r});this.name="DelegationSetAlreadyReusable",this.$fault="client",Object.setPrototypeOf(this,II.prototype)}}class FI extends j{constructor(r){super({name:"HostedZoneNotFound",$fault:"client",...r});this.name="HostedZoneNotFound",this.$fault="client",Object.setPrototypeOf(this,FI.prototype)}}class UI extends j{constructor(r){super({name:"InvalidTrafficPolicyDocument",$fault:"client",...r});this.name="InvalidTrafficPolicyDocument",this.$fault="client",Object.setPrototypeOf(this,UI.prototype)}}class TI extends j{constructor(r){super({name:"TooManyTrafficPolicies",$fault:"client",...r});this.name="TooManyTrafficPolicies",this.$fault="client",Object.setPrototypeOf(this,TI.prototype)}}class GI extends j{constructor(r){super({name:"TrafficPolicyAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,GI.prototype)}}class CI extends j{constructor(r){super({name:"NoSuchTrafficPolicy",$fault:"client",...r});this.name="NoSuchTrafficPolicy",this.$fault="client",Object.setPrototypeOf(this,CI.prototype)}}class LI extends j{constructor(r){super({name:"TooManyTrafficPolicyInstances",$fault:"client",...r});this.name="TooManyTrafficPolicyInstances",this.$fault="client",Object.setPrototypeOf(this,LI.prototype)}}class AI extends j{constructor(r){super({name:"TrafficPolicyInstanceAlreadyExists",$fault:"client",...r});this.name="TrafficPolicyInstanceAlreadyExists",this.$fault="client",Object.setPrototypeOf(this,AI.prototype)}}class RI extends j{constructor(r){super({name:"TooManyTrafficPolicyVersionsForCurrentPolicy",$fault:"client",...r});this.name="TooManyTrafficPolicyVersionsForCurrentPolicy",this.$fault="client",Object.setPrototypeOf(this,RI.prototype)}}class WI extends j{constructor(r){super({name:"TooManyVPCAssociationAuthorizations",$fault:"client",...r});this.name="TooManyVPCAssociationAuthorizations",this.$fault="client",Object.setPrototypeOf(this,WI.prototype)}}class zI extends j{constructor(r){super({name:"KeySigningKeyInParentDSRecord",$fault:"client",...r});this.name="KeySigningKeyInParentDSRecord",this.$fault="client",Object.setPrototypeOf(this,zI.prototype)}}class SI extends j{constructor(r){super({name:"KeySigningKeyInUse",$fault:"client",...r});this.name="KeySigningKeyInUse",this.$fault="client",Object.setPrototypeOf(this,SI.prototype)}}class PI extends j{constructor(r){super({name:"CidrCollectionInUseException",$fault:"client",...r});this.name="CidrCollectionInUseException",this.$fault="client",Object.setPrototypeOf(this,PI.prototype),this.Message=r.Message}}class XI extends j{constructor(r){super({name:"HealthCheckInUse",$fault:"client",...r});this.name="HealthCheckInUse",this.$fault="client",Object.setPrototypeOf(this,XI.prototype)}}class YI extends j{constructor(r){super({name:"HostedZoneNotEmpty",$fault:"client",...r});this.name="HostedZoneNotEmpty",this.$fault="client",Object.setPrototypeOf(this,YI.prototype)}}class KI extends j{constructor(r){super({name:"NoSuchQueryLoggingConfig",$fault:"client",...r});this.name="NoSuchQueryLoggingConfig",this.$fault="client",Object.setPrototypeOf(this,KI.prototype)}}class ZI extends j{constructor(r){super({name:"DelegationSetInUse",$fault:"client",...r});this.name="DelegationSetInUse",this.$fault="client",Object.setPrototypeOf(this,ZI.prototype)}}class lI extends j{constructor(r){super({name:"TrafficPolicyInUse",$fault:"client",...r});this.name="TrafficPolicyInUse",this.$fault="client",Object.setPrototypeOf(this,lI.prototype)}}class JI extends j{constructor(r){super({name:"NoSuchTrafficPolicyInstance",$fault:"client",...r});this.name="NoSuchTrafficPolicyInstance",this.$fault="client",Object.setPrototypeOf(this,JI.prototype)}}class QI extends j{constructor(r){super({name:"VPCAssociationAuthorizationNotFound",$fault:"client",...r});this.name="VPCAssociationAuthorizationNotFound",this.$fault="client",Object.setPrototypeOf(this,QI.prototype)}}class MI extends j{constructor(r){super({name:"DNSSECNotFound",$fault:"client",...r});this.name="DNSSECNotFound",this.$fault="client",Object.setPrototypeOf(this,MI.prototype)}}class BI extends j{constructor(r){super({name:"LastVPCAssociation",$fault:"client",...r});this.name="LastVPCAssociation",this.$fault="client",Object.setPrototypeOf(this,BI.prototype)}}class HI extends j{constructor(r){super({name:"VPCAssociationNotFound",$fault:"client",...r});this.name="VPCAssociationNotFound",this.$fault="client",Object.setPrototypeOf(this,HI.prototype)}}class VI extends j{constructor(r){super({name:"HostedZonePartiallyDelegated",$fault:"client",...r});this.name="HostedZonePartiallyDelegated",this.$fault="client",Object.setPrototypeOf(this,VI.prototype)}}class kI extends j{constructor(r){super({name:"KeySigningKeyWithActiveStatusNotFound",$fault:"client",...r});this.name="KeySigningKeyWithActiveStatusNotFound",this.$fault="client",Object.setPrototypeOf(this,kI.prototype)}}class DI extends j{constructor(r){super({name:"NoSuchChange",$fault:"client",...r});this.name="NoSuchChange",this.$fault="client",Object.setPrototypeOf(this,DI.prototype)}}class iI extends j{constructor(r){super({name:"NoSuchGeoLocation",$fault:"client",...r});this.name="NoSuchGeoLocation",this.$fault="client",Object.setPrototypeOf(this,iI.prototype)}}class yI extends j{constructor(r){super({name:"IncompatibleVersion",$fault:"client",...r});this.name="IncompatibleVersion",this.$fault="client",Object.setPrototypeOf(this,yI.prototype)}}class mI extends j{constructor(r){super({name:"HostedZoneNotPrivate",$fault:"client",...r});this.name="HostedZoneNotPrivate",this.$fault="client",Object.setPrototypeOf(this,mI.prototype)}}class NI extends j{constructor(r){super({name:"NoSuchCidrLocationException",$fault:"client",...r});this.name="NoSuchCidrLocationException",this.$fault="client",Object.setPrototypeOf(this,NI.prototype),this.Message=r.Message}}class qI extends j{constructor(r){super({name:"InvalidPaginationToken",$fault:"client",...r});this.name="InvalidPaginationToken",this.$fault="client",Object.setPrototypeOf(this,qI.prototype)}}class vI extends j{constructor(r){super({name:"HealthCheckVersionMismatch",$fault:"client",...r});this.name="HealthCheckVersionMismatch",this.$fault="client",Object.setPrototypeOf(this,vI.prototype)}}class jI extends j{constructor(r){super({name:"ConflictingTypes",$fault:"client",...r});this.name="ConflictingTypes",this.$fault="client",Object.setPrototypeOf(this,jI.prototype)}}var eM=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()},nM=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()},oM=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[dI]!=null)$.c(V.of(dI,String(r[dI])).n(dI));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},aM=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[cI]!=null)$.c(xn(r[cI],f).n(cI));return h+=$.toString(),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/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()},uM=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()},tM=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()},rB=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[gI]!=null)$.c(V.of(E0,r[gI]).n(gI));if(r[_I]!=null)$.c(fo(r[_I],f).n(_I));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()},sB=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()},fB=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,bI),r[sr]!=null)$.c(V.of(E0,r[sr]).n(sr));return h+=$.toString(),s.m("POST").h(w).b(h),s.build()},wB=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()},hB=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()},$B=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()},EB=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()},IB=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()},FB=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()},UB=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()},TB=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()},GB=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()},CB=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()},LB=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()},AB=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()},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("DELETE").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("DELETE").h(w).b(h),s.build()},zB=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()},SB=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()},PB=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()},XB=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()},YB=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()},KB=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()},ZB=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()},lB=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()},JB=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()},QB=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()},MB=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()},BB=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()},HB=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()},VB=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()},kB=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()},DB=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()},iB=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()},yB=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()},mB=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()},NB=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()},qB=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()},vB=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()},jB=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()},dB=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()},OB=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()},cB=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()},bB=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()},gB=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[gI]],[Mp]:[,r[ga]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},_B=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()},xB=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()},eB=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()},nB=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()},oB=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()},aB=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()},pB=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()},uB=async(r,f)=>{const s=O.requestBuilder(r,f),w={};s.bp("/2013-04-01/trafficpolicies");const h=P({[vp]:[,r[tI]],[ns]:[()=>r.MaxItems!==void 0,()=>r[a].toString()]});let $;return s.m("GET").h(w).q(h).b($),s.build()},tB=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()},r7=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()},s7=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()},f7=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()},w7=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()},h7=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[aI],"RecordName")],[kp]:[,y(r[pI],"RecordType")],[Dp]:[,r[oa]],[Jp]:[,r[Na]],[Qp]:[,r[qa]]});let $;return s.m("GET").h(w).q(h).b($),s.build()},$7=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()},E7=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()},I7=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()},F7=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()},U7=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},T7=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},G7=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},C7=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},L7=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},A7=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},R7=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},W7=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},z7=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},S7=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},P7=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},X7=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},Y7=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},K7=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},Z7=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},l7=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},J7=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},Q7=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},M7=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},B7=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},H7=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},V7=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},k7=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},D7=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},i7=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},y7=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},m7=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},N7=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},q7=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},v7=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},j7=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},d7=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},O7=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},c7=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},b7=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},g7=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},_7=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},x7=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},e7=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},n7=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},o7=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},a7=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},p7=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},u7=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},t7=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$][cM]!=null)s[k$]=Oo(Cr(w[k$][cM]),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[tI]!=null)s[tI]=T(w[tI]);if(w.TrafficPolicySummaries==="")s[v$]=[];else if(w[v$]!=null&&w[v$][xM]!=null)s[v$]=ha(Cr(w[v$][xM]),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$][gM]!=null)s[m$]=eo(Cr(w[m$][gM]),f);if(w[aI]!=null)s[aI]=T(w[aI]);if(w[pI]!=null)s[pI]=T(w[pI]);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 v2({$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 g2({$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 PI({$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 j2({$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 J2({$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 k2({$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 jI({$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 EI({$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 II({$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 ZI({$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 e2({$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 n2({$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 MI({$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 _2({$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 XI({$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 vI({$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 o2({$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 YI({$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 FI({$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 mI({$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 VI({$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 yI({$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 wI({$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 t2({$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 O2({$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 a2({$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 Q2({$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 rI({$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 M2({$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 B2({$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 qI({$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 H2({$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 UI({$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 D2({$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 sI({$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 zI({$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 SI({$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 kI({$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 BI({$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 i2({$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 DI({$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 d2({$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 NI({$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 hI({$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 p2({$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 iI({$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 c2({$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 y2({$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 V2({$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 KI({$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 CI({$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 JI({$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 m2({$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 N2({$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 q2({$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 $I({$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 b2({$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 x2({$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 u2({$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 fI({$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 TI({$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 LI({$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 RI({$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 WI({$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 GI({$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 AI({$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 lI({$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 QI({$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 HI({$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(cI);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(dM,s).n(dM)})},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,eI),s.cc(r,nI),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,OI),s.cc(r,xI),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,oI),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(_I);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(_M,s).n(_M)})},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,uI),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$][OM]!=null)s[B$]=Mo(Cr(r[B$][OM]),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[eI]!=null)s[eI]=T(r[eI]);if(r[nI]!=null)s[nI]=T(r[nI]);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$][bM]!=null)s[i$]=lo(Cr(r[i$][bM]),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[OI]!=null)s[OI]=T(r[OI]);if(r[xI]!=null)s[xI]=T(r[xI]);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[oI]!=null)s[oI]=T(r[oI]);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[bI]!=null)s[bI]=T(r[bI]);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[uI]!=null)s[uI]=T(r[uI]);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",OI="AWSRegion",xh="Arn",vw="Bias",Ur="Comment",Ga="ChangeAction",cI="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",dI="CollectionVersion",ka="CreateVPCAssociationAuthorizationRequest",jG="CloudWatchAlarmConfiguration",bI="CloudWatchLogsLogGroupArn",Da="CloudWatchRegion",mH="Changes",NH="Change",dM="Cidr",dG="Collection",OG="Config",gw="Coordinates",B0="Count",H0="Document",cG="DigestAlgorithmMnemonic",bG="DigestAlgorithmType",gG="DNSKEYRecord",Rf="DNSName",Ls="DelegationSet",gI="DelegationSetId",_G="DSRecord",M$="DelegationSets",xG="DigestValue",ia="DeleteVPCAssociationAuthorizationRequest",ya="DisassociateVPCComment",ma="DisassociateVPCFromHostedZoneRequest",eG="Description",Uf="Disabled",B$="Dimensions",OM="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",_I="HostedZoneConfig",pG="HostedZoneCount",sr="HostedZoneId",Tw="HostedZoneIdMarker",k$="HostedZoneSummaries",cM="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",xI="LocalZoneGroup",eI="Latitude",V0="Limit",nI="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",bM="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",oI="RoutingControlArn",c6="ResourceDescription",gM="RecordDataEntry",ea="RData",m$="RecordData",na="ResetElements",_M="ResettableElementName",E0="ResourceId",oa="ResolverIP",aa="ResourceIds",Ow="RequestInterval",aI="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",pI="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",uI="TrafficPolicyInstanceId",tI="TrafficPolicyIdMarker",_s="TrafficPolicyInstanceNameMarker",xs="TrafficPolicyInstanceTypeMarker",Es="TrafficPolicyInstance",hs="TrafficPolicyInstances",Lp="TrafficPolicyName",v$="TrafficPolicySummaries",xM="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(eM).de(U7).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(nM).de(T7).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(oM).de(G7).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()),qM(s),N(s)]}).s("AWSDnsV20130401","ChangeResourceRecordSets",{}).n("Route53Client","ChangeResourceRecordSetsCommand").f(void 0,void 0).ser(aM).de(C7).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(pM).de(L7).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(uM).de(A7).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(tM).de(R7).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(rB).de(W7).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(sB).de(z7).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(fB).de(S7).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(wB).de(P7).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(hB).de(X7).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($B).de(Y7).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(EB).de(K7).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(IB).de(Z7).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(FB).de(l7).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(UB).de(J7).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(TB).de(Q7).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(GB).de(M7).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(CB).de(B7).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(LB).de(H7).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(AB).de(V7).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(RB).de(k7).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(WB).de(D7).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(zB).de(i7).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(SB).de(y7).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(PB).de(m7).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(XB).de(N7).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(YB).de(q7).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(KB).de(v7).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(ZB).de(j7).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(lB).de(d7).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(JB).de(O7).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(QB).de(c7).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(MB).de(b7).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(BB).de(g7).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(HB).de(_7).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(VB).de(x7).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(kB).de(e7).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(DB).de(n7).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(iB).de(o7).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(yB).de(a7).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(mB).de(p7).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(NB).de(u7).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(qB).de(t7).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(vB).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(jB).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(dB).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(OB).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(cB).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(bB).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(_B).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(xB).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(gB).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(eB).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(nB).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(oB).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(aB).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(pB).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(uB).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(r7).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(s7).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(tB).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(f7).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(w7).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(h7).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($7).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(E7).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(I7).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(F7).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.632.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.632.0","@aws-sdk/client-sts":"3.632.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.632.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.632.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.632.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.3.2","@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.14","@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.1.12","@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.14","@smithy/util-defaults-mode-node":"^3.0.14","@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:PT})},$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:PT})},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};
|
|
34
|
+
|
|
35
|
+
//# debugId=A2C40FBE2F25F6CD64756E2164756E21
|
|
36
|
+
//# sourceMappingURL=index.js.map
|