From 1b9b01399798a6dae7c7e2ff79869388b7726f0a Mon Sep 17 00:00:00 2001 From: Sohel Amin Date: Wed, 20 May 2020 14:45:21 +0600 Subject: [PATCH] Implement IP cleanup when job is completed --- README.md | 1 + action.yml | 3 +- dist/cleanup/index.js | 1 + dist/index.js | 1 - dist/main/index.js | 1 + index.js | 70 ------------------------------------------- package-lock.json | 12 ++++++-- package.json | 7 +++-- src/cleanup.js | 25 ++++++++++++++++ src/config.js | 30 +++++++++++++++++++ src/main.js | 53 ++++++++++++++++++++++++++++++++ 11 files changed, 127 insertions(+), 77 deletions(-) create mode 100644 dist/cleanup/index.js delete mode 100644 dist/index.js create mode 100644 dist/main/index.js delete mode 100644 index.js create mode 100644 src/cleanup.js create mode 100644 src/config.js create mode 100644 src/main.js diff --git a/README.md b/README.md index e743a8f..c3a5864 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ This action will add your public ip address to your given aws security group(s) with a description. If any ip address already exists with the description then it will update the address instead of adding. +And it will remove the added ip address once the main job is completed. ## Inputs diff --git a/action.yml b/action.yml index bef21f9..191ca96 100644 --- a/action.yml +++ b/action.yml @@ -27,4 +27,5 @@ inputs: default: 'GitHub Action' runs: using: 'node12' - main: 'dist/index.js' + main: 'dist/main/index.js' + post: 'dist/cleanup/index.js' diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js new file mode 100644 index 0000000..e36ea51 --- /dev/null +++ b/dist/cleanup/index.js @@ -0,0 +1 @@ +module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};var o=true;try{e[t].call(r.exports,r,r.exports,__webpack_require__);o=false}finally{if(o)delete n[t]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(221)}return startup()}([,,function(e,t,n){var r=n(395);var o=n(153);var i=n(618);function populateBody(e){var t=e.service.api.operations[e.operation].input;var n=new r.XML.Builder;var i=e.params;var a=t.payload;if(a){var s=t.members[a];i=i[a];if(i===undefined)return;if(s.type==="structure"){var c=s.name;e.httpRequest.body=n.toXML(i,s,c,true)}else{e.httpRequest.body=i}}else{e.httpRequest.body=n.toXML(i,t,t.name||t.shape||o.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){i.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){i.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(n){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=o.error(new Error,{code:t.Code,message:t.Message})}else{e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){i.extractData(e);var t;var n=e.request;var a=e.httpResponse.body;var s=n.service.api.operations[n.operation];var c=s.output;var u=s.hasEventOutput;var l=c.payload;if(l){var p=c.members[l];if(p.isEventStream){t=new r.XML.Parser;e.data[l]=o.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,p)}else if(p.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),p)}else if(p.type==="binary"||p.isStreaming){e.data[l]=a}else{e.data[l]=p.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var m=t.parse(a.toString(),c);o.update(e.data,m)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,,,,,,function(e,t,n){var r=n(49);var o=function(){};var i=function(e){return e.setHeader&&typeof e.abort==="function"};var a=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var s=function(e,t,n){if(typeof t==="function")return s(e,null,t);if(!t)t={};n=r(n||o);var c=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var p=t.writable||t.writable!==false&&e.writable;var m=false;var d=function(){if(!e.writable)y()};var y=function(){p=false;if(!l)n.call(e)};var f=function(){l=false;if(!p)n.call(e)};var h=function(t){n.call(e,t?new Error("exited with error code: "+t):null)};var N=function(t){n.call(e,t)};var g=function(){process.nextTick(b)};var b=function(){if(m)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return n.call(e,new Error("premature close"));if(p&&!(c&&(c.ended&&!c.destroyed)))return n.call(e,new Error("premature close"))};var I=function(){e.req.on("finish",y)};if(i(e)){e.on("complete",y);e.on("abort",g);if(e.req)I();else e.on("request",I)}else if(p&&!c){e.on("end",d);e.on("close",d)}if(a(e))e.on("exit",h);e.on("end",f);e.on("finish",y);if(t.error!==false)e.on("error",N);e.on("close",g);return function(){m=true;e.removeListener("complete",y);e.removeListener("abort",g);e.removeListener("request",I);if(e.req)e.req.removeListener("finish",y);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",y);e.removeListener("exit",h);e.removeListener("end",f);e.removeListener("error",N);e.removeListener("close",g)}};e.exports=s},,function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;n{const c=e=>{if(e){e.bufferedData=i.getBufferedValue()}s(e)};i=r(e,o(t),e=>{if(e){c(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>n){c(new MaxBufferError)}})});return i.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},,function(e,t,n){"use strict";const r=n(631);class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.name="TimeoutError";this.code="ETIMEDOUT";this.event=t}}const o=Symbol("reentry");const i=()=>{};e.exports=((e,t,n)=>{if(e[o]){return}e[o]=true;let a=false;const s=(e,t,...n)=>{if(a){return i}let r;const o=setTimeout(()=>{r=setImmediate(t,e,...n);if(r.unref){r.unref()}},e);if(o.unref){o.unref()}const s=()=>{clearTimeout(o);clearImmediate(r)};p.push(s);return s};const{host:c,hostname:u}=n;const l=(t,n)=>{e.emit("error",new TimeoutError(t,n));e.once("error",()=>{});e.abort()};const p=[];const m=()=>{a=true;p.forEach(e=>e())};e.once("error",m);e.once("response",e=>{e.once("end",m)});if(t.request!==undefined){s(t.request,l,"request")}if(t.socket!==undefined){const n=()=>{l(t.socket,"socket")};e.setTimeout(t.socket,n);p.push(()=>e.removeListener("timeout",n))}if(t.lookup!==undefined&&!e.socketPath&&!r.isIP(u||c)){e.once("socket",e=>{if(e.connecting){const n=s(t.lookup,l,"lookup");e.once("lookup",n)}})}if(t.connect!==undefined){e.once("socket",n=>{if(n.connecting){const o=()=>s(t.connect,l,"connect");if(e.socketPath||r.isIP(u||c)){n.once("connect",o())}else{n.once("lookup",e=>{if(e===null){n.once("connect",o())}})}}})}if(t.secureConnect!==undefined&&n.protocol==="https:"){e.once("socket",e=>{if(e.connecting){e.once("connect",()=>{const n=s(t.secureConnect,l,"secureConnect");e.once("secureConnect",n)})}})}if(t.send!==undefined){e.once("socket",n=>{const r=()=>s(t.send,l,"send");if(n.connecting){n.once("connect",()=>{e.once("upload-complete",r())})}else{e.once("upload-complete",r())}})}if(t.response!==undefined){e.once("upload-complete",()=>{const n=s(t.response,l,"response");e.once("response",n)})}});e.exports.TimeoutError=TimeoutError},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLDTDNotation,e);function XMLDTDNotation(e,t,n){XMLDTDNotation.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing notation name")}if(!n.pubID&&!n.sysID){throw new Error("Public or system identifiers are required for an external entity")}this.name=this.stringify.eleName(t);if(n.pubID!=null){this.pubID=this.stringify.dtdPubID(n.pubID)}if(n.sysID!=null){this.sysID=this.stringify.dtdSysID(n.sysID)}}XMLDTDNotation.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)};return XMLDTDNotation}(r)}).call(this)},,,function(e,t,n){var r=n(395);var o=n(106);var i=r.util.iniLoader;r.SharedIniFileCredentials=r.util.inherit(r.Credentials,{constructor:function SharedIniFileCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var n=r.util.getProfilesFromSharedConfig(i,this.filename);var o=n[this.profile]||{};if(Object.keys(o).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var a=Boolean(this.preferStaticCredentials&&o["aws_access_key_id"]&&o["aws_secret_access_key"]);if(o["role_arn"]&&!a){this.loadRoleProfile(n,o,function(n,r){if(n){e(n)}else{t.expired=false;t.accessKeyId=r.Credentials.AccessKeyId;t.secretAccessKey=r.Credentials.SecretAccessKey;t.sessionToken=r.Credentials.SessionToken;t.expireTime=r.Credentials.Expiration;e(null)}});return}this.accessKeyId=o["aws_access_key_id"];this.secretAccessKey=o["aws_secret_access_key"];this.sessionToken=o["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){i.clearCachedFiles();this.coalesceRefresh(e||r.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,n){if(this.disableAssumeRole){throw r.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var i=this;var a=t["role_arn"];var s=t["role_session_name"];var c=t["external_id"];var u=t["mfa_serial"];var l=t["source_profile"];if(!l){throw r.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var p=e[l];if(typeof p!=="object"){throw r.util.error(new Error("source_profile "+l+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var m=new r.SharedIniFileCredentials(r.util.merge(this.options||{},{profile:l,preferStaticCredentials:true}));this.roleArn=a;var d=new o({credentials:m,httpOptions:this.httpOptions});var y={RoleArn:a,RoleSessionName:s||"aws-sdk-js-"+Date.now()};if(c){y.ExternalId=c}if(u&&i.tokenCodeFn){y.SerialNumber=u;i.tokenCodeFn(u,function(e,t){if(e){var o;if(e instanceof Error){o=e.message}else{o=e}n(r.util.error(new Error("Error fetching MFA token: "+o),{code:"SharedIniFileCredentialsProviderFailure"}));return}y.TokenCode=t;d.assumeRole(y,n)});return}d.assumeRole(y,n)}})},,,,,,,function(e,t,n){"use strict";const r=n(553);const o=e=>r({exact:true}).test(e);o.v4=(e=>r.v4({exact:true}).test(e));o.v6=(e=>r.v6({exact:true}).test(e));o.version=(e=>o(e)?o.v4(e)?4:6:undefined);e.exports=o},,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},,,,,,,,function(e,t,n){var r=n(395);var o=n(106);r.TemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function TemporaryCredentials(e,t){r.Credentials.call(this);this.loadMasterCredentials(t);this.expired=true;this.params=e||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials;var n=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;n.call(t.service,function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})})},loadMasterCredentials:function loadMasterCredentials(e){this.masterCredentials=e||r.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}if(typeof this.masterCredentials.get!=="function"){this.masterCredentials=new r.Credentials(this.masterCredentials)}},createClients:function(){this.service=this.service||new o({params:this.params})}})},,,,function(e){e.exports={pagination:{DescribeAccountAttributes:{result_key:"AccountAttributes"},DescribeAddresses:{result_key:"Addresses"},DescribeAvailabilityZones:{result_key:"AvailabilityZones"},DescribeBundleTasks:{result_key:"BundleTasks"},DescribeByoipCidrs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ByoipCidrs"},DescribeCapacityReservations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"CapacityReservations"},DescribeClassicLinkInstances:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Instances"},DescribeClientVpnAuthorizationRules:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"AuthorizationRules"},DescribeClientVpnConnections:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Connections"},DescribeClientVpnEndpoints:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ClientVpnEndpoints"},DescribeClientVpnRoutes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Routes"},DescribeClientVpnTargetNetworks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ClientVpnTargetNetworks"},DescribeCoipPools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"CoipPools"},DescribeConversionTasks:{result_key:"ConversionTasks"},DescribeCustomerGateways:{result_key:"CustomerGateways"},DescribeDhcpOptions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"DhcpOptions"},DescribeEgressOnlyInternetGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"EgressOnlyInternetGateways"},DescribeExportImageTasks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ExportImageTasks"},DescribeExportTasks:{result_key:"ExportTasks"},DescribeFastSnapshotRestores:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"FastSnapshotRestores"},DescribeFleets:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Fleets"},DescribeFlowLogs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"FlowLogs"},DescribeFpgaImages:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"FpgaImages"},DescribeHostReservationOfferings:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"OfferingSet"},DescribeHostReservations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"HostReservationSet"},DescribeHosts:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Hosts"},DescribeIamInstanceProfileAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"IamInstanceProfileAssociations"},DescribeImages:{result_key:"Images"},DescribeImportImageTasks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ImportImageTasks"},DescribeImportSnapshotTasks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ImportSnapshotTasks"},DescribeInstanceCreditSpecifications:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceCreditSpecifications"},DescribeInstanceStatus:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceStatuses"},DescribeInstanceTypeOfferings:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceTypeOfferings"},DescribeInstanceTypes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceTypes"},DescribeInstances:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Reservations"},DescribeInternetGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InternetGateways"},DescribeIpv6Pools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Ipv6Pools"},DescribeKeyPairs:{result_key:"KeyPairs"},DescribeLaunchTemplateVersions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LaunchTemplateVersions"},DescribeLaunchTemplates:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LaunchTemplates"},DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayRouteTableVirtualInterfaceGroupAssociations"},DescribeLocalGatewayRouteTableVpcAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayRouteTableVpcAssociations"},DescribeLocalGatewayRouteTables:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayRouteTables"},DescribeLocalGatewayVirtualInterfaceGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayVirtualInterfaceGroups"},DescribeLocalGatewayVirtualInterfaces:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayVirtualInterfaces"},DescribeLocalGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGateways"},DescribeMovingAddresses:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"MovingAddressStatuses"},DescribeNatGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NatGateways"},DescribeNetworkAcls:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NetworkAcls"},DescribeNetworkInterfacePermissions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NetworkInterfacePermissions"},DescribeNetworkInterfaces:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NetworkInterfaces"},DescribePlacementGroups:{result_key:"PlacementGroups"},DescribePrefixLists:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"PrefixLists"},DescribePrincipalIdFormat:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Principals"},DescribePublicIpv4Pools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"PublicIpv4Pools"},DescribeRegions:{result_key:"Regions"},DescribeReservedInstances:{result_key:"ReservedInstances"},DescribeReservedInstancesListings:{result_key:"ReservedInstancesListings"},DescribeReservedInstancesModifications:{input_token:"NextToken",output_token:"NextToken",result_key:"ReservedInstancesModifications"},DescribeReservedInstancesOfferings:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ReservedInstancesOfferings"},DescribeRouteTables:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"RouteTables"},DescribeScheduledInstanceAvailability:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ScheduledInstanceAvailabilitySet"},DescribeScheduledInstances:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ScheduledInstanceSet"},DescribeSecurityGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SecurityGroups"},DescribeSnapshots:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Snapshots"},DescribeSpotFleetRequests:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SpotFleetRequestConfigs"},DescribeSpotInstanceRequests:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SpotInstanceRequests"},DescribeSpotPriceHistory:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SpotPriceHistory"},DescribeStaleSecurityGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"StaleSecurityGroupSet"},DescribeSubnets:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Subnets"},DescribeTags:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Tags"},DescribeTrafficMirrorFilters:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TrafficMirrorFilters"},DescribeTrafficMirrorSessions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TrafficMirrorSessions"},DescribeTrafficMirrorTargets:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TrafficMirrorTargets"},DescribeTransitGatewayAttachments:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayAttachments"},DescribeTransitGatewayMulticastDomains:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayMulticastDomains"},DescribeTransitGatewayPeeringAttachments:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayPeeringAttachments"},DescribeTransitGatewayRouteTables:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayRouteTables"},DescribeTransitGatewayVpcAttachments:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayVpcAttachments"},DescribeTransitGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGateways"},DescribeVolumeStatus:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VolumeStatuses"},DescribeVolumes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Volumes"},DescribeVolumesModifications:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VolumesModifications"},DescribeVpcClassicLinkDnsSupport:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Vpcs"},DescribeVpcEndpointConnectionNotifications:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ConnectionNotificationSet"},DescribeVpcEndpointConnections:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VpcEndpointConnections"},DescribeVpcEndpointServiceConfigurations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ServiceConfigurations"},DescribeVpcEndpointServicePermissions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"AllowedPrincipals"},DescribeVpcEndpoints:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VpcEndpoints"},DescribeVpcPeeringConnections:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VpcPeeringConnections"},DescribeVpcs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Vpcs"},DescribeVpnConnections:{result_key:"VpnConnections"},DescribeVpnGateways:{result_key:"VpnGateways"},GetAssociatedIpv6PoolCidrs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Ipv6CidrAssociations"},GetTransitGatewayAttachmentPropagations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayAttachmentPropagations"},GetTransitGatewayMulticastDomainAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"MulticastDomainAssociations"},GetTransitGatewayRouteTableAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Associations"},GetTransitGatewayRouteTablePropagations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayRouteTablePropagations"},SearchLocalGatewayRoutes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Routes"},SearchTransitGatewayMulticastGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"MulticastGroups"}}}},,function(e,t,n){var r=n(11);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},,,,function(e,t,n){"use strict";const r=typeof URL==="undefined"?n(835).URL:URL;const o="text/plain";const i="us-ascii";const a=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const s=(e,{stripHash:t})=>{const n=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!n){throw new Error(`Invalid URL: ${e}`)}const r=n[1].split(";");const a=n[2];const s=t?"":n[3];let c=false;if(r[r.length-1]==="base64"){r.pop();c=true}const u=(r.shift()||"").toLowerCase();const l=r.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());if(t==="charset"){n=n.toLowerCase();if(n===i){return""}}return`${t}${n?`=${n}`:""}`}).filter(Boolean);const p=[...l];if(c){p.push("base64")}if(p.length!==0||u&&u!==o){p.unshift(u)}return`data:${p.join(";")},${c?a.trim():a}${s?`#${s}`:""}`};const c=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return s(e,t)}const n=e.startsWith("//");const o=!n&&/^\.*\//.test(e);if(!o){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const i=new r(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&i.protocol==="https:"){i.protocol="http:"}if(t.forceHttps&&i.protocol==="http:"){i.protocol="https:"}if(t.stripAuthentication){i.username="";i.password=""}if(t.stripHash){i.hash=""}if(i.pathname){i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(i.pathname){i.pathname=decodeURI(i.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const n=e[e.length-1];if(a(n,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);i.pathname=e.slice(1).join("/")+"/"}}if(i.hostname){i.hostname=i.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)){i.hostname=i.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...i.searchParams.keys()]){if(a(e,t.removeQueryParameters)){i.searchParams.delete(e)}}}if(t.sortQueryParameters){i.searchParams.sort()}if(t.removeTrailingSlash){i.pathname=i.pathname.replace(/\/$/,"")}e=i.toString();if((t.removeTrailingSlash||i.pathname==="/")&&i.hash===""){e=e.replace(/\/$/,"")}if(n&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=c;e.exports.default=c},,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},function(e,t,n){"use strict";const r=n(747);const o=n(669);const i=n(534);const a=n(504);e.exports=(async e=>{const{body:t}=e;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!t&&!e.stream){return 0}if(i.string(t)){return Buffer.byteLength(t)}if(a(t)){return o.promisify(t.getLength.bind(t))()}if(t instanceof r.ReadStream){const{size:e}=await o.promisify(r.stat)(t.path);return e}return null})},,,,,,,,,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Signers.RequestSigner=o({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};n(220);n(791);n(566);n(754);n(616);n(951)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const{URL:r,URLSearchParams:o}=n(835);const i=n(835);const a=n(534);const s=n(173);const c=n(474);const u=n(811);const l=n(504);const p=n(821);const m=n(433);const d=new Set([413,429,503]);const y=(e,t)=>{if(a.nullOrUndefined(e.headers)){e.headers={}}else{e.headers=c(e.headers)}if(e.baseUrl&&!e.baseUrl.toString().endsWith("/")){e.baseUrl+="/"}if(e.stream){e.json=false}if(a.nullOrUndefined(e.hooks)){e.hooks={}}else if(!a.object(e.hooks)){throw new TypeError(`Parameter \`hooks\` must be an object, not ${a(e.hooks)}`)}for(const n of m){if(a.nullOrUndefined(e.hooks[n])){if(t){e.hooks[n]=[...t.hooks[n]]}else{e.hooks[n]=[]}}}if(a.number(e.timeout)){e.gotTimeout={request:e.timeout}}else if(a.object(e.timeout)){e.gotTimeout=e.timeout}delete e.timeout;const{retry:n}=e;e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]};if(a.nonEmptyObject(t)&&n!==false){e.retry={...t.retry}}if(n!==false){if(a.number(n)){e.retry.retries=n}else{e.retry={...e.retry,...n}}}if(e.gotTimeout){e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter(e=>!a.nullOrUndefined(e)))}if(a.array(e.retry.methods)){e.retry.methods=new Set(e.retry.methods.map(e=>e.toUpperCase()))}if(a.array(e.retry.statusCodes)){e.retry.statusCodes=new Set(e.retry.statusCodes)}if(a.array(e.retry.errorCodes)){e.retry.errorCodes=new Set(e.retry.errorCodes)}return e};const f=(e,t,n)=>{if(a.plainObject(e)){t={...e,...t};e=t.url||{};delete t.url}if(n){t=p({},n.options,t?y(t,n.options):{})}else{t=p({},y(t))}if(!a.string(e)&&!a.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${a(e)}`)}if(a.string(e)){if(t.baseUrl){if(e.toString().startsWith("/")){e=e.toString().slice(1)}e=u(new r(e,t.baseUrl))}else{e=e.replace(/^unix:/,"http://$&");e=s(e)}}else if(a(e)==="URL"){e=u(e)}t=p({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const n=e(t);if(a.promise(n)){throw new TypeError("The `init` hook must be a synchronous function")}}const{baseUrl:i}=t;Object.defineProperty(t,"baseUrl",{set:()=>{throw new Error("Failed to set baseUrl. Options are normalized already.")},get:()=>i});const{query:c}=t;if(a.nonEmptyString(c)||a.nonEmptyObject(c)||c instanceof o){if(!a.string(c)){t.query=new o(c).toString()}t.path=`${t.path.split("?")[0]}?${t.query}`;delete t.query}if(t.hostname==="unix"){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,n,r]=e;t={...t,socketPath:n,path:r,host:null}}}const{headers:m}=t;for(const[e,t]of Object.entries(m)){if(a.nullOrUndefined(t)){delete m[e]}}if(t.json&&a.undefined(m.accept)){m.accept="application/json"}if(t.decompress&&a.undefined(m["accept-encoding"])){m["accept-encoding"]="gzip, deflate"}const{body:f}=t;if(a.nullOrUndefined(f)){t.method=t.method?t.method.toUpperCase():"GET"}else{const e=a.object(f)&&!a.buffer(f)&&!a.nodeStream(f);if(!a.nodeStream(f)&&!a.string(f)&&!a.buffer(f)&&!(t.form||t.json)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(t.json&&!(e||a.array(f))){throw new TypeError("The `body` option must be an Object or Array when the `json` option is used")}if(t.form&&!e){throw new TypeError("The `body` option must be an Object when the `form` option is used")}if(l(f)){m["content-type"]=m["content-type"]||`multipart/form-data; boundary=${f.getBoundary()}`}else if(t.form){m["content-type"]=m["content-type"]||"application/x-www-form-urlencoded";t.body=new o(f).toString()}else if(t.json){m["content-type"]=m["content-type"]||"application/json";t.body=JSON.stringify(f)}t.method=t.method?t.method.toUpperCase():"POST"}if(!a.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=((n,r)=>{if(n>e){return 0}if((!r||!t.retry.errorCodes.has(r.code))&&(!t.retry.methods.has(r.method)||!t.retry.statusCodes.has(r.statusCode))){return 0}if(Reflect.has(r,"headers")&&Reflect.has(r.headers,"retry-after")&&d.has(r.statusCode)){let e=Number(r.headers["retry-after"]);if(a.nan(e)){e=Date.parse(r.headers["retry-after"])-Date.now()}else{e*=1e3}if(e>t.retry.maxRetryAfter){return 0}return e}if(r.statusCode===413){return 0}const o=Math.random()*100;return 2**(n-1)*1e3+o})}return t};const h=e=>f(i.format(e),e);e.exports=f;e.exports.preNormalize=y;e.exports.reNormalize=h},function(e){e.exports=require("os")},,function(e){"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,n)=>{const r=new Set(Object.keys(e).concat(t));for(const t of r){if(t in n){continue}n[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},,,,function(e,t,n){"use strict";const r=n(413).Readable;const o=n(474);class Response extends r{constructor(e,t,n,r){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(n instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof r!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=o(t);this.body=n;this.url=r}_read(){this.push(this.body);this.push(null)}}e.exports=Response},,,,function(e){"use strict";e.exports=(e=>{const t={};for(const[n,r]of Object.entries(e)){t[n.toLowerCase()]=r}return t})},,,,,,function(e,t,n){var r=n(395);n(138);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(n,o){if(!n){var i=r.util.date.getDate();var a=new Date(o.Expiration);if(a{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();t=Object.assign({https:false},t);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")})},function(e){e.exports=require("child_process")},,,,,,,,,function(e,t,n){var r=n(395);n(711);var o=r.util.inherit;r.MetadataService=o({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,n){if(arguments.length===2){n=t;t={}}if(process.env[r.util.imdsDisabledEnv]){n(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var o=new r.HttpRequest("http://"+this.host+e);o.method=t.method||"GET";if(t.headers){o.headers=t.headers}r.util.handleRequestWithRetries(o,this,n)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var n="/latest/api/token";t.request(n,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var n=this;var o="/latest/meta-data/iam/security-credentials/";n.request(o,e,function(i,a){if(i){n.disableFetchToken=!(i.statusCode===401);t(r.util.error(i,{message:"EC2 Metadata roleName request returned error"}));return}a=a.split("\n")[0];n.request(o+a,e,function(e,o){if(e){n.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var i=JSON.parse(o);t(null,i)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,n){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,n)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,n){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var o={};if(n){o.headers={"x-aws-ec2-metadata-token":n}}t.fetchCredentials(o,callbacks)})}}});e.exports=r.MetadataService},function(e,t,n){var r=n(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},,,,,,function(e,t,n){"use strict";const r=n(453);const o=n(966);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:n}=t;let i;return new Promise((a,s)=>{const c=e=>{if(e){e.bufferedData=i.getBufferedValue()}s(e)};i=r(e,o(t),e=>{if(e){c(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>n){c(new MaxBufferError)}})}).then(()=>i.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},,,,,,,,function(e,t,n){var r;var o={environment:"nodejs",engine:function engine(){if(o.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=o.environment;var t="aws-sdk-"+e+"/"+n(395).VERSION;if(e==="nodejs")t+=" "+o.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return o.url.parse(e)},urlFormat:function urlFormat(e){return o.url.format(e)},queryStringParse:function queryStringParse(e){return o.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var n=o.uriEscape;var r=Object.keys(e).sort();o.arrayEach(r,function(r){var i=e[r];var a=n(r);var s=a+"=";if(Array.isArray(i)){var c=[];o.arrayEach(i,function(e){c.push(n(e))});s=a+"="+c.sort().join("&"+a+"=")}else if(i!==undefined&&i!==null){s=a+"="+n(i)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(o.isBrowser())return null;return n(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw o.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=o.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw o.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return o.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof o.Buffer.from==="function"&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,t):new o.Buffer(e,t)},alloc:function(e,t,n){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof o.Buffer.alloc==="function"){return o.Buffer.alloc(e,t,n)}else{var r=new o.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,n)}return r}},toStream:function toStream(e){if(!o.Buffer.isBuffer(e))e=o.buffer.toBuffer(e);var t=new o.stream.Readable;var n=0;t._read=function(r){if(n>=e.length)return t.push(null);var o=n+r;if(o>e.length)o=e.length;t.push(e.slice(n,o));n=o};return t},concat:function(e){var t=0,n=0,r=null,i;for(i=0;i>>8^t[(n^i)&255]}return(n^-1)>>>0},hmac:function hmac(e,t,n,r){if(!n)n="binary";if(n==="buffer"){n=undefined}if(!r)r="sha256";if(typeof t==="string")t=o.buffer.toBuffer(t);return o.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function md5(e,t,n){return o.crypto.hash("md5",e,t,n)},sha256:function sha256(e,t,n){return o.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var i=o.crypto.createHash(e);if(!n){n="binary"}if(n==="buffer"){n=undefined}if(typeof t==="string")t=o.buffer.toBuffer(t);var a=o.arraySliceFn(t);var s=o.Buffer.isBuffer(t);if(o.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){i.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,i.digest(n))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var c=0,u=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e);c+=e.length;l._continueReading()};l._continueReading=function(){if(c>=t.size){r(null,i.digest(n));return}var e=c+u;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,c,e))};l._continueReading()}else{if(o.isBrowser()&&typeof t==="object"&&!s){t=new o.Buffer(new Uint8Array(t))}var p=i.update(t).digest(n);if(r)r(null,p);return p}},toHex:function toHex(e){var t=[];for(var n=0;n=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var n=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")n=true;if(!Array.isArray(e))e=[e];for(var o=0;o=0){s++;setTimeout(u,i+(e.retryAfter||0))}else{n(e)}};var u=function(){var t="";i.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){n(null,t)}else{var i=parseInt(e.headers["retry-after"],10)*1e3||0;var a=o.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(i&&a.retryable)a.retryAfter=i;c(a)}})},c)};r.util.defer(u)},uuid:{v4:function uuidV4(){return n(898).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var n=t.operation;var r=t.service.api.operations[n].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var n=(t||{})[e.operation];if(!n||!n.input||!n.input.payload)return undefined;return n.input.members[n.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var n={};var r={};if(process.env[o.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[o.sharedConfigFileEnv]})}var i=e.loadFrom({filename:t||process.env[o.configOptInEnv]&&process.env[o.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw o.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o},function(e){"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const r=new Set([500,502,503,504]);const o={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const i={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return r.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const n=e.trim().split(/\s*,\s*/);for(const e of n){const[n,r]=e.split(/\s*=\s*/,2);t[n]=r===undefined?true:r.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const n in e){const r=e[n];t.push(r===true?n:n+"="+r)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:n,cacheHeuristic:r,immutableMinTimeToLive:o,ignoreCargoCult:i,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=n!==false;this._cacheHeuristic=undefined!==r?r:.1;this._immutableMinTtl=undefined!==o?o:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(i&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const n of t){if(e.headers[n]!==this._reqHeaders[n])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const n in e){if(o[n])continue;t[n]=e[n]}if(e.connection){const n=e.connection.trim().split(/\s*,\s*/);for(const e of n){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const n=Date.parse(this._resHeaders.expires);if(Number.isNaN(n)||nn){return Math.max(e,(t-n)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const n=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const n=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(n){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let n=false;if(t.status!==undefined&&t.status!=304){n=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){n=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){n=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){n=true}}if(!n){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const r={};for(const e in this._resHeaders){r[e]=e in t.headers&&!i[e]?t.headers[e]:this._resHeaders[e]}const o=Object.assign({},t,{status:this._status,method:this._method,headers:r});return{policy:new this.constructor(e,o,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},,,,,,,,,,,function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},,,,,function(e,t,n){var r=n(395);var o=n(214);var i=n(106);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var n=this;Object.defineProperty(this,"identityId",{get:function(){n.loadCachedId();return n._identityId||n.params.IdentityId},set:function(e){n._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(n){if(!n){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(n);e(n)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(n,r){if(!n&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(n)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(n,r){if(!n){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(n)}e(n)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(n,r){if(!n){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(n){if(!n){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(n)})}else{t.clearIdOnNotAuthorized(n);e(n)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var n=Object.keys(e.params.Logins);var o=(e.getStorage("providers")||"").split(",");var i=o.filter(function(e){return n.indexOf(e)!==-1});if(i.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new o(t)}this.sts=this.sts||new i(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},,,function(e,t,n){"use strict";const r=n(835);const o=n(128);e.exports=((e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const n=o(e,Object.assign({https:true},t));return r.parse(n)})},,function(e,t,n){var r=n(395).util;var o=r.buffer.toBuffer;var i=4;var a=i*2;var s=4;var c=a+s*2;function splitMessage(e){if(!r.Buffer.isBuffer(e))e=o(e);if(e.length=192){const n=f.decode(e,e.readUInt16BE(t-1)-49152);f.decode.bytes=2;return n}while(o){if(o>=192){n.push(f.decode(e,e.readUInt16BE(t-1)-49152));t++;break}n.push(e.toString("utf-8",t,t+o));t+=o;o=e[t++]}f.decode.bytes=t-r;return n.join(".")};f.decode.bytes=0;f.encodingLength=function(e){if(e===".")return 1;return Buffer.byteLength(e)+2};const h={};h.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(h.encodingLength(e));if(!n)n=0;const r=t.write(e,n+1);t[n]=r;h.encode.bytes=r+1;return t};h.encode.bytes=0;h.decode=function(e,t){if(!t)t=0;const n=e[t];const r=e.toString("utf-8",t+1,t+1+n);h.decode.bytes=n+1;return r};h.decode.bytes=0;h.encodingLength=function(e){return Buffer.byteLength(e)+1};const N={};N.encode=function(e,t,n){if(!t)t=N.encodingLength(e);if(!n)n=0;const r=(e.flags||0)&32767;const o=e.type==="response"?l:u;t.writeUInt16BE(e.id||0,n);t.writeUInt16BE(r|o,n+2);t.writeUInt16BE(e.questions.length,n+4);t.writeUInt16BE(e.answers.length,n+6);t.writeUInt16BE(e.authorities.length,n+8);t.writeUInt16BE(e.additionals.length,n+10);return t};N.encode.bytes=12;N.decode=function(e,t){if(!t)t=0;if(e.length<12)throw new Error("Header must be 12 bytes");const n=e.readUInt16BE(t+2);return{id:e.readUInt16BE(t),type:n&l?"response":"query",flags:n&32767,flag_qr:(n>>15&1)===1,opcode:i.toString(n>>11&15),flag_aa:(n>>10&1)===1,flag_tc:(n>>9&1)===1,flag_rd:(n>>8&1)===1,flag_ra:(n>>7&1)===1,flag_z:(n>>6&1)===1,flag_ad:(n>>5&1)===1,flag_cd:(n>>4&1)===1,rcode:o.toString(n&15),questions:new Array(e.readUInt16BE(t+4)),answers:new Array(e.readUInt16BE(t+6)),authorities:new Array(e.readUInt16BE(t+8)),additionals:new Array(e.readUInt16BE(t+10))}};N.decode.bytes=12;N.encodingLength=function(){return 12};const g=t.unknown={};g.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(g.encodingLength(e));if(!n)n=0;t.writeUInt16BE(e.length,n);e.copy(t,n+2);g.encode.bytes=e.length+2;return t};g.encode.bytes=0;g.decode=function(e,t){if(!t)t=0;const n=e.readUInt16BE(t);const r=e.slice(t+2,t+2+n);g.decode.bytes=n+2;return r};g.decode.bytes=0;g.encodingLength=function(e){return e.length+2};const b=t.ns={};b.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(b.encodingLength(e));if(!n)n=0;f.encode(e,t,n+2);t.writeUInt16BE(f.encode.bytes,n);b.encode.bytes=f.encode.bytes+2;return t};b.encode.bytes=0;b.decode=function(e,t){if(!t)t=0;const n=e.readUInt16BE(t);const r=f.decode(e,t+2);b.decode.bytes=n+2;return r};b.decode.bytes=0;b.encodingLength=function(e){return f.encodingLength(e)+2};const I=t.soa={};I.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(I.encodingLength(e));if(!n)n=0;const r=n;n+=2;f.encode(e.mname,t,n);n+=f.encode.bytes;f.encode(e.rname,t,n);n+=f.encode.bytes;t.writeUInt32BE(e.serial||0,n);n+=4;t.writeUInt32BE(e.refresh||0,n);n+=4;t.writeUInt32BE(e.retry||0,n);n+=4;t.writeUInt32BE(e.expire||0,n);n+=4;t.writeUInt32BE(e.minimum||0,n);n+=4;t.writeUInt16BE(n-r-2,r);I.encode.bytes=n-r;return t};I.encode.bytes=0;I.decode=function(e,t){if(!t)t=0;const n=t;const r={};t+=2;r.mname=f.decode(e,t);t+=f.decode.bytes;r.rname=f.decode(e,t);t+=f.decode.bytes;r.serial=e.readUInt32BE(t);t+=4;r.refresh=e.readUInt32BE(t);t+=4;r.retry=e.readUInt32BE(t);t+=4;r.expire=e.readUInt32BE(t);t+=4;r.minimum=e.readUInt32BE(t);t+=4;I.decode.bytes=t-n;return r};I.decode.bytes=0;I.encodingLength=function(e){return 22+f.encodingLength(e.mname)+f.encodingLength(e.rname)};const v=t.txt={};v.encode=function(e,t,n){if(!Array.isArray(e))e=[e];for(let t=0;t0){const n=e[t++];--r;if(r0){n.timeout=e.readUInt16BE(t);t+=2}break;case 14:n.tags=[];for(let o=0;o0){r[i++]=P.decode(e,t);t+=P.decode.bytes;o-=P.decode.bytes}_.decode.bytes=t-n;return r};_.decode.bytes=0;_.encodingLength=function(e){return 2+encodingLengthList(e||[],P)};const M=t.dnskey={};M.PROTOCOL_DNSSEC=3;M.ZONE_KEY=128;M.SECURE_ENTRYPOINT=32768;M.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(M.encodingLength(e));if(!n)n=0;const r=n;const o=e.key;if(!Buffer.isBuffer(o)){throw new Error("Key must be a Buffer")}n+=2;t.writeUInt16BE(e.flags,n);n+=2;t.writeUInt8(M.PROTOCOL_DNSSEC,n);n+=1;t.writeUInt8(e.algorithm,n);n+=1;o.copy(t,n,0,o.length);n+=o.length;M.encode.bytes=n-r;t.writeUInt16BE(M.encode.bytes-2,r);return t};M.encode.bytes=0;M.decode=function(e,t){if(!t)t=0;const n=t;var r={};var o=e.readUInt16BE(t);t+=2;r.flags=e.readUInt16BE(t);t+=2;if(e.readUInt8(t)!==M.PROTOCOL_DNSSEC){throw new Error("Protocol must be 3")}t+=1;r.algorithm=e.readUInt8(t);t+=1;r.key=e.slice(t,n+o+2);t+=r.key.length;M.decode.bytes=t-n;return r};M.decode.bytes=0;M.encodingLength=function(e){return 6+Buffer.byteLength(e.key)};const L=t.rrsig={};L.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(L.encodingLength(e));if(!n)n=0;const o=n;const i=e.signature;if(!Buffer.isBuffer(i)){throw new Error("Signature must be a Buffer")}n+=2;t.writeUInt16BE(r.toType(e.typeCovered),n);n+=2;t.writeUInt8(e.algorithm,n);n+=1;t.writeUInt8(e.labels,n);n+=1;t.writeUInt32BE(e.originalTTL,n);n+=4;t.writeUInt32BE(e.expiration,n);n+=4;t.writeUInt32BE(e.inception,n);n+=4;t.writeUInt16BE(e.keyTag,n);n+=2;f.encode(e.signersName,t,n);n+=f.encode.bytes;i.copy(t,n,0,i.length);n+=i.length;L.encode.bytes=n-o;t.writeUInt16BE(L.encode.bytes-2,o);return t};L.encode.bytes=0;L.decode=function(e,t){if(!t)t=0;const n=t;var o={};var i=e.readUInt16BE(t);t+=2;o.typeCovered=r.toString(e.readUInt16BE(t));t+=2;o.algorithm=e.readUInt8(t);t+=1;o.labels=e.readUInt8(t);t+=1;o.originalTTL=e.readUInt32BE(t);t+=4;o.expiration=e.readUInt32BE(t);t+=4;o.inception=e.readUInt32BE(t);t+=4;o.keyTag=e.readUInt16BE(t);t+=2;o.signersName=f.decode(e,t);t+=f.decode.bytes;o.signature=e.slice(t,n+i+2);t+=o.signature.length;L.decode.bytes=t-n;return o};L.decode.bytes=0;L.encodingLength=function(e){return 20+f.encodingLength(e.signersName)+Buffer.byteLength(e.signature)};const O=t.rp={};O.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(O.encodingLength(e));if(!n)n=0;const r=n;n+=2;f.encode(e.mbox||".",t,n);n+=f.encode.bytes;f.encode(e.txt||".",t,n);n+=f.encode.bytes;O.encode.bytes=n-r;t.writeUInt16BE(O.encode.bytes-2,r);return t};O.encode.bytes=0;O.decode=function(e,t){if(!t)t=0;const n=t;const r={};t+=2;r.mbox=f.decode(e,t)||".";t+=f.decode.bytes;r.txt=f.decode(e,t)||".";t+=f.decode.bytes;O.decode.bytes=t-n;return r};O.decode.bytes=0;O.encodingLength=function(e){return 2+f.encodingLength(e.mbox||".")+f.encodingLength(e.txt||".")};const F={};F.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(F.encodingLength(e));if(!n)n=0;const o=n;var i=[];for(var a=0;a>8]===undefined){i[s>>8]=[]}i[s>>8][s>>3&31]|=1<<7-(s&7)}for(a=0;a>8]=Math.max(t[o>>8]||0,o&255)}var i=0;for(n=0;n>15&1)===1;n.options=_.decode(e,t+8);t+=8+_.decode.bytes}else{const r=e.readUInt16BE(t+2);n.ttl=e.readUInt32BE(t+4);n.class=a.toString(r&m);n.flush=!!(r&p);const o=V(n.type);n.data=o.decode(e,t+8);t+=8+o.decode.bytes}U.decode.bytes=t-o;return n};U.decode.bytes=0;U.encodingLength=function(e){const t=e.data!==null&&e.data!==undefined?e.data:e.options;return f.encodingLength(e.name)+8+V(e.type).encodingLength(t)};const H=t.question={};H.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(H.encodingLength(e));if(!n)n=0;const o=n;f.encode(e.name,t,n);n+=f.encode.bytes;t.writeUInt16BE(r.toType(e.type),n);n+=2;t.writeUInt16BE(a.toClass(e.class===undefined?"IN":e.class),n);n+=2;H.encode.bytes=n-o;return e};H.encode.bytes=0;H.decode=function(e,t){if(!t)t=0;const n=t;const o={};o.name=f.decode(e,t);t+=f.decode.bytes;o.type=r.toString(e.readUInt16BE(t));t+=2;o.class=a.toString(e.readUInt16BE(t));t+=2;const i=!!(o.class&d);if(i)o.class&=y;H.decode.bytes=t-n;return o};H.decode.bytes=0;H.encodingLength=function(e){return f.encodingLength(e.name)+4};t.AUTHORITATIVE_ANSWER=1<<10;t.TRUNCATED_RESPONSE=1<<9;t.RECURSION_DESIRED=1<<8;t.RECURSION_AVAILABLE=1<<7;t.AUTHENTIC_DATA=1<<5;t.CHECKING_DISABLED=1<<4;t.DNSSEC_OK=1<<15;t.encode=function(e,n,r){if(!n)n=Buffer.allocUnsafe(t.encodingLength(e));if(!r)r=0;const o=r;if(!e.questions)e.questions=[];if(!e.answers)e.answers=[];if(!e.authorities)e.authorities=[];if(!e.additionals)e.additionals=[];N.encode(e,n,r);r+=N.encode.bytes;r=encodeList(e.questions,H,n,r);r=encodeList(e.answers,U,n,r);r=encodeList(e.authorities,U,n,r);r=encodeList(e.additionals,U,n,r);t.encode.bytes=r-o;return n};t.encode.bytes=0;t.decode=function(e,n){if(!n)n=0;const r=n;const o=N.decode(e,n);n+=N.decode.bytes;n=decodeList(o.questions,H,e,n);n=decodeList(o.answers,U,e,n);n=decodeList(o.authorities,U,e,n);n=decodeList(o.additionals,U,e,n);t.decode.bytes=n-r;return o};t.decode.bytes=0;t.encodingLength=function(e){return N.encodingLength(e)+encodingLengthList(e.questions||[],H)+encodingLengthList(e.answers||[],U)+encodingLengthList(e.authorities||[],U)+encodingLengthList(e.additionals||[],U)};t.streamEncode=function(e){const n=t.encode(e);const r=Buffer.allocUnsafe(2);r.writeUInt16BE(n.byteLength);const o=Buffer.concat([r,n]);t.streamEncode.bytes=o.byteLength;return o};t.streamEncode.bytes=0;t.streamDecode=function(e){const n=e.readUInt16BE(0);if(e.byteLength=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var n;if(e[t.clientConfig]){n=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(n)return n}if(!r.util.isNode())return n;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var o=process.env[t.env];n=validateRegionalEndpointsFlagValue(o,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(n)return n}var i={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);i=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)){var s=i[t.sharedConfig];n=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+i[t.sharedConfig]+'".'});if(n)return n}return n}e.exports=resolveRegionalEndpointsFlag},,function(e,t,n){var r=n(153);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=n(417);r.Buffer=n(293).Buffer;r.domain=n(229);r.stream=n(413);r.url=n(835);r.querystring=n(191);r.environment="nodejs";r.createEventStream=r.stream.Readable?n(445).createEventStream:n(661).createEventStream;r.realClock=n(693);r.clientSideMonitoring={Publisher:n(701).Publisher,configProvider:n(762)};r.iniLoader=n(892).iniLoader;var o;e.exports=o=n(395);n(923);n(906);n(43);n(543);n(751);n(170);n(540);n(982);o.XML.Parser=n(810);n(888);n(960);n(868);n(103);n(426);n(316);n(872);n(634);n(22);n(982);o.CredentialProviderChain.defaultProviders=[function(){return new o.EnvironmentCredentials("AWS")},function(){return new o.EnvironmentCredentials("AMAZON")},function(){return new o.SharedIniFileCredentials},function(){return new o.ECSCredentials},function(){return new o.ProcessCredentials},function(){return new o.TokenFileWebIdentityCredentials},function(){return new o.EC2MetadataCredentials}];o.util.update(o.Config.prototype.keys,{credentials:function(){var e=null;new o.CredentialProviderChain([function(){return new o.EnvironmentCredentials("AWS")},function(){return new o.EnvironmentCredentials("AMAZON")},function(){return new o.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,n){if(!t)e=n});return e},credentialProvider:function(){return new o.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[o.util.configOptInEnv]){var n=[{filename:e[o.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[o.util.sharedConfigFileEnv]}];var r=o.util.iniLoader;while(!t&&n.length){var i=r.loadFrom(n.shift());var a=i[e.AWS_PROFILE||o.util.defaultProfile];t=a&&a.region}}return t}});o.config=new o.Config},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const r=n(534);e.exports=function deepFreeze(e){for(const[t,n]of Object.entries(e)){if(r.plainObject(n)||r.array(n)){deepFreeze(e[t])}}return Object.freeze(e)}},,,function(e,t,n){var r=n(153).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},,,,,function(e){e.exports={pagination:{}}},,,,,,,,,,function(e){e.exports={pagination:{}}},,,,,,,,,,,,,function(e){e.exports=require("buffer")},,,,,,,,,,function(e,t,n){"use strict";const r=n(614);const o=n(205);const i=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const n=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[n]))(e)}return new Map};class Keyv extends r{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:o.stringify,deserialize:o.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=i(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.get(e)).then(t=>{t=typeof t==="string"?this.opts.deserialize(t):t;if(t===undefined){return undefined}if(typeof t.expires==="number"&&Date.now()>t.expires){this.delete(e);return undefined}return t.value})}set(e,t,n){e=this._getKeyPrefix(e);if(typeof n==="undefined"){n=this.opts.ttl}if(n===0){n=undefined}const r=this.opts.store;return Promise.resolve().then(()=>{const o=typeof n==="number"?Date.now()+n:null;t={value:t,expires:o};return r.set(e,this.opts.serialize(t),n)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},function(e){e.exports=require("string_decoder")},,function(e,t){"use strict";t.toString=function(e){switch(e){case 0:return"QUERY";case 1:return"IQUERY";case 2:return"STATUS";case 3:return"OPCODE_3";case 4:return"NOTIFY";case 5:return"UPDATE";case 6:return"OPCODE_6";case 7:return"OPCODE_7";case 8:return"OPCODE_8";case 9:return"OPCODE_9";case 10:return"OPCODE_10";case 11:return"OPCODE_11";case 12:return"OPCODE_12";case 13:return"OPCODE_13";case 14:return"OPCODE_14";case 15:return"OPCODE_15"}return"OPCODE_"+e};t.toOpcode=function(e){switch(e.toUpperCase()){case"QUERY":return 0;case"IQUERY":return 1;case"STATUS":return 2;case"OPCODE_3":return 3;case"NOTIFY":return 4;case"UPDATE":return 5;case"OPCODE_6":return 6;case"OPCODE_7":return 7;case"OPCODE_8":return 8;case"OPCODE_9":return 9;case"OPCODE_10":return 10;case"OPCODE_11":return 11;case"OPCODE_12":return 12;case"OPCODE_13":return 13;case"OPCODE_14":return 14;case"OPCODE_15":return 15}return 0}},,,,,,function(e,t,n){(function(){var t,r,o,i,a,s,c;c=n(582),a=c.assign,s=c.isFunction;t=n(559);r=n(768);i=n(750);o=n(458);e.exports.create=function(e,n,r,o){var i,s;if(e==null){throw new Error("Root element needs a name")}o=a({},n,r,o);i=new t(o);s=i.element(e);if(!o.headless){i.declaration(o);if(o.pubID!=null||o.sysID!=null){i.doctype(o)}}return s};e.exports.begin=function(e,n,o){var i;if(s(e)){i=[e,n],n=i[0],o=i[1];e={}}if(n){return new r(e,n,o)}else{return new t(e)}};e.exports.stringWriter=function(e){return new i(e)};e.exports.streamWriter=function(e,t){return new o(e,t)}}).call(this)},,,function(e,t,n){var r=n(153);var o=n(618);var i=n(912);var a=n(337);var s=n(806);function populateBody(e){var t=new a;var n=e.service.api.operations[e.operation].input;if(n.payload){var r={};var o=n.members[n.payload];r=e.params[n.payload];if(r===undefined)return;if(o.type==="structure"){e.httpRequest.body=t.build(r,o);applyContentTypeHeader(e)}else{e.httpRequest.body=r;if(o.type==="binary"||o.isStreaming){applyContentTypeHeader(e,true)}}}else{var i=t.build(e.params,n);if(i!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=i}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var n=e.service.api.operations[e.operation];var r=n.input;if(!e.httpRequest.headers["Content-Type"]){var o=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=o}}function buildRequest(e){o.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){i.extractError(e)}function extractData(e){o.extractData(e);var t=e.request;var n=t.service.api.operations[t.operation];var a=t.service.api.operations[t.operation].output||{};var c;var u=n.hasEventOutput;if(a.payload){var l=a.members[a.payload];var p=e.httpResponse.body;if(l.isEventStream){c=new s;e.data[payload]=r.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:p,c,l)}else if(l.type==="structure"||l.type==="list"){var c=new s;e.data[a.payload]=c.parse(p,l)}else if(l.type==="binary"||l.isStreaming){e.data[a.payload]=p}else{e.data[a.payload]=l.toType(p)}}else{var m=e.data;i.extractData(e);e.data=r.merge(m,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},function(e,t,n){var r=n(395);r.ECSCredentials=r.RemoteCredentials},,,,,,,,,function(e,t,n){"use strict";const r=n(413).PassThrough;const o=n(89);const i=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new r;o(e,t);return e.pipe(t)};e.exports=i},,,,,,,,function(e,t,n){(function(){var t,r,o,i=function(e,t){for(var n in t){if(a.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;o=n(582).isObject;r=n(855);e.exports=t=function(e){i(XMLDTDEntity,e);function XMLDTDEntity(e,t,n,r){XMLDTDEntity.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing entity name")}if(r==null){throw new Error("Missing entity value")}this.pe=!!t;this.name=this.stringify.eleName(n);if(!o(r)){this.value=this.stringify.dtdEntityValue(r)}else{if(!r.pubID&&!r.sysID){throw new Error("Public and/or system identifiers are required for an external entity")}if(r.pubID&&!r.sysID){throw new Error("System identifier is required for a public external entity")}if(r.pubID!=null){this.pubID=this.stringify.dtdPubID(r.pubID)}if(r.sysID!=null){this.sysID=this.stringify.dtdSysID(r.sysID)}if(r.nData!=null){this.nData=this.stringify.dtdNData(r.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity")}}}XMLDTDEntity.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)};return XMLDTDEntity}(r)}).call(this)},,,,function(e,t,n){var r=n(153);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var n={};r.each(e,function(e,r){var o=t.members[e];if(o){if(o.location!=="body")return;var i=o.isLocationName?o.name:e;var a=translate(r,o);if(a!==undefined)n[i]=a}});return n}function translateList(e,t){var n=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r!==undefined)n.push(r)});return n}function translateMap(e,t){var n={};r.each(e,function(e,r){var o=translate(r,t.value);if(o!==undefined)n[e]=o});return n}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},function(e,t,n){"use strict";const r=n(774);const o=n(794);const i=n(916);const a=n(86);const s=n(821);const c=n(262);const u=e=>e.stream?o(e):i(e);const l=["get","post","put","patch","head","delete"];const p=e=>{e=s({},e);a.preNormalize(e.options);if(!e.handler){e.handler=((e,t)=>t(e))}function got(t,n){try{return e.handler(a(t,n,e),u)}catch(e){if(n&&n.stream){throw e}else{return Promise.reject(e)}}}got.create=p;got.extend=(t=>{let n;if(t&&Reflect.has(t,"mutableDefaults")){n=t.mutableDefaults;delete t.mutableDefaults}else{n=e.mutableDefaults}return p({options:s.options(e.options,t),handler:e.handler,mutableDefaults:n})});got.mergeInstances=((...e)=>p(s.instances(e)));got.stream=((e,t)=>got(e,{...t,stream:true}));for(const e of l){got[e]=((t,n)=>got(t,{...n,method:e}));got.stream[e]=((t,n)=>got.stream(t,{...n,method:e}))}Object.assign(got,{...r,mergeOptions:s.options});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:c(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};e.exports=p},,,,,,,,,,,,function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},,,,,,,,,,,function(e,t,n){n(234);e.exports=n(395)},,,,function(e,t,n){"use strict";const{Transform:r}=n(413);e.exports={download(e,t,n){let o=0;return new r({transform(e,r,i){o+=e.length;const a=n?o/n:0;if(a<1){t.emit("downloadProgress",{percent:a,transferred:o,total:n})}i(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:o,total:n});e()}})},upload(e,t,n){const r=150;let o=0;let i;t.emit("uploadProgress",{percent:0,transferred:0,total:n});e.once("error",()=>{clearInterval(i)});e.once("response",()=>{clearInterval(i);t.emit("uploadProgress",{percent:1,transferred:o,total:n})});e.once("socket",a=>{const s=()=>{i=setInterval(()=>{const r=o;const i=e._header?Buffer.byteLength(e._header):0;o=a.bytesWritten-i;if(o===r||o===n){return}t.emit("uploadProgress",{percent:n?o/n:0,transferred:o,total:n})},r)};if(a.connecting){a.once("connect",s)}else if(a.writable){s()}})}}},,,,,,,,,,function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const o=n==="buffer";let i=false;if(t){i=!(n||o)}else{n=n||"utf8"}if(o){n=null}const a=new r({objectMode:i});if(n){a.setEncoding(n)}let s=0;const c=[];a.on("data",e=>{c.push(e);if(i){s=c.length}else{s+=e.length}});a.getBufferedValue=(()=>{if(t){return c}return o?Buffer.concat(c,s):c.join("")});a.getBufferedLength=(()=>s);return a})},,,,,,,function(e,t,n){var r=n(395);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},,,,,,,,,,,,,function(e,t,n){var r={util:n(153)};var o={};o.toString();e.exports=r;r.util.update(r,{VERSION:"2.680.0",Signers:{},Protocol:{Json:n(912),Query:n(576),Rest:n(618),RestJson:n(315),RestXml:n(2)},XML:{Builder:n(492),Parser:null},JSON:{Builder:n(337),Parser:n(806)},Model:{Api:n(788),Operation:n(964),Shape:n(682),Paginator:n(265),ResourceWaiter:n(624)},apiLoader:n(165),EndpointCache:n(120).EndpointCache});n(610);n(503);n(755);n(711);n(606);n(597);n(828);n(930);n(66);n(977);r.events=new r.SequentialExecutor;r.util.memoizedProperty(r,"endpointCache",function(){return new r.EndpointCache(r.config.endpointCacheSize)},true)},,,function(e,t){"use strict";t.toString=function(e){switch(e){case 0:return"NOERROR";case 1:return"FORMERR";case 2:return"SERVFAIL";case 3:return"NXDOMAIN";case 4:return"NOTIMP";case 5:return"REFUSED";case 6:return"YXDOMAIN";case 7:return"YXRRSET";case 8:return"NXRRSET";case 9:return"NOTAUTH";case 10:return"NOTZONE";case 11:return"RCODE_11";case 12:return"RCODE_12";case 13:return"RCODE_13";case 14:return"RCODE_14";case 15:return"RCODE_15"}return"RCODE_"+e};t.toRcode=function(e){switch(e.toUpperCase()){case"NOERROR":return 0;case"FORMERR":return 1;case"SERVFAIL":return 2;case"NXDOMAIN":return 3;case"NOTIMP":return 4;case"REFUSED":return 5;case"YXDOMAIN":return 6;case"YXRRSET":return 7;case"NXRRSET":return 8;case"NOTAUTH":return 9;case"NOTZONE":return 10;case"RCODE_11":return 11;case"RCODE_12":return 12;case"RCODE_13":return 13;case"RCODE_14":return 14;case"RCODE_15":return 15}return 0}},,,,,,function(e,t,n){var r=n(918).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var n=this.attributes;for(var o=0,i=Object.keys(n);o":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},,,,,,,,,function(e){e.exports=require("stream")},,,,function(e){e.exports=require("crypto")},,,,,,function(e){(function(){var t,n={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,o,i,a,s,c,u,l;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(o=e.indent)!=null?o:" ";this.newline=(i=e.newline)!=null?i:"\n";this.offset=(a=e.offset)!=null?a:0;this.dontprettytextnodes=(s=e.dontprettytextnodes)!=null?s:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(c=e.spacebeforeslash)!=null?c:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;u=e.writer||{};for(t in u){if(!n.call(u,t))continue;l=u[t];this[t]=l}}XMLWriterBase.prototype.set=function(e){var t,r,o;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!n.call(r,t))continue;o=r[t];this[t]=o}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},,,function(e,t,n){var r=n(395),o="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",i="AWS_CONTAINER_CREDENTIALS_FULL_URI",a="AWS_CONTAINER_AUTHORIZATION_TOKEN",s=["https:"],c=["http:","https:"],u=["localhost","127.0.0.1"],l="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[o]||process.env[i]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[o],t=process.env[i];if(e){return"http://"+l+e}else if(t){var n=r.util.urlParse(t);if(c.indexOf(n.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+c.join(",")+" only; "+n.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(s.indexOf(n.protocol)<0&&u.indexOf(n.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+u.join(",")+" for "+n.protocol+"; "+n.protocol+"//"+n.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+o+" or "+i+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[i]){return process.env[a]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var n=new r.HttpRequest(e);n.method="GET";n.headers.Accept="application/json";var o=this.getECSAuthToken();if(o){n.headers.Authorization=o}r.util.handleRequestWithRetries(n,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var n;try{n=this.getECSFullUri()}catch(t){e(t);return}this.request(n,function(n,o){if(!n){try{o=JSON.parse(o);var i=t.formatCreds(o);if(!t.credsFormatIsValid(i)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,i)}catch(e){n=e}}e(n,i)})}})},,,,,function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(n(87));function issueCommand(e,t,n){const r=new Command(e,t,n);process.stdout.write(r.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const r=this.properties[n];if(r){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(r)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,function(e){"use strict";e.exports=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"]},,,,,,function(e,t,n){var r=n(153);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,n){serializeStructure("",e,t,n)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,n,o){r.each(n.members,function(n,r){var i=t[n];if(i===null||i===undefined)return;var a=ucfirst(r);a=e?e+"."+a:a;serializeMember(a,i,r,o)})}function serializeMap(e,t,n,o){var i=1;r.each(t,function(t,r){var a=n.flattened?".":".entry.";var s=a+i+++".";var c=s+(n.key.name||"key");var u=s+(n.value.name||"value");serializeMember(e+c,t,n.key,o);serializeMember(e+u,r,n.value,o)})}function serializeList(e,t,n,o){var i=n.member||{};if(t.length===0){o.call(this,e,null);return}r.arrayEach(t,function(t,r){var a="."+(r+1);if(n.api.protocol==="ec2"){a=a+""}else if(n.flattened){if(i.name){var s=e.split(".");s.pop();s.push(ucfirst(i));e=s.join(".")}}else{a="."+(i.name?i.name:"member")+a}serializeMember(e+a,t,i,o)})}function serializeMember(e,t,n,r){if(t===null||t===undefined)return;if(n.type==="structure"){serializeStructure(e,t,n,r)}else if(n.type==="list"){serializeList(e,t,n,r)}else if(n.type==="map"){serializeMap(e,t,n,r)}else{r(e,n.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},,,,,,function(e,t,n){var r=n(862).EventMessageChunkerStream;var o=n(804).EventUnmarshallerStream;function createEventStream(e,t,n){var i=new o({parser:t,eventStreamModel:n});var a=new r;e.pipe(a).pipe(i);e.on("error",function(e){a.emit("error",e)});a.on("error",function(e){i.emit("error",e)});return i}e.exports={createEventStream:createEventStream}},,,,,,,,function(e,t,n){var r=n(49);var o=n(9);var i=n(747);var a=function(){};var s=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!s)return false;if(!i)return false;return(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&c(e.close)};var l=function(e){return e.setHeader&&c(e.abort)};var p=function(e,t,n,i){i=r(i);var s=false;e.on("close",function(){s=true});o(e,{readable:t,writable:n},function(e){if(e)return i(e);s=true;i()});var p=false;return function(t){if(s)return;if(p)return;p=true;if(u(e))return e.close(a);if(l(e))return e.abort();if(c(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var m=function(e){e()};var d=function(e,t){return e.pipe(t)};var y=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var n;var r=e.map(function(o,i){var a=i0;return p(o,a,s,function(e){if(!n)n=e;if(e)r.forEach(m);if(a)return;r.forEach(m);t(n)})});return e.reduce(d)};e.exports=y},,,function(e,t,n){"use strict";const r=n(958);e.exports=(e=>{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}};const n=e=>{const n=e.emit.bind(e);e.emit=((r,...o)=>{if(r==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=n}return n(r,...o)})};let o=false;const i=()=>{t.upload=Date.now();t.phases.request=t.upload-t.connect};n(e);e.once("socket",e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const n=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.once("lookup",n);r(e,()=>{t.connect=Date.now();if(t.lookup===null){e.removeListener("lookup",n);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup;if(o&&!t.upload){i()}})});e.once("finish",()=>{o=true;if(t.connect){i()}});e.once("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;n(e);e.once("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t})},,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h=function(e,t){for(var n in t){if(N.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},N={}.hasOwnProperty;c=n(738);u=n(735);t=n(35);r=n(919);l=n(796);m=n(660);y=n(708);p=n(491);o=n(801);i=n(463);a=n(333);s=n(19);f=n(423);e.exports=d=function(e){h(XMLStreamWriter,e);function XMLStreamWriter(e,t){XMLStreamWriter.__super__.constructor.call(this,t);this.stream=e}XMLStreamWriter.prototype.document=function(e){var t,n,o,i,a,s,l,m;s=e.children;for(n=0,i=s.length;n"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,n){var c,u,l,m;n||(n=0);this.stream.write(this.space(n));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));m=e.children;for(u=0,l=m.length;u");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,n){var o,i,a,s,c,u,d,f;n||(n=0);f=this.space(n);this.stream.write(f+"<"+e.name);u=e.attributes;for(c in u){if(!N.call(u,c))continue;o=u[c];this.attribute(o)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);d=e.children;for(a=0,s=d.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(f)}).call(this)},,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLDTDElement,e);function XMLDTDElement(e,t,n){XMLDTDElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(!n){n="(#PCDATA)"}if(Array.isArray(n)){n="("+n.join(",")+")"}this.name=this.stringify.eleName(t);this.value=this.stringify.dtdElementValue(n)}XMLDTDElement.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)};return XMLDTDElement}(r)}).call(this)},,,,,,,function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(431);const a=o(n(87));const s=o(n(622));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=i.toCommandValue(t);process.env[e]=n;i.issueCommand("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${s.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}t.getInput=getInput;function setOutput(e,t){i.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}t.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+a.EOL)}t.info=info;function startGroup(e){i.issue("group",e)}t.startGroup=startGroup;function endGroup(){i.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n})}t.group=group;function saveState(e,t){i.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,,,function(e){"use strict";e.exports=function(e){var t={};var n=Object.keys(Object(e));for(var r=0;r=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};o=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,n,o;this.options={};n=r["0.2"];for(t in n){if(!s.call(n,t))continue;o=n[t];this.options[t]=o}for(t in e){if(!s.call(e,t))continue;o=e[t];this.options[t]=o}}Builder.prototype.buildObject=function(t){var n,o,c,u,l;n=this.options.attrkey;o=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}c=function(e){return function(t,r){var u,l,p,m,d,y;if(typeof r!=="object"){if(e.options.cdata&&i(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(m in r){if(!s.call(r,m))continue;l=r[m];for(d in l){p=l[d];t=c(t.ele(d),p).up()}}}else{for(d in r){if(!s.call(r,d))continue;l=r[d];if(d===n){if(typeof l==="object"){for(u in l){y=l[u];t=t.att(u,y)}}}else if(d===o){if(e.options.cdata&&i(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(m in l){if(!s.call(l,m))continue;p=l[m];if(typeof p==="string"){if(e.options.cdata&&i(p)){t=t.ele(d).raw(a(p)).up()}else{t=t.ele(d,p).up()}}else{t=c(t.ele(d),p).up()}}}else if(typeof l==="object"){t=c(t.ele(d),l).up()}else{if(typeof l==="string"&&e.options.cdata&&i(l)){t=t.ele(d).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(d,l.toString()).up()}}}}return t}}(this);u=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return c(u,t).end(this.options.renderOpts)};return Builder}()}).call(this)},,,,,,function(e){e.exports={_from:"got@^9.6.0",_id:"got@9.6.0",_inBundle:false,_integrity:"sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",_location:"/got",_phantomChildren:{},_requested:{type:"range",registry:true,raw:"got@^9.6.0",name:"got",escapedName:"got",rawSpec:"^9.6.0",saveSpec:null,fetchSpec:"^9.6.0"},_requiredBy:["/public-ip"],_resolved:"https://registry.npmjs.org/got/-/got-9.6.0.tgz",_shasum:"edf45e7d67f99545705de1f7bbeeeb121765ed85",_spec:"got@^9.6.0",_where:"/Users/sohelamin/Desktop/github/aws-security-group-add-ip/node_modules/public-ip",ava:{concurrency:4},browser:{"decompress-response":false,electron:false},bugs:{url:"https://github.com/sindresorhus/got/issues"},bundleDependencies:false,dependencies:{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},deprecated:false,description:"Simplified HTTP requests",devDependencies:{ava:"^1.1.0",coveralls:"^3.0.0",delay:"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0",np:"^3.1.0",nyc:"^13.1.0","p-event":"^2.1.0",pem:"^1.13.2",proxyquire:"^2.0.1",sinon:"^7.2.2","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","tough-cookie":"^3.0.0",xo:"^0.24.0"},engines:{node:">=8.6"},files:["source"],homepage:"https://github.com/sindresorhus/got#readme",keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],license:"MIT",main:"source",name:"got",repository:{type:"git",url:"git+https://github.com/sindresorhus/got.git"},scripts:{release:"np",test:"xo && nyc ava"},version:"9.6.0"}},,,,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(855);e.exports=r=function(e){o(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,n){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(n){this.value=this.stringify.insValue(n)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},function(e,t,n){var r=n(153);var o=n(404).XmlNode;var i=n(948).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,n,r){var i=new o(n);applyNamespaces(i,t,true);serialize(i,e,t);return i.children.length>0||r?i.toString():""};function serialize(e,t,n){switch(n.type){case"structure":return serializeStructure(e,t,n);case"map":return serializeMap(e,t,n);case"list":return serializeList(e,t,n);default:return serializeScalar(e,t,n)}}function serializeStructure(e,t,n){r.arrayEach(n.memberNames,function(r){var i=n.members[r];if(i.location!=="body")return;var a=t[r];var s=i.name;if(a!==undefined&&a!==null){if(i.isXmlAttribute){e.addAttribute(s,a)}else if(i.flattened){serialize(e,a,i)}else{var c=new o(s);e.addChildNode(c);applyNamespaces(c,i);serialize(c,a,i)}}})}function serializeMap(e,t,n){var i=n.key.name||"key";var a=n.value.name||"value";r.each(t,function(t,r){var s=new o(n.flattened?n.name:"entry");e.addChildNode(s);var c=new o(i);var u=new o(a);s.addChildNode(c);s.addChildNode(u);serialize(c,t,n.key);serialize(u,r,n.value)})}function serializeList(e,t,n){if(n.flattened){r.arrayEach(t,function(t){var r=n.member.name||n.name;var i=new o(r);e.addChildNode(i);serialize(i,t,n.member)})}else{r.arrayEach(t,function(t){var r=n.member.name||"member";var i=new o(r);e.addChildNode(i);serialize(i,t,n.member)})}}function serializeScalar(e,t,n){e.addChildNode(new i(n.toWireFormat(t)))}function applyNamespaces(e,t,n){var r,o="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)o+=":"+t.xmlNamespacePrefix}else if(n&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(o,r)}e.exports=XmlBuilder},,,,,,,,,,,function(e,t,n){var r=n(395);var o=n(788);var i=n(546);var a=r.util.inherit;var s=0;r.Service=a({constructor:function Service(e){if(!this.loadServiceClass){throw r.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var n=r.util.copy(e);var o=new t(e);Object.defineProperty(o,"_originalConfig",{get:function(){return n},enumerable:false,configurable:true});o._clientId=++s;return o}this.initialize(e)},initialize:function initialize(e){var t=r.config[this.serviceIdentifier];this.config=new r.Config(r.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)i.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);r.SequentialExecutor.call(this);r.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||r.Service._clientSideMonitoring)&&this.publisher){var n=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){n.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){n.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!r.util.isEmpty(this.api)){return null}else if(t.apiConfig){return r.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new r.Config(r.config);t.update(e,true);var n=t.apiVersions[this.constructor.serviceIdentifier];n=n||t.apiVersion;return this.getLatestServiceClass(n)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){r.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(r.util.isType(e,Date)){e=r.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var n=null;for(var o=t.length-1;o>=0;o--){if(t[o][t[o].length-1]!=="*"){n=t[o]}if(t[o].substr(0,10)<=e){return n}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,n){if(typeof t==="function"){n=t;t=null}t=t||{};if(this.config.params){var o=this.api.operations[e];if(o){t=r.util.copy(t);r.util.each(this.config.params,function(e,n){if(o.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=n}}})}}var i=new r.Request(this,e,t);this.addAllRequestListeners(i);this.attachMonitoringEmitter(i);if(n)i.send(n);return i},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,n){if(typeof t==="function"){n=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return n?r.send(n):r},waitFor:function waitFor(e,t,n){var o=new r.ResourceWaiter(this,e);return o.wait(t,n)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var n=0;n299){if(o.code)n.FinalAwsException=o.code;if(o.message)n.FinalAwsExceptionMessage=o.message}else{if(o.code||o.name)n.FinalSdkException=o.code||o.name;if(o.message)n.FinalSdkExceptionMessage=o.message}}return n},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var n={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){n.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){n.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return n;if(e.httpRequest.headers["x-amz-security-token"]){n.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){n.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){n.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){n.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return n},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var n=e.response;var r=n.error;if(n.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var n;var o;var i;var a=0;var s;var c;var u=this;var l=true;e.on("validate",function(){i=r.util.realClock.now();c=Date.now()},l);e.on("sign",function(){n=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){o=Math.round(r.util.realClock.now()-n)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var n=u.apiAttemptEvent(e);n.Timestamp=t;n.AttemptLatency=o>=0?o:0;n.Region=s;u.emit("apiCallAttempt",[n])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var i=u.attemptFailEvent(e);i.Timestamp=t;o=o||Math.round(r.util.realClock.now()-n);i.AttemptLatency=o>=0?o:0;i.Region=s;u.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=u.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=c;var n=Math.round(r.util.realClock.now()-i);t.Latency=n>=0?n:0;var o=e.response;if(o.error&&o.error.retryable&&typeof o.retryCount==="number"&&typeof o.maxRetries==="number"&&o.retryCount>=o.maxRetries){t.MaxRetriesExceeded=1}u.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var n=null;var o="";if(e){var i=e.service.api.operations||{};n=i[e.operation]||null;o=n?n.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(o==="v4"||o==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var n=this.api.operations[e].paginator;if(!n){if(t){var o=new Error;throw r.util.error(o,"No pagination configuration for "+e)}return null}return n}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var n=e.prototype.api.operations[t];if(n.authtype==="none"){e.prototype[t]=function(e,n){return this.makeUnauthenticatedRequest(t,e,n)}}else{e.prototype[t]=function(e,n){return this.makeRequest(t,e,n)}}})},defineService:function defineService(e,t,n){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){n=t;t=[]}var o=a(r.Service,n||{});if(typeof e==="string"){r.Service.addVersions(o,t);var i=o.serviceIdentifier||e;o.serviceIdentifier=i}else{o.prototype.api=e;r.Service.defineMethods(o)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var c=r.util.clientSideMonitoring.configProvider;var u=c();this.prototype.publisher=new s(u);if(u.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(o.prototype);r.Service.addDefaultMonitoringListeners(o.prototype);return o},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var n=0;nr.nodeStream(e)&&r.function(e.getBoundary))},,,function(e,t){"use strict";t.toString=function(e){switch(e){case 1:return"LLQ";case 2:return"UL";case 3:return"NSID";case 5:return"DAU";case 6:return"DHU";case 7:return"N3U";case 8:return"CLIENT_SUBNET";case 9:return"EXPIRE";case 10:return"COOKIE";case 11:return"TCP_KEEPALIVE";case 12:return"PADDING";case 13:return"CHAIN";case 14:return"KEY_TAG";case 26946:return"DEVICEID"}if(e<0){return null}return`OPTION_${e}`};t.toCode=function(e){if(typeof e==="number"){return e}if(!e){return-1}switch(e.toUpperCase()){case"OPTION_0":return 0;case"LLQ":return 1;case"UL":return 2;case"NSID":return 3;case"OPTION_4":return 4;case"DAU":return 5;case"DHU":return 6;case"N3U":return 7;case"CLIENT_SUBNET":return 8;case"EXPIRE":return 9;case"COOKIE":return 10;case"TCP_KEEPALIVE":return 11;case"PADDING":return 12;case"CHAIN":return 13;case"KEY_TAG":return 14;case"DEVICEID":return 26946;case"OPTION_65535":return 65535}const t=e.match(/_(\d+)$/);if(t){return parseInt(t[1],10)}return-1}},,,,function(e){e.exports={version:2,waiters:{InstanceExists:{delay:5,maxAttempts:40,operation:"DescribeInstances",acceptors:[{matcher:"path",expected:true,argument:"length(Reservations[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},BundleTaskComplete:{delay:15,operation:"DescribeBundleTasks",maxAttempts:40,acceptors:[{expected:"complete",matcher:"pathAll",state:"success",argument:"BundleTasks[].State"},{expected:"failed",matcher:"pathAny",state:"failure",argument:"BundleTasks[].State"}]},ConversionTaskCancelled:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},ConversionTaskCompleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"},{expected:"cancelled",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"},{expected:"cancelling",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"}]},ConversionTaskDeleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},CustomerGatewayAvailable:{delay:15,operation:"DescribeCustomerGateways",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"CustomerGateways[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"}]},ExportTaskCancelled:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ExportTaskCompleted:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ImageExists:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{matcher:"path",expected:true,argument:"length(Images[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidAMIID.NotFound",state:"retry"}]},ImageAvailable:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"Images[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"Images[].State",expected:"failed"}]},InstanceRunning:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"running",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"shutting-down",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].InstanceStatus.Status",expected:"ok"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStopped:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"stopped",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},InstanceTerminated:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"terminated",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},KeyPairExists:{operation:"DescribeKeyPairs",delay:5,maxAttempts:6,acceptors:[{expected:true,matcher:"path",state:"success",argument:"length(KeyPairs[].KeyName) > `0`"},{expected:"InvalidKeyPair.NotFound",matcher:"error",state:"retry"}]},NatGatewayAvailable:{operation:"DescribeNatGateways",delay:15,maxAttempts:40,acceptors:[{state:"success",matcher:"pathAll",argument:"NatGateways[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"failed"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleting"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleted"},{state:"retry",matcher:"error",expected:"NatGatewayNotFound"}]},NetworkInterfaceAvailable:{operation:"DescribeNetworkInterfaces",delay:20,maxAttempts:10,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"NetworkInterfaces[].Status"},{expected:"InvalidNetworkInterfaceID.NotFound",matcher:"error",state:"failure"}]},PasswordDataAvailable:{operation:"GetPasswordData",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"path",argument:"length(PasswordData) > `0`",expected:true}]},SnapshotCompleted:{delay:15,operation:"DescribeSnapshots",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"Snapshots[].State"}]},SecurityGroupExists:{operation:"DescribeSecurityGroups",delay:5,maxAttempts:6,acceptors:[{expected:true,matcher:"path",state:"success",argument:"length(SecurityGroups[].GroupId) > `0`"},{expected:"InvalidGroupNotFound",matcher:"error",state:"retry"}]},SpotInstanceRequestFulfilled:{operation:"DescribeSpotInstanceRequests",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"fulfilled"},{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"request-canceled-and-instance-running"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"schedule-expired"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"canceled-before-fulfillment"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"bad-parameters"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"system-error"},{state:"retry",matcher:"error",expected:"InvalidSpotInstanceRequestID.NotFound"}]},SubnetAvailable:{delay:15,operation:"DescribeSubnets",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Subnets[].State"}]},SystemStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].SystemStatus.Status",expected:"ok"}]},VolumeAvailable:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VolumeDeleted:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{matcher:"error",expected:"InvalidVolume.NotFound",state:"success"}]},VolumeInUse:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"in-use",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VpcAvailable:{delay:15,operation:"DescribeVpcs",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Vpcs[].State"}]},VpcExists:{operation:"DescribeVpcs",delay:1,maxAttempts:5,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcID.NotFound",state:"retry"}]},VpnConnectionAvailable:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpnConnectionDeleted:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpcPeeringConnectionExists:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"retry"}]},VpcPeeringConnectionDeleted:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpcPeeringConnections[].Status.Code"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"success"}]}}}},,,function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=typeof URL==="undefined"?n(835).URL:URL;const o=Object.prototype.toString;const i=e=>t=>typeof t===e;const a=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);const s=e=>{const t=o.call(e).slice(8,-1);if(t){return t}return null};const c=e=>t=>s(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(Array.isArray(e)){return"Array"}if(a(e)){return"Buffer"}const t=s(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const t=e=>typeof e==="object";e.undefined=i("undefined");e.string=i("string");e.number=i("number");e.function_=i("function");e.null_=(e=>e===null);e.class_=(t=>e.function_(t)&&t.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=i("symbol");e.numericString=(t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)));e.array=Array.isArray;e.buffer=a;e.nullOrUndefined=(t=>e.null_(t)||e.undefined(t));e.object=(n=>!e.nullOrUndefined(n)&&(e.function_(n)||t(n)));e.iterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]));e.asyncIterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]));e.generator=(t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw));e.nativePromise=(e=>c("Promise")(e));const n=n=>!e.null_(n)&&t(n)&&e.function_(n.then)&&e.function_(n.catch);e.promise=(t=>e.nativePromise(t)||n(t));e.generatorFunction=c("GeneratorFunction");e.asyncFunction=c("AsyncFunction");e.boundFunction=(t=>e.function_(t)&&!t.hasOwnProperty("prototype"));e.regExp=c("RegExp");e.date=c("Date");e.error=c("Error");e.map=(e=>c("Map")(e));e.set=(e=>c("Set")(e));e.weakMap=(e=>c("WeakMap")(e));e.weakSet=(e=>c("WeakSet")(e));e.int8Array=c("Int8Array");e.uint8Array=c("Uint8Array");e.uint8ClampedArray=c("Uint8ClampedArray");e.int16Array=c("Int16Array");e.uint16Array=c("Uint16Array");e.int32Array=c("Int32Array");e.uint32Array=c("Uint32Array");e.float32Array=c("Float32Array");e.float64Array=c("Float64Array");e.arrayBuffer=c("ArrayBuffer");e.sharedArrayBuffer=c("SharedArrayBuffer");e.dataView=c("DataView");e.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);e.urlInstance=(e=>c("URL")(e));e.urlString=(t=>{if(!e.string(t)){return false}try{new r(t);return true}catch(e){return false}});e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const o=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(t=>e.null_(t)||o.has(typeof t));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let t;return s(e)==="Object"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))});const u=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const t=s(e);if(t===null){return false}return u.has(t)});const l=t=>e.safeInteger(t)&&t>-1;e.arrayLike=(t=>!e.nullOrUndefined(t)&&!e.function_(t)&&l(t.length));e.inRange=((t,n)=>{if(e.number(n)){return t>=Math.min(0,n)&&t<=Math.max(n,0)}if(e.array(n)&&n.length===2){return t>=Math.min(...n)&&t<=Math.max(...n)}throw new TypeError(`Invalid range: ${JSON.stringify(n)}`)});const p=1;const m=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(t=>e.object(t)&&t.nodeType===p&&e.string(t.nodeName)&&!e.plainObject(t)&&m.every(e=>e in t));e.observable=(e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false});e.nodeStream=(n=>!e.nullOrUndefined(n)&&t(n)&&e.function_(n.pipe)&&!e.observable(n));e.infinite=(e=>e===Infinity||e===-Infinity);const d=t=>n=>e.integer(n)&&Math.abs(n%2)===t;e.even=d(0);e.odd=d(1);const y=t=>e.string(t)&&/\S/.test(t)===false;e.emptyArray=(t=>e.array(t)&&t.length===0);e.nonEmptyArray=(t=>e.array(t)&&t.length>0);e.emptyString=(t=>e.string(t)&&t.length===0);e.nonEmptyString=(t=>e.string(t)&&t.length>0);e.emptyStringOrWhitespace=(t=>e.emptyString(t)||y(t));e.emptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length===0);e.nonEmptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0);e.emptySet=(t=>e.set(t)&&t.size===0);e.nonEmptySet=(t=>e.set(t)&&t.size>0);e.emptyMap=(t=>e.map(t)&&t.size===0);e.nonEmptyMap=(t=>e.map(t)&&t.size>0);const f=(t,n,r)=>{if(e.function_(n)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(n)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return t.call(r,n)};e.any=((e,...t)=>f(Array.prototype.some,e,t));e.all=((e,...t)=>f(Array.prototype.every,e,t))})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});t.default=is;e.exports=is;e.exports.default=is},,,,,,function(e,t,n){var r=n(395);var o=n(106);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})},createClients:function(){this.service=this.service||new o({params:this.params})}})},,,function(e,t,n){var r=n(395);var o=n(106);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var n=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new o(n)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var n=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,o){var i={};if(r){e(r);return}if(o){i.TokenCode=o}t.service[n](i,function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(n,o){if(n){var i=n;if(n instanceof Error){i=n.message}e(r.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}));return}e(null,o)})}else{e(null)}}})},,,function(e,t,n){var r=n(153);var o=n(572);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var n=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[n,r],[t,"*"],[n,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,n){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=n}})}function configureEndpoint(e){var t=derivedKeys(e);for(var n=0;ne&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${t})|(?<=${t})(?=\\s|$))`:"";const r="(?: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}";const o="[a-fA-F\\d]{1,4}";const i=`\n(\n(?:${o}:){7}(?:${o}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${o}:){6}(?:${r}|:${o}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${o}:){5}(?::${r}|(:${o}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${o}:){4}(?:(:${o}){0,1}:${r}|(:${o}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${o}:){3}(?:(:${o}){0,2}:${r}|(:${o}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${o}:){2}(?:(:${o}){0,3}:${r}|(:${o}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${o}:){1}(?:(:${o}){0,4}:${r}|(:${o}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${o}){0,5}:${r}|(?::${o}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim();const a=e=>e&&e.exact?new RegExp(`(?:^${r}$)|(?:^${i}$)`):new RegExp(`(?:${n(e)}${r}${n(e)})|(?:${n(e)}${i}${n(e)})`,"g");a.v4=(e=>e&&e.exact?new RegExp(`^${r}$`):new RegExp(`${n(e)}${r}${n(e)}`,"g"));a.v6=(e=>e&&e.exact?new RegExp(`^${i}$`):new RegExp(`${n(e)}${i}${n(e)}`,"g"));e.exports=a},,,,function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((n,r,o)=>{t.push(o);e(...t).then(n,r)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,n)=>{this._reject=n;const r=e=>{this._isPending=false;t(e)};const o=e=>{this._isPending=false;n(e)};const i=e=>{this._cancelHandlers.push(e)};Object.defineProperties(i,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(r,o,i)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.default=PCancelable;e.exports.CancelError=CancelError},,function(e,t,n){(function(){var t,r,o,i,a,s=function(e,t){for(var n in t){if(c.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;a=n(582).isPlainObject;r=n(855);i=n(602);o=n(750);e.exports=t=function(e){s(XMLDocument,e);function XMLDocument(e){XMLDocument.__super__.constructor.call(this,null);e||(e={});if(!e.writer){e.writer=new o}this.options=e;this.stringify=new i(e);this.isDocument=true}XMLDocument.prototype.end=function(e){var t;if(!e){e=this.options.writer}else if(a(e)){t=e;e=this.options.writer.set(t)}return e.document(this)};XMLDocument.prototype.toString=function(e){return this.options.writer.set(e).document(this)};return XMLDocument}(r)}).call(this)},,,,,,,function(e,t,n){var r=n(395);var o=r.util.inherit;n(791);r.Signers.V3Https=o(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},,,,,,function(e){e.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{endpoint:"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{endpoint:"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},,,,function(e,t,n){var r=n(395);var o=n(153);var i=n(439);var a=n(682);var s=n(904).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var n=e.httpRequest;n.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";n.params={Version:e.service.api.apiVersion,Action:t.name};var r=new i;r.serialize(e.params,t.input,function(e,t){n.params[e]=t});n.body=o.queryParamsToString(n.params);s(e)}function extractError(e){var t,n=e.httpResponse.body.toString();if(n.match("{const n=new i;const C=[];let R;let D;let E;let k;let x=0;let A=false;const P=e.cookieJar?o.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null;const _=e.cookieJar?o.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null;const M=p.object(e.agent)?e.agent:null;const L=async t=>{try{for(const n of e.hooks.beforeError){t=await n(t)}n.emit("error",t)}catch(e){n.emit("error",e)}};const O=async e=>{const o=E||D;if(e.protocol!=="http:"&&e.protocol!=="https:"){throw new g(e)}decodeURI(o);let i;if(p.function(e.request)){i={request:e.request}}else{i=e.protocol==="https:"?s:a}if(M){const t=e.protocol==="https:"?"https":"http";e.agent=M[t]||e.agent}if(e.useElectronNet&&process.versions.electron){const e={x:require}["yx".slice(1)];const t=e("electron");i=t.net||t.remote.net}if(e.cookieJar){const t=await _(o,{});if(p.nonEmptyString(t)){e.headers.cookie=t}}let c;const l=async t=>{try{if(e.useElectronNet){t=new Proxy(t,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const n=e[t];return p.function(n)?n.bind(e):n}})}const{statusCode:i}=t;t.url=o;t.requestUrl=D;t.retryCount=x;t.timings=c;t.redirectUrls=C;t.request={gotOptions:e};const a=t.headers["set-cookie"];if(e.cookieJar&&a){await Promise.all(a.map(e=>P(e,t.url)))}if(e.followRedirect&&"location"in t.headers){if(w.has(i)||T.has(i)&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(i===303){e.method="GET"}if(C.length>=10){throw new b(i,C,e)}const a=Buffer.from(t.headers.location,"binary").toString();const s=new r(a,o);E=s.toString();C.push(E);const c={...e,...S(s)};for(const t of e.hooks.beforeRedirect){await t(c)}n.emit("redirect",t,c);await O(c);return}}f(t,e,n)}catch(e){L(e)}};const y=r=>{if(A){r.once("error",()=>{});r.abort();return}R=r;r.once("error",t=>{if(r.aborted){return}if(t instanceof d.TimeoutError){t=new v(t,e)}else{t=new I(t,e)}if(n.retry(t)===false){L(t)}});c=m(r);h.upload(r,n,k);if(e.gotTimeout){d(r,e.gotTimeout,e)}n.emit("request",r);const o=()=>{r.emit("upload-complete")};try{if(p.nodeStream(e.body)){e.body.once("end",o);e.body.pipe(r);e.body=undefined}else if(e.body){r.end(e.body,o)}else if(t&&(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")){t.once("end",o);t.pipe(r)}else{r.end(o)}}catch(t){L(new I(t,e))}};if(e.cache){const t=new u(i.request,e.cache);const n=t(e,l);n.once("error",t=>{if(t instanceof u.RequestError){L(new I(t,e))}else{L(new N(t,e))}});n.once("request",y)}else{try{y(i.request(e,l))}catch(t){L(new I(t,e))}}};n.retry=(t=>{let n;try{n=e.retry.retries(++x,t)}catch(e){L(e);return}if(n){const r=async e=>{try{for(const n of e.hooks.beforeRetry){await n(e,t,x)}await O(e)}catch(e){L(e)}};setTimeout(r,n,{...e,forceRefresh:true});return true}return false});n.abort=(()=>{if(R){R.once("error",()=>{});R.abort()}else{A=true}});setImmediate(async()=>{try{const{body:t}=e;if(p.buffer(t)){e.body=l(t);k=t.length}else{k=await y(e)}if(p.undefined(e.headers["content-length"])&&p.undefined(e.headers["transfer-encoding"])){if((k>0||e.method==="PUT")&&!p.null(k)){e.headers["content-length"]=k}}for(const t of e.hooks.beforeRequest){await t(e)}D=e.href||new r(e.path,c.format(e)).toString();await O(e)}catch(e){L(e)}});return n})},,,,,,,,,,,,,function(e,t,n){var r=n(395);var o=n(696);var i=r.util.inherit;var a=r.util.domain;var s=n(802);var c={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(c,e._asm.currentState)}var u=new o;u.setupStates=function(){var e=function(e,t){var n=this;n._haltHandlersOnError=false;n.emit(n._asm.currentState,function(e){if(e){if(isTerminalState(n)){if(a&&n.domain instanceof a.Domain){e.domainEmitter=n;e.domain=n.domain;e.domainThrown=false;n.domain.emit("error",e)}else{throw e}}else{n.response.error=e;t(e)}}else{t(n.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};u.setupStates();r.Request=i({constructor:function Request(e,t,n){var i=e.endpoint;var s=e.config.region;var c=e.config.customUserAgent;if(e.isGlobalEndpoint)s="us-east-1";this.domain=a&&a.active;this.service=e;this.operation=t;this.params=n||{};this.httpRequest=new r.HttpRequest(i,s);this.httpRequest.appendToUserAgent(c);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new o(u.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(n){if(n===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(n,o){if(n)return e(n,null);if(o===null)return e(null,null);var i=t.service.paginationConfig(t.operation);var a=i.resultKey;if(Array.isArray(a))a=a[0];var c=s.search(o,a);var u=true;r.util.arrayEach(c,function(t){u=e(null,t);if(u===false){return r.util.abort}});return u}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var n=null;if(r.HttpClient.streamsApiVersion===2){n=new e.PassThrough;process.nextTick(function(){t.send()})}else{n=new e.Stream;n.readable=true;n.sent=false;n.on("newListener",function(e){if(!n.sent&&e==="data"){n.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){n.emit("error",e)});this.on("httpHeaders",function streamHeaders(o,i,a){if(o<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var c;if(t.httpRequest.method!=="HEAD"){c=parseInt(i["content-length"],10)}if(c!==undefined&&!isNaN(c)&&c>=0){s=true;var u=0}var l=function checkContentLengthAndEmit(){if(s&&u!==c){n.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+u+" of "+c+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){n.end()}else{n.emit("end")}};var p=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var m=new e.PassThrough;m._write=function(t){if(t&&t.length){u+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};m.on("end",l);n.on("error",function(e){s=false;p.unpipe(m);m.emit("end");m.end()});p.pipe(m).pipe(n,{end:false})}else{p.pipe(n)}}else{if(s){p.on("data",function(e){if(e&&e.length){u+=e.length}})}p.on("data",function(e){n.emit("data",e)});p.on("end",l)}p.on("error",function(e){s=false;n.emit("error",e)})}});return n},emitEvent:function emit(e,t,n){if(typeof t==="function"){n=t;t=null}if(!n)n=function(){};if(!t)t=this.eventParameters(e,this.response);var o=r.SequentialExecutor.prototype.emit;o.call(this,e,t,function(e){if(e)this.response.error=e;n.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,n){t.on("complete",function(t){if(t.error){n(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},,,,,function(e){(function(){var t,n=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=n(this.assertLegalChar,this);var t,o,i;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;o=e.stringify||{};for(t in o){if(!r.call(o,t))continue;i=o[t];this[t]=i}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(i,function(n,r){if(n){t(n)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var n=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var o=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=o}catch(r){if(n&&n.isStreaming){if(n.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,n,o){n.httpResponse.statusCode=e;n.httpResponse.statusMessage=o;n.httpResponse.headers=t;n.httpResponse.body=r.util.buffer.toBuffer("");n.httpResponse.buffers=[];n.httpResponse.numBytes=0;var i=t.date||t.Date;var a=n.request.service;if(i){var s=Date.parse(i);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var n=t.httpResponse.headers["content-length"];var o={loaded:t.httpResponse.numBytes,total:n};t.request.emit("httpDownloadProgress",[o,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,n)}else{t()}})}),CorePost:(new o).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new o).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var o=t.service.config.logger;if(!o)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var n={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){n[t]=filterSensitiveLog(e.members[t],r)}else{n[t]=r}});return n;case"list":var o=[];r.util.arrayEach(t,function(t,n){o.push(filterSensitiveLog(e.member,t))});return o;case"map":var i={};r.util.each(t,function(t,n){i[t]=filterSensitiveLog(e.value,n)});return i;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var i=e.request.service.getSkewCorrectedDate().getTime();var a=(i-t.startTime.getTime())/1e3;var s=o.isTTY?true:false;var c=e.httpResponse.statusCode;var u=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;u=filterSensitiveLog(l,t.params)}var p=n(669).inspect(u,true,null);var m="";if(s)m+="";m+="[AWS "+t.service.serviceIdentifier+" "+c;m+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)m+="";m+=" "+r.util.string.lowerFirst(t.operation);m+="("+p+")";if(s)m+="";return m}var i=buildMessage();if(typeof o.log==="function"){o.log(i)}else if(typeof o.write==="function"){o.write(i+"\n")}})}),Json:(new o).addNamedListeners(function(e){var t=n(912);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new o).addNamedListeners(function(e){var t=n(618);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new o).addNamedListeners(function(e){var t=n(315);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new o).addNamedListeners(function(e){var t=n(2);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new o).addNamedListeners(function(e){var t=n(576);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},,,,function(e,t,n){var r=n(395);r.SequentialExecutor=r.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,n){if(this._events[e]){n?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,n){t._isAsync=true;return this.on(e,t,n)},removeListener:function removeListener(e,t){var n=this._events[e];if(n){var r=n.length;var o=-1;for(var i=0;i-1){n.splice(o,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,n){if(!n)n=function(){};var r=this.listeners(e);var o=r.length;this.callListeners(r,t,n);return o>0},callListeners:function callListeners(e,t,n,o){var i=this;var a=o||null;function callNextListener(o){if(o){a=r.util.error(a||new Error,o);if(i._haltHandlersOnError){return n.call(i,a)}}i.callListeners(e,t,n,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(i,t.concat([callNextListener]));return}else{try{s.apply(i,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&i._haltHandlersOnError){n.call(i,a);return}}}n.call(i,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,n){if(typeof n==="function")n=[n];r.util.arrayEach(n,function(n){t.on(e,n)})});return t},addNamedListener:function addNamedListener(e,t,n,r){this[e]=n;this.addListener(t,n,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,n,r){n._isAsync=true;return this.addNamedListener(e,t,n,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},,,,function(e){e.exports=require("events")},,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Signers.S3=o(r.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=r.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var n=this.sign(e.secretAccessKey,this.stringToSign());var o="AWS "+e.accessKeyId+":"+n;this.request.headers["Authorization"]=o},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var n=this.canonicalizedAmzHeaders();if(n)t.push(n);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];r.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase()=0?"&":"?";var c=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t{const s=Number(e.headers["content-length"])||null;const c=a.download(e,n,s);i(e,c);const u=t.decompress===true&&o.function(r)&&t.method!=="HEAD"?r(c):c;if(!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])){t.encoding=null}n.emit("response",u);n.emit("downloadProgress",{percent:0,transferred:0,total:s});e.pipe(c)})},function(e,t,n){var r=n(395);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},,,,,,,,,,,function(e,t,n){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,n){if(!(this instanceof SAXParser)){return new SAXParser(t,n)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=n||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=b.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(y)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n))t.push(n);return t}}function checkBufferLength(n){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var o=0;for(var i=0,a=t.length;ir){switch(t[i]){case"textNode":closeText(n);break;case"cdata":emitNode(n,"oncdata",n.cdata);n.cdata="";break;case"script":emitNode(n,"onscript",n.script);n.script="";break;default:error(n,"Max buffer length exceeded: "+t[i])}}o=Math.max(o,s)}var c=e.MAX_BUFFER_LENGTH-o;n.bufferCheckPosition=c+n.position}function clearBuffers(e){for(var n=0,r=t.length;n";var l="[CDATA[";var p="DOCTYPE";var m="http://www.w3.org/XML/1998/namespace";var d="http://www.w3.org/2000/xmlns/";var y={xml:m,xmlns:d};i=charClass(i);a=charClass(a);s=charClass(s);var f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var h=/[:_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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;var N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var g=/[#:_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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;c=charClass(c);u=charClass(u);function charClass(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function is(e,t){return isRegExp(e)?!!t.match(e):e[t]}function not(e,t){return!is(e,t)}var b=0;e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t];var r=typeof n==="number"?String.fromCharCode(n):n;e.ENTITIES[t]=r});for(var I in e.STATE){e.STATE[e.STATE[I]]=I}b=e.STATE;function emit(e,t,n){e[t]&&e[t](n)}function emitNode(e,t,n){if(e.textNode)closeText(e);emit(e,t,n)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var n=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){n.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",n)}function qname(e,t){var n=e.indexOf(":");var r=n<0?["",e]:e.split(":");var o=r[0];var i=r[1];if(t&&e==="xmlns"){o="xmlns";i=""}return{prefix:o,local:i}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var n=t.prefix;var r=t.local;if(n==="xmlns"){if(r==="xml"&&e.attribValue!==m){strictFail(e,"xml: prefix must be bound to "+m+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==d){strictFail(e,"xmlns: prefix must be bound to "+d+"\n"+"Actual: "+e.attribValue)}else{var o=e.tag;var i=e.tags[e.tags.length-1]||e;if(o.ns===i.ns){o.ns=Object.create(i.ns)}o.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var n=e.tag;var r=qname(e.tagName);n.prefix=r.prefix;n.local=r.local;n.uri=n.ns[r.prefix]||"";if(n.prefix&&!n.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));n.uri=r.prefix}var o=e.tags[e.tags.length-1]||e;if(n.ns&&o.ns!==n.ns){Object.keys(n.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:n.ns[t]})})}for(var i=0,a=e.attribList.length;i";e.tagName="";e.state=b.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var n=e.tagName;if(!e.strict){n=n[e.looseCase]()}var r=n;while(t--){var o=e.tags[t];if(o.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=b.TEXT;return}e.tagName=n;var i=e.tags.length;while(i-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var c in a.ns){s[c]=a.ns[c]}var u=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==u.ns){Object.keys(a.ns).forEach(function(t){var n=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:n})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=b.TEXT}function parseEntity(e){var t=e.entity;var n=t.toLowerCase();var r;var o="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[n]){return e.ENTITIES[n]}t=n;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);o=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);o=r.toString(10)}}t=t.replace(/^0+/,"");if(o.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=b.OPEN_WAKA;e.startTagPosition=e.position}else if(not(i,t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=b.TEXT}}function charAt(e,t){var n="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=b.TEXT}else if(is(c,r)){t.state=b.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case b.SGML_DECL_QUOTED:if(r===t.q){t.state=b.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case b.DOCTYPE:if(r===">"){t.state=b.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=b.DOCTYPE_DTD}else if(is(c,r)){t.state=b.DOCTYPE_QUOTED;t.q=r}}continue;case b.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=b.DOCTYPE}continue;case b.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=b.DOCTYPE}else if(is(c,r)){t.state=b.DOCTYPE_DTD_QUOTED;t.q=r}continue;case b.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=b.DOCTYPE_DTD;t.q=""}continue;case b.COMMENT:if(r==="-"){t.state=b.COMMENT_ENDING}else{t.comment+=r}continue;case b.COMMENT_ENDING:if(r==="-"){t.state=b.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=b.COMMENT}continue;case b.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=b.COMMENT}else{t.state=b.TEXT}continue;case b.CDATA:if(r==="]"){t.state=b.CDATA_ENDING}else{t.cdata+=r}continue;case b.CDATA_ENDING:if(r==="]"){t.state=b.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=b.CDATA}continue;case b.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=b.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=b.CDATA}continue;case b.PROC_INST:if(r==="?"){t.state=b.PROC_INST_ENDING}else if(is(i,r)){t.state=b.PROC_INST_BODY}else{t.procInstName+=r}continue;case b.PROC_INST_BODY:if(!t.procInstBody&&is(i,r)){continue}else if(r==="?"){t.state=b.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case b.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=b.TEXT}else{t.procInstBody+="?"+r;t.state=b.PROC_INST_BODY}continue;case b.OPEN_TAG:if(is(h,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else{if(not(i,r)){strictFail(t,"Invalid character in tag name")}t.state=b.ATTRIB}}continue;case b.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=b.ATTRIB}continue;case b.ATTRIB:if(is(i,r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else if(is(f,r)){t.attribName=r;t.attribValue="";t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_NAME:if(r==="="){t.state=b.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(is(i,r)){t.state=b.ATTRIB_NAME_SAW_WHITE}else if(is(h,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=b.ATTRIB_VALUE}else if(is(i,r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(is(f,r)){t.attribName=r;t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=b.ATTRIB}}continue;case b.ATTRIB_VALUE:if(is(i,r)){continue}else if(is(c,r)){t.q=r;t.state=b.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=b.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case b.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=b.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:if(is(i,r)){t.state=b.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else if(is(f,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_VALUE_UNQUOTED:if(not(u,r)){if(r==="&"){t.state=b.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=b.ATTRIB}continue;case b.CLOSE_TAG:if(!t.tagName){if(is(i,r)){continue}else if(not(f,r)){if(t.script){t.script+=""){closeTag(t)}else if(is(h,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var s;var m;switch(t.state){case b.TEXT_ENTITY:s=b.TEXT;m="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:s=b.ATTRIB_VALUE_QUOTED;m="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:s=b.ATTRIB_VALUE_UNQUOTED;m="attribValue";break}if(r===";"){t[m]+=parseEntity(t);t.entity="";t.state=s}else if(is(t.entity.length?g:N,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[m]+="&"+t.entity+r;t.entity="";t.state=s}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var n=function(){var n=16384;var r=[];var o;var i;var a=-1;var s=arguments.length;if(!s){return""}var c="";while(++a1114111||t(u)!==u){throw RangeError("Invalid code point: "+u)}if(u<=65535){r.push(u)}else{u-=65536;o=(u>>10)+55296;i=u%1024+56320;r.push(o,i)}if(a+1===s||r.length>n){c+=e.apply(null,r);r.length=0}}return c};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:n,configurable:true,writable:true})}else{String.fromCodePoint=n}})()}})(false?undefined:t)},,,,,,,,,,,,function(e,t,n){var r=n(683).parseMessage;function parseEvent(e,t,n){var o=r(t);var i=o.headers[":message-type"];if(i){if(i.value==="error"){throw parseError(o)}else if(i.value!=="event"){return}}var a=o.headers[":event-type"];var s=n.members[a.value];if(!s){return}var c={};var u=s.eventPayloadMemberName;if(u){var l=s.members[u];if(l.type==="binary"){c[u]=o.body}else{c[u]=e.parse(o.body.toString(),l)}}var p=s.eventHeaderMemberNames;for(var m=0;me.trim());const l=parseInt(r.getInput("port",{required:false}));const p=r.getInput("description",{required:false});o.config.update({region:a,accessKeyId:s,secretAccessKey:c});const m=new i;e.exports={region:a,accessKeyId:s,secretAccessKey:c,groupIds:u,port:l,description:p,ec2:m}},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(855);e.exports=r=function(e){o(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},function(e,t,n){var r=n(625).eventMessageChunker;var o=n(657).parseEvent;function createEventStream(e,t,n){var i=r(e);var a=[];for(var s=0;s-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=o.base64.decode(e);if(this.isSensitive&&o.isNode()&&typeof o.Buffer.alloc==="function"){var n=o.Buffer.alloc(t.length,t);t.fill(0);t=n}return t};this.toWireFormat=o.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},function(e,t,n){var r=n(733).Int64;var o=n(175).splitMessage;var i="boolean";var a="byte";var s="short";var c="integer";var u="long";var l="binary";var p="string";var m="timestamp";var d="uuid";function parseHeaders(e){var t={};var n=0;while(n0&&e[e.length-1];if(typeof t==="function"){this.once("listening",t);this.socket.bind(...e.slice(0,-1))}else{this.socket.bind(...e)}};DNS.prototype.destroy=function(e){if(e){this.once("close",e)}if(this.destroyed){return}this.destroyed=true;clearInterval(this._interval);this.socket.close();for(let e=0;ethis.retries){this._queries[t]=null;this.inflight--;this.emit("timeout",n.query,n.port,n.host);n.callback(new Error("Query timed out"));continue}n.tries++;this.socket.send(n.buffer,0,n.buffer.length,n.port,Array.isArray(n.host)?n.host[Math.floor(n.host.length*Math.random())]:n.host||"127.0.0.1")}};DNS.prototype._shouldRedirect=function(e,t){if(this.maxRedirects<=0||!e||e.query.questions.length!==1||t.answers.filter(e=>e.type==="A").length>0){return false}if(e.redirects>this.maxRedirects){return false}const n=t.answers.filter(e=>e.type==="CNAME");if(n.length===0){return false}const r=this._getNextEmptyId();if(r===-1){e.callback(new Error("Query array is full!"));return true}e.query={id:r+1,flags:i.RECURSION_DESIRED,questions:[{type:"A",name:n[0].data}]};e.redirects++;e.firstTry=Date.now();e.tries=0;e.buffer=i.encode(e.query);this._queries[r]=e;this.socket.send(e.buffer,0,e.buffer.length,e.port,Array.isArray(e.host)?e.host[Math.floor(e.host.length*Math.random())]:e.host||"127.0.0.1");return true};DNS.prototype._onmessage=function(e,t){let n;try{n=i.decode(e)}catch(e){this.emit("warning",e);return}if(n.type==="response"&&n.id){const e=this._queries[n.id-1];if(e){this._queries[n.id-1]=null;this.inflight--;if(!this._shouldRedirect(e,n)){e.callback(null,n)}}}this.emit(n.type,n,t.port,t.address)};DNS.prototype.unref=function(){this.socket.unref()};DNS.prototype.ref=function(){this.socket.ref()};DNS.prototype.response=function(e,t,n,r){if(this.destroyed){return}t.type="response";t.id=e.id;const o=i.encode(t);this.socket.send(o,0,o.length,n,r)};DNS.prototype.cancel=function(e){const t=this._queries[e];if(!t)return;this._queries[e]=null;this.inflight--;t.callback(new Error("Query cancelled"))};DNS.prototype.setRetries=function(e,t){const n=this._queries[e];if(!n)return;n.firstTry=n.firstTry-this.timeout*(t-n.retries);n.retries=this.retries-t};DNS.prototype._getNextEmptyId=function(){let e=-1;for(let t=this.maxQueries;t>0;t--){const n=(this._id+t)%this.maxQueries;if(this._queries[n]===null){e=n;this._id=(n+1)%this.maxQueries;break}}return e};DNS.prototype.query=function(e,t,n,r){if(this.destroyed){r(new Error("Socket destroyed"));return 0}this.inflight++;e.type="query";e.flags=typeof e.flags==="number"?e.flags:DNS.RECURSION_DESIRED;const o=this._getNextEmptyId();if(o===-1){r(new Error("Query array is full!"));return 0}e.id=o+1;const a=i.encode(e);this._queries[o]={callback:r||noop,redirects:0,firstTry:Date.now(),query:e,tries:0,buffer:a,port:t,host:n};this.socket.send(a,0,a.length,t,Array.isArray(n)?n[Math.floor(n.length*Math.random())]:n||"127.0.0.1");return o};function noop(){}function isListening(e){try{return e.address().port!==0}catch(e){return false}}},,,,function(e,t,n){var r=n(395).util;var o=n(200);var i=r.buffer.toBuffer;var a=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var n=0,r=t.length;ni){e[o]=a.substr(0,i)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=i(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var n=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,n){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=o.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(855);e.exports=r=function(e){o(XMLText,e);function XMLText(e,t){XMLText.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element text")}this.value=this.stringify.eleText(t)}XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(e){return this.options.writer.set(e).text(this)};return XMLText}(t)}).call(this)},,,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Endpoint=o({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var n=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(n?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=o({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});r.HttpResponse=o({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=o({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},,,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{type:"string",sensitive:true},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{type:"string",sensitive:true},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},,,function(e,t,n){"use strict";var r=n(413);function DuplexWrapper(e,t,n){if(typeof n==="undefined"){n=t;t=e;e=null}r.Duplex.call(this,e);if(typeof n.read!=="function"){n=new r.Readable(e).wrap(n)}this._writable=t;this._readable=n;this._waiting=false;var o=this;t.once("finish",function(){o.end()});this.once("finish",function(){t.end()});n.on("readable",function(){if(o._waiting){o._waiting=false;o._read()}});n.once("end",function(){o.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){o.emit("error",e)});n.on("error",function(e){o.emit("error",e)})}}DuplexWrapper.prototype=Object.create(r.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,n){this._writable.write(e,t,n)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,n){return new DuplexWrapper(e,t,n)};e.exports.DuplexWrapper=DuplexWrapper},,,,function(e){var t=[];for(var n=0;n<256;++n){t[n]=(n+256).toString(16).substr(1)}function bytesToUuid(e,n){var r=n||0;var o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}e.exports=bytesToUuid},function(e,t,n){"use strict";const{promisify:r}=n(669);const o=n(200);const i=n(697);const{get:a,CancelError:s}=n(798);const c=n(29);const u={timeout:5e3,onlyHttps:false};const l=[{v4:{servers:["208.67.222.222","208.67.220.220","208.67.222.220","208.67.220.222"],name:"myip.opendns.com",type:"A"},v6:{servers:["2620:0:ccc::2","2620:0:ccd::2"],name:"myip.opendns.com",type:"AAAA"}},{v4:{servers:["216.239.32.10","216.239.34.10","216.239.36.10","216.239.38.10"],name:"o-o.myaddr.l.google.com",type:"TXT",transform:e=>e.replace(/"/g,"")},v6:{servers:["2001:4860:4802:32::a","2001:4860:4802:34::a","2001:4860:4802:36::a","2001:4860:4802:38::a"],name:"o-o.myaddr.l.google.com",type:"TXT",transform:e=>e.replace(/"/g,"")}}];const p={v4:{dnsServers:l.map(({v4:{servers:e,...t}})=>({servers:e,question:t})),httpsUrls:["https://icanhazip.com/","https://api.ipify.org/"]},v6:{dnsServers:l.map(({v6:{servers:e,...t}})=>({servers:e,question:t})),httpsUrls:["https://icanhazip.com/","https://api6.ipify.org/"]}};const m=(e,t)=>{const n=p[e];const a=i({retries:0,maxQueries:1,socket:o.createSocket(e==="v6"?"udp6":"udp4"),timeout:t.timeout});a.retries=0;const s=r(a.query.bind(a));const u=(async()=>{for(const t of n.dnsServers){const{servers:n,question:r}=t;for(const t of n){if(a.destroyed){return}try{const{name:n,type:o,transform:i}=r;const u=await s({questions:[{name:n,type:o}]},53,t);const{answers:{0:{data:l}}}=u;const p=(typeof l==="string"?l:l.toString()).trim();const m=i?i(p):p;if(m&&c[e](m)){a.destroy();return m}}catch(e){}}}a.destroy();throw new Error("Couldn't find your IP")})();u.cancel=(()=>{a.destroy()});return u};const d=(e,t)=>{let n;const r=(async()=>{try{const r={family:e==="v6"?6:4,retries:0,timeout:t.timeout};const o=[].concat.apply(p[e].httpsUrls,t.fallbackUrls||[]);for(const t of o){try{const o=a(t,r);n=o.cancel;const i=await o;const u=(i.body||"").trim();if(u&&c[e](u)){return u}}catch(e){if(e instanceof s){throw e}}}throw new Error("Couldn't find your IP")}catch(e){if(!(e instanceof s)){throw e}}})();r.cancel=function(){return n.apply(this)};return r};const y=(e,t)=>{let n;const r=(async()=>{let r;const o=m(e,t);n=o.cancel;try{r=await o}catch(o){const i=d(e,t);n=i.cancel;r=await i}return r})();r.cancel=n;return r};e.exports.v4=(e=>{e={...u,...e};if(!e.onlyHttps){return y("v4",e)}if(e.onlyHttps){return d("v4",e)}return m("v4",e)});e.exports.v6=(e=>{e={...u,...e};if(!e.onlyHttps){return y("v6",e)}if(e.onlyHttps){return d("v6",e)}return m("v6",e)})},,,,,,,,,,function(e,t,n){var r=n(395).util;var o=r.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!r.Buffer.isBuffer(e))e=o(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256){t[n]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},,function(e,t,n){(function(){var t,r,o,i,a,s,c,u=function(e,t){for(var n in t){if(l.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},l={}.hasOwnProperty;c=n(582).isObject;s=n(855);t=n(801);o=n(333);r=n(463);i=n(19);e.exports=a=function(e){u(XMLDocType,e);function XMLDocType(e,t,n){var r,o;XMLDocType.__super__.constructor.call(this,e);this.documentObject=e;if(c(t)){r=t,t=r.pubID,n=r.sysID}if(n==null){o=[t,n],n=o[0],t=o[1]}if(t!=null){this.pubID=this.stringify.dtdPubID(t)}if(n!=null){this.sysID=this.stringify.dtdSysID(n)}}XMLDocType.prototype.element=function(e,t){var n;n=new r(this,e,t);this.children.push(n);return this};XMLDocType.prototype.attList=function(e,n,r,o,i){var a;a=new t(this,e,n,r,o,i);this.children.push(a);return this};XMLDocType.prototype.entity=function(e,t){var n;n=new o(this,false,e,t);this.children.push(n);return this};XMLDocType.prototype.pEntity=function(e,t){var n;n=new o(this,true,e,t);this.children.push(n);return this};XMLDocType.prototype.notation=function(e,t){var n;n=new i(this,e,t);this.children.push(n);return this};XMLDocType.prototype.toString=function(e){return this.options.writer.set(e).docType(this)};XMLDocType.prototype.ele=function(e,t){return this.element(e,t)};XMLDocType.prototype.att=function(e,t,n,r,o){return this.attList(e,t,n,r,o)};XMLDocType.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocType.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocType.prototype.not=function(e,t){return this.notation(e,t)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};return XMLDocType}(s)}).call(this)},,,function(e,t,n){(function(){var t,r,o,i=function(e,t){for(var n in t){if(a.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;o=n(582).isObject;r=n(855);e.exports=t=function(e){i(XMLDeclaration,e);function XMLDeclaration(e,t,n,r){var i;XMLDeclaration.__super__.constructor.call(this,e);if(o(t)){i=t,t=i.version,n=i.encoding,r=i.standalone}if(!t){t="1.0"}this.version=this.stringify.xmlVersion(t);if(n!=null){this.encoding=this.stringify.xmlEncoding(n)}if(r!=null){this.standalone=this.stringify.xmlStandalone(r)}}XMLDeclaration.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)};return XMLDeclaration}(r)}).call(this)},,,,,,,,,function(e){e.exports=require("fs")},,,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h=function(e,t){for(var n in t){if(N.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},N={}.hasOwnProperty;c=n(738);u=n(735);t=n(35);r=n(919);l=n(796);m=n(660);y=n(708);p=n(491);o=n(801);i=n(463);a=n(333);s=n(19);f=n(423);e.exports=d=function(e){h(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,n,o,i,a;this.textispresent=false;i="";a=e.children;for(n=0,o=a.length;n"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var n;n=this.space(t);n+='";n+=this.newline;return n};XMLStringWriter.prototype.docType=function(e,n){var c,u,l,m,d;n||(n=0);m=this.space(n);m+="0){m+=" [";m+=this.newline;d=e.children;for(u=0,l=d.length;u";m+=this.newline;return m};XMLStringWriter.prototype.element=function(e,n){var o,i,a,s,c,u,d,f,h,g,b,I,v;n||(n=0);v=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(n);f="";f+=I+"<"+e.name;h=e.attributes;for(d in h){if(!N.call(h,d))continue;o=h[d];f+=this.attribute(o)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){f+=">"+this.newline}else{f+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){f+=">";f+=e.children[0].value;f+=""+this.newline}else{if(this.dontprettytextnodes){g=e.children;for(a=0,c=g.length;a"+this.newline;b=e.children;for(s=0,u=b.length;s"+this.newline}return f};XMLStringWriter.prototype.processingInstruction=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.dtdNotation=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.openNode=function(e,t){var n,r,o,i;t||(t=0);if(e instanceof l){o=this.space(t)+"<"+e.name;i=e.attributes;for(r in i){if(!N.call(i,r))continue;n=i[r];o+=this.attribute(n)}o+=(e.children?">":"/>")+this.newline;return o}else{o=this.space(t)+"")+this.newline;return o}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof u):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(f)}).call(this)},function(e,t,n){var r=n(395);var o=n(106);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(n,r){t.data=null;if(!n){t.data=r;t.service.credentialsFrom(r,t)}e(n)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new o(e)}}})},,,function(e,t,n){var r=n(395);var o=n(819);var i=r.util.inherit;var a="presigned-expires";r.Signers.V4=i(r.Signers.RequestSigner,{constructor:function V4(e,t,n){r.Signers.RequestSigner.call(this,e);this.serviceName=t;n=n||{};this.signatureCache=typeof n.signatureCache==="boolean"?n.signatureCache:true;this.operation=n.operation;this.signatureVersion=n.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function addAuthorization(e,t){var n=r.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");if(this.isPresigned()){this.updateForPresigned(e,n)}else{this.addHeaders(e,n)}this.request.headers["Authorization"]=this.authorization(e,n)},addHeaders:function addHeaders(e,t){this.request.headers["X-Amz-Date"]=t;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}},updateForPresigned:function updateForPresigned(e,t){var n=this.credentialString(t);var o={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+n,"X-Amz-Expires":this.request.headers[a],"X-Amz-SignedHeaders":this.signedHeaders()};if(e.sessionToken){o["X-Amz-Security-Token"]=e.sessionToken}if(this.request.headers["Content-Type"]){o["Content-Type"]=this.request.headers["Content-Type"]}if(this.request.headers["Content-MD5"]){o["Content-MD5"]=this.request.headers["Content-MD5"]}if(this.request.headers["Cache-Control"]){o["Cache-Control"]=this.request.headers["Cache-Control"]}r.util.each.call(this,this.request.headers,function(e,t){if(e===a)return;if(this.isSignableHeader(e)){var n=e.toLowerCase();if(n.indexOf("x-amz-meta-")===0){o[n]=t}else if(n.indexOf("x-amz-")===0){o[e]=t}}});var i=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=i+r.util.queryParamsToString(o)},authorization:function authorization(e,t){var n=[];var r=this.credentialString(t);n.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);n.push("SignedHeaders="+this.signedHeaders());n.push("Signature="+this.signature(e,t));return n.join(", ")},signature:function signature(e,t){var n=o.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(n,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,n){e.push([t,n])});e.sort(function(e,t){return e[0].toLowerCase()=0}function fromConfigFile(e){var t;try{var n=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=n[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},,,,,,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h,N,g,b,I,v,S={}.hasOwnProperty;v=n(582),b=v.isObject,g=v.isFunction,I=v.isPlainObject;m=n(796);r=n(35);o=n(919);y=n(660);N=n(708);d=n(491);u=n(738);l=n(735);i=n(801);s=n(333);a=n(463);c=n(19);t=n(884);h=n(602);f=n(750);e.exports=p=function(){function XMLDocumentCB(e,t,n){var r;e||(e={});if(!e.writer){e.writer=new f(e)}else if(I(e.writer)){r=e.writer;e.writer=new f(r)}this.options=e;this.writer=e.writer;this.stringify=new h(e);this.onDataCallback=t||function(){};this.onEndCallback=n||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,n){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!b(t)){r=[t,n],n=r[0],t=r[1]}this.currentNode=new m(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(n!=null){this.text(n)}return this};XMLDocumentCB.prototype.element=function(e,t,n){if(this.currentNode&&this.currentNode instanceof l){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,n)}};XMLDocumentCB.prototype.attribute=function(e,n){var r,o;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(b(e)){for(r in e){if(!S.call(e,r))continue;o=e[r];this.attribute(r,o)}}else{if(g(n)){n=n.apply()}if(!this.options.skipNullAttributes||n!=null){this.currentNode.attributes[e]=new t(this,e,n)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new N(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new o(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new y(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var n,r,o,i,a;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(n=0,i=e.length;n=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof m){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,n){return this.node(e,t,n)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,n){return this.declaration(e,t,n)};XMLDocumentCB.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)};XMLDocumentCB.prototype.e=function(e,t,n){return this.element(e,t,n)};XMLDocumentCB.prototype.n=function(e,t,n){return this.node(e,t,n)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},function(e,t,n){"use strict";var r=t;var o=n(293).Buffer;var i=n(87);r.toBuffer=function(e,t,n){n=~~n;var r;if(this.isV4Format(e)){r=t||new o(n+4);e.split(/\./g).map(function(e){r[n++]=parseInt(e,10)&255})}else if(this.isV6Format(e)){var i=e.split(":",8);var a;for(a=0;a0;a--){u.push("0")}i.splice.apply(i,u)}r=t||new o(n+16);for(a=0;a>8&255;r[n++]=l&255}}if(!r){throw Error("Invalid ip address: "+e)}return r};r.toString=function(e,t,n){t=~~t;n=n||e.length-t;var r=[];if(n===4){for(var o=0;o32){t="ipv6"}else{t=_normalizeFamily(t)}var n=4;if(t==="ipv6"){n=16}var i=new o(n);for(var a=0,s=i.length;a>c)&255}return r.toString(i)};r.mask=function(e,t){e=r.toBuffer(e);t=r.toBuffer(t);var n=new o(Math.max(e.length,t.length));var i=0;if(e.length===t.length){for(i=0;ie.length){o=t;i=e}var a=o.length-i.length;for(var n=a;n>>0};r.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(e&255)}},,,,,function(e,t,n){"use strict";const r=n(835);const o=n(605);const i=n(557);const a=n(534);class GotError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!a.undefined(t.code)){this.code=t.code}Object.assign(this,{host:n.host,hostname:n.hostname,method:n.method,path:n.path,socketPath:n.socketPath,protocol:n.protocol,url:n.href,gotOptions:n})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,t,n,i){super(`${e.message} in "${r.format(n)}": \n${i.slice(0,77)}...`,e,n);this.name="ParseError";this.statusCode=t;this.statusMessage=o.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,t){const{statusCode:n}=e;let{statusMessage:r}=e;if(r){r=r.replace(/\r?\n/g," ").trim()}else{r=o.STATUS_CODES[n]}super(`Response code ${n} (${r})`,{},t);this.name="HTTPError";this.statusCode=n;this.statusMessage=r;this.headers=e.headers;this.body=e.body}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,t,n){super("Redirected 10 times. Aborting.",{},n);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=o.STATUS_CODES[this.statusCode];this.redirectUrls=t}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.TimeoutError=class extends GotError{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t);this.name="TimeoutError";this.event=e.event}};e.exports.CancelError=i.CancelError},,,,,,,,,,,,,,function(e,t,n){var r=n(583);var o=n(964);var i=n(682);var a=n(265);var s=n(624);var c=n(694);var u=n(153);var l=u.property;var p=u.memoizedProperty;function Api(e,t){var n=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var m=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(m&&c[m]){l(this,"xmlNoDefaultLists",c[m].xmlNoDefaultLists,false)}p(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(n,"endpointOperation",u.string.lowerFirst(e))}}l(this,"operations",new r(e.operations,t,function(e,n){return new o(e,n,t)},u.string.lowerFirst,addEndpointOperation));l(this,"shapes",new r(e.shapes,t,function(e,n){return i.create(n,t)}));l(this,"paginators",new r(e.paginators,t,function(e,n){return new a(e,n,t)}));l(this,"waiters",new r(e.waiters,t,function(e,n){return new s(e,n,t)},u.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},,,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Signers.V3=o(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var n=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=n;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,n)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(n){t.push(n.toLowerCase().trim()+":"+String(e[n]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},,,function(e,t,n){"use strict";const{PassThrough:r}=n(413);const o=n(718);const i=n(584);const{HTTPError:a,ReadError:s}=n(774);e.exports=(e=>{const t=new r;const n=new r;const c=o(t,n);const u=new Set;let l=false;e.retry.retries=(()=>0);if(e.body){c.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const p=i(e,t);c._destroy=p.abort;p.on("response",t=>{const{statusCode:r}=t;t.on("error",t=>{c.emit("error",new s(t,e))});if(e.throwHttpErrors&&r!==304&&(r<200||r>299)){c.emit("error",new a(t,e),null,t);return}l=true;t.pipe(n);for(const n of u){if(n.headersSent){continue}for(const[r,o]of Object.entries(t.headers)){const t=e.decompress?r!=="content-encoding":true;if(t){n.setHeader(r,o)}}n.statusCode=t.statusCode}c.emit("response",t)});["error","request","redirect","uploadProgress","downloadProgress"].forEach(e=>p.on(e,(...t)=>c.emit(e,...t)));const m=c.pipe.bind(c);const d=c.unpipe.bind(c);c.pipe=((e,t)=>{if(l){throw new Error("Failed to pipe. The response has been emitted already.")}const n=m(e,t);if(Reflect.has(e,"setHeader")){u.add(e)}return n});c.unpipe=(e=>{u.delete(e);return d(e)});return c})},,function(e,t,n){(function(){var t,r,o,i,a,s,c=function(e,t){for(var n in t){if(u.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},u={}.hasOwnProperty;s=n(582),a=s.isObject,i=s.isFunction;o=n(855);t=n(884);e.exports=r=function(e){c(XMLElement,e);function XMLElement(e,t,n){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(n!=null){this.attribute(n)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,n,r;n=Object.create(this);if(n.isRoot){n.documentObject=null}n.attributes={};r=this.attributes;for(t in r){if(!u.call(r,t))continue;e=r[t];n.attributes[t]=e.clone()}n.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=n;return n.children.push(t)});return n};XMLElement.prototype.attribute=function(e,n){var r,o;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!u.call(e,r))continue;o=e[r];this.attribute(r,o)}}else{if(i(n)){n=n.apply()}if(!this.options.skipNullAttributes||n!=null){this.attributes[e]=new t(this,e,n)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,n,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(n=0,r=e.length;n":true,"=":true,"!":true};var H={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var n;var r;var o;while(this._current"){if(e[this._current]==="="){this._current++;return{type:k,value:">=",start:t}}else{return{type:D,value:">",start:t}}}else if(n==="="){if(e[this._current]==="="){this._current++;return{type:R,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var n=this._current;var r=e.length;var o;while(e[this._current]!=="`"&&this._current=0){return true}else if(n.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var j={};j[m]=0;j[d]=0;j[y]=0;j[f]=0;j[h]=0;j[N]=0;j[b]=0;j[I]=0;j[v]=0;j[S]=0;j[T]=1;j[w]=2;j[C]=3;j[R]=5;j[D]=5;j[E]=5;j[k]=5;j[x]=5;j[A]=5;j[P]=9;j[_]=20;j[M]=21;j[L]=40;j[O]=45;j[F]=50;j[G]=55;j[B]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==m){var n=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+n.type+", value: "+n.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var n=t.tokenize(e);n.push({type:m,value:"",start:e.length});this.tokens=n},expression:function(e){var t=this._lookaheadToken(0);this._advance();var n=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===G){this._match(G);return this._parseMultiselectList()}else if(t===F){this._match(F);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(j[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===G){t=this.expression(e)}else if(this._lookahead(0)===M){t=this.expression(e)}else if(this._lookahead(0)===L){this._match(L);t=this._parseDotRHS(e)}else{var n=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==f){var t=this.expression(0);e.push(t);if(this._lookahead(0)===N){this._match(N);if(this._lookahead(0)===f){throw new Error("Unexpected token Rbracket")}}}this._match(f);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[d,y];var n,r,o,i;for(;;){n=this._lookaheadToken(0);if(t.indexOf(n.type)<0){throw new Error("Expecting an identifier token, got: "+n.type)}r=n.value;this._advance();this._match(g);o=this.expression(0);i={type:"KeyValuePair",name:r,value:o};e.push(i);if(this._lookahead(0)===N){this._match(N)}else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var n,r,o,i,a,s,c,u,l,p;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":o=this.visit(e.children[0],t);for(p=1;p0){for(p=f;ph;p+=N){o.push(t[p])}}return o;case"Projection":var g=this.visit(e.children[0],t);if(!isArray(g)){return null}l=[];for(p=0;pa;break;case k:o=i>=a;break;case E:o=i=e){t=n<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[n]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[n]}]},contains:{_func:this._functionContains,_signature:[{types:[o,i]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[o]},{types:[o]}]},floor:{_func:this._functionFloor,_signature:[{types:[n]}]},length:{_func:this._functionLength,_signature:[{types:[o,i,a]}]},map:{_func:this._functionMap,_signature:[{types:[c]},{types:[i]}]},max:{_func:this._functionMax,_signature:[{types:[l,p]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[i]},{types:[c]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[o]},{types:[o]}]},min:{_func:this._functionMin,_signature:[{types:[l,p]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[i]},{types:[c]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[p,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[i]},{types:[c]}]},join:{_func:this._functionJoin,_signature:[{types:[o]},{types:[p]}]},reverse:{_func:this._functionReverse,_signature:[{types:[o,i]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var n=this.functionTable[e];if(n===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,n._signature);return n._func.call(this,t)},_validateArgs:function(e,t,n){var r;if(n[n.length-1].variadic){if(t.length=0;i--){r+=n[i]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var n=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var n=this._interpreter;var r=e[0];var o=e[1];for(var i=0;i0){var t=this._getTypeName(e[0][0]);if(t===n){return Math.max.apply(Math,e[0])}else{var r=e[0];var o=r[0];for(var i=1;i0){var t=this._getTypeName(e[0][0]);if(t===n){return Math.min.apply(Math,e[0])}else{var r=e[0];var o=r[0];for(var i=1;io){return 1}else if(na){a=c;s=r[u]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var i=this.createKeyFunction(t,[n,o]);var a=Infinity;var s;var c;for(var u=0;u1){o[i]=parseList(a,{member:{}})}else{o[i]=parseXml(a[0],{})}}return o}e.exports=NodeXmlParser},function(e,t,n){"use strict";const r=n(534);e.exports=(e=>{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};if(r.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}t.path=r.null(e.search)?e.pathname:`${e.pathname}${e.search}`;return t})},,,,,,,function(e){e.exports=require("tls")},function(e,t,n){var r=n(395);var o={};var i=[];var a=50;var s="aws4_request";e.exports={createScope:function createScope(e,t,n){return[e.substr(0,8),t,n,s].join("/")},getSigningKey:function getSigningKey(e,t,n,c,u){var l=r.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var p=[l,t,n,c].join("_");u=u!==false;if(u&&p in o){return o[p]}var m=r.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var d=r.util.crypto.hmac(m,n,"buffer");var y=r.util.crypto.hmac(d,c,"buffer");var f=r.util.crypto.hmac(y,s,"buffer");if(u){o[p]=f;i.push(p);if(i.length>a){delete o[i.shift()]}}return f},emptyCache:function emptyCache(){o={};i=[]}}},,function(e,t,n){"use strict";const{URL:r}=n(835);const o=n(534);const i=n(433);const a=(e,...t)=>{for(const n of t){for(const[t,i]of Object.entries(n)){if(o.undefined(i)){continue}const n=e[t];if(o.urlInstance(n)&&(o.urlInstance(i)||o.string(i))){e[t]=new r(i,n)}else if(o.plainObject(i)){if(o.plainObject(n)){e[t]=a({},n,i)}else{e[t]=a({},i)}}else if(o.array(i)){e[t]=a([],i)}else{e[t]=i}}}return e};const s=(...e)=>{e=e.map(e=>e||{});const t=a({},...e);const n={};for(const e of i){n[e]=[]}for(const t of e){if(t.hooks){for(const e of i){n[e]=n[e].concat(t.hooks[e])}}}t.hooks=n;return t};const c=(e,t)=>{const n=e.map(e=>e.defaults.handler);const r=e.length-1;return{methods:t,options:s(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let o=-1;const i=e=>n[++o](e,o===r?t:i);return i(e)}}};e.exports=a;e.exports.options=s;e.exports.instances=c},,,,,function(e,t,n){var r=n(139);var o=n(722);function v4(e,t,n){var i=t&&n||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[i+s]=a[s]}}return t||o(a)}e.exports=v4},,function(e,t,n){var r=n(395);var o=r.util.inherit;var i=n(802);r.Response=o({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var n=this.request.service;var o=this.request.operation;try{t=n.paginationConfig(o,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var i=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var a=t.inputToken;if(typeof a==="string")a=[a];for(var s=0;s{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const t=o.createUnzip();const n=new r;i(e,n);t.on("error",e=>{if(e.code==="Z_BUF_ERROR"){n.end();return}n.emit("error",e)});e.pipe(t).pipe(n);return n})},function(e,t,n){var r=n(395).util;var o=n(413).Transform;var i=r.buffer.alloc;function EventMessageChunkerStream(e){o.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(o.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,n){var r=e.length;var o=0;while(o0){c[e.options.childkey]=l}l=c}else if(y){y[e.options.childkey]=y[e.options.childkey]||[];p={};for(s in l){if(!m.call(l,s))continue;p[s]=l[s]}y[e.options.childkey].push(p);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(y,u,l)}else{if(e.options.explicitRoot){d=l;l={};l[u]=d}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);n=function(e){return function(n){var o,i;i=r[r.length-1];if(i){i[t]+=n;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||n.replace(/\\n/g,"").trim()!=="")){i[e.options.childkey]=i[e.options.childkey]||[];o={"#name":"__text__"};o[t]=n;if(e.options.normalize){o[t]=o[t].replace(/\s{2,}/g," ").trim()}i[e.options.childkey].push(o)}return i}}}(this);this.saxParser.ontext=n;return this.saxParser.oncdata=function(e){return function(e){var t;t=n(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,n){var r;if(n!=null&&typeof n==="function"){this.on("end",function(e){this.reset();return n(null,e)});this.on("error",function(e){this.reset();return n(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;u(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(o.EventEmitter);t.parseString=function(e,n,r){var o,i,a;if(r!=null){if(typeof r==="function"){o=r}if(typeof n==="object"){i=n}}else{if(typeof n==="function"){o=n}i={}}a=new t.Parser(i);return a.parseString(e,o)}}).call(this)},,,function(e,t,n){var r=n(395);var o=r.util.stream.Stream;var i=r.util.stream.Transform;var a=r.util.stream.Readable;n(711);var s="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,o,i){var a=this;var c=e.endpoint;var u="";if(!t)t={};if(t.proxy){u=c.protocol+"//"+c.hostname;if(c.port!==80&&c.port!==443){u+=":"+c.port}c=new r.Endpoint(t.proxy)}var l=c.protocol==="https:";var p=l?n(211):n(605);var m={host:c.hostname,port:c.port,method:e.method,headers:e.headers,path:u+e.path};if(!t.agent){m.agent=this.getAgent(l,{keepAlive:process.env[s]==="1"?true:false})}r.util.update(m,t);delete m.proxy;delete m.timeout;var d=p.request(m,function(e){if(d.didCallback)return;o(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=d;d.didCallback=false;if(t.connectTimeout){var y;d.on("socket",function(e){if(e.connecting){y=setTimeout(function connectTimeout(){if(d.didCallback)return;d.didCallback=true;d.abort();i(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(y);y=null})}})}d.setTimeout(t.timeout||0,function(){if(d.didCallback)return;d.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";i(r.util.error(new Error(e),{code:"TimeoutError"}));d.abort()});d.on("error",function(){if(y){clearTimeout(y);y=null}if(d.didCallback)return;d.didCallback=true;i.apply(d,arguments)});var f=e.headers.Expect||e.headers.expect;if(f==="100-continue"){d.on("continue",function(){a.writeBody(d,e)})}else{this.writeBody(d,e)}return d},writeBody:function writeBody(e,t){var n=t.body;var r=parseInt(t.headers["Content-Length"],10);if(n instanceof o){var i=this.progressStream(e,r);if(i){n.pipe(i).pipe(e)}else{n.pipe(e)}}else if(n){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(n)}else{e.end()}},getAgent:function getAgent(e,t){var o=e?n(211):n(605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new o.Agent(r.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0"?false:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=o.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new o.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof i==="undefined"){return}var n=0;var r=new i;r._transform=function(r,o,i){if(r){n+=r.length;e.emit("sendProgress",{loaded:n,total:t})}i(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=a?2:1},,,,function(e,t,n){var r=n(960).IniLoader;e.exports.iniLoader=new r},,,,,,function(e,t,n){var r=n(953);var o=n(826);var i=o;i.v1=r;i.v4=o;e.exports=i},,,,,,function(e,t,n){var r=n(153);var o=n(395);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var n=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(n.endpoint&&n.endpoint.hostPrefix){var r=n.endpoint.hostPrefix;var o=expandHostPrefix(r,e.params,n.input);prependEndpointPrefix(e.httpRequest.endpoint,o);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var n=t.operations[e.operation];var o=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(n.name);return n.endpointDiscoveryRequired!=="NULL"||o===true}function expandHostPrefix(e,t,n){r.each(n.members,function(n,o){if(o.hostLabel===true){if(typeof t[n]!=="string"||t[n]===""){throw r.error(new Error,{message:"Parameter "+n+" should be a non-empty string.",code:"InvalidParameter"})}var i=new RegExp("\\{"+n+"\\}","g");e=e.replace(i,t[n])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var n=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!n.test(e)){throw o.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},,function(e,t,n){var r=n(395);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var n=0;var o=t.providers.slice(0);function resolveNext(e,i){if(!e&&i||n===o.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,i)});t.resolveCallbacks.length=0;return}var a=o[n++];if(typeof a==="function"){i=a.call()}else{i=a}if(i.get){i.get(function(e){resolveNext(e,e?null:i)})}else{resolveNext(null,i)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},,,,,,function(e,t,n){var r=n(153);var o=n(337);var i=n(806);var a=n(904).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var n=e.service.api;var r=n.targetPrefix+"."+n.operations[e.operation].name;var i=n.jsonVersion||"1.0";var s=n.operations[e.operation].input;var c=new o;if(i===1)i="1.0";t.body=c.build(e.params||{},s);t.headers["Content-Type"]="application/x-amz-json-"+i;t.headers["X-Amz-Target"]=r;a(e)}function extractError(e){var t={};var n=e.httpResponse;t.code=n.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(n.body.length>0){try{var o=JSON.parse(n.body.toString());if(o.__type||o.code){t.code=(o.__type||o.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=o.message||o.Message||null}}catch(o){t.statusCode=n.statusCode;t.message=n.statusMessage}}else{t.statusCode=n.statusCode;t.message=n.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var n=e.request.service.api.operations[e.request.operation];var r=n.output||{};var o=new i;e.data=o.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,,,function(e,t,n){"use strict";const r=n(614);const o=n(145);const i=n(534);const a=n(557);const s=n(584);const{HTTPError:c,ParseError:u,ReadError:l}=n(774);const{options:p}=n(821);const{reNormalize:m}=n(86);const d=e=>{const t=new r;const n=new a((n,r,a)=>{const y=s(e);a(y.abort);y.on("response",async a=>{t.emit("response",a);const s=i.null(e.encoding)?o.buffer(a):o(a,e);let f;try{f=await s}catch(t){r(new l(t,e));return}const h=e.followRedirect?299:399;a.body=f;try{for(const[t,n]of Object.entries(e.hooks.afterResponse)){a=await n(a,n=>{n=m(p(e,{...n,retry:0,throwHttpErrors:false}));n.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);return d(n)})}}catch(e){r(e);return}const{statusCode:N}=a;if(e.json&&a.body){try{a.body=JSON.parse(a.body)}catch(t){if(N>=200&&N<300){const n=new u(t,N,e,f);Object.defineProperty(n,"response",{value:a});r(n);return}}}if(N!==304&&(N<200||N>h)){const t=new c(a,e);Object.defineProperty(t,"response",{value:a});if(y.retry(t)===false){if(e.throwHttpErrors){r(t);return}n(a)}return}n(a)});y.once("error",r);["request","redirect","uploadProgress","downloadProgress"].forEach(e=>y.on(e,(...n)=>t.emit(e,...n)))});n.on=((e,r)=>{t.on(e,r);return n});return n};e.exports=d},,function(e){function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},,,,function(e,t,n){var r=n(395);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(n){if(!n)t.expired=false;if(e)e(n)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var n=this;if(n.refreshCallbacks.push(e)===1){n.load(function onLoad(e){r.util.arrayEach(n.refreshCallbacks,function(n){if(t){n(e)}else{r.util.defer(function(){n(e)})}});n.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},,function(e,t,n){var r=n(395);r.util.update(r.EC2.prototype,{setupRequestListeners:function setupRequestListeners(e){e.removeListener("extractError",r.EventListeners.Query.EXTRACT_ERROR);e.addListener("extractError",this.extractError);if(e.operation==="copySnapshot"){e.onAsync("validate",this.buildCopySnapshotPresignedUrl)}},buildCopySnapshotPresignedUrl:function buildCopySnapshotPresignedUrl(e,t){if(e.params.PresignedUrl||e._subRequest){return t()}e.params=r.util.copy(e.params);e.params.DestinationRegion=e.service.config.region;var n=r.util.copy(e.service.config);delete n.endpoint;n.region=e.params.SourceRegion;var o=new e.service.constructor(n);var i=o[e.operation](e.params);i._subRequest=true;i.presign(function(n,r){if(n)t(n);else{e.params.PresignedUrl=r;t()}})},extractError:function extractError(e){var t=e.httpResponse;var n=(new r.XML.Parser).parse(t.body.toString()||"");if(n.Errors){e.error=r.util.error(new Error,{code:n.Errors.Error.Code,message:n.Errors.Error.Message})}else{e.error=r.util.error(new Error,{code:t.statusCode,message:null})}e.error.requestId=n.RequestID||null}})},,,,,function(e,t,n){var r=n(395);var o=r.util.inherit;var i=n(802);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var n=t.config.acceptors;var r=false;var o="retry";n.forEach(function(n){if(!r){var i=t.matchers[n.matcher];if(i&&i(e,n.expected,n.argument)){r=true;o=n.state}}});if(!r&&e.error)o="failure";if(o==="success"){t.setSuccess(e)}else{t.setError(e,o==="retry")}}r.ResourceWaiter=o({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,n){try{var r=i.search(e.data,n)}catch(e){return false}return i.strictDeepEqual(r,t)},pathAll:function(e,t,n){try{var r=i.search(e.data,n)}catch(e){return false}if(!Array.isArray(r))r=[r];var o=r.length;if(!o)return false;for(var a=0;a{let p;if(typeof t==="string"){p=normalizeUrlObject(o.parse(t));t={}}else if(t instanceof o.URL){p=normalizeUrlObject(o.parse(t.toString()));t={}}else{const[e,...n]=(t.path||"").split("?");const r=n.length>0?`?${n.join("?")}`:"";p=normalizeUrlObject({...t,pathname:e,search:r})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(p)};t.headers=u(t.headers);const m=new r;const d=i(o.format(p),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const y=`${t.method}:${d}`;let f=false;let h=false;const N=t=>{h=true;let r=false;let o;const i=new Promise(e=>{o=(()=>{if(!r){r=true;e()}})});const u=e=>{if(f&&!t.forceRefresh){e.status=e.statusCode;const n=s.fromObject(f.cachePolicy).revalidatedPolicy(t,e);if(!n.modified){const t=n.policy.responseHeaders();e=new c(f.statusCode,t,f.body,f.url);e.cachePolicy=n.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new s(t,e,t);e.fromCache=false}let o;if(t.cache&&e.cachePolicy.storable()){o=l(e);(async()=>{try{const n=a.buffer(e);await Promise.race([i,new Promise(t=>e.once("end",t))]);if(r){return}const o=await n;const s={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?f.statusCode:e.statusCode,body:o};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(y,s,c)}catch(e){m.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&f){(async()=>{try{await this.cache.delete(y)}catch(e){m.emit("error",new CacheableRequest.CacheError(e))}})()}m.emit("response",o||e);if(typeof n==="function"){n(o||e)}};try{const n=e(t,u);n.once("error",o);n.once("abort",o);m.emit("request",n)}catch(e){m.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):undefined;if(typeof t==="undefined"){return N(e)}const r=s.fromObject(t.cachePolicy);if(r.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=r.responseHeaders();const o=new c(t.statusCode,e,t.body,t.url);o.cachePolicy=r;o.fromCache=true;m.emit("response",o);if(typeof n==="function"){n(o)}}else{f=t;e.headers=r.revalidationHeaders(e);N(e)}};const r=e=>m.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",r);m.on("response",()=>this.cache.removeListener("error",r));try{await e(t)}catch(e){if(t.automaticFailover&&!h){N(t)}m.emit("error",new CacheableRequest.CacheError(e))}})();return m}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},,function(e,t,n){var r=n(965).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},,,function(e,t,n){var r=n(395);var o=r.util.inherit;var i="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[i];var n=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(n===r.Signers.V4){if(t>604800){var o="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:o,retryable:false})}e.httpRequest.headers[i]=t}else if(n===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[i]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var n=r.util.urlParse(e.httpRequest.path);var o={};if(n.search){o=r.util.queryStringParse(n.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");o["AWSAccessKeyId"]=a[0];o["Signature"]=a[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===i)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete o[e];e=e.toLowerCase()}o[e]=t});delete e.httpRequest.headers[i];delete o["Authorization"];delete o["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var c=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=c;delete o["Expires"]}t.pathname=n.pathname;t.search=r.util.queryParamsToString(o)}r.Signers.Presign=o({sign:function sign(e,t,n){e.httpRequest.headers[i]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(n){e.build(function(){if(this.response.error)n(this.response.error);else{n(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},function(e,t,n){"use strict";const{Readable:r}=n(413);e.exports=(e=>new r({read(){this.push(e);this.push(null)}}))},function(e,t,n){var r=n(139);var o=n(722);var i;var a;var s=0;var c=0;function v1(e,t,n){var u=t&&n||0;var l=t||[];e=e||{};var p=e.node||i;var m=e.clockseq!==undefined?e.clockseq:a;if(p==null||m==null){var d=r();if(p==null){p=i=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]}if(m==null){m=a=(d[6]<<8|d[7])&16383}}var y=e.msecs!==undefined?e.msecs:(new Date).getTime();var f=e.nsecs!==undefined?e.nsecs:c+1;var h=y-s+(f-c)/1e4;if(h<0&&e.clockseq===undefined){m=m+1&16383}if((h<0||y>s)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=y;c=f;a=m;y+=122192928e5;var N=((y&268435455)*1e4+f)%4294967296;l[u++]=N>>>24&255;l[u++]=N>>>16&255;l[u++]=N>>>8&255;l[u++]=N&255;var g=y/4294967296*1e4&268435455;l[u++]=g>>>8&255;l[u++]=g&255;l[u++]=g>>>24&15|16;l[u++]=g>>>16&255;l[u++]=m>>>8|128;l[u++]=m&255;for(var b=0;b<6;++b){l[u+b]=p[b]}return t?t:o(l)}e.exports=v1},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(818);const o=(e,t)=>{let n;if(typeof t==="function"){const e=t;n={connect:e}}else{n=t}const o=typeof n.connect==="function";const i=typeof n.secureConnect==="function";const a=typeof n.close==="function";const s=()=>{if(o){n.connect()}if(e instanceof r.TLSSocket&&i){if(e.authorized){n.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",n.secureConnect)}}if(a){e.once("close",n.close)}};if(e.writable&&!e.connecting){s()}else if(e.connecting){e.once("connect",s)}else if(e.destroyed&&a){n.close(e._hadError)}};t.default=o;e.exports=o;e.exports.default=o},,function(e,t,n){var r=n(395);var o=n(87);var i=n(622);function parseFile(e,t){var n=r.util.ini.parse(r.util.readFileSync(e));var o={};Object.keys(n).forEach(function(e){var r=n[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(o,e,{value:r,enumerable:true})});return o}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var n=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[n]){var r=this.parseFile(n,t);Object.defineProperty(this.resolvedProfiles,n,{value:r})}return this.resolvedProfiles[n]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return i.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof o.homedir==="function"){return o.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},,,,function(e,t,n){var r=n(682);var o=n(153);var i=o.property;var a=o.memoizedProperty;function Operation(e,t,n){var o=this;n=n||{};i(this,"name",t.name||e);i(this,"api",n.api,false);t.http=t.http||{};i(this,"endpoint",t.endpoint);i(this,"httpMethod",t.http.method||"POST");i(this,"httpPath",t.http.requestUri||"/");i(this,"authtype",t.authtype||"");i(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");a(this,"input",function(){if(!t.input){return new r.create({type:"structure"},n)}return r.create(t.input,n)});a(this,"output",function(){if(!t.output){return new r.create({type:"structure"},n)}return r.create(t.output,n)});a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var o=0;o/g,">")}e.exports={escapeElement:escapeElement}},function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:n}=e;const o=n==="buffer";let i=false;if(t){i=!(n||o)}else{n=n||"utf8"}if(o){n=null}let a=0;const s=[];const c=new r({objectMode:i});if(n){c.setEncoding(n)}c.on("data",e=>{s.push(e);if(i){a=s.length}else{a+=e.length}});c.getBufferedValue=(()=>{if(t){return s}return o?Buffer.concat(s,a):s.join("")});c.getBufferedLength=(()=>a);return c})},,,,,,,,,,,function(e,t,n){var r=n(395);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,n){this.errors=[];this.validateMember(e,t||{},n||"params");if(this.errors.length>1){var o=this.errors.join("\n* ");o="There were "+this.errors.length+" validation errors:\n* "+o;throw r.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,n){this.validateType(t,n,["object"],"structure");var r;for(var o=0;e.required&&o= 1,"+' but found "'+t+'" for '+n)}}},validatePattern:function validatePattern(e,t,n){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+n)}}},validateRange:function validateRange(e,t,n,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+n)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+n)}}},validateEnum:function validateRange(e,t,n){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+n)}}},validateType:function validateType(e,t,n,o){if(e===null||e===undefined)return false;var i=false;for(var a=0;a0){o.arrayEach(n.required,function(r){var o=n.members[r];if(o.endpointDiscoveryId===true){var i=o.isLocationName?o.name:r;e[i]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],o)}})}}function marshallCustomIdentifiers(e,t){var n={};marshallCustomIdentifiersHelper(n,e.params,t);return n}function optionalDiscoverEndpoint(e){var t=e.service;var n=t.api;var i=n.operations?n.operations[e.operation]:undefined;var a=i?i.input:undefined;var s=marshallCustomIdentifiers(e,a);var c=getCacheKey(e);if(Object.keys(s).length>0){c=o.update(c,s);if(i)c.operation=i.name}var u=r.endpointCache.get(c);if(u&&u.length===1&&u[0].Address===""){return}else if(u&&u.length>0){e.httpRequest.updateEndpoint(u[0].Address)}else{var l=t.makeRequest(n.endpointOperation,{Operation:i.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(c,t.Endpoints)}else if(e){r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var n=e.service;var i=n.api;var s=i.operations?i.operations[e.operation]:undefined;var c=s?s.input:undefined;var u=marshallCustomIdentifiers(e,c);var l=getCacheKey(e);if(Object.keys(u).length>0){l=o.update(l,u);if(s)l.operation=s.name}var p=r.EndpointCache.getKeyString(l);var m=r.endpointCache.get(p);if(m&&m.length===1&&m[0].Address===""){if(!a[p])a[p]=[];a[p].push({request:e,callback:t});return}else if(m&&m.length>0){e.httpRequest.updateEndpoint(m[0].Address);t()}else{var d=n.makeRequest(i.endpointOperation,{Operation:s.name,Identifiers:u});d.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(d);r.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:60}]);d.send(function(n,i){if(n){var s={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=o.error(n,s);r.endpointCache.remove(l);if(a[p]){var c=a[p];o.arrayEach(c,function(e){e.request.response.error=o.error(n,s);e.callback()});delete a[p]}}else if(i){r.endpointCache.put(p,i.Endpoints);e.httpRequest.updateEndpoint(i.Endpoints[0].Address);if(a[p]){var c=a[p];o.arrayEach(c,function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address);e.callback()});delete a[p]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var n=t.apiVersion;if(n&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=n}}function invalidateCachedEndpoints(e){var t=e.error;var n=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||n.statusCode===421)){var i=e.request;var a=i.service.api.operations||{};var s=a[i.operation]?a[i.operation].input:undefined;var c=marshallCustomIdentifiers(i,s);var u=getCacheKey(i);if(Object.keys(c).length>0){u=o.update(u,c);if(a[i.operation])u.operation=a[i.operation].name}r.endpointCache.remove(u)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw o.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryEnabled(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(o.isBrowser())return false;for(var n=0;n-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=o.base64.decode(e);if(this.isSensitive&&o.isNode()&&typeof o.Buffer.alloc==="function"){var n=o.Buffer.alloc(t.length,t);t.fill(0);t=n}return t};this.toWireFormat=o.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},,,function(e){e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},,function(e,t,n){var r=n(295).IniLoader;e.exports.iniLoader=new r},,,,,function(e,t,n){var r=n(984);r.EnvironmentCredentials=r.util.inherit(r.Credentials,{constructor:function EnvironmentCredentials(e){r.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;if(!process||!process.env){e(r.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var n=[];for(var o=0;o0&&e[e.length-1];if(typeof t==="function"){this.once("listening",t);this.socket.bind(...e.slice(0,-1))}else{this.socket.bind(...e)}};DNS.prototype.destroy=function(e){if(e){this.once("close",e)}if(this.destroyed){return}this.destroyed=true;clearInterval(this._interval);this.socket.close();for(let e=0;ethis.retries){this._queries[t]=null;this.inflight--;this.emit("timeout",n.query,n.port,n.host);n.callback(new Error("Query timed out"));continue}n.tries++;this.socket.send(n.buffer,0,n.buffer.length,n.port,Array.isArray(n.host)?n.host[Math.floor(n.host.length*Math.random())]:n.host||"127.0.0.1")}};DNS.prototype._shouldRedirect=function(e,t){if(this.maxRedirects<=0||!e||e.query.questions.length!==1||t.answers.filter(e=>e.type==="A").length>0){return false}if(e.redirects>this.maxRedirects){return false}const n=t.answers.filter(e=>e.type==="CNAME");if(n.length===0){return false}const r=this._getNextEmptyId();if(r===-1){e.callback(new Error("Query array is full!"));return true}e.query={id:r+1,flags:i.RECURSION_DESIRED,questions:[{type:"A",name:n[0].data}]};e.redirects++;e.firstTry=Date.now();e.tries=0;e.buffer=i.encode(e.query);this._queries[r]=e;this.socket.send(e.buffer,0,e.buffer.length,e.port,Array.isArray(e.host)?e.host[Math.floor(e.host.length*Math.random())]:e.host||"127.0.0.1");return true};DNS.prototype._onmessage=function(e,t){let n;try{n=i.decode(e)}catch(e){this.emit("warning",e);return}if(n.type==="response"&&n.id){const e=this._queries[n.id-1];if(e){this._queries[n.id-1]=null;this.inflight--;if(!this._shouldRedirect(e,n)){e.callback(null,n)}}}this.emit(n.type,n,t.port,t.address)};DNS.prototype.unref=function(){this.socket.unref()};DNS.prototype.ref=function(){this.socket.ref()};DNS.prototype.response=function(e,t,n,r){if(this.destroyed){return}t.type="response";t.id=e.id;const o=i.encode(t);this.socket.send(o,0,o.length,n,r)};DNS.prototype.cancel=function(e){const t=this._queries[e];if(!t)return;this._queries[e]=null;this.inflight--;t.callback(new Error("Query cancelled"))};DNS.prototype.setRetries=function(e,t){const n=this._queries[e];if(!n)return;n.firstTry=n.firstTry-this.timeout*(t-n.retries);n.retries=this.retries-t};DNS.prototype._getNextEmptyId=function(){let e=-1;for(let t=this.maxQueries;t>0;t--){const n=(this._id+t)%this.maxQueries;if(this._queries[n]===null){e=n;this._id=(n+1)%this.maxQueries;break}}return e};DNS.prototype.query=function(e,t,n,r){if(this.destroyed){r(new Error("Socket destroyed"));return 0}this.inflight++;e.type="query";e.flags=typeof e.flags==="number"?e.flags:DNS.RECURSION_DESIRED;const o=this._getNextEmptyId();if(o===-1){r(new Error("Query array is full!"));return 0}e.id=o+1;const a=i.encode(e);this._queries[o]={callback:r||noop,redirects:0,firstTry:Date.now(),query:e,tries:0,buffer:a,port:t,host:n};this.socket.send(a,0,a.length,t,Array.isArray(n)?n[Math.floor(n.length*Math.random())]:n||"127.0.0.1");return o};function noop(){}function isListening(e){try{return e.address().port!==0}catch(e){return false}}},,,function(e){e.exports={pagination:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(829);var o=1e3;var i=function(){function EndpointCache(e){if(e===void 0){e=o}this.maxSize=e;this.cache=new r.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var n=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(n,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var n=Date.now();var r=this.cache.get(t);if(r){for(var o=0;o{const r=new Set(Object.keys(e).concat(t));for(const t of r){if(t in n){continue}n[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},,function(e,t,n){"use strict";const r=n(413).Readable;const o=n(734);class Response extends r{constructor(e,t,n,r){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(n instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof r!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=o(t);this.body=n;this.url=r}_read(){this.push(this.body);this.push(null)}}e.exports=Response},function(e,t,n){var r=n(984);var o=n(774);var i=n(736);var a=r.util.inherit;var s=0;r.Service=a({constructor:function Service(e){if(!this.loadServiceClass){throw r.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var n=r.util.copy(e);var o=new t(e);Object.defineProperty(o,"_originalConfig",{get:function(){return n},enumerable:false,configurable:true});o._clientId=++s;return o}this.initialize(e)},initialize:function initialize(e){var t=r.config[this.serviceIdentifier];this.config=new r.Config(r.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)i.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);r.SequentialExecutor.call(this);r.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||r.Service._clientSideMonitoring)&&this.publisher){var n=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){n.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){n.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!r.util.isEmpty(this.api)){return null}else if(t.apiConfig){return r.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new r.Config(r.config);t.update(e,true);var n=t.apiVersions[this.constructor.serviceIdentifier];n=n||t.apiVersion;return this.getLatestServiceClass(n)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){r.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(r.util.isType(e,Date)){e=r.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var n=null;for(var o=t.length-1;o>=0;o--){if(t[o][t[o].length-1]!=="*"){n=t[o]}if(t[o].substr(0,10)<=e){return n}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,n){if(typeof t==="function"){n=t;t=null}t=t||{};if(this.config.params){var o=this.api.operations[e];if(o){t=r.util.copy(t);r.util.each(this.config.params,function(e,n){if(o.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=n}}})}}var i=new r.Request(this,e,t);this.addAllRequestListeners(i);this.attachMonitoringEmitter(i);if(n)i.send(n);return i},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,n){if(typeof t==="function"){n=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return n?r.send(n):r},waitFor:function waitFor(e,t,n){var o=new r.ResourceWaiter(this,e);return o.wait(t,n)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var n=0;n299){if(o.code)n.FinalAwsException=o.code;if(o.message)n.FinalAwsExceptionMessage=o.message}else{if(o.code||o.name)n.FinalSdkException=o.code||o.name;if(o.message)n.FinalSdkExceptionMessage=o.message}}return n},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var n={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){n.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){n.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return n;if(e.httpRequest.headers["x-amz-security-token"]){n.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){n.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){n.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){n.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return n},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var n=e.response;var r=n.error;if(n.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var n;var o;var i;var a=0;var s;var c;var u=this;var l=true;e.on("validate",function(){i=r.util.realClock.now();c=Date.now()},l);e.on("sign",function(){n=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){o=Math.round(r.util.realClock.now()-n)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var n=u.apiAttemptEvent(e);n.Timestamp=t;n.AttemptLatency=o>=0?o:0;n.Region=s;u.emit("apiCallAttempt",[n])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var i=u.attemptFailEvent(e);i.Timestamp=t;o=o||Math.round(r.util.realClock.now()-n);i.AttemptLatency=o>=0?o:0;i.Region=s;u.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=u.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=c;var n=Math.round(r.util.realClock.now()-i);t.Latency=n>=0?n:0;var o=e.response;if(o.error&&o.error.retryable&&typeof o.retryCount==="number"&&typeof o.maxRetries==="number"&&o.retryCount>=o.maxRetries){t.MaxRetriesExceeded=1}u.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var n=null;var o="";if(e){var i=e.service.api.operations||{};n=i[e.operation]||null;o=n?n.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(o==="v4"||o==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var n=this.api.operations[e].paginator;if(!n){if(t){var o=new Error;throw r.util.error(o,"No pagination configuration for "+e)}return null}return n}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var n=e.prototype.api.operations[t];if(n.authtype==="none"){e.prototype[t]=function(e,n){return this.makeUnauthenticatedRequest(t,e,n)}}else{e.prototype[t]=function(e,n){return this.makeRequest(t,e,n)}}})},defineService:function defineService(e,t,n){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){n=t;t=[]}var o=a(r.Service,n||{});if(typeof e==="string"){r.Service.addVersions(o,t);var i=o.serviceIdentifier||e;o.serviceIdentifier=i}else{o.prototype.api=e;r.Service.defineMethods(o)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var c=r.util.clientSideMonitoring.configProvider;var u=c();this.prototype.publisher=new s(u);if(u.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(o.prototype);r.Service.addDefaultMonitoringListeners(o.prototype);return o},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var n=0;n"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,n){var c,u,l,m;n||(n=0);this.stream.write(this.space(n));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));m=e.children;for(u=0,l=m.length;u");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,n){var o,i,a,s,c,u,d,f;n||(n=0);f=this.space(n);this.stream.write(f+"<"+e.name);u=e.attributes;for(c in u){if(!N.call(u,c))continue;o=u[c];this.attribute(o)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);d=e.children;for(a=0,s=d.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(f)}).call(this)},,function(e,t,n){n(713);var r=n(984);var o=r.Service;var i=r.apiLoader;i.services["ec2"]={};r.EC2=o.defineService("ec2",["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*","2016-11-15"]);n(47);Object.defineProperty(i.services["ec2"],"2016-11-15",{get:function get(){var e=n(505);e.paginators=n(423).pagination;e.waiters=n(697).waiters;return e},enumerable:true,configurable:true});e.exports=r.EC2},function(e,t,n){var r=n(459).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var n=this.attributes;for(var o=0,i=Object.keys(n);o":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(698);e.exports=t=function(e){o(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},,,,,function(e,t,n){"use strict";const{Readable:r}=n(413);e.exports=(e=>new r({read(){this.push(e);this.push(null)}}))},,,function(e){e.exports=require("os")},,,function(e,t,n){var r=n(984);var o=r.util.inherit;r.Signers.V3=o(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var n=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=n;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,n)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(n){t.push(n.toLowerCase().trim()+":"+String(e[n]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},,,,,function(e,t,n){var r=n(205).eventMessageChunker;var o=n(726).parseEvent;function createEventStream(e,t,n){var i=r(e);var a=[];for(var s=0;s{e=Object.assign({},e);const{array:t}=e;let{encoding:n}=e;const o=n==="buffer";let i=false;if(t){i=!(n||o)}else{n=n||"utf8"}if(o){n=null}let a=0;const s=[];const c=new r({objectMode:i});if(n){c.setEncoding(n)}c.on("data",e=>{s.push(e);if(i){a=s.length}else{a+=e.length}});c.getBufferedValue=(()=>{if(t){return s}return o?Buffer.concat(s,a):s.join("")});c.getBufferedLength=(()=>a);return c})},,function(e,t,n){var r=n(984);r.SequentialExecutor=r.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,n){if(this._events[e]){n?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,n){t._isAsync=true;return this.on(e,t,n)},removeListener:function removeListener(e,t){var n=this._events[e];if(n){var r=n.length;var o=-1;for(var i=0;i-1){n.splice(o,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,n){if(!n)n=function(){};var r=this.listeners(e);var o=r.length;this.callListeners(r,t,n);return o>0},callListeners:function callListeners(e,t,n,o){var i=this;var a=o||null;function callNextListener(o){if(o){a=r.util.error(a||new Error,o);if(i._haltHandlersOnError){return n.call(i,a)}}i.callListeners(e,t,n,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(i,t.concat([callNextListener]));return}else{try{s.apply(i,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&i._haltHandlersOnError){n.call(i,a);return}}}n.call(i,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,n){if(typeof n==="function")n=[n];r.util.arrayEach(n,function(n){t.on(e,n)})});return t},addNamedListener:function addNamedListener(e,t,n,r){this[e]=n;this.addListener(t,n,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,n,r){n._isAsync=true;return this.addNamedListener(e,t,n,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},function(e){function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},function(e,t,n){(function(){"use strict";var e,r,o,i,a=function(e,t){for(var n in t){if(s.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;r=n(566);e=n(180);o=n(997);i=n(202);t.defaults=r.defaults;t.processors=i;t.ValidationError=function(e){a(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=o.Parser;t.parseString=o.parseString}).call(this)},,,,,,,,,,function(e,t,n){var r=n(984).util;var o=r.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!r.Buffer.isBuffer(e))e=o(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256){t[n]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},,function(e){e.exports=require("child_process")},,,,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h=function(e,t){for(var n in t){if(N.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},N={}.hasOwnProperty;c=n(960);u=n(933);t=n(525);r=n(79);l=n(212);m=n(253);y=n(800);p=n(177);o=n(241);i=n(578);a=n(802);s=n(226);f=n(476);e.exports=d=function(e){h(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,n,o,i,a;this.textispresent=false;i="";a=e.children;for(n=0,o=a.length;n"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var n;n=this.space(t);n+='";n+=this.newline;return n};XMLStringWriter.prototype.docType=function(e,n){var c,u,l,m,d;n||(n=0);m=this.space(n);m+="0){m+=" [";m+=this.newline;d=e.children;for(u=0,l=d.length;u";m+=this.newline;return m};XMLStringWriter.prototype.element=function(e,n){var o,i,a,s,c,u,d,f,h,g,b,I,v;n||(n=0);v=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(n);f="";f+=I+"<"+e.name;h=e.attributes;for(d in h){if(!N.call(h,d))continue;o=h[d];f+=this.attribute(o)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){f+=">"+this.newline}else{f+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){f+=">";f+=e.children[0].value;f+=""+this.newline}else{if(this.dontprettytextnodes){g=e.children;for(a=0,c=g.length;a"+this.newline;b=e.children;for(s=0,u=b.length;s"+this.newline}return f};XMLStringWriter.prototype.processingInstruction=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.dtdNotation=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.openNode=function(e,t){var n,r,o,i;t||(t=0);if(e instanceof l){o=this.space(t)+"<"+e.name;i=e.attributes;for(r in i){if(!N.call(i,r))continue;n=i[r];o+=this.attribute(n)}o+=(e.children?">":"/>")+this.newline;return o}else{o=this.space(t)+"")+this.newline;return o}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof u):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(f)}).call(this)},,,,,function(e,t,n){var r=n(995);var o=n(571);var i=n(485);var a=n(411);var s=n(419);function populateBody(e){var t=new a;var n=e.service.api.operations[e.operation].input;if(n.payload){var r={};var o=n.members[n.payload];r=e.params[n.payload];if(r===undefined)return;if(o.type==="structure"){e.httpRequest.body=t.build(r,o);applyContentTypeHeader(e)}else{e.httpRequest.body=r;if(o.type==="binary"||o.isStreaming){applyContentTypeHeader(e,true)}}}else{var i=t.build(e.params,n);if(i!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=i}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var n=e.service.api.operations[e.operation];var r=n.input;if(!e.httpRequest.headers["Content-Type"]){var o=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=o}}function buildRequest(e){o.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){i.extractError(e)}function extractData(e){o.extractData(e);var t=e.request;var n=t.service.api.operations[t.operation];var a=t.service.api.operations[t.operation].output||{};var c;var u=n.hasEventOutput;if(a.payload){var l=a.members[a.payload];var p=e.httpResponse.body;if(l.isEventStream){c=new s;e.data[payload]=r.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:p,c,l)}else if(l.type==="structure"||l.type==="list"){var c=new s;e.data[a.payload]=c.parse(p,l)}else if(l.type==="binary"||l.isStreaming){e.data[a.payload]=p}else{e.data[a.payload]=l.toType(p)}}else{var m=e.data;i.extractData(e);e.data=r.merge(m,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,,,,,,,,function(e,t,n){var r=n(984).util;var o=r.buffer.toBuffer;var i=4;var a=i*2;var s=4;var c=a+s*2;function splitMessage(e){if(!r.Buffer.isBuffer(e))e=o(e);if(e.length1){return}function callbacks(e,n){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,n)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,n){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var o={};if(n){o.headers={"x-aws-ec2-metadata-token":n}}t.fetchCredentials(o,callbacks)})}}});e.exports=r.MetadataService},,function(e){var t=[];for(var n=0;n<256;++n){t[n]=(n+256).toString(16).substr(1)}function bytesToUuid(e,n){var r=n||0;var o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}e.exports=bytesToUuid},,,,,,,,,,,,,function(e){e.exports={_from:"got@^9.6.0",_id:"got@9.6.0",_inBundle:false,_integrity:"sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",_location:"/got",_phantomChildren:{},_requested:{type:"range",registry:true,raw:"got@^9.6.0",name:"got",escapedName:"got",rawSpec:"^9.6.0",saveSpec:null,fetchSpec:"^9.6.0"},_requiredBy:["/public-ip"],_resolved:"https://registry.npmjs.org/got/-/got-9.6.0.tgz",_shasum:"edf45e7d67f99545705de1f7bbeeeb121765ed85",_spec:"got@^9.6.0",_where:"/Users/sohelamin/Desktop/github/aws-security-group-add-ip/node_modules/public-ip",ava:{concurrency:4},browser:{"decompress-response":false,electron:false},bugs:{url:"https://github.com/sindresorhus/got/issues"},bundleDependencies:false,dependencies:{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},deprecated:false,description:"Simplified HTTP requests",devDependencies:{ava:"^1.1.0",coveralls:"^3.0.0",delay:"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0",np:"^3.1.0",nyc:"^13.1.0","p-event":"^2.1.0",pem:"^1.13.2",proxyquire:"^2.0.1",sinon:"^7.2.2","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","tough-cookie":"^3.0.0",xo:"^0.24.0"},engines:{node:">=8.6"},files:["source"],homepage:"https://github.com/sindresorhus/got#readme",keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],license:"MIT",main:"source",name:"got",repository:{type:"git",url:"git+https://github.com/sindresorhus/got.git"},scripts:{release:"np",test:"xo && nyc ava"},version:"9.6.0"}},,,,,,,,,,,function(e){function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,n,r){if(typeof e==="function"){r=n;n=t;t=e;e=null}var o=this;var i=o.states[o.currentState];i.fn.call(n||o,r,function(r){if(r){if(i.fail)o.currentState=i.fail;else return t?t.call(n,r):null}else{if(i.accept)o.currentState=i.accept;else return t?t.call(n):null}if(o.currentState===e){return t?t.call(n,r):null}o.runTo(e,t,n,r)})};AcceptorStateMachine.prototype.addState=function addState(e,t,n,r){if(typeof t==="function"){r=t;t=null;n=null}else if(typeof n==="function"){r=n;n=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:n,fn:r};return this};e.exports=AcceptorStateMachine},function(e){"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const r=new Set([500,502,503,504]);const o={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const i={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return r.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const n=e.trim().split(/\s*,\s*/);for(const e of n){const[n,r]=e.split(/\s*=\s*/,2);t[n]=r===undefined?true:r.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const n in e){const r=e[n];t.push(r===true?n:n+"="+r)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:n,cacheHeuristic:r,immutableMinTimeToLive:o,ignoreCargoCult:i,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=n!==false;this._cacheHeuristic=undefined!==r?r:.1;this._immutableMinTtl=undefined!==o?o:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(i&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const n of t){if(e.headers[n]!==this._reqHeaders[n])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const n in e){if(o[n])continue;t[n]=e[n]}if(e.connection){const n=e.connection.trim().split(/\s*,\s*/);for(const e of n){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const n=Date.parse(this._resHeaders.expires);if(Number.isNaN(n)||nn){return Math.max(e,(t-n)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const n=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const n=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(n){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let n=false;if(t.status!==undefined&&t.status!=304){n=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){n=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){n=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){n=true}}if(!n){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const r={};for(const e in this._resHeaders){r[e]=e in t.headers&&!i[e]?t.headers[e]:this._resHeaders[e]}const o=Object.assign({},t,{status:this._status,method:this._method,headers:r});return{policy:new this.constructor(e,o,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(698);e.exports=r=function(e){o(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,n){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(n){this.value=this.stringify.insValue(n)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},function(e,t,n){var r=n(984);r.ECSCredentials=r.RemoteCredentials},,function(e,t,n){(function(){"use strict";var e,r,o,i,a,s={}.hasOwnProperty;e=n(776);r=n(566).defaults;i=function(e){return typeof e==="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};o=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,n,o;this.options={};n=r["0.2"];for(t in n){if(!s.call(n,t))continue;o=n[t];this.options[t]=o}for(t in e){if(!s.call(e,t))continue;o=e[t];this.options[t]=o}}Builder.prototype.buildObject=function(t){var n,o,c,u,l;n=this.options.attrkey;o=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}c=function(e){return function(t,r){var u,l,p,m,d,y;if(typeof r!=="object"){if(e.options.cdata&&i(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(m in r){if(!s.call(r,m))continue;l=r[m];for(d in l){p=l[d];t=c(t.ele(d),p).up()}}}else{for(d in r){if(!s.call(r,d))continue;l=r[d];if(d===n){if(typeof l==="object"){for(u in l){y=l[u];t=t.att(u,y)}}}else if(d===o){if(e.options.cdata&&i(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(m in l){if(!s.call(l,m))continue;p=l[m];if(typeof p==="string"){if(e.options.cdata&&i(p)){t=t.ele(d).raw(a(p)).up()}else{t=t.ele(d,p).up()}}else{t=c(t.ele(d),p).up()}}}else if(typeof l==="object"){t=c(t.ele(d),l).up()}else{if(typeof l==="string"&&e.options.cdata&&i(l)){t=t.ele(d).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(d,l.toString()).up()}}}}return t}}(this);u=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return c(u,t).end(this.options.renderOpts)};return Builder}()}).call(this)},function(e,t,n){var r=n(207);var o=n(563);var i=o;i.v1=r;i.v4=o;e.exports=i},,function(e,t,n){var r=n(870);var o=function(){};var i=function(e){return e.setHeader&&typeof e.abort==="function"};var a=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var s=function(e,t,n){if(typeof t==="function")return s(e,null,t);if(!t)t={};n=r(n||o);var c=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var p=t.writable||t.writable!==false&&e.writable;var m=false;var d=function(){if(!e.writable)y()};var y=function(){p=false;if(!l)n.call(e)};var f=function(){l=false;if(!p)n.call(e)};var h=function(t){n.call(e,t?new Error("exited with error code: "+t):null)};var N=function(t){n.call(e,t)};var g=function(){process.nextTick(b)};var b=function(){if(m)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return n.call(e,new Error("premature close"));if(p&&!(c&&(c.ended&&!c.destroyed)))return n.call(e,new Error("premature close"))};var I=function(){e.req.on("finish",y)};if(i(e)){e.on("complete",y);e.on("abort",g);if(e.req)I();else e.on("request",I)}else if(p&&!c){e.on("end",d);e.on("close",d)}if(a(e))e.on("exit",h);e.on("end",f);e.on("finish",y);if(t.error!==false)e.on("error",N);e.on("close",g);return function(){m=true;e.removeListener("complete",y);e.removeListener("abort",g);e.removeListener("request",I);if(e.req)e.req.removeListener("finish",y);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",y);e.removeListener("exit",h);e.removeListener("end",f);e.removeListener("error",N);e.removeListener("close",g)}};e.exports=s},,,,,,,,function(e){e.exports=require("querystring")},,,,,,,,,function(e){e.exports=require("dgram")},,function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},,,function(e){function eventMessageChunker(e){var t=[];var n=0;while(n":true,"=":true,"!":true};var H={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var n;var r;var o;while(this._current"){if(e[this._current]==="="){this._current++;return{type:k,value:">=",start:t}}else{return{type:D,value:">",start:t}}}else if(n==="="){if(e[this._current]==="="){this._current++;return{type:R,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var n=this._current;var r=e.length;var o;while(e[this._current]!=="`"&&this._current=0){return true}else if(n.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var z={};z[m]=0;z[d]=0;z[y]=0;z[f]=0;z[h]=0;z[N]=0;z[b]=0;z[I]=0;z[v]=0;z[S]=0;z[T]=1;z[w]=2;z[C]=3;z[R]=5;z[D]=5;z[E]=5;z[k]=5;z[x]=5;z[A]=5;z[P]=9;z[_]=20;z[M]=21;z[L]=40;z[O]=45;z[F]=50;z[G]=55;z[B]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==m){var n=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+n.type+", value: "+n.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var n=t.tokenize(e);n.push({type:m,value:"",start:e.length});this.tokens=n},expression:function(e){var t=this._lookaheadToken(0);this._advance();var n=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===G){this._match(G);return this._parseMultiselectList()}else if(t===F){this._match(F);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(z[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===G){t=this.expression(e)}else if(this._lookahead(0)===M){t=this.expression(e)}else if(this._lookahead(0)===L){this._match(L);t=this._parseDotRHS(e)}else{var n=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==f){var t=this.expression(0);e.push(t);if(this._lookahead(0)===N){this._match(N);if(this._lookahead(0)===f){throw new Error("Unexpected token Rbracket")}}}this._match(f);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[d,y];var n,r,o,i;for(;;){n=this._lookaheadToken(0);if(t.indexOf(n.type)<0){throw new Error("Expecting an identifier token, got: "+n.type)}r=n.value;this._advance();this._match(g);o=this.expression(0);i={type:"KeyValuePair",name:r,value:o};e.push(i);if(this._lookahead(0)===N){this._match(N)}else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var n,r,o,i,a,s,c,u,l,p;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":o=this.visit(e.children[0],t);for(p=1;p0){for(p=f;ph;p+=N){o.push(t[p])}}return o;case"Projection":var g=this.visit(e.children[0],t);if(!isArray(g)){return null}l=[];for(p=0;pa;break;case k:o=i>=a;break;case E:o=i=e){t=n<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[n]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[n]}]},contains:{_func:this._functionContains,_signature:[{types:[o,i]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[o]},{types:[o]}]},floor:{_func:this._functionFloor,_signature:[{types:[n]}]},length:{_func:this._functionLength,_signature:[{types:[o,i,a]}]},map:{_func:this._functionMap,_signature:[{types:[c]},{types:[i]}]},max:{_func:this._functionMax,_signature:[{types:[l,p]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[i]},{types:[c]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[o]},{types:[o]}]},min:{_func:this._functionMin,_signature:[{types:[l,p]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[i]},{types:[c]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[p,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[i]},{types:[c]}]},join:{_func:this._functionJoin,_signature:[{types:[o]},{types:[p]}]},reverse:{_func:this._functionReverse,_signature:[{types:[o,i]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var n=this.functionTable[e];if(n===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,n._signature);return n._func.call(this,t)},_validateArgs:function(e,t,n){var r;if(n[n.length-1].variadic){if(t.length=0;i--){r+=n[i]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var n=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var n=this._interpreter;var r=e[0];var o=e[1];for(var i=0;i0){var t=this._getTypeName(e[0][0]);if(t===n){return Math.max.apply(Math,e[0])}else{var r=e[0];var o=r[0];for(var i=1;i0){var t=this._getTypeName(e[0][0]);if(t===n){return Math.min.apply(Math,e[0])}else{var r=e[0];var o=r[0];for(var i=1;io){return 1}else if(na){a=c;s=r[u]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var i=this.createKeyFunction(t,[n,o]);var a=Infinity;var s;var c;for(var u=0;us)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=y;c=f;a=m;y+=122192928e5;var N=((y&268435455)*1e4+f)%4294967296;l[u++]=N>>>24&255;l[u++]=N>>>16&255;l[u++]=N>>>8&255;l[u++]=N&255;var g=y/4294967296*1e4&268435455;l[u++]=g>>>8&255;l[u++]=g&255;l[u++]=g>>>24&15|16;l[u++]=g>>>16&255;l[u++]=m>>>8|128;l[u++]=m&255;for(var b=0;b<6;++b){l[u+b]=p[b]}return t?t:o(l)}e.exports=v1},,,,function(e){e.exports=require("https")},function(e,t,n){(function(){var t,r,o,i,a,s,c=function(e,t){for(var n in t){if(u.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},u={}.hasOwnProperty;s=n(779),a=s.isObject,i=s.isFunction;o=n(698);t=n(883);e.exports=r=function(e){c(XMLElement,e);function XMLElement(e,t,n){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(n!=null){this.attribute(n)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,n,r;n=Object.create(this);if(n.isRoot){n.documentObject=null}n.attributes={};r=this.attributes;for(t in r){if(!u.call(r,t))continue;e=r[t];n.attributes[t]=e.clone()}n.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=n;return n.children.push(t)});return n};XMLElement.prototype.attribute=function(e,n){var r,o;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!u.call(e,r))continue;o=e[r];this.attribute(r,o)}}else{if(i(n)){n=n.apply()}if(!this.options.skipNullAttributes||n!=null){this.attributes[e]=new t(this,e,n)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,n,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(n=0,r=e.length;n0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const r=this.properties[n];if(r){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(r)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(698);e.exports=t=function(e){o(XMLDTDNotation,e);function XMLDTDNotation(e,t,n){XMLDTDNotation.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing notation name")}if(!n.pubID&&!n.sysID){throw new Error("Public or system identifiers are required for an external entity")}this.name=this.stringify.eleName(t);if(n.pubID!=null){this.pubID=this.stringify.dtdPubID(n.pubID)}if(n.sysID!=null){this.sysID=this.stringify.dtdSysID(n.sysID)}}XMLDTDNotation.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)};return XMLDTDNotation}(r)}).call(this)},,,function(e){e.exports=require("domain")},,,,,,,,,function(e,t,n){var r=n(984);var o=n(101);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(n,r){t.data=null;if(!n){t.data=r;t.service.credentialsFrom(r,t)}e(n)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new o(e)}}})},,function(e,t,n){"use strict";const r=n(835);const o=n(605);const i=n(492);const a=n(627);class GotError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!a.undefined(t.code)){this.code=t.code}Object.assign(this,{host:n.host,hostname:n.hostname,method:n.method,path:n.path,socketPath:n.socketPath,protocol:n.protocol,url:n.href,gotOptions:n})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,t,n,i){super(`${e.message} in "${r.format(n)}": \n${i.slice(0,77)}...`,e,n);this.name="ParseError";this.statusCode=t;this.statusMessage=o.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,t){const{statusCode:n}=e;let{statusMessage:r}=e;if(r){r=r.replace(/\r?\n/g," ").trim()}else{r=o.STATUS_CODES[n]}super(`Response code ${n} (${r})`,{},t);this.name="HTTPError";this.statusCode=n;this.statusMessage=r;this.headers=e.headers;this.body=e.body}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,t,n){super("Redirected 10 times. Aborting.",{},n);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=o.STATUS_CODES[this.statusCode];this.redirectUrls=t}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.TimeoutError=class extends GotError{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t);this.name="TimeoutError";this.event=e.event}};e.exports.CancelError=i.CancelError},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(698);e.exports=t=function(e){o(XMLDTDAttList,e);function XMLDTDAttList(e,t,n,r,o,i){XMLDTDAttList.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(n==null){throw new Error("Missing DTD attribute name")}if(!r){throw new Error("Missing DTD attribute type")}if(!o){throw new Error("Missing DTD attribute default")}if(o.indexOf("#")!==0){o="#"+o}if(!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT")}if(i&&!o.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT")}this.elementName=this.stringify.eleName(t);this.attributeName=this.stringify.attName(n);this.attributeType=this.stringify.dtdAttType(r);this.defaultValue=this.stringify.dtdAttDefault(i);this.defaultValueType=o}XMLDTDAttList.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)};return XMLDTDAttList}(r)}).call(this)},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(16);const o=(e,t)=>{let n;if(typeof t==="function"){const e=t;n={connect:e}}else{n=t}const o=typeof n.connect==="function";const i=typeof n.secureConnect==="function";const a=typeof n.close==="function";const s=()=>{if(o){n.connect()}if(e instanceof r.TLSSocket&&i){if(e.authorized){n.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",n.secureConnect)}}if(a){e.once("close",n.close)}};if(e.writable&&!e.connecting){s()}else if(e.connecting){e.once("connect",s)}else if(e.destroyed&&a){n.close(e._hadError)}};t.default=o;e.exports=o;e.exports.default=o},,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(698);e.exports=r=function(e){o(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},,,,function(e,t,n){var r=n(984);var o=n(995);var i=n(274);var a=n(21);var s=n(887).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var n=e.httpRequest;n.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";n.params={Version:e.service.api.apiVersion,Action:t.name};var r=new i;r.serialize(e.params,t.input,function(e,t){n.params[e]=t});n.body=o.queryParamsToString(n.params);s(e)}function extractError(e){var t,n=e.httpResponse.body.toString();if(n.match("{if(a.nullOrUndefined(e.headers)){e.headers={}}else{e.headers=c(e.headers)}if(e.baseUrl&&!e.baseUrl.toString().endsWith("/")){e.baseUrl+="/"}if(e.stream){e.json=false}if(a.nullOrUndefined(e.hooks)){e.hooks={}}else if(!a.object(e.hooks)){throw new TypeError(`Parameter \`hooks\` must be an object, not ${a(e.hooks)}`)}for(const n of m){if(a.nullOrUndefined(e.hooks[n])){if(t){e.hooks[n]=[...t.hooks[n]]}else{e.hooks[n]=[]}}}if(a.number(e.timeout)){e.gotTimeout={request:e.timeout}}else if(a.object(e.timeout)){e.gotTimeout=e.timeout}delete e.timeout;const{retry:n}=e;e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]};if(a.nonEmptyObject(t)&&n!==false){e.retry={...t.retry}}if(n!==false){if(a.number(n)){e.retry.retries=n}else{e.retry={...e.retry,...n}}}if(e.gotTimeout){e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter(e=>!a.nullOrUndefined(e)))}if(a.array(e.retry.methods)){e.retry.methods=new Set(e.retry.methods.map(e=>e.toUpperCase()))}if(a.array(e.retry.statusCodes)){e.retry.statusCodes=new Set(e.retry.statusCodes)}if(a.array(e.retry.errorCodes)){e.retry.errorCodes=new Set(e.retry.errorCodes)}return e};const f=(e,t,n)=>{if(a.plainObject(e)){t={...e,...t};e=t.url||{};delete t.url}if(n){t=p({},n.options,t?y(t,n.options):{})}else{t=p({},y(t))}if(!a.string(e)&&!a.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${a(e)}`)}if(a.string(e)){if(t.baseUrl){if(e.toString().startsWith("/")){e=e.toString().slice(1)}e=u(new r(e,t.baseUrl))}else{e=e.replace(/^unix:/,"http://$&");e=s(e)}}else if(a(e)==="URL"){e=u(e)}t=p({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const n=e(t);if(a.promise(n)){throw new TypeError("The `init` hook must be a synchronous function")}}const{baseUrl:i}=t;Object.defineProperty(t,"baseUrl",{set:()=>{throw new Error("Failed to set baseUrl. Options are normalized already.")},get:()=>i});const{query:c}=t;if(a.nonEmptyString(c)||a.nonEmptyObject(c)||c instanceof o){if(!a.string(c)){t.query=new o(c).toString()}t.path=`${t.path.split("?")[0]}?${t.query}`;delete t.query}if(t.hostname==="unix"){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,n,r]=e;t={...t,socketPath:n,path:r,host:null}}}const{headers:m}=t;for(const[e,t]of Object.entries(m)){if(a.nullOrUndefined(t)){delete m[e]}}if(t.json&&a.undefined(m.accept)){m.accept="application/json"}if(t.decompress&&a.undefined(m["accept-encoding"])){m["accept-encoding"]="gzip, deflate"}const{body:f}=t;if(a.nullOrUndefined(f)){t.method=t.method?t.method.toUpperCase():"GET"}else{const e=a.object(f)&&!a.buffer(f)&&!a.nodeStream(f);if(!a.nodeStream(f)&&!a.string(f)&&!a.buffer(f)&&!(t.form||t.json)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(t.json&&!(e||a.array(f))){throw new TypeError("The `body` option must be an Object or Array when the `json` option is used")}if(t.form&&!e){throw new TypeError("The `body` option must be an Object when the `form` option is used")}if(l(f)){m["content-type"]=m["content-type"]||`multipart/form-data; boundary=${f.getBoundary()}`}else if(t.form){m["content-type"]=m["content-type"]||"application/x-www-form-urlencoded";t.body=new o(f).toString()}else if(t.json){m["content-type"]=m["content-type"]||"application/json";t.body=JSON.stringify(f)}t.method=t.method?t.method.toUpperCase():"POST"}if(!a.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=((n,r)=>{if(n>e){return 0}if((!r||!t.retry.errorCodes.has(r.code))&&(!t.retry.methods.has(r.method)||!t.retry.statusCodes.has(r.statusCode))){return 0}if(Reflect.has(r,"headers")&&Reflect.has(r.headers,"retry-after")&&d.has(r.statusCode)){let e=Number(r.headers["retry-after"]);if(a.nan(e)){e=Date.parse(r.headers["retry-after"])-Date.now()}else{e*=1e3}if(e>t.retry.maxRetryAfter){return 0}return e}if(r.statusCode===413){return 0}const o=Math.random()*100;return 2**(n-1)*1e3+o})}return t};const h=e=>f(i.format(e),e);e.exports=f;e.exports.preNormalize=y;e.exports.reNormalize=h},function(e){e.exports=require("path")},function(e,t,n){"use strict";const r=n(627);e.exports=function deepFreeze(e){for(const[t,n]of Object.entries(e)){if(r.plainObject(n)||r.array(n)){deepFreeze(e[t])}}return Object.freeze(e)}},,,function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const o=n==="buffer";let i=false;if(t){i=!(n||o)}else{n=n||"utf8"}if(o){n=null}const a=new r({objectMode:i});if(n){a.setEncoding(n)}let s=0;const c=[];a.on("data",e=>{c.push(e);if(i){s=c.length}else{s+=e.length}});a.getBufferedValue=(()=>{if(t){return c}return o?Buffer.concat(c,s):c.join("")});a.getBufferedLength=(()=>s);return a})},,function(e,t,n){"use strict";var r=n(413);function DuplexWrapper(e,t,n){if(typeof n==="undefined"){n=t;t=e;e=null}r.Duplex.call(this,e);if(typeof n.read!=="function"){n=new r.Readable(e).wrap(n)}this._writable=t;this._readable=n;this._waiting=false;var o=this;t.once("finish",function(){o.end()});this.once("finish",function(){t.end()});n.on("readable",function(){if(o._waiting){o._waiting=false;o._read()}});n.once("end",function(){o.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){o.emit("error",e)});n.on("error",function(e){o.emit("error",e)})}}DuplexWrapper.prototype=Object.create(r.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,n){this._writable.write(e,t,n)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,n){return new DuplexWrapper(e,t,n)};e.exports.DuplexWrapper=DuplexWrapper},function(e,t,n){var r=n(984);var o=r.util.inherit;var i="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[i];var n=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(n===r.Signers.V4){if(t>604800){var o="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:o,retryable:false})}e.httpRequest.headers[i]=t}else if(n===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[i]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var n=r.util.urlParse(e.httpRequest.path);var o={};if(n.search){o=r.util.queryStringParse(n.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");o["AWSAccessKeyId"]=a[0];o["Signature"]=a[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===i)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete o[e];e=e.toLowerCase()}o[e]=t});delete e.httpRequest.headers[i];delete o["Authorization"];delete o["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var c=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=c;delete o["Expires"]}t.pathname=n.pathname;t.search=r.util.queryParamsToString(o)}r.Signers.Presign=o({sign:function sign(e,t,n){e.httpRequest.headers[i]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(n){e.build(function(){if(this.response.error)n(this.response.error);else{n(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},function(e,t,n){var r=n(984);var o=n(101);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})},createClients:function(){this.service=this.service||new o({params:this.params})}})},,,,function(e,t,n){"use strict";const{Transform:r}=n(413);e.exports={download(e,t,n){let o=0;return new r({transform(e,r,i){o+=e.length;const a=n?o/n:0;if(a<1){t.emit("downloadProgress",{percent:a,transferred:o,total:n})}i(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:o,total:n});e()}})},upload(e,t,n){const r=150;let o=0;let i;t.emit("uploadProgress",{percent:0,transferred:0,total:n});e.once("error",()=>{clearInterval(i)});e.once("response",()=>{clearInterval(i);t.emit("uploadProgress",{percent:1,transferred:o,total:n})});e.once("socket",a=>{const s=()=>{i=setInterval(()=>{const r=o;const i=e._header?Buffer.byteLength(e._header):0;o=a.bytesWritten-i;if(o===r||o===n){return}t.emit("uploadProgress",{percent:n?o/n:0,transferred:o,total:n})},r)};if(a.connecting){a.once("connect",s)}else if(a.writable){s()}})}}},,,,function(e){e.exports=require("buffer")},,function(e,t,n){var r=n(984);var o=n(87);var i=n(277);function parseFile(e,t){var n=r.util.ini.parse(r.util.readFileSync(e));var o={};Object.keys(n).forEach(function(e){var r=n[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(o,e,{value:r,enumerable:true})});return o}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var n=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[n]){var r=this.parseFile(n,t);Object.defineProperty(this.resolvedProfiles,n,{value:r})}return this.resolvedProfiles[n]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return i.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof o.homedir==="function"){return o.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},,,function(e,t,n){var r=n(635).EventMessageChunkerStream;var o=n(982).EventUnmarshallerStream;function createEventStream(e,t,n){var i=new o({parser:t,eventStreamModel:n});var a=new r;e.pipe(a).pipe(i);e.on("error",function(e){a.emit("error",e)});a.on("error",function(e){i.emit("error",e)});return i}e.exports={createEventStream:createEventStream}},,,,,,function(e){e.exports=require("string_decoder")},function(e,t,n){"use strict";const r=n(631);const o=n(113);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:n}=t;let i;return new Promise((a,s)=>{const c=e=>{if(e){e.bufferedData=i.getBufferedValue()}s(e)};i=r(e,o(t),e=>{if(e){c(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>n){c(new MaxBufferError)}})}).then(()=>i.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},function(e,t,n){var r=n(984);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(n){if(!n)t.expired=false;if(e)e(n)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var n=this;if(n.refreshCallbacks.push(e)===1){n.load(function onLoad(e){r.util.arrayEach(n.refreshCallbacks,function(n){if(t){n(e)}else{r.util.defer(function(){n(e)})}});n.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},,,,,function(e){"use strict";e.exports=(e=>{const t={};for(const[n,r]of Object.entries(e)){t[n.toLowerCase()]=r}return t})},,,,,,,,,function(e,t,n){var r=n(995);var o=n(78).XmlNode;var i=n(618).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,n,r){var i=new o(n);applyNamespaces(i,t,true);serialize(i,e,t);return i.children.length>0||r?i.toString():""};function serialize(e,t,n){switch(n.type){case"structure":return serializeStructure(e,t,n);case"map":return serializeMap(e,t,n);case"list":return serializeList(e,t,n);default:return serializeScalar(e,t,n)}}function serializeStructure(e,t,n){r.arrayEach(n.memberNames,function(r){var i=n.members[r];if(i.location!=="body")return;var a=t[r];var s=i.name;if(a!==undefined&&a!==null){if(i.isXmlAttribute){e.addAttribute(s,a)}else if(i.flattened){serialize(e,a,i)}else{var c=new o(s);e.addChildNode(c);applyNamespaces(c,i);serialize(c,a,i)}}})}function serializeMap(e,t,n){var i=n.key.name||"key";var a=n.value.name||"value";r.each(t,function(t,r){var s=new o(n.flattened?n.name:"entry");e.addChildNode(s);var c=new o(i);var u=new o(a);s.addChildNode(c);s.addChildNode(u);serialize(c,t,n.key);serialize(u,r,n.value)})}function serializeList(e,t,n){if(n.flattened){r.arrayEach(t,function(t){var r=n.member.name||n.name;var i=new o(r);e.addChildNode(i);serialize(i,t,n.member)})}else{r.arrayEach(t,function(t){var r=n.member.name||"member";var i=new o(r);e.addChildNode(i);serialize(i,t,n.member)})}}function serializeScalar(e,t,n){e.addChildNode(new i(n.toWireFormat(t)))}function applyNamespaces(e,t,n){var r,o="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)o+=":"+t.xmlNamespacePrefix}else if(n&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(o,r)}e.exports=XmlBuilder},,,,function(e,t,n){var r=n(21);var o=n(995);var i=o.property;var a=o.memoizedProperty;function Operation(e,t,n){var o=this;n=n||{};i(this,"name",t.name||e);i(this,"api",n.api,false);t.http=t.http||{};i(this,"endpoint",t.endpoint);i(this,"httpMethod",t.http.method||"POST");i(this,"httpPath",t.http.requestUri||"/");i(this,"authtype",t.authtype||"");i(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");a(this,"input",function(){if(!t.input){return new r.create({type:"structure"},n)}return r.create(t.input,n)});a(this,"output",function(){if(!t.output){return new r.create({type:"structure"},n)}return r.create(t.output,n)});a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var o=0;o=0?"&":"?";this.request.path+=i+r.util.queryParamsToString(o)},authorization:function authorization(e,t){var n=[];var r=this.credentialString(t);n.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);n.push("SignedHeaders="+this.signedHeaders());n.push("Signature="+this.signature(e,t));return n.join(", ")},signature:function signature(e,t){var n=o.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(n,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,n){e.push([t,n])});e.sort(function(e,t){return e[0].toLowerCase(){if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();t=Object.assign({https:false},t);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")})},,,,,,function(e,t,n){var r=n(984);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var n;if(e[t.clientConfig]){n=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(n)return n}if(!r.util.isNode())return n;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var o=process.env[t.env];n=validateRegionalEndpointsFlagValue(o,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(n)return n}var i={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);i=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)){var s=i[t.sharedConfig];n=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+i[t.sharedConfig]+'".'});if(n)return n}return n}e.exports=resolveRegionalEndpointsFlag},,function(e,t,n){var r=n(984);var o=n(995);var i=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var n=t.api||{};var r=n.operations;var o={};if(t.config.region){o.region=t.config.region}if(n.serviceId){o.serviceId=n.serviceId}if(t.config.credentials.accessKeyId){o.accessKeyId=t.config.credentials.accessKeyId}return o}function marshallCustomIdentifiersHelper(e,t,n){if(!n||t===undefined||t===null)return;if(n.type==="structure"&&n.required&&n.required.length>0){o.arrayEach(n.required,function(r){var o=n.members[r];if(o.endpointDiscoveryId===true){var i=o.isLocationName?o.name:r;e[i]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],o)}})}}function marshallCustomIdentifiers(e,t){var n={};marshallCustomIdentifiersHelper(n,e.params,t);return n}function optionalDiscoverEndpoint(e){var t=e.service;var n=t.api;var i=n.operations?n.operations[e.operation]:undefined;var a=i?i.input:undefined;var s=marshallCustomIdentifiers(e,a);var c=getCacheKey(e);if(Object.keys(s).length>0){c=o.update(c,s);if(i)c.operation=i.name}var u=r.endpointCache.get(c);if(u&&u.length===1&&u[0].Address===""){return}else if(u&&u.length>0){e.httpRequest.updateEndpoint(u[0].Address)}else{var l=t.makeRequest(n.endpointOperation,{Operation:i.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(c,t.Endpoints)}else if(e){r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var n=e.service;var i=n.api;var s=i.operations?i.operations[e.operation]:undefined;var c=s?s.input:undefined;var u=marshallCustomIdentifiers(e,c);var l=getCacheKey(e);if(Object.keys(u).length>0){l=o.update(l,u);if(s)l.operation=s.name}var p=r.EndpointCache.getKeyString(l);var m=r.endpointCache.get(p);if(m&&m.length===1&&m[0].Address===""){if(!a[p])a[p]=[];a[p].push({request:e,callback:t});return}else if(m&&m.length>0){e.httpRequest.updateEndpoint(m[0].Address);t()}else{var d=n.makeRequest(i.endpointOperation,{Operation:s.name,Identifiers:u});d.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(d);r.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:60}]);d.send(function(n,i){if(n){var s={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=o.error(n,s);r.endpointCache.remove(l);if(a[p]){var c=a[p];o.arrayEach(c,function(e){e.request.response.error=o.error(n,s);e.callback()});delete a[p]}}else if(i){r.endpointCache.put(p,i.Endpoints);e.httpRequest.updateEndpoint(i.Endpoints[0].Address);if(a[p]){var c=a[p];o.arrayEach(c,function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address);e.callback()});delete a[p]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var n=t.apiVersion;if(n&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=n}}function invalidateCachedEndpoints(e){var t=e.error;var n=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||n.statusCode===421)){var i=e.request;var a=i.service.api.operations||{};var s=a[i.operation]?a[i.operation].input:undefined;var c=marshallCustomIdentifiers(i,s);var u=getCacheKey(i);if(Object.keys(c).length>0){u=o.update(u,c);if(a[i.operation])u.operation=a[i.operation].name}r.endpointCache.remove(u)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw o.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryEnabled(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(o.isBrowser())return false;for(var n=0;n{let p;if(typeof t==="string"){p=normalizeUrlObject(o.parse(t));t={}}else if(t instanceof o.URL){p=normalizeUrlObject(o.parse(t.toString()));t={}}else{const[e,...n]=(t.path||"").split("?");const r=n.length>0?`?${n.join("?")}`:"";p=normalizeUrlObject({...t,pathname:e,search:r})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(p)};t.headers=u(t.headers);const m=new r;const d=i(o.format(p),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const y=`${t.method}:${d}`;let f=false;let h=false;const N=t=>{h=true;let r=false;let o;const i=new Promise(e=>{o=(()=>{if(!r){r=true;e()}})});const u=e=>{if(f&&!t.forceRefresh){e.status=e.statusCode;const n=s.fromObject(f.cachePolicy).revalidatedPolicy(t,e);if(!n.modified){const t=n.policy.responseHeaders();e=new c(f.statusCode,t,f.body,f.url);e.cachePolicy=n.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new s(t,e,t);e.fromCache=false}let o;if(t.cache&&e.cachePolicy.storable()){o=l(e);(async()=>{try{const n=a.buffer(e);await Promise.race([i,new Promise(t=>e.once("end",t))]);if(r){return}const o=await n;const s={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?f.statusCode:e.statusCode,body:o};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(y,s,c)}catch(e){m.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&f){(async()=>{try{await this.cache.delete(y)}catch(e){m.emit("error",new CacheableRequest.CacheError(e))}})()}m.emit("response",o||e);if(typeof n==="function"){n(o||e)}};try{const n=e(t,u);n.once("error",o);n.once("abort",o);m.emit("request",n)}catch(e){m.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):undefined;if(typeof t==="undefined"){return N(e)}const r=s.fromObject(t.cachePolicy);if(r.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=r.responseHeaders();const o=new c(t.statusCode,e,t.body,t.url);o.cachePolicy=r;o.fromCache=true;m.emit("response",o);if(typeof n==="function"){n(o)}}else{f=t;e.headers=r.revalidationHeaders(e);N(e)}};const r=e=>m.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",r);m.on("response",()=>this.cache.removeListener("error",r));try{await e(t)}catch(e){if(t.automaticFailover&&!h){N(t)}m.emit("error",new CacheableRequest.CacheError(e))}})();return m}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},,,,,,,,,,,,,,function(e){"use strict";e.exports=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"]},,,,,,function(e,t,n){var r=n(995);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var n={};r.each(e,function(e,r){var o=t.members[e];if(o){if(o.location!=="body")return;var i=o.isLocationName?o.name:e;var a=translate(r,o);if(a!==undefined)n[i]=a}});return n}function translateList(e,t){var n=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r!==undefined)n.push(r)});return n}function translateMap(e,t){var n={};r.each(e,function(e,r){var o=translate(r,t.value);if(o!==undefined)n[e]=o});return n}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},,function(e){e.exports=require("stream")},,,,function(e){e.exports=require("crypto")},,function(e,t,n){var r=n(995);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var n={};var o=t.members;r.each(o,function(t,r){var o=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,o)){var i=e[o];var a=translate(i,r);if(a!==undefined)n[t]=a}});return n}function translateList(e,t){if(e==null)return undefined;var n=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)n.push(null);else n.push(r)});return n}function translateMap(e,t){if(e==null)return undefined;var n={};r.each(e,function(e,r){var o=translate(r,t.value);if(o===undefined)n[e]=null;else n[e]=o});return n}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},function(e,t,n){"use strict";const r=n(385);const o=n(746);const i=n(769);const a=n(882);const s=n(577);const c=n(688);const u=0;const l=1<<15;const p=1<<15;const m=~p;const d=1<<15;const y=~d;const f=t.txt=t.name={};f.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(f.encodingLength(e));if(!n)n=0;const r=n;const o=e.replace(/^\.|\.$/gm,"");if(o.length){const e=o.split(".");for(let r=0;r=192){const n=f.decode(e,e.readUInt16BE(t-1)-49152);f.decode.bytes=2;return n}while(o){if(o>=192){n.push(f.decode(e,e.readUInt16BE(t-1)-49152));t++;break}n.push(e.toString("utf-8",t,t+o));t+=o;o=e[t++]}f.decode.bytes=t-r;return n.join(".")};f.decode.bytes=0;f.encodingLength=function(e){if(e===".")return 1;return Buffer.byteLength(e)+2};const h={};h.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(h.encodingLength(e));if(!n)n=0;const r=t.write(e,n+1);t[n]=r;h.encode.bytes=r+1;return t};h.encode.bytes=0;h.decode=function(e,t){if(!t)t=0;const n=e[t];const r=e.toString("utf-8",t+1,t+1+n);h.decode.bytes=n+1;return r};h.decode.bytes=0;h.encodingLength=function(e){return Buffer.byteLength(e)+1};const N={};N.encode=function(e,t,n){if(!t)t=N.encodingLength(e);if(!n)n=0;const r=(e.flags||0)&32767;const o=e.type==="response"?l:u;t.writeUInt16BE(e.id||0,n);t.writeUInt16BE(r|o,n+2);t.writeUInt16BE(e.questions.length,n+4);t.writeUInt16BE(e.answers.length,n+6);t.writeUInt16BE(e.authorities.length,n+8);t.writeUInt16BE(e.additionals.length,n+10);return t};N.encode.bytes=12;N.decode=function(e,t){if(!t)t=0;if(e.length<12)throw new Error("Header must be 12 bytes");const n=e.readUInt16BE(t+2);return{id:e.readUInt16BE(t),type:n&l?"response":"query",flags:n&32767,flag_qr:(n>>15&1)===1,opcode:i.toString(n>>11&15),flag_aa:(n>>10&1)===1,flag_tc:(n>>9&1)===1,flag_rd:(n>>8&1)===1,flag_ra:(n>>7&1)===1,flag_z:(n>>6&1)===1,flag_ad:(n>>5&1)===1,flag_cd:(n>>4&1)===1,rcode:o.toString(n&15),questions:new Array(e.readUInt16BE(t+4)),answers:new Array(e.readUInt16BE(t+6)),authorities:new Array(e.readUInt16BE(t+8)),additionals:new Array(e.readUInt16BE(t+10))}};N.decode.bytes=12;N.encodingLength=function(){return 12};const g=t.unknown={};g.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(g.encodingLength(e));if(!n)n=0;t.writeUInt16BE(e.length,n);e.copy(t,n+2);g.encode.bytes=e.length+2;return t};g.encode.bytes=0;g.decode=function(e,t){if(!t)t=0;const n=e.readUInt16BE(t);const r=e.slice(t+2,t+2+n);g.decode.bytes=n+2;return r};g.decode.bytes=0;g.encodingLength=function(e){return e.length+2};const b=t.ns={};b.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(b.encodingLength(e));if(!n)n=0;f.encode(e,t,n+2);t.writeUInt16BE(f.encode.bytes,n);b.encode.bytes=f.encode.bytes+2;return t};b.encode.bytes=0;b.decode=function(e,t){if(!t)t=0;const n=e.readUInt16BE(t);const r=f.decode(e,t+2);b.decode.bytes=n+2;return r};b.decode.bytes=0;b.encodingLength=function(e){return f.encodingLength(e)+2};const I=t.soa={};I.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(I.encodingLength(e));if(!n)n=0;const r=n;n+=2;f.encode(e.mname,t,n);n+=f.encode.bytes;f.encode(e.rname,t,n);n+=f.encode.bytes;t.writeUInt32BE(e.serial||0,n);n+=4;t.writeUInt32BE(e.refresh||0,n);n+=4;t.writeUInt32BE(e.retry||0,n);n+=4;t.writeUInt32BE(e.expire||0,n);n+=4;t.writeUInt32BE(e.minimum||0,n);n+=4;t.writeUInt16BE(n-r-2,r);I.encode.bytes=n-r;return t};I.encode.bytes=0;I.decode=function(e,t){if(!t)t=0;const n=t;const r={};t+=2;r.mname=f.decode(e,t);t+=f.decode.bytes;r.rname=f.decode(e,t);t+=f.decode.bytes;r.serial=e.readUInt32BE(t);t+=4;r.refresh=e.readUInt32BE(t);t+=4;r.retry=e.readUInt32BE(t);t+=4;r.expire=e.readUInt32BE(t);t+=4;r.minimum=e.readUInt32BE(t);t+=4;I.decode.bytes=t-n;return r};I.decode.bytes=0;I.encodingLength=function(e){return 22+f.encodingLength(e.mname)+f.encodingLength(e.rname)};const v=t.txt={};v.encode=function(e,t,n){if(!Array.isArray(e))e=[e];for(let t=0;t0){const n=e[t++];--r;if(r0){n.timeout=e.readUInt16BE(t);t+=2}break;case 14:n.tags=[];for(let o=0;o0){r[i++]=P.decode(e,t);t+=P.decode.bytes;o-=P.decode.bytes}_.decode.bytes=t-n;return r};_.decode.bytes=0;_.encodingLength=function(e){return 2+encodingLengthList(e||[],P)};const M=t.dnskey={};M.PROTOCOL_DNSSEC=3;M.ZONE_KEY=128;M.SECURE_ENTRYPOINT=32768;M.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(M.encodingLength(e));if(!n)n=0;const r=n;const o=e.key;if(!Buffer.isBuffer(o)){throw new Error("Key must be a Buffer")}n+=2;t.writeUInt16BE(e.flags,n);n+=2;t.writeUInt8(M.PROTOCOL_DNSSEC,n);n+=1;t.writeUInt8(e.algorithm,n);n+=1;o.copy(t,n,0,o.length);n+=o.length;M.encode.bytes=n-r;t.writeUInt16BE(M.encode.bytes-2,r);return t};M.encode.bytes=0;M.decode=function(e,t){if(!t)t=0;const n=t;var r={};var o=e.readUInt16BE(t);t+=2;r.flags=e.readUInt16BE(t);t+=2;if(e.readUInt8(t)!==M.PROTOCOL_DNSSEC){throw new Error("Protocol must be 3")}t+=1;r.algorithm=e.readUInt8(t);t+=1;r.key=e.slice(t,n+o+2);t+=r.key.length;M.decode.bytes=t-n;return r};M.decode.bytes=0;M.encodingLength=function(e){return 6+Buffer.byteLength(e.key)};const L=t.rrsig={};L.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(L.encodingLength(e));if(!n)n=0;const o=n;const i=e.signature;if(!Buffer.isBuffer(i)){throw new Error("Signature must be a Buffer")}n+=2;t.writeUInt16BE(r.toType(e.typeCovered),n);n+=2;t.writeUInt8(e.algorithm,n);n+=1;t.writeUInt8(e.labels,n);n+=1;t.writeUInt32BE(e.originalTTL,n);n+=4;t.writeUInt32BE(e.expiration,n);n+=4;t.writeUInt32BE(e.inception,n);n+=4;t.writeUInt16BE(e.keyTag,n);n+=2;f.encode(e.signersName,t,n);n+=f.encode.bytes;i.copy(t,n,0,i.length);n+=i.length;L.encode.bytes=n-o;t.writeUInt16BE(L.encode.bytes-2,o);return t};L.encode.bytes=0;L.decode=function(e,t){if(!t)t=0;const n=t;var o={};var i=e.readUInt16BE(t);t+=2;o.typeCovered=r.toString(e.readUInt16BE(t));t+=2;o.algorithm=e.readUInt8(t);t+=1;o.labels=e.readUInt8(t);t+=1;o.originalTTL=e.readUInt32BE(t);t+=4;o.expiration=e.readUInt32BE(t);t+=4;o.inception=e.readUInt32BE(t);t+=4;o.keyTag=e.readUInt16BE(t);t+=2;o.signersName=f.decode(e,t);t+=f.decode.bytes;o.signature=e.slice(t,n+i+2);t+=o.signature.length;L.decode.bytes=t-n;return o};L.decode.bytes=0;L.encodingLength=function(e){return 20+f.encodingLength(e.signersName)+Buffer.byteLength(e.signature)};const O=t.rp={};O.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(O.encodingLength(e));if(!n)n=0;const r=n;n+=2;f.encode(e.mbox||".",t,n);n+=f.encode.bytes;f.encode(e.txt||".",t,n);n+=f.encode.bytes;O.encode.bytes=n-r;t.writeUInt16BE(O.encode.bytes-2,r);return t};O.encode.bytes=0;O.decode=function(e,t){if(!t)t=0;const n=t;const r={};t+=2;r.mbox=f.decode(e,t)||".";t+=f.decode.bytes;r.txt=f.decode(e,t)||".";t+=f.decode.bytes;O.decode.bytes=t-n;return r};O.decode.bytes=0;O.encodingLength=function(e){return 2+f.encodingLength(e.mbox||".")+f.encodingLength(e.txt||".")};const F={};F.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(F.encodingLength(e));if(!n)n=0;const o=n;var i=[];for(var a=0;a>8]===undefined){i[s>>8]=[]}i[s>>8][s>>3&31]|=1<<7-(s&7)}for(a=0;a>8]=Math.max(t[o>>8]||0,o&255)}var i=0;for(n=0;n>15&1)===1;n.options=_.decode(e,t+8);t+=8+_.decode.bytes}else{const r=e.readUInt16BE(t+2);n.ttl=e.readUInt32BE(t+4);n.class=a.toString(r&m);n.flush=!!(r&p);const o=V(n.type);n.data=o.decode(e,t+8);t+=8+o.decode.bytes}U.decode.bytes=t-o;return n};U.decode.bytes=0;U.encodingLength=function(e){const t=e.data!==null&&e.data!==undefined?e.data:e.options;return f.encodingLength(e.name)+8+V(e.type).encodingLength(t)};const H=t.question={};H.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(H.encodingLength(e));if(!n)n=0;const o=n;f.encode(e.name,t,n);n+=f.encode.bytes;t.writeUInt16BE(r.toType(e.type),n);n+=2;t.writeUInt16BE(a.toClass(e.class===undefined?"IN":e.class),n);n+=2;H.encode.bytes=n-o;return e};H.encode.bytes=0;H.decode=function(e,t){if(!t)t=0;const n=t;const o={};o.name=f.decode(e,t);t+=f.decode.bytes;o.type=r.toString(e.readUInt16BE(t));t+=2;o.class=a.toString(e.readUInt16BE(t));t+=2;const i=!!(o.class&d);if(i)o.class&=y;H.decode.bytes=t-n;return o};H.decode.bytes=0;H.encodingLength=function(e){return f.encodingLength(e.name)+4};t.AUTHORITATIVE_ANSWER=1<<10;t.TRUNCATED_RESPONSE=1<<9;t.RECURSION_DESIRED=1<<8;t.RECURSION_AVAILABLE=1<<7;t.AUTHENTIC_DATA=1<<5;t.CHECKING_DISABLED=1<<4;t.DNSSEC_OK=1<<15;t.encode=function(e,n,r){if(!n)n=Buffer.allocUnsafe(t.encodingLength(e));if(!r)r=0;const o=r;if(!e.questions)e.questions=[];if(!e.answers)e.answers=[];if(!e.authorities)e.authorities=[];if(!e.additionals)e.additionals=[];N.encode(e,n,r);r+=N.encode.bytes;r=encodeList(e.questions,H,n,r);r=encodeList(e.answers,U,n,r);r=encodeList(e.authorities,U,n,r);r=encodeList(e.additionals,U,n,r);t.encode.bytes=r-o;return n};t.encode.bytes=0;t.decode=function(e,n){if(!n)n=0;const r=n;const o=N.decode(e,n);n+=N.decode.bytes;n=decodeList(o.questions,H,e,n);n=decodeList(o.answers,U,e,n);n=decodeList(o.authorities,U,e,n);n=decodeList(o.additionals,U,e,n);t.decode.bytes=n-r;return o};t.decode.bytes=0;t.encodingLength=function(e){return N.encodingLength(e)+encodingLengthList(e.questions||[],H)+encodingLengthList(e.answers||[],U)+encodingLengthList(e.authorities||[],U)+encodingLengthList(e.additionals||[],U)};t.streamEncode=function(e){const n=t.encode(e);const r=Buffer.allocUnsafe(2);r.writeUInt16BE(n.byteLength);const o=Buffer.concat([r,n]);t.streamEncode.bytes=o.byteLength;return o};t.streamEncode.bytes=0;t.streamDecode=function(e){const n=e.readUInt16BE(0);if(e.byteLength=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(i,function(n,r){if(n){t(n)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var n=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var o=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=o}catch(r){if(n&&n.isStreaming){if(n.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,n,o){n.httpResponse.statusCode=e;n.httpResponse.statusMessage=o;n.httpResponse.headers=t;n.httpResponse.body=r.util.buffer.toBuffer("");n.httpResponse.buffers=[];n.httpResponse.numBytes=0;var i=t.date||t.Date;var a=n.request.service;if(i){var s=Date.parse(i);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var n=t.httpResponse.headers["content-length"];var o={loaded:t.httpResponse.numBytes,total:n};t.request.emit("httpDownloadProgress",[o,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,n)}else{t()}})}),CorePost:(new o).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new o).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var o=t.service.config.logger;if(!o)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var n={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){n[t]=filterSensitiveLog(e.members[t],r)}else{n[t]=r}});return n;case"list":var o=[];r.util.arrayEach(t,function(t,n){o.push(filterSensitiveLog(e.member,t))});return o;case"map":var i={};r.util.each(t,function(t,n){i[t]=filterSensitiveLog(e.value,n)});return i;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var i=e.request.service.getSkewCorrectedDate().getTime();var a=(i-t.startTime.getTime())/1e3;var s=o.isTTY?true:false;var c=e.httpResponse.statusCode;var u=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;u=filterSensitiveLog(l,t.params)}var p=n(669).inspect(u,true,null);var m="";if(s)m+="";m+="[AWS "+t.service.serviceIdentifier+" "+c;m+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)m+="";m+=" "+r.util.string.lowerFirst(t.operation);m+="("+p+")";if(s)m+="";return m}var i=buildMessage();if(typeof o.log==="function"){o.log(i)}else if(typeof o.write==="function"){o.write(i+"\n")}})}),Json:(new o).addNamedListeners(function(e){var t=n(485);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new o).addNamedListeners(function(e){var t=n(571);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new o).addNamedListeners(function(e){var t=n(138);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new o).addNamedListeners(function(e){var t=n(633);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new o).addNamedListeners(function(e){var t=n(257);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},,function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},,,,,,,,function(e,t){t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var n=Array.isArray(e);t=n?"[":"{";var r=true;for(var o in e){var i="function"==typeof e[o]||!n&&"undefined"===typeof e[o];if(Object.hasOwnProperty.call(e,o)&&!i){if(!r)t+=",";r=false;if(n){if(e[o]==undefined)t+="null";else t+=stringify(e[o])}else if(e[o]!==void 0){t+=stringify(o)+":"+stringify(e[o])}}}t+=n?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return new Buffer(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},,,function(e,t,n){var r=n(984);var o=r.util.inherit;n(90);r.Signers.V3Https=o(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},,,,,,,,,function(e,t,n){var r=n(995).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},function(e,t,n){"use strict";const r=n(937);class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.name="TimeoutError";this.code="ETIMEDOUT";this.event=t}}const o=Symbol("reentry");const i=()=>{};e.exports=((e,t,n)=>{if(e[o]){return}e[o]=true;let a=false;const s=(e,t,...n)=>{if(a){return i}let r;const o=setTimeout(()=>{r=setImmediate(t,e,...n);if(r.unref){r.unref()}},e);if(o.unref){o.unref()}const s=()=>{clearTimeout(o);clearImmediate(r)};p.push(s);return s};const{host:c,hostname:u}=n;const l=(t,n)=>{e.emit("error",new TimeoutError(t,n));e.once("error",()=>{});e.abort()};const p=[];const m=()=>{a=true;p.forEach(e=>e())};e.once("error",m);e.once("response",e=>{e.once("end",m)});if(t.request!==undefined){s(t.request,l,"request")}if(t.socket!==undefined){const n=()=>{l(t.socket,"socket")};e.setTimeout(t.socket,n);p.push(()=>e.removeListener("timeout",n))}if(t.lookup!==undefined&&!e.socketPath&&!r.isIP(u||c)){e.once("socket",e=>{if(e.connecting){const n=s(t.lookup,l,"lookup");e.once("lookup",n)}})}if(t.connect!==undefined){e.once("socket",n=>{if(n.connecting){const o=()=>s(t.connect,l,"connect");if(e.socketPath||r.isIP(u||c)){n.once("connect",o())}else{n.once("lookup",e=>{if(e===null){n.once("connect",o())}})}}})}if(t.secureConnect!==undefined&&n.protocol==="https:"){e.once("socket",e=>{if(e.connecting){e.once("connect",()=>{const n=s(t.secureConnect,l,"secureConnect");e.once("secureConnect",n)})}})}if(t.send!==undefined){e.once("socket",n=>{const r=()=>s(t.send,l,"send");if(n.connecting){n.once("connect",()=>{e.once("upload-complete",r())})}else{e.once("upload-complete",r())}})}if(t.response!==undefined){e.once("upload-complete",()=>{const n=s(t.response,l,"response");e.once("response",n)})}});e.exports.TimeoutError=TimeoutError},,,function(e,t,n){"use strict";const r=n(614);const o=n(437);const i=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const n=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[n]))(e)}return new Map};class Keyv extends r{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:o.stringify,deserialize:o.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=i(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.get(e)).then(t=>{t=typeof t==="string"?this.opts.deserialize(t):t;if(t===undefined){return undefined}if(typeof t.expires==="number"&&Date.now()>t.expires){this.delete(e);return undefined}return t.value})}set(e,t,n){e=this._getKeyPrefix(e);if(typeof n==="undefined"){n=this.opts.ttl}if(n===0){n=undefined}const r=this.opts.store;return Promise.resolve().then(()=>{const o=typeof n==="number"?Date.now()+n:null;t={value:t,expires:o};return r.set(e,this.opts.serialize(t),n)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},,,,function(e,t,n){var r=n(984);n(306);n(331);var o;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,n){this.set(t,e[t],n)})},getCredentials:function getCredentials(e){var t=this;function finish(n){e(n,n?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var n="Could not load credentials from "+t.credentials.constructor.name;e=credError(n,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,n){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=n;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,n){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,n)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var n=new r.FileSystemCredentials(e);var o=new r.CredentialProviderChain;o.providers.unshift(n);o.resolve(function(e,n){if(e)throw e;else t.credentials=n});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,n){if(t===undefined){if(n===undefined){n=this.keys[e]}if(typeof n==="function"){this[e]=n.call(this)}else{this[e]=n}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:false,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){o=e;if(e===null&&typeof Promise==="function"){o=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,o)},getPromisesDependency:function getPromisesDependency(){return o}});r.config=new r.Config},,function(e){function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},,,,,,,,,,,,function(e,t,n){"use strict";const r=n(994);const o=n(627);const i=n(64);const a=n(289);e.exports=((e,t,n)=>{const s=Number(e.headers["content-length"])||null;const c=a.download(e,n,s);i(e,c);const u=t.decompress===true&&o.function(r)&&t.method!=="HEAD"?r(c):c;if(!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])){t.encoding=null}n.emit("response",u);n.emit("downloadProgress",{percent:0,transferred:0,total:s});e.pipe(c)})},,function(e,t,n){var r=n(984);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var n=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=n[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},,,function(e){(function(){var t,n={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,o,i,a,s,c,u,l;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(o=e.indent)!=null?o:" ";this.newline=(i=e.newline)!=null?i:"\n";this.offset=(a=e.offset)!=null?a:0;this.dontprettytextnodes=(s=e.dontprettytextnodes)!=null?s:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(c=e.spacebeforeslash)!=null?c:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;u=e.writer||{};for(t in u){if(!n.call(u,t))continue;l=u[t];this[t]=l}}XMLWriterBase.prototype.set=function(e){var t,r,o;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!n.call(r,t))continue;o=r[t];this[t]=o}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},,,,,,,,,function(e,t,n){var r=n(995);var o=n(411);var i=n(419);var a=n(887).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var n=e.service.api;var r=n.targetPrefix+"."+n.operations[e.operation].name;var i=n.jsonVersion||"1.0";var s=n.operations[e.operation].input;var c=new o;if(i===1)i="1.0";t.body=c.build(e.params||{},s);t.headers["Content-Type"]="application/x-amz-json-"+i;t.headers["X-Amz-Target"]=r;a(e)}function extractError(e){var t={};var n=e.httpResponse;t.code=n.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(n.body.length>0){try{var o=JSON.parse(n.body.toString());if(o.__type||o.code){t.code=(o.__type||o.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=o.message||o.Message||null}}catch(o){t.statusCode=n.statusCode;t.message=n.statusMessage}}else{t.statusCode=n.statusCode;t.message=n.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var n=e.request.service.api.operations[e.request.operation];var r=n.output||{};var o=new i;e.data=o.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,,,,,,function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((n,r,o)=>{t.push(o);e(...t).then(n,r)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,n)=>{this._reject=n;const r=e=>{this._isPending=false;t(e)};const o=e=>{this._isPending=false;n(e)};const i=e=>{this._cancelHandlers.push(e)};Object.defineProperties(i,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(r,o,i)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.default=PCancelable;e.exports.CancelError=CancelError},,,,,function(e,t,n){var r=n(984);var o={};var i=[];var a=50;var s="aws4_request";e.exports={createScope:function createScope(e,t,n){return[e.substr(0,8),t,n,s].join("/")},getSigningKey:function getSigningKey(e,t,n,c,u){var l=r.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var p=[l,t,n,c].join("_");u=u!==false;if(u&&p in o){return o[p]}var m=r.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var d=r.util.crypto.hmac(m,n,"buffer");var y=r.util.crypto.hmac(d,c,"buffer");var f=r.util.crypto.hmac(y,s,"buffer");if(u){o[p]=f;i.push(p);if(i.length>a){delete o[i.shift()]}}return f},emptyCache:function emptyCache(){o={};i=[]}}},,,,,,,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2016-11-15",endpointPrefix:"ec2",protocol:"ec2",serviceAbbreviation:"Amazon EC2",serviceFullName:"Amazon Elastic Compute Cloud",serviceId:"EC2",signatureVersion:"v4",uid:"ec2-2016-11-15",xmlNamespace:"http://ec2.amazonaws.com/doc/2016-11-15"},operations:{AcceptReservedInstancesExchangeQuote:{input:{type:"structure",required:["ReservedInstanceIds"],members:{DryRun:{type:"boolean"},ReservedInstanceIds:{shape:"S3",locationName:"ReservedInstanceId"},TargetConfigurations:{shape:"S5",locationName:"TargetConfiguration"}}},output:{type:"structure",members:{ExchangeId:{locationName:"exchangeId"}}}},AcceptTransitGatewayPeeringAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayPeeringAttachment:{shape:"Se",locationName:"transitGatewayPeeringAttachment"}}}},AcceptTransitGatewayVpcAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayVpcAttachment:{shape:"Sn",locationName:"transitGatewayVpcAttachment"}}}},AcceptVpcEndpointConnections:{input:{type:"structure",required:["ServiceId","VpcEndpointIds"],members:{DryRun:{type:"boolean"},ServiceId:{},VpcEndpointIds:{shape:"Su",locationName:"VpcEndpointId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},AcceptVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S13",locationName:"vpcPeeringConnection"}}}},AdvertiseByoipCidr:{input:{type:"structure",required:["Cidr"],members:{Cidr:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ByoipCidr:{shape:"S1e",locationName:"byoipCidr"}}}},AllocateAddress:{input:{type:"structure",members:{Domain:{},Address:{},PublicIpv4Pool:{},NetworkBorderGroup:{},CustomerOwnedIpv4Pool:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{PublicIp:{locationName:"publicIp"},AllocationId:{locationName:"allocationId"},PublicIpv4Pool:{locationName:"publicIpv4Pool"},NetworkBorderGroup:{locationName:"networkBorderGroup"},Domain:{locationName:"domain"},CustomerOwnedIp:{locationName:"customerOwnedIp"},CustomerOwnedIpv4Pool:{locationName:"customerOwnedIpv4Pool"}}}},AllocateHosts:{input:{type:"structure",required:["AvailabilityZone","Quantity"],members:{AutoPlacement:{locationName:"autoPlacement"},AvailabilityZone:{locationName:"availabilityZone"},ClientToken:{locationName:"clientToken"},InstanceType:{locationName:"instanceType"},InstanceFamily:{},Quantity:{locationName:"quantity",type:"integer"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},HostRecovery:{}}},output:{type:"structure",members:{HostIds:{shape:"S1q",locationName:"hostIdSet"}}}},ApplySecurityGroupsToClientVpnTargetNetwork:{input:{type:"structure",required:["ClientVpnEndpointId","VpcId","SecurityGroupIds"],members:{ClientVpnEndpointId:{},VpcId:{},SecurityGroupIds:{shape:"S1u",locationName:"SecurityGroupId"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{SecurityGroupIds:{shape:"S1u",locationName:"securityGroupIds"}}}},AssignIpv6Addresses:{input:{type:"structure",required:["NetworkInterfaceId"],members:{Ipv6AddressCount:{locationName:"ipv6AddressCount",type:"integer"},Ipv6Addresses:{shape:"S1y",locationName:"ipv6Addresses"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},output:{type:"structure",members:{AssignedIpv6Addresses:{shape:"S1y",locationName:"assignedIpv6Addresses"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}}},AssignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId"],members:{AllowReassignment:{locationName:"allowReassignment",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"S22",locationName:"privateIpAddress"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"}}},output:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},AssignedPrivateIpAddresses:{locationName:"assignedPrivateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"}}}}}}},AssociateAddress:{input:{type:"structure",members:{AllocationId:{},InstanceId:{},PublicIp:{},AllowReassociation:{locationName:"allowReassociation",type:"boolean"},DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddress:{locationName:"privateIpAddress"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}}},AssociateClientVpnTargetNetwork:{input:{type:"structure",required:["ClientVpnEndpointId","SubnetId"],members:{ClientVpnEndpointId:{},SubnetId:{},ClientToken:{idempotencyToken:true},DryRun:{type:"boolean"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"},Status:{shape:"S2d",locationName:"status"}}}},AssociateDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId","VpcId"],members:{DhcpOptionsId:{},VpcId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},AssociateIamInstanceProfile:{input:{type:"structure",required:["IamInstanceProfile","InstanceId"],members:{IamInstanceProfile:{shape:"S2i"},InstanceId:{}}},output:{type:"structure",members:{IamInstanceProfileAssociation:{shape:"S2k",locationName:"iamInstanceProfileAssociation"}}}},AssociateRouteTable:{input:{type:"structure",required:["RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},SubnetId:{locationName:"subnetId"},GatewayId:{}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"},AssociationState:{shape:"S2r",locationName:"associationState"}}}},AssociateSubnetCidrBlock:{input:{type:"structure",required:["Ipv6CidrBlock","SubnetId"],members:{Ipv6CidrBlock:{locationName:"ipv6CidrBlock"},SubnetId:{locationName:"subnetId"}}},output:{type:"structure",members:{Ipv6CidrBlockAssociation:{shape:"S2v",locationName:"ipv6CidrBlockAssociation"},SubnetId:{locationName:"subnetId"}}}},AssociateTransitGatewayMulticastDomain:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},TransitGatewayAttachmentId:{},SubnetIds:{shape:"So"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Associations:{shape:"S31",locationName:"associations"}}}},AssociateTransitGatewayRouteTable:{input:{type:"structure",required:["TransitGatewayRouteTableId","TransitGatewayAttachmentId"],members:{TransitGatewayRouteTableId:{},TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Association:{shape:"S39",locationName:"association"}}}},AssociateVpcCidrBlock:{input:{type:"structure",required:["VpcId"],members:{AmazonProvidedIpv6CidrBlock:{locationName:"amazonProvidedIpv6CidrBlock",type:"boolean"},CidrBlock:{},VpcId:{locationName:"vpcId"},Ipv6CidrBlockNetworkBorderGroup:{},Ipv6Pool:{},Ipv6CidrBlock:{}}},output:{type:"structure",members:{Ipv6CidrBlockAssociation:{shape:"S3e",locationName:"ipv6CidrBlockAssociation"},CidrBlockAssociation:{shape:"S3h",locationName:"cidrBlockAssociation"},VpcId:{locationName:"vpcId"}}}},AttachClassicLinkVpc:{input:{type:"structure",required:["Groups","InstanceId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Groups:{shape:"S3j",locationName:"SecurityGroupId"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},AttachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}}},AttachNetworkInterface:{input:{type:"structure",required:["DeviceIndex","InstanceId","NetworkInterfaceId"],members:{DeviceIndex:{locationName:"deviceIndex",type:"integer"},DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},output:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"}}}},AttachVolume:{input:{type:"structure",required:["Device","InstanceId","VolumeId"],members:{Device:{},InstanceId:{},VolumeId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{shape:"S3r"}},AttachVpnGateway:{input:{type:"structure",required:["VpcId","VpnGatewayId"],members:{VpcId:{},VpnGatewayId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{VpcAttachment:{shape:"S3w",locationName:"attachment"}}}},AuthorizeClientVpnIngress:{input:{type:"structure",required:["ClientVpnEndpointId","TargetNetworkCidr"],members:{ClientVpnEndpointId:{},TargetNetworkCidr:{},AccessGroupId:{},AuthorizeAllGroups:{type:"boolean"},Description:{},ClientToken:{idempotencyToken:true},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Status:{shape:"S40",locationName:"status"}}}},AuthorizeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},IpPermissions:{shape:"S43",locationName:"ipPermissions"},CidrIp:{locationName:"cidrIp"},FromPort:{locationName:"fromPort",type:"integer"},IpProtocol:{locationName:"ipProtocol"},ToPort:{locationName:"toPort",type:"integer"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"}}}},AuthorizeSecurityGroupIngress:{input:{type:"structure",members:{CidrIp:{},FromPort:{type:"integer"},GroupId:{},GroupName:{},IpPermissions:{shape:"S43"},IpProtocol:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},ToPort:{type:"integer"},DryRun:{locationName:"dryRun",type:"boolean"}}}},BundleInstance:{input:{type:"structure",required:["InstanceId","Storage"],members:{InstanceId:{},Storage:{shape:"S4g"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{BundleTask:{shape:"S4k",locationName:"bundleInstanceTask"}}}},CancelBundleTask:{input:{type:"structure",required:["BundleId"],members:{BundleId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{BundleTask:{shape:"S4k",locationName:"bundleInstanceTask"}}}},CancelCapacityReservation:{input:{type:"structure",required:["CapacityReservationId"],members:{CapacityReservationId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},CancelConversionTask:{input:{type:"structure",required:["ConversionTaskId"],members:{ConversionTaskId:{locationName:"conversionTaskId"},DryRun:{locationName:"dryRun",type:"boolean"},ReasonMessage:{locationName:"reasonMessage"}}}},CancelExportTask:{input:{type:"structure",required:["ExportTaskId"],members:{ExportTaskId:{locationName:"exportTaskId"}}}},CancelImportTask:{input:{type:"structure",members:{CancelReason:{},DryRun:{type:"boolean"},ImportTaskId:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},PreviousState:{locationName:"previousState"},State:{locationName:"state"}}}},CancelReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesListingId"],members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S53",locationName:"reservedInstancesListingsSet"}}}},CancelSpotFleetRequests:{input:{type:"structure",required:["SpotFleetRequestIds","TerminateInstances"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S5f",locationName:"spotFleetRequestId"},TerminateInstances:{locationName:"terminateInstances",type:"boolean"}}},output:{type:"structure",members:{SuccessfulFleetRequests:{locationName:"successfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",members:{CurrentSpotFleetRequestState:{locationName:"currentSpotFleetRequestState"},PreviousSpotFleetRequestState:{locationName:"previousSpotFleetRequestState"},SpotFleetRequestId:{locationName:"spotFleetRequestId"}}}},UnsuccessfulFleetRequests:{locationName:"unsuccessfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",members:{Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},SpotFleetRequestId:{locationName:"spotFleetRequestId"}}}}}}},CancelSpotInstanceRequests:{input:{type:"structure",required:["SpotInstanceRequestIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S5q",locationName:"SpotInstanceRequestId"}}},output:{type:"structure",members:{CancelledSpotInstanceRequests:{locationName:"spotInstanceRequestSet",type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},State:{locationName:"state"}}}}}}},ConfirmProductInstance:{input:{type:"structure",required:["InstanceId","ProductCode"],members:{InstanceId:{},ProductCode:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Return:{locationName:"return",type:"boolean"}}}},CopyFpgaImage:{input:{type:"structure",required:["SourceFpgaImageId","SourceRegion"],members:{DryRun:{type:"boolean"},SourceFpgaImageId:{},Description:{},Name:{},SourceRegion:{},ClientToken:{}}},output:{type:"structure",members:{FpgaImageId:{locationName:"fpgaImageId"}}}},CopyImage:{input:{type:"structure",required:["Name","SourceImageId","SourceRegion"],members:{ClientToken:{},Description:{},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"},Name:{},SourceImageId:{},SourceRegion:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}}},CopySnapshot:{input:{type:"structure",required:["SourceRegion","SourceSnapshotId"],members:{Description:{},DestinationRegion:{locationName:"destinationRegion"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"},PresignedUrl:{locationName:"presignedUrl"},SourceRegion:{},SourceSnapshotId:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},Tags:{shape:"Sj",locationName:"tagSet"}}}},CreateCapacityReservation:{input:{type:"structure",required:["InstanceType","InstancePlatform","InstanceCount"],members:{ClientToken:{},InstanceType:{},InstancePlatform:{},AvailabilityZone:{},AvailabilityZoneId:{},Tenancy:{},InstanceCount:{type:"integer"},EbsOptimized:{type:"boolean"},EphemeralStorage:{type:"boolean"},EndDate:{type:"timestamp"},EndDateType:{},InstanceMatchCriteria:{},TagSpecifications:{shape:"S1l"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{CapacityReservation:{shape:"S6c",locationName:"capacityReservation"}}}},CreateClientVpnEndpoint:{input:{type:"structure",required:["ClientCidrBlock","ServerCertificateArn","AuthenticationOptions","ConnectionLogOptions"],members:{ClientCidrBlock:{},ServerCertificateArn:{},AuthenticationOptions:{locationName:"Authentication",type:"list",member:{type:"structure",members:{Type:{},ActiveDirectory:{type:"structure",members:{DirectoryId:{}}},MutualAuthentication:{type:"structure",members:{ClientRootCertificateChainArn:{}}}}}},ConnectionLogOptions:{shape:"S6k"},DnsServers:{shape:"So"},TransportProtocol:{},VpnPort:{type:"integer"},Description:{},SplitTunnel:{type:"boolean"},DryRun:{type:"boolean"},ClientToken:{idempotencyToken:true},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},SecurityGroupIds:{shape:"S1u",locationName:"SecurityGroupId"},VpcId:{}}},output:{type:"structure",members:{ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},Status:{shape:"S6n",locationName:"status"},DnsName:{locationName:"dnsName"}}}},CreateClientVpnRoute:{input:{type:"structure",required:["ClientVpnEndpointId","DestinationCidrBlock","TargetVpcSubnetId"],members:{ClientVpnEndpointId:{},DestinationCidrBlock:{},TargetVpcSubnetId:{},Description:{},ClientToken:{idempotencyToken:true},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Status:{shape:"S6r",locationName:"status"}}}},CreateCustomerGateway:{input:{type:"structure",required:["BgpAsn","Type"],members:{BgpAsn:{type:"integer"},PublicIp:{locationName:"IpAddress"},CertificateArn:{},Type:{},DeviceName:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{CustomerGateway:{shape:"S6w",locationName:"customerGateway"}}}},CreateDefaultSubnet:{input:{type:"structure",required:["AvailabilityZone"],members:{AvailabilityZone:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Subnet:{shape:"S6z",locationName:"subnet"}}}},CreateDefaultVpc:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{Vpc:{shape:"S75",locationName:"vpc"}}}},CreateDhcpOptions:{input:{type:"structure",required:["DhcpConfigurations"],members:{DhcpConfigurations:{locationName:"dhcpConfiguration",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{shape:"So",locationName:"Value"}}}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{DhcpOptions:{shape:"S7e",locationName:"dhcpOptions"}}}},CreateEgressOnlyInternetGateway:{input:{type:"structure",required:["VpcId"],members:{ClientToken:{},DryRun:{type:"boolean"},VpcId:{}}},output:{type:"structure",members:{ClientToken:{locationName:"clientToken"},EgressOnlyInternetGateway:{shape:"S7l",locationName:"egressOnlyInternetGateway"}}}},CreateFleet:{input:{type:"structure",required:["LaunchTemplateConfigs","TargetCapacitySpecification"],members:{DryRun:{type:"boolean"},ClientToken:{},SpotOptions:{type:"structure",members:{AllocationStrategy:{},InstanceInterruptionBehavior:{},InstancePoolsToUseCount:{type:"integer"},SingleInstanceType:{type:"boolean"},SingleAvailabilityZone:{type:"boolean"},MinTargetCapacity:{type:"integer"},MaxTotalPrice:{}}},OnDemandOptions:{type:"structure",members:{AllocationStrategy:{},CapacityReservationOptions:{type:"structure",members:{UsageStrategy:{}}},SingleInstanceType:{type:"boolean"},SingleAvailabilityZone:{type:"boolean"},MinTargetCapacity:{type:"integer"},MaxTotalPrice:{}}},ExcessCapacityTerminationPolicy:{},LaunchTemplateConfigs:{type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateSpecification:{type:"structure",members:{LaunchTemplateId:{},LaunchTemplateName:{},Version:{}}},Overrides:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{},MaxPrice:{},SubnetId:{},AvailabilityZone:{},WeightedCapacity:{type:"double"},Priority:{type:"double"},Placement:{shape:"S86"}}}}}}},TargetCapacitySpecification:{shape:"S87"},TerminateInstancesWithExpiration:{type:"boolean"},Type:{},ValidFrom:{type:"timestamp"},ValidUntil:{type:"timestamp"},ReplaceUnhealthyInstances:{type:"boolean"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{FleetId:{locationName:"fleetId"},Errors:{locationName:"errorSet",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateAndOverrides:{shape:"S8e",locationName:"launchTemplateAndOverrides"},Lifecycle:{locationName:"lifecycle"},ErrorCode:{locationName:"errorCode"},ErrorMessage:{locationName:"errorMessage"}}}},Instances:{locationName:"fleetInstanceSet",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateAndOverrides:{shape:"S8e",locationName:"launchTemplateAndOverrides"},Lifecycle:{locationName:"lifecycle"},InstanceIds:{shape:"S8l",locationName:"instanceIds"},InstanceType:{locationName:"instanceType"},Platform:{locationName:"platform"}}}}}}},CreateFlowLogs:{input:{type:"structure",required:["ResourceIds","ResourceType","TrafficType"],members:{DryRun:{type:"boolean"},ClientToken:{},DeliverLogsPermissionArn:{},LogGroupName:{},ResourceIds:{locationName:"ResourceId",type:"list",member:{locationName:"item"}},ResourceType:{},TrafficType:{},LogDestinationType:{},LogDestination:{},LogFormat:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},MaxAggregationInterval:{type:"integer"}}},output:{type:"structure",members:{ClientToken:{locationName:"clientToken"},FlowLogIds:{shape:"So",locationName:"flowLogIdSet"},Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},CreateFpgaImage:{input:{type:"structure",required:["InputStorageLocation"],members:{DryRun:{type:"boolean"},InputStorageLocation:{shape:"S8v"},LogsStorageLocation:{shape:"S8v"},Description:{},Name:{},ClientToken:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{FpgaImageId:{locationName:"fpgaImageId"},FpgaImageGlobalId:{locationName:"fpgaImageGlobalId"}}}},CreateImage:{input:{type:"structure",required:["InstanceId","Name"],members:{BlockDeviceMappings:{shape:"S8y",locationName:"blockDeviceMapping"},Description:{locationName:"description"},DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Name:{locationName:"name"},NoReboot:{locationName:"noReboot",type:"boolean"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}}},CreateInstanceExportTask:{input:{type:"structure",required:["InstanceId"],members:{Description:{locationName:"description"},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{ContainerFormat:{locationName:"containerFormat"},DiskImageFormat:{locationName:"diskImageFormat"},S3Bucket:{locationName:"s3Bucket"},S3Prefix:{locationName:"s3Prefix"}}},InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"}}},output:{type:"structure",members:{ExportTask:{shape:"S99",locationName:"exportTask"}}}},CreateInternetGateway:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InternetGateway:{shape:"S9f",locationName:"internetGateway"}}}},CreateKeyPair:{input:{type:"structure",required:["KeyName"],members:{KeyName:{},DryRun:{locationName:"dryRun",type:"boolean"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{KeyFingerprint:{locationName:"keyFingerprint"},KeyMaterial:{locationName:"keyMaterial",type:"string",sensitive:true},KeyName:{locationName:"keyName"},KeyPairId:{locationName:"keyPairId"},Tags:{shape:"Sj",locationName:"tagSet"}}}},CreateLaunchTemplate:{input:{type:"structure",required:["LaunchTemplateName","LaunchTemplateData"],members:{DryRun:{type:"boolean"},ClientToken:{},LaunchTemplateName:{},VersionDescription:{},LaunchTemplateData:{shape:"S9l"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{LaunchTemplate:{shape:"Saw",locationName:"launchTemplate"},Warning:{shape:"Sax",locationName:"warning"}}}},CreateLaunchTemplateVersion:{input:{type:"structure",required:["LaunchTemplateData"],members:{DryRun:{type:"boolean"},ClientToken:{},LaunchTemplateId:{},LaunchTemplateName:{},SourceVersion:{},VersionDescription:{},LaunchTemplateData:{shape:"S9l"}}},output:{type:"structure",members:{LaunchTemplateVersion:{shape:"Sb2",locationName:"launchTemplateVersion"},Warning:{shape:"Sax",locationName:"warning"}}}},CreateLocalGatewayRoute:{input:{type:"structure",required:["DestinationCidrBlock","LocalGatewayRouteTableId","LocalGatewayVirtualInterfaceGroupId"],members:{DestinationCidrBlock:{},LocalGatewayRouteTableId:{},LocalGatewayVirtualInterfaceGroupId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Route:{shape:"Sbz",locationName:"route"}}}},CreateLocalGatewayRouteTableVpcAssociation:{input:{type:"structure",required:["LocalGatewayRouteTableId","VpcId"],members:{LocalGatewayRouteTableId:{},VpcId:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayRouteTableVpcAssociation:{shape:"Sc4",locationName:"localGatewayRouteTableVpcAssociation"}}}},CreateNatGateway:{input:{type:"structure",required:["AllocationId","SubnetId"],members:{AllocationId:{},ClientToken:{idempotencyToken:true},DryRun:{type:"boolean"},SubnetId:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{ClientToken:{locationName:"clientToken"},NatGateway:{shape:"Sc8",locationName:"natGateway"}}}},CreateNetworkAcl:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{NetworkAcl:{shape:"Scf",locationName:"networkAcl"}}}},CreateNetworkAclEntry:{input:{type:"structure",required:["Egress","NetworkAclId","Protocol","RuleAction","RuleNumber"],members:{CidrBlock:{locationName:"cidrBlock"},DryRun:{locationName:"dryRun",type:"boolean"},Egress:{locationName:"egress",type:"boolean"},IcmpTypeCode:{shape:"Sck",locationName:"Icmp"},Ipv6CidrBlock:{locationName:"ipv6CidrBlock"},NetworkAclId:{locationName:"networkAclId"},PortRange:{shape:"Scl",locationName:"portRange"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},RuleNumber:{locationName:"ruleNumber",type:"integer"}}}},CreateNetworkInterface:{input:{type:"structure",required:["SubnetId"],members:{Description:{locationName:"description"},DryRun:{locationName:"dryRun",type:"boolean"},Groups:{shape:"S9u",locationName:"SecurityGroupId"},Ipv6AddressCount:{locationName:"ipv6AddressCount",type:"integer"},Ipv6Addresses:{shape:"Sba",locationName:"ipv6Addresses"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateIpAddresses:{shape:"S9x",locationName:"privateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},InterfaceType:{},SubnetId:{locationName:"subnetId"}}},output:{type:"structure",members:{NetworkInterface:{shape:"Scs",locationName:"networkInterface"}}}},CreateNetworkInterfacePermission:{input:{type:"structure",required:["NetworkInterfaceId","Permission"],members:{NetworkInterfaceId:{},AwsAccountId:{},AwsService:{},Permission:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{InterfacePermission:{shape:"Sd6",locationName:"interfacePermission"}}}},CreatePlacementGroup:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"},PartitionCount:{type:"integer"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{PlacementGroup:{shape:"Sdc",locationName:"placementGroup"}}}},CreateReservedInstancesListing:{input:{type:"structure",required:["ClientToken","InstanceCount","PriceSchedules","ReservedInstancesId"],members:{ClientToken:{locationName:"clientToken"},InstanceCount:{locationName:"instanceCount",type:"integer"},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{CurrencyCode:{locationName:"currencyCode"},Price:{locationName:"price",type:"double"},Term:{locationName:"term",type:"long"}}}},ReservedInstancesId:{locationName:"reservedInstancesId"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S53",locationName:"reservedInstancesListingsSet"}}}},CreateRoute:{input:{type:"structure",required:["RouteTableId"],members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationIpv6CidrBlock:{locationName:"destinationIpv6CidrBlock"},DryRun:{locationName:"dryRun",type:"boolean"},EgressOnlyInternetGatewayId:{locationName:"egressOnlyInternetGatewayId"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NatGatewayId:{locationName:"natGatewayId"},TransitGatewayId:{},LocalGatewayId:{},NetworkInterfaceId:{locationName:"networkInterfaceId"},RouteTableId:{locationName:"routeTableId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},CreateRouteTable:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{RouteTable:{shape:"Sdp",locationName:"routeTable"}}}},CreateSecurityGroup:{input:{type:"structure",required:["Description","GroupName"],members:{Description:{locationName:"GroupDescription"},GroupName:{},VpcId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{GroupId:{locationName:"groupId"}}}},CreateSnapshot:{input:{type:"structure",required:["VolumeId"],members:{Description:{},VolumeId:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{shape:"Se1"}},CreateSnapshots:{input:{type:"structure",required:["InstanceSpecification"],members:{Description:{},InstanceSpecification:{type:"structure",members:{InstanceId:{},ExcludeBootVolume:{type:"boolean"}}},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"},CopyTagsFromSource:{}}},output:{type:"structure",members:{Snapshots:{locationName:"snapshotSet",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},Tags:{shape:"Sj",locationName:"tagSet"},Encrypted:{locationName:"encrypted",type:"boolean"},VolumeId:{locationName:"volumeId"},State:{locationName:"state"},VolumeSize:{locationName:"volumeSize",type:"integer"},StartTime:{locationName:"startTime",type:"timestamp"},Progress:{locationName:"progress"},OwnerId:{locationName:"ownerId"},SnapshotId:{locationName:"snapshotId"}}}}}}},CreateSpotDatafeedSubscription:{input:{type:"structure",required:["Bucket"],members:{Bucket:{locationName:"bucket"},DryRun:{locationName:"dryRun",type:"boolean"},Prefix:{locationName:"prefix"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"Sec",locationName:"spotDatafeedSubscription"}}}},CreateSubnet:{input:{type:"structure",required:["CidrBlock","VpcId"],members:{AvailabilityZone:{},AvailabilityZoneId:{},CidrBlock:{},Ipv6CidrBlock:{},OutpostArn:{},VpcId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{Subnet:{shape:"S6z",locationName:"subnet"}}}},CreateTags:{input:{type:"structure",required:["Resources","Tags"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"Sei",locationName:"ResourceId"},Tags:{shape:"Sj",locationName:"Tag"}}}},CreateTrafficMirrorFilter:{input:{type:"structure",members:{Description:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"},ClientToken:{idempotencyToken:true}}},output:{type:"structure",members:{TrafficMirrorFilter:{shape:"Sem",locationName:"trafficMirrorFilter"},ClientToken:{locationName:"clientToken"}}}},CreateTrafficMirrorFilterRule:{input:{type:"structure",required:["TrafficMirrorFilterId","TrafficDirection","RuleNumber","RuleAction","DestinationCidrBlock","SourceCidrBlock"],members:{TrafficMirrorFilterId:{},TrafficDirection:{},RuleNumber:{type:"integer"},RuleAction:{},DestinationPortRange:{shape:"Sew"},SourcePortRange:{shape:"Sew"},Protocol:{type:"integer"},DestinationCidrBlock:{},SourceCidrBlock:{},Description:{},DryRun:{type:"boolean"},ClientToken:{idempotencyToken:true}}},output:{type:"structure",members:{TrafficMirrorFilterRule:{shape:"Seo",locationName:"trafficMirrorFilterRule"},ClientToken:{locationName:"clientToken"}}}},CreateTrafficMirrorSession:{input:{type:"structure",required:["NetworkInterfaceId","TrafficMirrorTargetId","TrafficMirrorFilterId","SessionNumber"],members:{NetworkInterfaceId:{},TrafficMirrorTargetId:{},TrafficMirrorFilterId:{},PacketLength:{type:"integer"},SessionNumber:{type:"integer"},VirtualNetworkId:{type:"integer"},Description:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"},ClientToken:{idempotencyToken:true}}},output:{type:"structure",members:{TrafficMirrorSession:{shape:"Sf1",locationName:"trafficMirrorSession"},ClientToken:{locationName:"clientToken"}}}},CreateTrafficMirrorTarget:{input:{type:"structure",members:{NetworkInterfaceId:{},NetworkLoadBalancerArn:{},Description:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"},ClientToken:{idempotencyToken:true}}},output:{type:"structure",members:{TrafficMirrorTarget:{shape:"Sf4",locationName:"trafficMirrorTarget"},ClientToken:{locationName:"clientToken"}}}},CreateTransitGateway:{input:{type:"structure",members:{Description:{},Options:{type:"structure",members:{AmazonSideAsn:{type:"long"},AutoAcceptSharedAttachments:{},DefaultRouteTableAssociation:{},DefaultRouteTablePropagation:{},VpnEcmpSupport:{},DnsSupport:{},MulticastSupport:{}}},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGateway:{shape:"Sfe",locationName:"transitGateway"}}}},CreateTransitGatewayMulticastDomain:{input:{type:"structure",required:["TransitGatewayId"],members:{TransitGatewayId:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayMulticastDomain:{shape:"Sfj",locationName:"transitGatewayMulticastDomain"}}}},CreateTransitGatewayPeeringAttachment:{input:{type:"structure",required:["TransitGatewayId","PeerTransitGatewayId","PeerAccountId","PeerRegion"],members:{TransitGatewayId:{},PeerTransitGatewayId:{},PeerAccountId:{},PeerRegion:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayPeeringAttachment:{shape:"Se",locationName:"transitGatewayPeeringAttachment"}}}},CreateTransitGatewayRoute:{input:{type:"structure",required:["DestinationCidrBlock","TransitGatewayRouteTableId"],members:{DestinationCidrBlock:{},TransitGatewayRouteTableId:{},TransitGatewayAttachmentId:{},Blackhole:{type:"boolean"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Route:{shape:"Sfq",locationName:"route"}}}},CreateTransitGatewayRouteTable:{input:{type:"structure",required:["TransitGatewayId"],members:{TransitGatewayId:{},TagSpecifications:{shape:"S1l"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayRouteTable:{shape:"Sfx",locationName:"transitGatewayRouteTable"}}}},CreateTransitGatewayVpcAttachment:{input:{type:"structure",required:["TransitGatewayId","VpcId","SubnetIds"],members:{TransitGatewayId:{},VpcId:{},SubnetIds:{shape:"Sg0"},Options:{type:"structure",members:{DnsSupport:{},Ipv6Support:{}}},TagSpecifications:{shape:"S1l"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayVpcAttachment:{shape:"Sn",locationName:"transitGatewayVpcAttachment"}}}},CreateVolume:{input:{type:"structure",required:["AvailabilityZone"],members:{AvailabilityZone:{},Encrypted:{locationName:"encrypted",type:"boolean"},Iops:{type:"integer"},KmsKeyId:{},OutpostArn:{},Size:{type:"integer"},SnapshotId:{},VolumeType:{},DryRun:{locationName:"dryRun",type:"boolean"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},MultiAttachEnabled:{type:"boolean"}}},output:{shape:"Sg4"}},CreateVpc:{input:{type:"structure",required:["CidrBlock"],members:{CidrBlock:{},AmazonProvidedIpv6CidrBlock:{locationName:"amazonProvidedIpv6CidrBlock",type:"boolean"},Ipv6Pool:{},Ipv6CidrBlock:{},DryRun:{locationName:"dryRun",type:"boolean"},InstanceTenancy:{locationName:"instanceTenancy"},Ipv6CidrBlockNetworkBorderGroup:{}}},output:{type:"structure",members:{Vpc:{shape:"S75",locationName:"vpc"}}}},CreateVpcEndpoint:{input:{type:"structure",required:["VpcId","ServiceName"],members:{DryRun:{type:"boolean"},VpcEndpointType:{},VpcId:{},ServiceName:{},PolicyDocument:{},RouteTableIds:{shape:"Sgb",locationName:"RouteTableId"},SubnetIds:{shape:"Sgc",locationName:"SubnetId"},SecurityGroupIds:{shape:"Sgd",locationName:"SecurityGroupId"},ClientToken:{},PrivateDnsEnabled:{type:"boolean"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{VpcEndpoint:{shape:"Sgf",locationName:"vpcEndpoint"},ClientToken:{locationName:"clientToken"}}}},CreateVpcEndpointConnectionNotification:{input:{type:"structure",required:["ConnectionNotificationArn","ConnectionEvents"],members:{DryRun:{type:"boolean"},ServiceId:{},VpcEndpointId:{},ConnectionNotificationArn:{},ConnectionEvents:{shape:"So"},ClientToken:{}}},output:{type:"structure",members:{ConnectionNotification:{shape:"Sgo",locationName:"connectionNotification"},ClientToken:{locationName:"clientToken"}}}},CreateVpcEndpointServiceConfiguration:{input:{type:"structure",required:["NetworkLoadBalancerArns"],members:{DryRun:{type:"boolean"},AcceptanceRequired:{type:"boolean"},PrivateDnsName:{},NetworkLoadBalancerArns:{shape:"So",locationName:"NetworkLoadBalancerArn"},ClientToken:{},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{ServiceConfiguration:{shape:"Sgt",locationName:"serviceConfiguration"},ClientToken:{locationName:"clientToken"}}}},CreateVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PeerOwnerId:{locationName:"peerOwnerId"},PeerVpcId:{locationName:"peerVpcId"},VpcId:{locationName:"vpcId"},PeerRegion:{}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S13",locationName:"vpcPeeringConnection"}}}},CreateVpnConnection:{input:{type:"structure",required:["CustomerGatewayId","Type"],members:{CustomerGatewayId:{},Type:{},VpnGatewayId:{},TransitGatewayId:{},DryRun:{locationName:"dryRun",type:"boolean"},Options:{locationName:"options",type:"structure",members:{EnableAcceleration:{type:"boolean"},StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"},TunnelOptions:{type:"list",member:{type:"structure",members:{TunnelInsideCidr:{},PreSharedKey:{},Phase1LifetimeSeconds:{type:"integer"},Phase2LifetimeSeconds:{type:"integer"},RekeyMarginTimeSeconds:{type:"integer"},RekeyFuzzPercentage:{type:"integer"},ReplayWindowSize:{type:"integer"},DPDTimeoutSeconds:{type:"integer"},Phase1EncryptionAlgorithms:{shape:"Sh7",locationName:"Phase1EncryptionAlgorithm"},Phase2EncryptionAlgorithms:{shape:"Sh9",locationName:"Phase2EncryptionAlgorithm"},Phase1IntegrityAlgorithms:{shape:"Shb",locationName:"Phase1IntegrityAlgorithm"},Phase2IntegrityAlgorithms:{shape:"Shd",locationName:"Phase2IntegrityAlgorithm"},Phase1DHGroupNumbers:{shape:"Shf",locationName:"Phase1DHGroupNumber"},Phase2DHGroupNumbers:{shape:"Shh",locationName:"Phase2DHGroupNumber"},IKEVersions:{shape:"Shj",locationName:"IKEVersion"}}}}}}}},output:{type:"structure",members:{VpnConnection:{shape:"Shm",locationName:"vpnConnection"}}}},CreateVpnConnectionRoute:{input:{type:"structure",required:["DestinationCidrBlock","VpnConnectionId"],members:{DestinationCidrBlock:{},VpnConnectionId:{}}}},CreateVpnGateway:{input:{type:"structure",required:["Type"],members:{AvailabilityZone:{},Type:{},AmazonSideAsn:{type:"long"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{VpnGateway:{shape:"Sif",locationName:"vpnGateway"}}}},DeleteClientVpnEndpoint:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Status:{shape:"S6n",locationName:"status"}}}},DeleteClientVpnRoute:{input:{type:"structure",required:["ClientVpnEndpointId","DestinationCidrBlock"],members:{ClientVpnEndpointId:{},TargetVpcSubnetId:{},DestinationCidrBlock:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Status:{shape:"S6r",locationName:"status"}}}},DeleteCustomerGateway:{input:{type:"structure",required:["CustomerGatewayId"],members:{CustomerGatewayId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId"],members:{DhcpOptionsId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteEgressOnlyInternetGateway:{input:{type:"structure",required:["EgressOnlyInternetGatewayId"],members:{DryRun:{type:"boolean"},EgressOnlyInternetGatewayId:{}}},output:{type:"structure",members:{ReturnCode:{locationName:"returnCode",type:"boolean"}}}},DeleteFleets:{input:{type:"structure",required:["FleetIds","TerminateInstances"],members:{DryRun:{type:"boolean"},FleetIds:{shape:"Sir",locationName:"FleetId"},TerminateInstances:{type:"boolean"}}},output:{type:"structure",members:{SuccessfulFleetDeletions:{locationName:"successfulFleetDeletionSet",type:"list",member:{locationName:"item",type:"structure",members:{CurrentFleetState:{locationName:"currentFleetState"},PreviousFleetState:{locationName:"previousFleetState"},FleetId:{locationName:"fleetId"}}}},UnsuccessfulFleetDeletions:{locationName:"unsuccessfulFleetDeletionSet",type:"list",member:{locationName:"item",type:"structure",members:{Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},FleetId:{locationName:"fleetId"}}}}}}},DeleteFlowLogs:{input:{type:"structure",required:["FlowLogIds"],members:{DryRun:{type:"boolean"},FlowLogIds:{shape:"Sj1",locationName:"FlowLogId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},DeleteFpgaImage:{input:{type:"structure",required:["FpgaImageId"],members:{DryRun:{type:"boolean"},FpgaImageId:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},DeleteInternetGateway:{input:{type:"structure",required:["InternetGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"}}}},DeleteKeyPair:{input:{type:"structure",members:{KeyName:{},KeyPairId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteLaunchTemplate:{input:{type:"structure",members:{DryRun:{type:"boolean"},LaunchTemplateId:{},LaunchTemplateName:{}}},output:{type:"structure",members:{LaunchTemplate:{shape:"Saw",locationName:"launchTemplate"}}}},DeleteLaunchTemplateVersions:{input:{type:"structure",required:["Versions"],members:{DryRun:{type:"boolean"},LaunchTemplateId:{},LaunchTemplateName:{},Versions:{shape:"Sjc",locationName:"LaunchTemplateVersion"}}},output:{type:"structure",members:{SuccessfullyDeletedLaunchTemplateVersions:{locationName:"successfullyDeletedLaunchTemplateVersionSet",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateId:{locationName:"launchTemplateId"},LaunchTemplateName:{locationName:"launchTemplateName"},VersionNumber:{locationName:"versionNumber",type:"long"}}}},UnsuccessfullyDeletedLaunchTemplateVersions:{locationName:"unsuccessfullyDeletedLaunchTemplateVersionSet",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateId:{locationName:"launchTemplateId"},LaunchTemplateName:{locationName:"launchTemplateName"},VersionNumber:{locationName:"versionNumber",type:"long"},ResponseError:{locationName:"responseError",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}}}}},DeleteLocalGatewayRoute:{input:{type:"structure",required:["DestinationCidrBlock","LocalGatewayRouteTableId"],members:{DestinationCidrBlock:{},LocalGatewayRouteTableId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Route:{shape:"Sbz",locationName:"route"}}}},DeleteLocalGatewayRouteTableVpcAssociation:{input:{type:"structure",required:["LocalGatewayRouteTableVpcAssociationId"],members:{LocalGatewayRouteTableVpcAssociationId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayRouteTableVpcAssociation:{shape:"Sc4",locationName:"localGatewayRouteTableVpcAssociation"}}}},DeleteNatGateway:{input:{type:"structure",required:["NatGatewayId"],members:{DryRun:{type:"boolean"},NatGatewayId:{}}},output:{type:"structure",members:{NatGatewayId:{locationName:"natGatewayId"}}}},DeleteNetworkAcl:{input:{type:"structure",required:["NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"}}}},DeleteNetworkAclEntry:{input:{type:"structure",required:["Egress","NetworkAclId","RuleNumber"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Egress:{locationName:"egress",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"}}}},DeleteNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}}},DeleteNetworkInterfacePermission:{input:{type:"structure",required:["NetworkInterfacePermissionId"],members:{NetworkInterfacePermissionId:{},Force:{type:"boolean"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},DeletePlacementGroup:{input:{type:"structure",required:["GroupName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"}}}},DeleteQueuedReservedInstances:{input:{type:"structure",required:["ReservedInstancesIds"],members:{DryRun:{type:"boolean"},ReservedInstancesIds:{locationName:"ReservedInstancesId",type:"list",member:{locationName:"item"}}}},output:{type:"structure",members:{SuccessfulQueuedPurchaseDeletions:{locationName:"successfulQueuedPurchaseDeletionSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}}},FailedQueuedPurchaseDeletions:{locationName:"failedQueuedPurchaseDeletionSet",type:"list",member:{locationName:"item",type:"structure",members:{Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},ReservedInstancesId:{locationName:"reservedInstancesId"}}}}}}},DeleteRoute:{input:{type:"structure",required:["RouteTableId"],members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationIpv6CidrBlock:{locationName:"destinationIpv6CidrBlock"},DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"}}}},DeleteRouteTable:{input:{type:"structure",required:["RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"}}}},DeleteSecurityGroup:{input:{type:"structure",members:{GroupId:{},GroupName:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteSnapshot:{input:{type:"structure",required:["SnapshotId"],members:{SnapshotId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteSubnet:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteTags:{input:{type:"structure",required:["Resources"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"Sei",locationName:"resourceId"},Tags:{shape:"Sj",locationName:"tag"}}}},DeleteTrafficMirrorFilter:{input:{type:"structure",required:["TrafficMirrorFilterId"],members:{TrafficMirrorFilterId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorFilterId:{locationName:"trafficMirrorFilterId"}}}},DeleteTrafficMirrorFilterRule:{input:{type:"structure",required:["TrafficMirrorFilterRuleId"],members:{TrafficMirrorFilterRuleId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorFilterRuleId:{locationName:"trafficMirrorFilterRuleId"}}}},DeleteTrafficMirrorSession:{input:{type:"structure",required:["TrafficMirrorSessionId"],members:{TrafficMirrorSessionId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorSessionId:{locationName:"trafficMirrorSessionId"}}}},DeleteTrafficMirrorTarget:{input:{type:"structure",required:["TrafficMirrorTargetId"],members:{TrafficMirrorTargetId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorTargetId:{locationName:"trafficMirrorTargetId"}}}},DeleteTransitGateway:{input:{type:"structure",required:["TransitGatewayId"],members:{TransitGatewayId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGateway:{shape:"Sfe",locationName:"transitGateway"}}}},DeleteTransitGatewayMulticastDomain:{input:{type:"structure",required:["TransitGatewayMulticastDomainId"],members:{TransitGatewayMulticastDomainId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayMulticastDomain:{shape:"Sfj",locationName:"transitGatewayMulticastDomain"}}}},DeleteTransitGatewayPeeringAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayPeeringAttachment:{shape:"Se",locationName:"transitGatewayPeeringAttachment"}}}},DeleteTransitGatewayRoute:{input:{type:"structure",required:["TransitGatewayRouteTableId","DestinationCidrBlock"],members:{TransitGatewayRouteTableId:{},DestinationCidrBlock:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Route:{shape:"Sfq",locationName:"route"}}}},DeleteTransitGatewayRouteTable:{input:{type:"structure",required:["TransitGatewayRouteTableId"],members:{TransitGatewayRouteTableId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayRouteTable:{shape:"Sfx",locationName:"transitGatewayRouteTable"}}}},DeleteTransitGatewayVpcAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayVpcAttachment:{shape:"Sn",locationName:"transitGatewayVpcAttachment"}}}},DeleteVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteVpc:{input:{type:"structure",required:["VpcId"],members:{VpcId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteVpcEndpointConnectionNotifications:{input:{type:"structure",required:["ConnectionNotificationIds"],members:{DryRun:{type:"boolean"},ConnectionNotificationIds:{shape:"So",locationName:"ConnectionNotificationId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},DeleteVpcEndpointServiceConfigurations:{input:{type:"structure",required:["ServiceIds"],members:{DryRun:{type:"boolean"},ServiceIds:{shape:"Sl4",locationName:"ServiceId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},DeleteVpcEndpoints:{input:{type:"structure",required:["VpcEndpointIds"],members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"Su",locationName:"VpcEndpointId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},DeleteVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},DeleteVpnConnection:{input:{type:"structure",required:["VpnConnectionId"],members:{VpnConnectionId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeleteVpnConnectionRoute:{input:{type:"structure",required:["DestinationCidrBlock","VpnConnectionId"],members:{DestinationCidrBlock:{},VpnConnectionId:{}}}},DeleteVpnGateway:{input:{type:"structure",required:["VpnGatewayId"],members:{VpnGatewayId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeprovisionByoipCidr:{input:{type:"structure",required:["Cidr"],members:{Cidr:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ByoipCidr:{shape:"S1e",locationName:"byoipCidr"}}}},DeregisterImage:{input:{type:"structure",required:["ImageId"],members:{ImageId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DeregisterInstanceEventNotificationAttributes:{input:{type:"structure",members:{DryRun:{type:"boolean"},InstanceTagAttribute:{type:"structure",members:{IncludeAllTagsOfInstance:{type:"boolean"},InstanceTagKeys:{shape:"Sli",locationName:"InstanceTagKey"}}}}},output:{type:"structure",members:{InstanceTagAttribute:{shape:"Slk",locationName:"instanceTagAttribute"}}}},DeregisterTransitGatewayMulticastGroupMembers:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},GroupIpAddress:{},NetworkInterfaceIds:{shape:"Slm"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{DeregisteredMulticastGroupMembers:{locationName:"deregisteredMulticastGroupMembers",type:"structure",members:{TransitGatewayMulticastDomainId:{locationName:"transitGatewayMulticastDomainId"},DeregisteredNetworkInterfaceIds:{shape:"So",locationName:"deregisteredNetworkInterfaceIds"},GroupIpAddress:{locationName:"groupIpAddress"}}}}}},DeregisterTransitGatewayMulticastGroupSources:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},GroupIpAddress:{},NetworkInterfaceIds:{shape:"Slm"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{DeregisteredMulticastGroupSources:{locationName:"deregisteredMulticastGroupSources",type:"structure",members:{TransitGatewayMulticastDomainId:{locationName:"transitGatewayMulticastDomainId"},DeregisteredNetworkInterfaceIds:{shape:"So",locationName:"deregisteredNetworkInterfaceIds"},GroupIpAddress:{locationName:"groupIpAddress"}}}}}},DescribeAccountAttributes:{input:{type:"structure",members:{AttributeNames:{locationName:"attributeName",type:"list",member:{locationName:"attributeName"}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{AccountAttributes:{locationName:"accountAttributeSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeName:{locationName:"attributeName"},AttributeValues:{locationName:"attributeValueSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeValue:{locationName:"attributeValue"}}}}}}}}}},DescribeAddresses:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},PublicIps:{locationName:"PublicIp",type:"list",member:{locationName:"PublicIp"}},AllocationIds:{locationName:"AllocationId",type:"list",member:{locationName:"AllocationId"}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{Addresses:{locationName:"addressesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},PublicIp:{locationName:"publicIp"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"},Domain:{locationName:"domain"},NetworkInterfaceId:{locationName:"networkInterfaceId"},NetworkInterfaceOwnerId:{locationName:"networkInterfaceOwnerId"},PrivateIpAddress:{locationName:"privateIpAddress"},Tags:{shape:"Sj",locationName:"tagSet"},PublicIpv4Pool:{locationName:"publicIpv4Pool"},NetworkBorderGroup:{locationName:"networkBorderGroup"},CustomerOwnedIp:{locationName:"customerOwnedIp"},CustomerOwnedIpv4Pool:{locationName:"customerOwnedIpv4Pool"}}}}}}},DescribeAggregateIdFormat:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{UseLongIdsAggregated:{locationName:"useLongIdsAggregated",type:"boolean"},Statuses:{shape:"Sma",locationName:"statusSet"}}}},DescribeAvailabilityZones:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},ZoneNames:{locationName:"ZoneName",type:"list",member:{locationName:"ZoneName"}},ZoneIds:{locationName:"ZoneId",type:"list",member:{locationName:"ZoneId"}},AllAvailabilityZones:{type:"boolean"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{AvailabilityZones:{locationName:"availabilityZoneInfo",type:"list",member:{locationName:"item",type:"structure",members:{State:{locationName:"zoneState"},OptInStatus:{locationName:"optInStatus"},Messages:{locationName:"messageSet",type:"list",member:{locationName:"item",type:"structure",members:{Message:{locationName:"message"}}}},RegionName:{locationName:"regionName"},ZoneName:{locationName:"zoneName"},ZoneId:{locationName:"zoneId"},GroupName:{locationName:"groupName"},NetworkBorderGroup:{locationName:"networkBorderGroup"}}}}}}},DescribeBundleTasks:{input:{type:"structure",members:{BundleIds:{locationName:"BundleId",type:"list",member:{locationName:"BundleId"}},Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{BundleTasks:{locationName:"bundleInstanceTasksSet",type:"list",member:{shape:"S4k",locationName:"item"}}}}},DescribeByoipCidrs:{input:{type:"structure",required:["MaxResults"],members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ByoipCidrs:{locationName:"byoipCidrSet",type:"list",member:{shape:"S1e",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeCapacityReservations:{input:{type:"structure",members:{CapacityReservationIds:{locationName:"CapacityReservationId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},CapacityReservations:{locationName:"capacityReservationSet",type:"list",member:{shape:"S6c",locationName:"item"}}}}},DescribeClassicLinkInstances:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"Sn1",locationName:"InstanceId"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{Groups:{shape:"Scv",locationName:"groupSet"},InstanceId:{locationName:"instanceId"},Tags:{shape:"Sj",locationName:"tagSet"},VpcId:{locationName:"vpcId"}}}},NextToken:{locationName:"nextToken"}}}},DescribeClientVpnAuthorizationRules:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},DryRun:{type:"boolean"},NextToken:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"}}},output:{type:"structure",members:{AuthorizationRules:{locationName:"authorizationRule",type:"list",member:{locationName:"item",type:"structure",members:{ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},Description:{locationName:"description"},GroupId:{locationName:"groupId"},AccessAll:{locationName:"accessAll",type:"boolean"},DestinationCidr:{locationName:"destinationCidr"},Status:{shape:"S40",locationName:"status"}}}},NextToken:{locationName:"nextToken"}}}},DescribeClientVpnConnections:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},Filters:{shape:"Sm1",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Connections:{locationName:"connections",type:"list",member:{locationName:"item",type:"structure",members:{ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},Timestamp:{locationName:"timestamp"},ConnectionId:{locationName:"connectionId"},Username:{locationName:"username"},ConnectionEstablishedTime:{locationName:"connectionEstablishedTime"},IngressBytes:{locationName:"ingressBytes"},EgressBytes:{locationName:"egressBytes"},IngressPackets:{locationName:"ingressPackets"},EgressPackets:{locationName:"egressPackets"},ClientIp:{locationName:"clientIp"},CommonName:{locationName:"commonName"},Status:{shape:"Sng",locationName:"status"},ConnectionEndTime:{locationName:"connectionEndTime"}}}},NextToken:{locationName:"nextToken"}}}},DescribeClientVpnEndpoints:{input:{type:"structure",members:{ClientVpnEndpointIds:{locationName:"ClientVpnEndpointId",type:"list",member:{locationName:"item"}},MaxResults:{type:"integer"},NextToken:{},Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ClientVpnEndpoints:{locationName:"clientVpnEndpoint",type:"list",member:{locationName:"item",type:"structure",members:{ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},Description:{locationName:"description"},Status:{shape:"S6n",locationName:"status"},CreationTime:{locationName:"creationTime"},DeletionTime:{locationName:"deletionTime"},DnsName:{locationName:"dnsName"},ClientCidrBlock:{locationName:"clientCidrBlock"},DnsServers:{shape:"So",locationName:"dnsServer"},SplitTunnel:{locationName:"splitTunnel",type:"boolean"},VpnProtocol:{locationName:"vpnProtocol"},TransportProtocol:{locationName:"transportProtocol"},VpnPort:{locationName:"vpnPort",type:"integer"},AssociatedTargetNetworks:{deprecated:true,deprecatedMessage:"This property is deprecated. To view the target networks associated with a Client VPN endpoint, call DescribeClientVpnTargetNetworks and inspect the clientVpnTargetNetworks response element.",locationName:"associatedTargetNetwork",type:"list",member:{locationName:"item",type:"structure",members:{NetworkId:{locationName:"networkId"},NetworkType:{locationName:"networkType"}}}},ServerCertificateArn:{locationName:"serverCertificateArn"},AuthenticationOptions:{locationName:"authenticationOptions",type:"list",member:{locationName:"item",type:"structure",members:{Type:{locationName:"type"},ActiveDirectory:{locationName:"activeDirectory",type:"structure",members:{DirectoryId:{locationName:"directoryId"}}},MutualAuthentication:{locationName:"mutualAuthentication",type:"structure",members:{ClientRootCertificateChain:{locationName:"clientRootCertificateChain"}}}}}},ConnectionLogOptions:{locationName:"connectionLogOptions",type:"structure",members:{Enabled:{type:"boolean"},CloudwatchLogGroup:{},CloudwatchLogStream:{}}},Tags:{shape:"Sj",locationName:"tagSet"},SecurityGroupIds:{shape:"S1u",locationName:"securityGroupIdSet"},VpcId:{locationName:"vpcId"}}}},NextToken:{locationName:"nextToken"}}}},DescribeClientVpnRoutes:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Routes:{locationName:"routes",type:"list",member:{locationName:"item",type:"structure",members:{ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},DestinationCidr:{locationName:"destinationCidr"},TargetSubnet:{locationName:"targetSubnet"},Type:{locationName:"type"},Origin:{locationName:"origin"},Status:{shape:"S6r",locationName:"status"},Description:{locationName:"description"}}}},NextToken:{locationName:"nextToken"}}}},DescribeClientVpnTargetNetworks:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},AssociationIds:{shape:"So"},MaxResults:{type:"integer"},NextToken:{},Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ClientVpnTargetNetworks:{locationName:"clientVpnTargetNetworks",type:"list",member:{locationName:"item",type:"structure",members:{AssociationId:{locationName:"associationId"},VpcId:{locationName:"vpcId"},TargetNetworkId:{locationName:"targetNetworkId"},ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},Status:{shape:"S2d",locationName:"status"},SecurityGroups:{shape:"So",locationName:"securityGroups"}}}},NextToken:{locationName:"nextToken"}}}},DescribeCoipPools:{input:{type:"structure",members:{PoolIds:{locationName:"PoolId",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{CoipPools:{locationName:"coipPoolSet",type:"list",member:{locationName:"item",type:"structure",members:{PoolId:{locationName:"poolId"},PoolCidrs:{shape:"So",locationName:"poolCidrSet"},LocalGatewayRouteTableId:{locationName:"localGatewayRouteTableId"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeConversionTasks:{input:{type:"structure",members:{ConversionTaskIds:{locationName:"conversionTaskId",type:"list",member:{locationName:"item"}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{ConversionTasks:{locationName:"conversionTasks",type:"list",member:{shape:"Soh",locationName:"item"}}}}},DescribeCustomerGateways:{input:{type:"structure",members:{CustomerGatewayIds:{locationName:"CustomerGatewayId",type:"list",member:{locationName:"CustomerGatewayId"}},Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{CustomerGateways:{locationName:"customerGatewaySet",type:"list",member:{shape:"S6w",locationName:"item"}}}}},DescribeDhcpOptions:{input:{type:"structure",members:{DhcpOptionsIds:{locationName:"DhcpOptionsId",type:"list",member:{locationName:"DhcpOptionsId"}},Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{DhcpOptions:{locationName:"dhcpOptionsSet",type:"list",member:{shape:"S7e",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeEgressOnlyInternetGateways:{input:{type:"structure",members:{DryRun:{type:"boolean"},EgressOnlyInternetGatewayIds:{locationName:"EgressOnlyInternetGatewayId",type:"list",member:{locationName:"item"}},MaxResults:{type:"integer"},NextToken:{},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{EgressOnlyInternetGateways:{locationName:"egressOnlyInternetGatewaySet",type:"list",member:{shape:"S7l",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeElasticGpus:{input:{type:"structure",members:{ElasticGpuIds:{locationName:"ElasticGpuId",type:"list",member:{locationName:"item"}},DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ElasticGpuSet:{locationName:"elasticGpuSet",type:"list",member:{locationName:"item",type:"structure",members:{ElasticGpuId:{locationName:"elasticGpuId"},AvailabilityZone:{locationName:"availabilityZone"},ElasticGpuType:{locationName:"elasticGpuType"},ElasticGpuHealth:{locationName:"elasticGpuHealth",type:"structure",members:{Status:{locationName:"status"}}},ElasticGpuState:{locationName:"elasticGpuState"},InstanceId:{locationName:"instanceId"},Tags:{shape:"Sj",locationName:"tagSet"}}}},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}}},DescribeExportImageTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},ExportImageTaskIds:{locationName:"ExportImageTaskId",type:"list",member:{locationName:"ExportImageTaskId"}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ExportImageTasks:{locationName:"exportImageTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},ExportImageTaskId:{locationName:"exportImageTaskId"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},S3ExportLocation:{shape:"Spk",locationName:"s3ExportLocation"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"}}}},NextToken:{locationName:"nextToken"}}}},DescribeExportTasks:{input:{type:"structure",members:{ExportTaskIds:{locationName:"exportTaskId",type:"list",member:{locationName:"ExportTaskId"}},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{ExportTasks:{locationName:"exportTaskSet",type:"list",member:{shape:"S99",locationName:"item"}}}}},DescribeFastSnapshotRestores:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{FastSnapshotRestores:{locationName:"fastSnapshotRestoreSet",type:"list",member:{locationName:"item",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"state"},StateTransitionReason:{locationName:"stateTransitionReason"},OwnerId:{locationName:"ownerId"},OwnerAlias:{locationName:"ownerAlias"},EnablingTime:{locationName:"enablingTime",type:"timestamp"},OptimizingTime:{locationName:"optimizingTime",type:"timestamp"},EnabledTime:{locationName:"enabledTime",type:"timestamp"},DisablingTime:{locationName:"disablingTime",type:"timestamp"},DisabledTime:{locationName:"disabledTime",type:"timestamp"}}}},NextToken:{locationName:"nextToken"}}}},DescribeFleetHistory:{input:{type:"structure",required:["FleetId","StartTime"],members:{DryRun:{type:"boolean"},EventType:{},MaxResults:{type:"integer"},NextToken:{},FleetId:{},StartTime:{type:"timestamp"}}},output:{type:"structure",members:{HistoryRecords:{locationName:"historyRecordSet",type:"list",member:{locationName:"item",type:"structure",members:{EventInformation:{shape:"Sq1",locationName:"eventInformation"},EventType:{locationName:"eventType"},Timestamp:{locationName:"timestamp",type:"timestamp"}}}},LastEvaluatedTime:{locationName:"lastEvaluatedTime",type:"timestamp"},NextToken:{locationName:"nextToken"},FleetId:{locationName:"fleetId"},StartTime:{locationName:"startTime",type:"timestamp"}}}},DescribeFleetInstances:{input:{type:"structure",required:["FleetId"],members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{},FleetId:{},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{ActiveInstances:{shape:"Sq4",locationName:"activeInstanceSet"},NextToken:{locationName:"nextToken"},FleetId:{locationName:"fleetId"}}}},DescribeFleets:{input:{type:"structure",members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{},FleetIds:{shape:"Sir",locationName:"FleetId"},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},Fleets:{locationName:"fleetSet",type:"list",member:{locationName:"item",type:"structure",members:{ActivityStatus:{locationName:"activityStatus"},CreateTime:{locationName:"createTime",type:"timestamp"},FleetId:{locationName:"fleetId"},FleetState:{locationName:"fleetState"},ClientToken:{locationName:"clientToken"},ExcessCapacityTerminationPolicy:{locationName:"excessCapacityTerminationPolicy"},FulfilledCapacity:{locationName:"fulfilledCapacity",type:"double"},FulfilledOnDemandCapacity:{locationName:"fulfilledOnDemandCapacity",type:"double"},LaunchTemplateConfigs:{locationName:"launchTemplateConfigs",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateSpecification:{shape:"S8f",locationName:"launchTemplateSpecification"},Overrides:{locationName:"overrides",type:"list",member:{shape:"S8g",locationName:"item"}}}}},TargetCapacitySpecification:{locationName:"targetCapacitySpecification",type:"structure",members:{TotalTargetCapacity:{locationName:"totalTargetCapacity",type:"integer"},OnDemandTargetCapacity:{locationName:"onDemandTargetCapacity",type:"integer"},SpotTargetCapacity:{locationName:"spotTargetCapacity",type:"integer"},DefaultTargetCapacityType:{locationName:"defaultTargetCapacityType"}}},TerminateInstancesWithExpiration:{locationName:"terminateInstancesWithExpiration",type:"boolean"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},ReplaceUnhealthyInstances:{locationName:"replaceUnhealthyInstances",type:"boolean"},SpotOptions:{locationName:"spotOptions",type:"structure",members:{AllocationStrategy:{locationName:"allocationStrategy"},InstanceInterruptionBehavior:{locationName:"instanceInterruptionBehavior"},InstancePoolsToUseCount:{locationName:"instancePoolsToUseCount",type:"integer"},SingleInstanceType:{locationName:"singleInstanceType",type:"boolean"},SingleAvailabilityZone:{locationName:"singleAvailabilityZone",type:"boolean"},MinTargetCapacity:{locationName:"minTargetCapacity",type:"integer"},MaxTotalPrice:{locationName:"maxTotalPrice"}}},OnDemandOptions:{locationName:"onDemandOptions",type:"structure",members:{AllocationStrategy:{locationName:"allocationStrategy"},CapacityReservationOptions:{locationName:"capacityReservationOptions",type:"structure",members:{UsageStrategy:{locationName:"usageStrategy"}}},SingleInstanceType:{locationName:"singleInstanceType",type:"boolean"},SingleAvailabilityZone:{locationName:"singleAvailabilityZone",type:"boolean"},MinTargetCapacity:{locationName:"minTargetCapacity",type:"integer"},MaxTotalPrice:{locationName:"maxTotalPrice"}}},Tags:{shape:"Sj",locationName:"tagSet"},Errors:{locationName:"errorSet",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateAndOverrides:{shape:"S8e",locationName:"launchTemplateAndOverrides"},Lifecycle:{locationName:"lifecycle"},ErrorCode:{locationName:"errorCode"},ErrorMessage:{locationName:"errorMessage"}}}},Instances:{locationName:"fleetInstanceSet",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateAndOverrides:{shape:"S8e",locationName:"launchTemplateAndOverrides"},Lifecycle:{locationName:"lifecycle"},InstanceIds:{shape:"S8l",locationName:"instanceIds"},InstanceType:{locationName:"instanceType"},Platform:{locationName:"platform"}}}}}}}}}},DescribeFlowLogs:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filter:{shape:"Sm1"},FlowLogIds:{shape:"Sj1",locationName:"FlowLogId"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{FlowLogs:{locationName:"flowLogSet",type:"list",member:{locationName:"item",type:"structure",members:{CreationTime:{locationName:"creationTime",type:"timestamp"},DeliverLogsErrorMessage:{locationName:"deliverLogsErrorMessage"},DeliverLogsPermissionArn:{locationName:"deliverLogsPermissionArn"},DeliverLogsStatus:{locationName:"deliverLogsStatus"},FlowLogId:{locationName:"flowLogId"},FlowLogStatus:{locationName:"flowLogStatus"},LogGroupName:{locationName:"logGroupName"},ResourceId:{locationName:"resourceId"},TrafficType:{locationName:"trafficType"},LogDestinationType:{locationName:"logDestinationType"},LogDestination:{locationName:"logDestination"},LogFormat:{locationName:"logFormat"},Tags:{shape:"Sj",locationName:"tagSet"},MaxAggregationInterval:{locationName:"maxAggregationInterval",type:"integer"}}}},NextToken:{locationName:"nextToken"}}}},DescribeFpgaImageAttribute:{input:{type:"structure",required:["FpgaImageId","Attribute"],members:{DryRun:{type:"boolean"},FpgaImageId:{},Attribute:{}}},output:{type:"structure",members:{FpgaImageAttribute:{shape:"Squ",locationName:"fpgaImageAttribute"}}}},DescribeFpgaImages:{input:{type:"structure",members:{DryRun:{type:"boolean"},FpgaImageIds:{locationName:"FpgaImageId",type:"list",member:{locationName:"item"}},Owners:{shape:"Sr3",locationName:"Owner"},Filters:{shape:"Sm1",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{FpgaImages:{locationName:"fpgaImageSet",type:"list",member:{locationName:"item",type:"structure",members:{FpgaImageId:{locationName:"fpgaImageId"},FpgaImageGlobalId:{locationName:"fpgaImageGlobalId"},Name:{locationName:"name"},Description:{locationName:"description"},ShellVersion:{locationName:"shellVersion"},PciId:{locationName:"pciId",type:"structure",members:{DeviceId:{},VendorId:{},SubsystemId:{},SubsystemVendorId:{}}},State:{locationName:"state",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},CreateTime:{locationName:"createTime",type:"timestamp"},UpdateTime:{locationName:"updateTime",type:"timestamp"},OwnerId:{locationName:"ownerId"},OwnerAlias:{locationName:"ownerAlias"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},Tags:{shape:"Sj",locationName:"tags"},Public:{locationName:"public",type:"boolean"},DataRetentionSupport:{locationName:"dataRetentionSupport",type:"boolean"}}}},NextToken:{locationName:"nextToken"}}}},DescribeHostReservationOfferings:{input:{type:"structure",members:{Filter:{shape:"Sm1"},MaxDuration:{type:"integer"},MaxResults:{type:"integer"},MinDuration:{type:"integer"},NextToken:{},OfferingId:{}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},OfferingSet:{locationName:"offeringSet",type:"list",member:{locationName:"item",type:"structure",members:{CurrencyCode:{locationName:"currencyCode"},Duration:{locationName:"duration",type:"integer"},HourlyPrice:{locationName:"hourlyPrice"},InstanceFamily:{locationName:"instanceFamily"},OfferingId:{locationName:"offeringId"},PaymentOption:{locationName:"paymentOption"},UpfrontPrice:{locationName:"upfrontPrice"}}}}}}},DescribeHostReservations:{input:{type:"structure",members:{Filter:{shape:"Sm1"},HostReservationIdSet:{type:"list",member:{locationName:"item"}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{HostReservationSet:{locationName:"hostReservationSet",type:"list",member:{locationName:"item",type:"structure",members:{Count:{locationName:"count",type:"integer"},CurrencyCode:{locationName:"currencyCode"},Duration:{locationName:"duration",type:"integer"},End:{locationName:"end",type:"timestamp"},HostIdSet:{shape:"Sro",locationName:"hostIdSet"},HostReservationId:{locationName:"hostReservationId"},HourlyPrice:{locationName:"hourlyPrice"},InstanceFamily:{locationName:"instanceFamily"},OfferingId:{locationName:"offeringId"},PaymentOption:{locationName:"paymentOption"},Start:{locationName:"start",type:"timestamp"},State:{locationName:"state"},UpfrontPrice:{locationName:"upfrontPrice"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeHosts:{input:{type:"structure",members:{Filter:{shape:"Sm1",locationName:"filter"},HostIds:{shape:"Srr",locationName:"hostId"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Hosts:{locationName:"hostSet",type:"list",member:{locationName:"item",type:"structure",members:{AutoPlacement:{locationName:"autoPlacement"},AvailabilityZone:{locationName:"availabilityZone"},AvailableCapacity:{locationName:"availableCapacity",type:"structure",members:{AvailableInstanceCapacity:{locationName:"availableInstanceCapacity",type:"list",member:{locationName:"item",type:"structure",members:{AvailableCapacity:{locationName:"availableCapacity",type:"integer"},InstanceType:{locationName:"instanceType"},TotalCapacity:{locationName:"totalCapacity",type:"integer"}}}},AvailableVCpus:{locationName:"availableVCpus",type:"integer"}}},ClientToken:{locationName:"clientToken"},HostId:{locationName:"hostId"},HostProperties:{locationName:"hostProperties",type:"structure",members:{Cores:{locationName:"cores",type:"integer"},InstanceType:{locationName:"instanceType"},InstanceFamily:{locationName:"instanceFamily"},Sockets:{locationName:"sockets",type:"integer"},TotalVCpus:{locationName:"totalVCpus",type:"integer"}}},HostReservationId:{locationName:"hostReservationId"},Instances:{locationName:"instances",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceType:{locationName:"instanceType"},OwnerId:{locationName:"ownerId"}}}},State:{locationName:"state"},AllocationTime:{locationName:"allocationTime",type:"timestamp"},ReleaseTime:{locationName:"releaseTime",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"},HostRecovery:{locationName:"hostRecovery"},AllowsMultipleInstanceTypes:{locationName:"allowsMultipleInstanceTypes"},OwnerId:{locationName:"ownerId"},AvailabilityZoneId:{locationName:"availabilityZoneId"},MemberOfServiceLinkedResourceGroup:{locationName:"memberOfServiceLinkedResourceGroup",type:"boolean"}}}},NextToken:{locationName:"nextToken"}}}},DescribeIamInstanceProfileAssociations:{input:{type:"structure",members:{AssociationIds:{locationName:"AssociationId",type:"list",member:{locationName:"AssociationId"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IamInstanceProfileAssociations:{locationName:"iamInstanceProfileAssociationSet",type:"list",member:{shape:"S2k",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeIdFormat:{input:{type:"structure",members:{Resource:{}}},output:{type:"structure",members:{Statuses:{shape:"Sma",locationName:"statusSet"}}}},DescribeIdentityIdFormat:{input:{type:"structure",required:["PrincipalArn"],members:{PrincipalArn:{locationName:"principalArn"},Resource:{locationName:"resource"}}},output:{type:"structure",members:{Statuses:{shape:"Sma",locationName:"statusSet"}}}},DescribeImageAttribute:{input:{type:"structure",required:["Attribute","ImageId"],members:{Attribute:{},ImageId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{BlockDeviceMappings:{shape:"Ssg",locationName:"blockDeviceMapping"},ImageId:{locationName:"imageId"},LaunchPermissions:{shape:"Ssh",locationName:"launchPermission"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},Description:{shape:"S7i",locationName:"description"},KernelId:{shape:"S7i",locationName:"kernel"},RamdiskId:{shape:"S7i",locationName:"ramdisk"},SriovNetSupport:{shape:"S7i",locationName:"sriovNetSupport"}}}},DescribeImages:{input:{type:"structure",members:{ExecutableUsers:{locationName:"ExecutableBy",type:"list",member:{locationName:"ExecutableBy"}},Filters:{shape:"Sm1",locationName:"Filter"},ImageIds:{locationName:"ImageId",type:"list",member:{locationName:"ImageId"}},Owners:{shape:"Sr3",locationName:"Owner"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{Images:{locationName:"imagesSet",type:"list",member:{locationName:"item",type:"structure",members:{Architecture:{locationName:"architecture"},CreationDate:{locationName:"creationDate"},ImageId:{locationName:"imageId"},ImageLocation:{locationName:"imageLocation"},ImageType:{locationName:"imageType"},Public:{locationName:"isPublic",type:"boolean"},KernelId:{locationName:"kernelId"},OwnerId:{locationName:"imageOwnerId"},Platform:{locationName:"platform"},PlatformDetails:{locationName:"platformDetails"},UsageOperation:{locationName:"usageOperation"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},RamdiskId:{locationName:"ramdiskId"},State:{locationName:"imageState"},BlockDeviceMappings:{shape:"Ssg",locationName:"blockDeviceMapping"},Description:{locationName:"description"},EnaSupport:{locationName:"enaSupport",type:"boolean"},Hypervisor:{locationName:"hypervisor"},ImageOwnerAlias:{locationName:"imageOwnerAlias"},Name:{locationName:"name"},RootDeviceName:{locationName:"rootDeviceName"},RootDeviceType:{locationName:"rootDeviceType"},SriovNetSupport:{locationName:"sriovNetSupport"},StateReason:{shape:"Ssu",locationName:"stateReason"},Tags:{shape:"Sj",locationName:"tagSet"},VirtualizationType:{locationName:"virtualizationType"}}}}}}},DescribeImportImageTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1"},ImportTaskIds:{locationName:"ImportTaskId",type:"list",member:{locationName:"ImportTaskId"}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ImportImageTasks:{locationName:"importImageTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{Architecture:{locationName:"architecture"},Description:{locationName:"description"},Encrypted:{locationName:"encrypted",type:"boolean"},Hypervisor:{locationName:"hypervisor"},ImageId:{locationName:"imageId"},ImportTaskId:{locationName:"importTaskId"},KmsKeyId:{locationName:"kmsKeyId"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Progress:{locationName:"progress"},SnapshotDetails:{shape:"St2",locationName:"snapshotDetailSet"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Tags:{shape:"Sj",locationName:"tagSet"},LicenseSpecifications:{shape:"St5",locationName:"licenseSpecifications"}}}},NextToken:{locationName:"nextToken"}}}},DescribeImportSnapshotTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1"},ImportTaskIds:{locationName:"ImportTaskId",type:"list",member:{locationName:"ImportTaskId"}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ImportSnapshotTasks:{locationName:"importSnapshotTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"Std",locationName:"snapshotTaskDetail"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeInstanceAttribute:{input:{type:"structure",required:["Attribute","InstanceId"],members:{Attribute:{locationName:"attribute"},DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"}}},output:{type:"structure",members:{Groups:{shape:"Scv",locationName:"groupSet"},BlockDeviceMappings:{shape:"Sth",locationName:"blockDeviceMapping"},DisableApiTermination:{shape:"Stk",locationName:"disableApiTermination"},EnaSupport:{shape:"Stk",locationName:"enaSupport"},EbsOptimized:{shape:"Stk",locationName:"ebsOptimized"},InstanceId:{locationName:"instanceId"},InstanceInitiatedShutdownBehavior:{shape:"S7i",locationName:"instanceInitiatedShutdownBehavior"},InstanceType:{shape:"S7i",locationName:"instanceType"},KernelId:{shape:"S7i",locationName:"kernel"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},RamdiskId:{shape:"S7i",locationName:"ramdisk"},RootDeviceName:{shape:"S7i",locationName:"rootDeviceName"},SourceDestCheck:{shape:"Stk",locationName:"sourceDestCheck"},SriovNetSupport:{shape:"S7i",locationName:"sriovNetSupport"},UserData:{shape:"S7i",locationName:"userData"}}}},DescribeInstanceCreditSpecifications:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},InstanceIds:{shape:"Sn1",locationName:"InstanceId"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{InstanceCreditSpecifications:{locationName:"instanceCreditSpecificationSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},CpuCredits:{locationName:"cpuCredits"}}}},NextToken:{locationName:"nextToken"}}}},DescribeInstanceEventNotificationAttributes:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{InstanceTagAttribute:{shape:"Slk",locationName:"instanceTagAttribute"}}}},DescribeInstanceStatus:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},InstanceIds:{shape:"Sn1",locationName:"InstanceId"},MaxResults:{type:"integer"},NextToken:{},DryRun:{locationName:"dryRun",type:"boolean"},IncludeAllInstances:{locationName:"includeAllInstances",type:"boolean"}}},output:{type:"structure",members:{InstanceStatuses:{locationName:"instanceStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},OutpostArn:{locationName:"outpostArn"},Events:{locationName:"eventsSet",type:"list",member:{shape:"Stx",locationName:"item"}},InstanceId:{locationName:"instanceId"},InstanceState:{shape:"Su0",locationName:"instanceState"},InstanceStatus:{shape:"Su2",locationName:"instanceStatus"},SystemStatus:{shape:"Su2",locationName:"systemStatus"}}}},NextToken:{locationName:"nextToken"}}}},DescribeInstanceTypeOfferings:{input:{type:"structure",members:{DryRun:{type:"boolean"},LocationType:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{InstanceTypeOfferings:{locationName:"instanceTypeOfferingSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},LocationType:{locationName:"locationType"},Location:{locationName:"location"}}}},NextToken:{locationName:"nextToken"}}}},DescribeInstanceTypes:{input:{type:"structure",members:{DryRun:{type:"boolean"},InstanceTypes:{locationName:"InstanceType",type:"list",member:{}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{InstanceTypes:{locationName:"instanceTypeSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},CurrentGeneration:{locationName:"currentGeneration",type:"boolean"},FreeTierEligible:{locationName:"freeTierEligible",type:"boolean"},SupportedUsageClasses:{locationName:"supportedUsageClasses",type:"list",member:{locationName:"item"}},SupportedRootDeviceTypes:{locationName:"supportedRootDeviceTypes",type:"list",member:{locationName:"item"}},BareMetal:{locationName:"bareMetal",type:"boolean"},Hypervisor:{locationName:"hypervisor"},ProcessorInfo:{locationName:"processorInfo",type:"structure",members:{SupportedArchitectures:{locationName:"supportedArchitectures",type:"list",member:{locationName:"item"}},SustainedClockSpeedInGhz:{locationName:"sustainedClockSpeedInGhz",type:"double"}}},VCpuInfo:{locationName:"vCpuInfo",type:"structure",members:{DefaultVCpus:{locationName:"defaultVCpus",type:"integer"},DefaultCores:{locationName:"defaultCores",type:"integer"},DefaultThreadsPerCore:{locationName:"defaultThreadsPerCore",type:"integer"},ValidCores:{locationName:"validCores",type:"list",member:{locationName:"item",type:"integer"}},ValidThreadsPerCore:{locationName:"validThreadsPerCore",type:"list",member:{locationName:"item",type:"integer"}}}},MemoryInfo:{locationName:"memoryInfo",type:"structure",members:{SizeInMiB:{locationName:"sizeInMiB",type:"long"}}},InstanceStorageSupported:{locationName:"instanceStorageSupported",type:"boolean"},InstanceStorageInfo:{locationName:"instanceStorageInfo",type:"structure",members:{TotalSizeInGB:{locationName:"totalSizeInGB",type:"long"},Disks:{locationName:"disks",type:"list",member:{locationName:"item",type:"structure",members:{SizeInGB:{locationName:"sizeInGB",type:"long"},Count:{locationName:"count",type:"integer"},Type:{locationName:"type"}}}}}},EbsInfo:{locationName:"ebsInfo",type:"structure",members:{EbsOptimizedSupport:{locationName:"ebsOptimizedSupport"},EncryptionSupport:{locationName:"encryptionSupport"}}},NetworkInfo:{locationName:"networkInfo",type:"structure",members:{NetworkPerformance:{locationName:"networkPerformance"},MaximumNetworkInterfaces:{locationName:"maximumNetworkInterfaces",type:"integer"},Ipv4AddressesPerInterface:{locationName:"ipv4AddressesPerInterface",type:"integer"},Ipv6AddressesPerInterface:{locationName:"ipv6AddressesPerInterface",type:"integer"},Ipv6Supported:{locationName:"ipv6Supported",type:"boolean"},EnaSupport:{locationName:"enaSupport"}}},GpuInfo:{locationName:"gpuInfo",type:"structure",members:{Gpus:{locationName:"gpus",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Manufacturer:{locationName:"manufacturer"},Count:{locationName:"count",type:"integer"},MemoryInfo:{locationName:"memoryInfo",type:"structure",members:{SizeInMiB:{locationName:"sizeInMiB",type:"integer"}}}}}},TotalGpuMemoryInMiB:{locationName:"totalGpuMemoryInMiB",type:"integer"}}},FpgaInfo:{locationName:"fpgaInfo",type:"structure",members:{Fpgas:{locationName:"fpgas",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Manufacturer:{locationName:"manufacturer"},Count:{locationName:"count",type:"integer"},MemoryInfo:{locationName:"memoryInfo",type:"structure",members:{SizeInMiB:{locationName:"sizeInMiB",type:"integer"}}}}}},TotalFpgaMemoryInMiB:{locationName:"totalFpgaMemoryInMiB",type:"integer"}}},PlacementGroupInfo:{locationName:"placementGroupInfo",type:"structure",members:{SupportedStrategies:{locationName:"supportedStrategies",type:"list",member:{locationName:"item"}}}},InferenceAcceleratorInfo:{locationName:"inferenceAcceleratorInfo",type:"structure",members:{Accelerators:{locationName:"item",type:"list",member:{type:"structure",members:{Count:{locationName:"count",type:"integer"},Name:{locationName:"name"},Manufacturer:{locationName:"manufacturer"}}}}}},HibernationSupported:{locationName:"hibernationSupported",type:"boolean"},BurstablePerformanceSupported:{locationName:"burstablePerformanceSupported",type:"boolean"},DedicatedHostsSupported:{locationName:"dedicatedHostsSupported",type:"boolean"},AutoRecoverySupported:{locationName:"autoRecoverySupported",type:"boolean"}}}},NextToken:{locationName:"nextToken"}}}},DescribeInstances:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},InstanceIds:{shape:"Sn1",locationName:"InstanceId"},DryRun:{locationName:"dryRun",type:"boolean"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Reservations:{locationName:"reservationSet",type:"list",member:{shape:"Swk",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeInternetGateways:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayIds:{locationName:"internetGatewayId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{InternetGateways:{locationName:"internetGatewaySet",type:"list",member:{shape:"S9f",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeIpv6Pools:{input:{type:"structure",members:{PoolIds:{locationName:"PoolId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"},DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{Ipv6Pools:{locationName:"ipv6PoolSet",type:"list",member:{locationName:"item",type:"structure",members:{PoolId:{locationName:"poolId"},Description:{locationName:"description"},PoolCidrBlocks:{locationName:"poolCidrBlockSet",type:"list",member:{locationName:"item",type:"structure",members:{Cidr:{locationName:"poolCidrBlock"}}}},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeKeyPairs:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},KeyNames:{locationName:"KeyName",type:"list",member:{locationName:"KeyName"}},KeyPairIds:{locationName:"KeyPairId",type:"list",member:{locationName:"KeyPairId"}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{KeyPairs:{locationName:"keySet",type:"list",member:{locationName:"item",type:"structure",members:{KeyPairId:{locationName:"keyPairId"},KeyFingerprint:{locationName:"keyFingerprint"},KeyName:{locationName:"keyName"},Tags:{shape:"Sj",locationName:"tagSet"}}}}}}},DescribeLaunchTemplateVersions:{input:{type:"structure",members:{DryRun:{type:"boolean"},LaunchTemplateId:{},LaunchTemplateName:{},Versions:{shape:"Sjc",locationName:"LaunchTemplateVersion"},MinVersion:{},MaxVersion:{},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{LaunchTemplateVersions:{locationName:"launchTemplateVersionSet",type:"list",member:{shape:"Sb2",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeLaunchTemplates:{input:{type:"structure",members:{DryRun:{type:"boolean"},LaunchTemplateIds:{locationName:"LaunchTemplateId",type:"list",member:{locationName:"item"}},LaunchTemplateNames:{locationName:"LaunchTemplateName",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{LaunchTemplates:{locationName:"launchTemplates",type:"list",member:{shape:"Saw",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations:{input:{type:"structure",members:{LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds:{locationName:"LocalGatewayRouteTableVirtualInterfaceGroupAssociationId",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayRouteTableVirtualInterfaceGroupAssociations:{locationName:"localGatewayRouteTableVirtualInterfaceGroupAssociationSet",type:"list",member:{locationName:"item",type:"structure",members:{LocalGatewayRouteTableVirtualInterfaceGroupAssociationId:{locationName:"localGatewayRouteTableVirtualInterfaceGroupAssociationId"},LocalGatewayVirtualInterfaceGroupId:{locationName:"localGatewayVirtualInterfaceGroupId"},LocalGatewayId:{locationName:"localGatewayId"},LocalGatewayRouteTableId:{locationName:"localGatewayRouteTableId"},State:{locationName:"state"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeLocalGatewayRouteTableVpcAssociations:{input:{type:"structure",members:{LocalGatewayRouteTableVpcAssociationIds:{locationName:"LocalGatewayRouteTableVpcAssociationId",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayRouteTableVpcAssociations:{locationName:"localGatewayRouteTableVpcAssociationSet",type:"list",member:{shape:"Sc4",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeLocalGatewayRouteTables:{input:{type:"structure",members:{LocalGatewayRouteTableIds:{locationName:"LocalGatewayRouteTableId",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayRouteTables:{locationName:"localGatewayRouteTableSet",type:"list",member:{locationName:"item",type:"structure",members:{LocalGatewayRouteTableId:{locationName:"localGatewayRouteTableId"},LocalGatewayId:{locationName:"localGatewayId"},OutpostArn:{locationName:"outpostArn"},State:{locationName:"state"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeLocalGatewayVirtualInterfaceGroups:{input:{type:"structure",members:{LocalGatewayVirtualInterfaceGroupIds:{locationName:"LocalGatewayVirtualInterfaceGroupId",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayVirtualInterfaceGroups:{locationName:"localGatewayVirtualInterfaceGroupSet",type:"list",member:{locationName:"item",type:"structure",members:{LocalGatewayVirtualInterfaceGroupId:{locationName:"localGatewayVirtualInterfaceGroupId"},LocalGatewayVirtualInterfaceIds:{shape:"Sym",locationName:"localGatewayVirtualInterfaceIdSet"},LocalGatewayId:{locationName:"localGatewayId"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeLocalGatewayVirtualInterfaces:{input:{type:"structure",members:{LocalGatewayVirtualInterfaceIds:{shape:"Sym",locationName:"LocalGatewayVirtualInterfaceId"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGatewayVirtualInterfaces:{locationName:"localGatewayVirtualInterfaceSet",type:"list",member:{locationName:"item",type:"structure",members:{LocalGatewayVirtualInterfaceId:{locationName:"localGatewayVirtualInterfaceId"},LocalGatewayId:{locationName:"localGatewayId"},Vlan:{locationName:"vlan",type:"integer"},LocalAddress:{locationName:"localAddress"},PeerAddress:{locationName:"peerAddress"},LocalBgpAsn:{locationName:"localBgpAsn",type:"integer"},PeerBgpAsn:{locationName:"peerBgpAsn",type:"integer"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeLocalGateways:{input:{type:"structure",members:{LocalGatewayIds:{locationName:"LocalGatewayId",type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{LocalGateways:{locationName:"localGatewaySet",type:"list",member:{locationName:"item",type:"structure",members:{LocalGatewayId:{locationName:"localGatewayId"},OutpostArn:{locationName:"outpostArn"},OwnerId:{locationName:"ownerId"},State:{locationName:"state"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeMovingAddresses:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"filter"},DryRun:{locationName:"dryRun",type:"boolean"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},PublicIps:{shape:"So",locationName:"publicIp"}}},output:{type:"structure",members:{MovingAddressStatuses:{locationName:"movingAddressStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{MoveStatus:{locationName:"moveStatus"},PublicIp:{locationName:"publicIp"}}}},NextToken:{locationName:"nextToken"}}}},DescribeNatGateways:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filter:{shape:"Sm1"},MaxResults:{type:"integer"},NatGatewayIds:{locationName:"NatGatewayId",type:"list",member:{locationName:"item"}},NextToken:{}}},output:{type:"structure",members:{NatGateways:{locationName:"natGatewaySet",type:"list",member:{shape:"Sc8",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeNetworkAcls:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclIds:{locationName:"NetworkAclId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{NetworkAcls:{locationName:"networkAclSet",type:"list",member:{shape:"Scf",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{Attribute:{locationName:"attribute"},DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},output:{type:"structure",members:{Attachment:{shape:"Scu",locationName:"attachment"},Description:{shape:"S7i",locationName:"description"},Groups:{shape:"Scv",locationName:"groupSet"},NetworkInterfaceId:{locationName:"networkInterfaceId"},SourceDestCheck:{shape:"Stk",locationName:"sourceDestCheck"}}}},DescribeNetworkInterfacePermissions:{input:{type:"structure",members:{NetworkInterfacePermissionIds:{locationName:"NetworkInterfacePermissionId",type:"list",member:{}},Filters:{shape:"Sm1",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{NetworkInterfacePermissions:{locationName:"networkInterfacePermissions",type:"list",member:{shape:"Sd6",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeNetworkInterfaces:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"filter"},DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceIds:{locationName:"NetworkInterfaceId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{shape:"Scs",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribePlacementGroups:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{locationName:"groupName",type:"list",member:{}},GroupIds:{locationName:"GroupId",type:"list",member:{locationName:"GroupId"}}}},output:{type:"structure",members:{PlacementGroups:{locationName:"placementGroupSet",type:"list",member:{shape:"Sdc",locationName:"item"}}}}},DescribePrefixLists:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},PrefixListIds:{locationName:"PrefixListId",type:"list",member:{locationName:"item"}}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},PrefixLists:{locationName:"prefixListSet",type:"list",member:{locationName:"item",type:"structure",members:{Cidrs:{shape:"So",locationName:"cidrSet"},PrefixListId:{locationName:"prefixListId"},PrefixListName:{locationName:"prefixListName"}}}}}}},DescribePrincipalIdFormat:{input:{type:"structure",members:{DryRun:{type:"boolean"},Resources:{locationName:"Resource",type:"list",member:{locationName:"item"}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{Principals:{locationName:"principalSet",type:"list",member:{locationName:"item",type:"structure",members:{Arn:{locationName:"arn"},Statuses:{shape:"Sma",locationName:"statusSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribePublicIpv4Pools:{input:{type:"structure",members:{PoolIds:{locationName:"PoolId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"Sm1",locationName:"Filter"}}},output:{type:"structure",members:{PublicIpv4Pools:{locationName:"publicIpv4PoolSet",type:"list",member:{locationName:"item",type:"structure",members:{PoolId:{locationName:"poolId"},Description:{locationName:"description"},PoolAddressRanges:{locationName:"poolAddressRangeSet",type:"list",member:{locationName:"item",type:"structure",members:{FirstAddress:{locationName:"firstAddress"},LastAddress:{locationName:"lastAddress"},AddressCount:{locationName:"addressCount",type:"integer"},AvailableAddressCount:{locationName:"availableAddressCount",type:"integer"}}}},TotalAddressCount:{locationName:"totalAddressCount",type:"integer"},TotalAvailableAddressCount:{locationName:"totalAvailableAddressCount",type:"integer"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeRegions:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},RegionNames:{locationName:"RegionName",type:"list",member:{locationName:"RegionName"}},DryRun:{locationName:"dryRun",type:"boolean"},AllRegions:{type:"boolean"}}},output:{type:"structure",members:{Regions:{locationName:"regionInfo",type:"list",member:{locationName:"item",type:"structure",members:{Endpoint:{locationName:"regionEndpoint"},RegionName:{locationName:"regionName"},OptInStatus:{locationName:"optInStatus"}}}}}}},DescribeReservedInstances:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},OfferingClass:{},ReservedInstancesIds:{shape:"S10o",locationName:"ReservedInstancesId"},DryRun:{locationName:"dryRun",type:"boolean"},OfferingType:{locationName:"offeringType"}}},output:{type:"structure",members:{ReservedInstances:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Duration:{locationName:"duration",type:"long"},End:{locationName:"end",type:"timestamp"},FixedPrice:{locationName:"fixedPrice",type:"float"},InstanceCount:{locationName:"instanceCount",type:"integer"},InstanceType:{locationName:"instanceType"},ProductDescription:{locationName:"productDescription"},ReservedInstancesId:{locationName:"reservedInstancesId"},Start:{locationName:"start",type:"timestamp"},State:{locationName:"state"},UsagePrice:{locationName:"usagePrice",type:"float"},CurrencyCode:{locationName:"currencyCode"},InstanceTenancy:{locationName:"instanceTenancy"},OfferingClass:{locationName:"offeringClass"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"S10w",locationName:"recurringCharges"},Scope:{locationName:"scope"},Tags:{shape:"Sj",locationName:"tagSet"}}}}}}},DescribeReservedInstancesListings:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},ReservedInstancesId:{locationName:"reservedInstancesId"},ReservedInstancesListingId:{locationName:"reservedInstancesListingId"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S53",locationName:"reservedInstancesListingsSet"}}}},DescribeReservedInstancesModifications:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},ReservedInstancesModificationIds:{locationName:"ReservedInstancesModificationId",type:"list",member:{locationName:"ReservedInstancesModificationId"}},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},ReservedInstancesModifications:{locationName:"reservedInstancesModificationsSet",type:"list",member:{locationName:"item",type:"structure",members:{ClientToken:{locationName:"clientToken"},CreateDate:{locationName:"createDate",type:"timestamp"},EffectiveDate:{locationName:"effectiveDate",type:"timestamp"},ModificationResults:{locationName:"modificationResultSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},TargetConfiguration:{shape:"S11a",locationName:"targetConfiguration"}}}},ReservedInstancesIds:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}}},ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},UpdateDate:{locationName:"updateDate",type:"timestamp"}}}}}}},DescribeReservedInstancesOfferings:{input:{type:"structure",members:{AvailabilityZone:{},Filters:{shape:"Sm1",locationName:"Filter"},IncludeMarketplace:{type:"boolean"},InstanceType:{},MaxDuration:{type:"long"},MaxInstanceCount:{type:"integer"},MinDuration:{type:"long"},OfferingClass:{},ProductDescription:{},ReservedInstancesOfferingIds:{locationName:"ReservedInstancesOfferingId",type:"list",member:{}},DryRun:{locationName:"dryRun",type:"boolean"},InstanceTenancy:{locationName:"instanceTenancy"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},OfferingType:{locationName:"offeringType"}}},output:{type:"structure",members:{ReservedInstancesOfferings:{locationName:"reservedInstancesOfferingsSet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Duration:{locationName:"duration",type:"long"},FixedPrice:{locationName:"fixedPrice",type:"float"},InstanceType:{locationName:"instanceType"},ProductDescription:{locationName:"productDescription"},ReservedInstancesOfferingId:{locationName:"reservedInstancesOfferingId"},UsagePrice:{locationName:"usagePrice",type:"float"},CurrencyCode:{locationName:"currencyCode"},InstanceTenancy:{locationName:"instanceTenancy"},Marketplace:{locationName:"marketplace",type:"boolean"},OfferingClass:{locationName:"offeringClass"},OfferingType:{locationName:"offeringType"},PricingDetails:{locationName:"pricingDetailsSet",type:"list",member:{locationName:"item",type:"structure",members:{Count:{locationName:"count",type:"integer"},Price:{locationName:"price",type:"double"}}}},RecurringCharges:{shape:"S10w",locationName:"recurringCharges"},Scope:{locationName:"scope"}}}},NextToken:{locationName:"nextToken"}}}},DescribeRouteTables:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},RouteTableIds:{locationName:"RouteTableId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{RouteTables:{locationName:"routeTableSet",type:"list",member:{shape:"Sdp",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeScheduledInstanceAvailability:{input:{type:"structure",required:["FirstSlotStartTimeRange","Recurrence"],members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},FirstSlotStartTimeRange:{type:"structure",required:["EarliestTime","LatestTime"],members:{EarliestTime:{type:"timestamp"},LatestTime:{type:"timestamp"}}},MaxResults:{type:"integer"},MaxSlotDurationInHours:{type:"integer"},MinSlotDurationInHours:{type:"integer"},NextToken:{},Recurrence:{type:"structure",members:{Frequency:{},Interval:{type:"integer"},OccurrenceDays:{locationName:"OccurrenceDay",type:"list",member:{locationName:"OccurenceDay",type:"integer"}},OccurrenceRelativeToEnd:{type:"boolean"},OccurrenceUnit:{}}}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},ScheduledInstanceAvailabilitySet:{locationName:"scheduledInstanceAvailabilitySet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},AvailableInstanceCount:{locationName:"availableInstanceCount",type:"integer"},FirstSlotStartTime:{locationName:"firstSlotStartTime",type:"timestamp"},HourlyPrice:{locationName:"hourlyPrice"},InstanceType:{locationName:"instanceType"},MaxTermDurationInDays:{locationName:"maxTermDurationInDays",type:"integer"},MinTermDurationInDays:{locationName:"minTermDurationInDays",type:"integer"},NetworkPlatform:{locationName:"networkPlatform"},Platform:{locationName:"platform"},PurchaseToken:{locationName:"purchaseToken"},Recurrence:{shape:"S11x",locationName:"recurrence"},SlotDurationInHours:{locationName:"slotDurationInHours",type:"integer"},TotalScheduledInstanceHours:{locationName:"totalScheduledInstanceHours",type:"integer"}}}}}}},DescribeScheduledInstances:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},ScheduledInstanceIds:{locationName:"ScheduledInstanceId",type:"list",member:{locationName:"ScheduledInstanceId"}},SlotStartTimeRange:{type:"structure",members:{EarliestTime:{type:"timestamp"},LatestTime:{type:"timestamp"}}}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},ScheduledInstanceSet:{locationName:"scheduledInstanceSet",type:"list",member:{shape:"S125",locationName:"item"}}}}},DescribeSecurityGroupReferences:{input:{type:"structure",required:["GroupId"],members:{DryRun:{type:"boolean"},GroupId:{type:"list",member:{locationName:"item"}}}},output:{type:"structure",members:{SecurityGroupReferenceSet:{locationName:"securityGroupReferenceSet",type:"list",member:{locationName:"item",type:"structure",members:{GroupId:{locationName:"groupId"},ReferencingVpcId:{locationName:"referencingVpcId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}}}}}},DescribeSecurityGroups:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},GroupIds:{shape:"S3j",locationName:"GroupId"},GroupNames:{shape:"S12c",locationName:"GroupName"},DryRun:{locationName:"dryRun",type:"boolean"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{SecurityGroups:{locationName:"securityGroupInfo",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"groupDescription"},GroupName:{locationName:"groupName"},IpPermissions:{shape:"S43",locationName:"ipPermissions"},OwnerId:{locationName:"ownerId"},GroupId:{locationName:"groupId"},IpPermissionsEgress:{shape:"S43",locationName:"ipPermissionsEgress"},Tags:{shape:"Sj",locationName:"tagSet"},VpcId:{locationName:"vpcId"}}}},NextToken:{locationName:"nextToken"}}}},DescribeSnapshotAttribute:{input:{type:"structure",required:["Attribute","SnapshotId"],members:{Attribute:{},SnapshotId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{CreateVolumePermissions:{shape:"S12k",locationName:"createVolumePermission"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},SnapshotId:{locationName:"snapshotId"}}}},DescribeSnapshots:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},OwnerIds:{shape:"Sr3",locationName:"Owner"},RestorableByUserIds:{locationName:"RestorableBy",type:"list",member:{}},SnapshotIds:{shape:"S12o",locationName:"SnapshotId"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{Snapshots:{locationName:"snapshotSet",type:"list",member:{shape:"Se1",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"Sec",locationName:"spotDatafeedSubscription"}}}},DescribeSpotFleetInstances:{input:{type:"structure",required:["SpotFleetRequestId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},SpotFleetRequestId:{locationName:"spotFleetRequestId"}}},output:{type:"structure",members:{ActiveInstances:{shape:"Sq4",locationName:"activeInstanceSet"},NextToken:{locationName:"nextToken"},SpotFleetRequestId:{locationName:"spotFleetRequestId"}}}},DescribeSpotFleetRequestHistory:{input:{type:"structure",required:["SpotFleetRequestId","StartTime"],members:{DryRun:{locationName:"dryRun",type:"boolean"},EventType:{locationName:"eventType"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},StartTime:{locationName:"startTime",type:"timestamp"}}},output:{type:"structure",members:{HistoryRecords:{locationName:"historyRecordSet",type:"list",member:{locationName:"item",type:"structure",members:{EventInformation:{shape:"Sq1",locationName:"eventInformation"},EventType:{locationName:"eventType"},Timestamp:{locationName:"timestamp",type:"timestamp"}}}},LastEvaluatedTime:{locationName:"lastEvaluatedTime",type:"timestamp"},NextToken:{locationName:"nextToken"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},StartTime:{locationName:"startTime",type:"timestamp"}}}},DescribeSpotFleetRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},SpotFleetRequestIds:{shape:"S5f",locationName:"spotFleetRequestId"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},SpotFleetRequestConfigs:{locationName:"spotFleetRequestConfigSet",type:"list",member:{locationName:"item",type:"structure",members:{ActivityStatus:{locationName:"activityStatus"},CreateTime:{locationName:"createTime",type:"timestamp"},SpotFleetRequestConfig:{shape:"S137",locationName:"spotFleetRequestConfig"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},SpotFleetRequestState:{locationName:"spotFleetRequestState"},Tags:{shape:"Sj",locationName:"tagSet"}}}}}}},DescribeSpotInstanceRequests:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S5q",locationName:"SpotInstanceRequestId"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"S13w",locationName:"spotInstanceRequestSet"},NextToken:{locationName:"nextToken"}}}},DescribeSpotPriceHistory:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},AvailabilityZone:{locationName:"availabilityZone"},DryRun:{locationName:"dryRun",type:"boolean"},EndTime:{locationName:"endTime",type:"timestamp"},InstanceTypes:{locationName:"InstanceType",type:"list",member:{}},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},ProductDescriptions:{locationName:"ProductDescription",type:"list",member:{}},StartTime:{locationName:"startTime",type:"timestamp"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},SpotPriceHistory:{locationName:"spotPriceHistorySet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},InstanceType:{locationName:"instanceType"},ProductDescription:{locationName:"productDescription"},SpotPrice:{locationName:"spotPrice"},Timestamp:{locationName:"timestamp",type:"timestamp"}}}}}}},DescribeStaleSecurityGroups:{input:{type:"structure",required:["VpcId"],members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{},VpcId:{}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},StaleSecurityGroupSet:{locationName:"staleSecurityGroupSet",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},GroupId:{locationName:"groupId"},GroupName:{locationName:"groupName"},StaleIpPermissions:{shape:"S14e",locationName:"staleIpPermissions"},StaleIpPermissionsEgress:{shape:"S14e",locationName:"staleIpPermissionsEgress"},VpcId:{locationName:"vpcId"}}}}}}},DescribeSubnets:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},SubnetIds:{locationName:"SubnetId",type:"list",member:{locationName:"SubnetId"}},DryRun:{locationName:"dryRun",type:"boolean"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{Subnets:{locationName:"subnetSet",type:"list",member:{shape:"S6z",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTags:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},Tags:{locationName:"tagSet",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},Value:{locationName:"value"}}}}}}},DescribeTrafficMirrorFilters:{input:{type:"structure",members:{TrafficMirrorFilterIds:{locationName:"TrafficMirrorFilterId",type:"list",member:{locationName:"item"}},DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{TrafficMirrorFilters:{locationName:"trafficMirrorFilterSet",type:"list",member:{shape:"Sem",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTrafficMirrorSessions:{input:{type:"structure",members:{TrafficMirrorSessionIds:{locationName:"TrafficMirrorSessionId",type:"list",member:{locationName:"item"}},DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{TrafficMirrorSessions:{locationName:"trafficMirrorSessionSet",type:"list",member:{shape:"Sf1",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTrafficMirrorTargets:{input:{type:"structure",members:{TrafficMirrorTargetIds:{locationName:"TrafficMirrorTargetId",type:"list",member:{locationName:"item"}},DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{TrafficMirrorTargets:{locationName:"trafficMirrorTargetSet",type:"list",member:{shape:"Sf4",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTransitGatewayAttachments:{input:{type:"structure",members:{TransitGatewayAttachmentIds:{shape:"S156"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayAttachments:{locationName:"transitGatewayAttachments",type:"list",member:{locationName:"item",type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},TransitGatewayId:{locationName:"transitGatewayId"},TransitGatewayOwnerId:{locationName:"transitGatewayOwnerId"},ResourceOwnerId:{locationName:"resourceOwnerId"},ResourceType:{locationName:"resourceType"},ResourceId:{locationName:"resourceId"},State:{locationName:"state"},Association:{locationName:"association",type:"structure",members:{TransitGatewayRouteTableId:{locationName:"transitGatewayRouteTableId"},State:{locationName:"state"}}},CreationTime:{locationName:"creationTime",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeTransitGatewayMulticastDomains:{input:{type:"structure",members:{TransitGatewayMulticastDomainIds:{type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayMulticastDomains:{locationName:"transitGatewayMulticastDomains",type:"list",member:{shape:"Sfj",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTransitGatewayPeeringAttachments:{input:{type:"structure",members:{TransitGatewayAttachmentIds:{shape:"S156"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayPeeringAttachments:{locationName:"transitGatewayPeeringAttachments",type:"list",member:{shape:"Se",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTransitGatewayRouteTables:{input:{type:"structure",members:{TransitGatewayRouteTableIds:{type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayRouteTables:{locationName:"transitGatewayRouteTables",type:"list",member:{shape:"Sfx",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTransitGatewayVpcAttachments:{input:{type:"structure",members:{TransitGatewayAttachmentIds:{shape:"S156"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayVpcAttachments:{locationName:"transitGatewayVpcAttachments",type:"list",member:{shape:"Sn",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeTransitGateways:{input:{type:"structure",members:{TransitGatewayIds:{type:"list",member:{locationName:"item"}},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGateways:{locationName:"transitGatewaySet",type:"list",member:{shape:"Sfe",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVolumeAttribute:{input:{type:"structure",required:["Attribute","VolumeId"],members:{Attribute:{},VolumeId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{AutoEnableIO:{shape:"Stk",locationName:"autoEnableIO"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},VolumeId:{locationName:"volumeId"}}}},DescribeVolumeStatus:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},VolumeIds:{shape:"S15y",locationName:"VolumeId"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},VolumeStatuses:{locationName:"volumeStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{Actions:{locationName:"actionsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},EventId:{locationName:"eventId"},EventType:{locationName:"eventType"}}}},AvailabilityZone:{locationName:"availabilityZone"},OutpostArn:{locationName:"outpostArn"},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},EventId:{locationName:"eventId"},EventType:{locationName:"eventType"},NotAfter:{locationName:"notAfter",type:"timestamp"},NotBefore:{locationName:"notBefore",type:"timestamp"},InstanceId:{locationName:"instanceId"}}}},VolumeId:{locationName:"volumeId"},VolumeStatus:{locationName:"volumeStatus",type:"structure",members:{Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"}}}},Status:{locationName:"status"}}},AttachmentStatuses:{locationName:"attachmentStatuses",type:"list",member:{locationName:"item",type:"structure",members:{IoPerformance:{locationName:"ioPerformance"},InstanceId:{locationName:"instanceId"}}}}}}}}}},DescribeVolumes:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},VolumeIds:{shape:"S15y",locationName:"VolumeId"},DryRun:{locationName:"dryRun",type:"boolean"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Volumes:{locationName:"volumeSet",type:"list",member:{shape:"Sg4",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVolumesModifications:{input:{type:"structure",members:{DryRun:{type:"boolean"},VolumeIds:{shape:"S15y",locationName:"VolumeId"},Filters:{shape:"Sm1",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{VolumesModifications:{locationName:"volumeModificationSet",type:"list",member:{shape:"S16j",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVpcAttribute:{input:{type:"structure",required:["Attribute","VpcId"],members:{Attribute:{},VpcId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{VpcId:{locationName:"vpcId"},EnableDnsHostnames:{shape:"Stk",locationName:"enableDnsHostnames"},EnableDnsSupport:{shape:"Stk",locationName:"enableDnsSupport"}}}},DescribeVpcClassicLink:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{shape:"S16p",locationName:"VpcId"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{locationName:"item",type:"structure",members:{ClassicLinkEnabled:{locationName:"classicLinkEnabled",type:"boolean"},Tags:{shape:"Sj",locationName:"tagSet"},VpcId:{locationName:"vpcId"}}}}}}},DescribeVpcClassicLinkDnsSupport:{input:{type:"structure",members:{MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"},VpcIds:{shape:"S16p"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},Vpcs:{locationName:"vpcs",type:"list",member:{locationName:"item",type:"structure",members:{ClassicLinkDnsSupported:{locationName:"classicLinkDnsSupported",type:"boolean"},VpcId:{locationName:"vpcId"}}}}}}},DescribeVpcEndpointConnectionNotifications:{input:{type:"structure",members:{DryRun:{type:"boolean"},ConnectionNotificationId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ConnectionNotificationSet:{locationName:"connectionNotificationSet",type:"list",member:{shape:"Sgo",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVpcEndpointConnections:{input:{type:"structure",members:{DryRun:{type:"boolean"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{VpcEndpointConnections:{locationName:"vpcEndpointConnectionSet",type:"list",member:{locationName:"item",type:"structure",members:{ServiceId:{locationName:"serviceId"},VpcEndpointId:{locationName:"vpcEndpointId"},VpcEndpointOwner:{locationName:"vpcEndpointOwner"},VpcEndpointState:{locationName:"vpcEndpointState"},CreationTimestamp:{locationName:"creationTimestamp",type:"timestamp"},DnsEntries:{shape:"Sgj",locationName:"dnsEntrySet"},NetworkLoadBalancerArns:{shape:"So",locationName:"networkLoadBalancerArnSet"}}}},NextToken:{locationName:"nextToken"}}}},DescribeVpcEndpointServiceConfigurations:{input:{type:"structure",members:{DryRun:{type:"boolean"},ServiceIds:{shape:"Sl4",locationName:"ServiceId"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ServiceConfigurations:{locationName:"serviceConfigurationSet",type:"list",member:{shape:"Sgt",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVpcEndpointServicePermissions:{input:{type:"structure",required:["ServiceId"],members:{DryRun:{type:"boolean"},ServiceId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{AllowedPrincipals:{locationName:"allowedPrincipals",type:"list",member:{locationName:"item",type:"structure",members:{PrincipalType:{locationName:"principalType"},Principal:{locationName:"principal"}}}},NextToken:{locationName:"nextToken"}}}},DescribeVpcEndpointServices:{input:{type:"structure",members:{DryRun:{type:"boolean"},ServiceNames:{shape:"So",locationName:"ServiceName"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ServiceNames:{shape:"So",locationName:"serviceNameSet"},ServiceDetails:{locationName:"serviceDetailSet",type:"list",member:{locationName:"item",type:"structure",members:{ServiceName:{locationName:"serviceName"},ServiceId:{locationName:"serviceId"},ServiceType:{shape:"Sgu",locationName:"serviceType"},AvailabilityZones:{shape:"So",locationName:"availabilityZoneSet"},Owner:{locationName:"owner"},BaseEndpointDnsNames:{shape:"So",locationName:"baseEndpointDnsNameSet"},PrivateDnsName:{locationName:"privateDnsName"},VpcEndpointPolicySupported:{locationName:"vpcEndpointPolicySupported",type:"boolean"},AcceptanceRequired:{locationName:"acceptanceRequired",type:"boolean"},ManagesVpcEndpoints:{locationName:"managesVpcEndpoints",type:"boolean"},Tags:{shape:"Sj",locationName:"tagSet"},PrivateDnsNameVerificationState:{locationName:"privateDnsNameVerificationState"}}}},NextToken:{locationName:"nextToken"}}}},DescribeVpcEndpoints:{input:{type:"structure",members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"Su",locationName:"VpcEndpointId"},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{VpcEndpoints:{locationName:"vpcEndpointSet",type:"list",member:{shape:"Sgf",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVpcPeeringConnections:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionIds:{locationName:"VpcPeeringConnectionId",type:"list",member:{locationName:"item"}},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{VpcPeeringConnections:{locationName:"vpcPeeringConnectionSet",type:"list",member:{shape:"S13",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVpcs:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},VpcIds:{locationName:"VpcId",type:"list",member:{locationName:"VpcId"}},DryRun:{locationName:"dryRun",type:"boolean"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{shape:"S75",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},DescribeVpnConnections:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},VpnConnectionIds:{locationName:"VpnConnectionId",type:"list",member:{locationName:"VpnConnectionId"}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{VpnConnections:{locationName:"vpnConnectionSet",type:"list",member:{shape:"Shm",locationName:"item"}}}}},DescribeVpnGateways:{input:{type:"structure",members:{Filters:{shape:"Sm1",locationName:"Filter"},VpnGatewayIds:{locationName:"VpnGatewayId",type:"list",member:{locationName:"VpnGatewayId"}},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{VpnGateways:{locationName:"vpnGatewaySet",type:"list",member:{shape:"Sif",locationName:"item"}}}}},DetachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},DetachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}}},DetachNetworkInterface:{input:{type:"structure",required:["AttachmentId"],members:{AttachmentId:{locationName:"attachmentId"},DryRun:{locationName:"dryRun",type:"boolean"},Force:{locationName:"force",type:"boolean"}}}},DetachVolume:{input:{type:"structure",required:["VolumeId"],members:{Device:{},Force:{type:"boolean"},InstanceId:{},VolumeId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{shape:"S3r"}},DetachVpnGateway:{input:{type:"structure",required:["VpcId","VpnGatewayId"],members:{VpcId:{},VpnGatewayId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DisableEbsEncryptionByDefault:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{EbsEncryptionByDefault:{locationName:"ebsEncryptionByDefault",type:"boolean"}}}},DisableFastSnapshotRestores:{input:{type:"structure",required:["AvailabilityZones","SourceSnapshotIds"],members:{AvailabilityZones:{shape:"S18e",locationName:"AvailabilityZone"},SourceSnapshotIds:{shape:"S12o",locationName:"SourceSnapshotId"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Successful:{locationName:"successful",type:"list",member:{locationName:"item",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"state"},StateTransitionReason:{locationName:"stateTransitionReason"},OwnerId:{locationName:"ownerId"},OwnerAlias:{locationName:"ownerAlias"},EnablingTime:{locationName:"enablingTime",type:"timestamp"},OptimizingTime:{locationName:"optimizingTime",type:"timestamp"},EnabledTime:{locationName:"enabledTime",type:"timestamp"},DisablingTime:{locationName:"disablingTime",type:"timestamp"},DisabledTime:{locationName:"disabledTime",type:"timestamp"}}}},Unsuccessful:{locationName:"unsuccessful",type:"list",member:{locationName:"item",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},FastSnapshotRestoreStateErrors:{locationName:"fastSnapshotRestoreStateErrorSet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}}}}}}}},DisableTransitGatewayRouteTablePropagation:{input:{type:"structure",required:["TransitGatewayRouteTableId","TransitGatewayAttachmentId"],members:{TransitGatewayRouteTableId:{},TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Propagation:{shape:"S18p",locationName:"propagation"}}}},DisableVgwRoutePropagation:{input:{type:"structure",required:["GatewayId","RouteTableId"],members:{GatewayId:{},RouteTableId:{},DryRun:{type:"boolean"}}}},DisableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},DisableVpcClassicLinkDnsSupport:{input:{type:"structure",members:{VpcId:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},DisassociateAddress:{input:{type:"structure",members:{AssociationId:{},PublicIp:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},DisassociateClientVpnTargetNetwork:{input:{type:"structure",required:["ClientVpnEndpointId","AssociationId"],members:{ClientVpnEndpointId:{},AssociationId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"},Status:{shape:"S2d",locationName:"status"}}}},DisassociateIamInstanceProfile:{input:{type:"structure",required:["AssociationId"],members:{AssociationId:{}}},output:{type:"structure",members:{IamInstanceProfileAssociation:{shape:"S2k",locationName:"iamInstanceProfileAssociation"}}}},DisassociateRouteTable:{input:{type:"structure",required:["AssociationId"],members:{AssociationId:{locationName:"associationId"},DryRun:{locationName:"dryRun",type:"boolean"}}}},DisassociateSubnetCidrBlock:{input:{type:"structure",required:["AssociationId"],members:{AssociationId:{locationName:"associationId"}}},output:{type:"structure",members:{Ipv6CidrBlockAssociation:{shape:"S2v",locationName:"ipv6CidrBlockAssociation"},SubnetId:{locationName:"subnetId"}}}},DisassociateTransitGatewayMulticastDomain:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},TransitGatewayAttachmentId:{},SubnetIds:{shape:"So"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Associations:{shape:"S31",locationName:"associations"}}}},DisassociateTransitGatewayRouteTable:{input:{type:"structure",required:["TransitGatewayRouteTableId","TransitGatewayAttachmentId"],members:{TransitGatewayRouteTableId:{},TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Association:{shape:"S39",locationName:"association"}}}},DisassociateVpcCidrBlock:{input:{type:"structure",required:["AssociationId"],members:{AssociationId:{locationName:"associationId"}}},output:{type:"structure",members:{Ipv6CidrBlockAssociation:{shape:"S3e",locationName:"ipv6CidrBlockAssociation"},CidrBlockAssociation:{shape:"S3h",locationName:"cidrBlockAssociation"},VpcId:{locationName:"vpcId"}}}},EnableEbsEncryptionByDefault:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{EbsEncryptionByDefault:{locationName:"ebsEncryptionByDefault",type:"boolean"}}}},EnableFastSnapshotRestores:{input:{type:"structure",required:["AvailabilityZones","SourceSnapshotIds"],members:{AvailabilityZones:{shape:"S18e",locationName:"AvailabilityZone"},SourceSnapshotIds:{shape:"S12o",locationName:"SourceSnapshotId"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Successful:{locationName:"successful",type:"list",member:{locationName:"item",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"state"},StateTransitionReason:{locationName:"stateTransitionReason"},OwnerId:{locationName:"ownerId"},OwnerAlias:{locationName:"ownerAlias"},EnablingTime:{locationName:"enablingTime",type:"timestamp"},OptimizingTime:{locationName:"optimizingTime",type:"timestamp"},EnabledTime:{locationName:"enabledTime",type:"timestamp"},DisablingTime:{locationName:"disablingTime",type:"timestamp"},DisabledTime:{locationName:"disabledTime",type:"timestamp"}}}},Unsuccessful:{locationName:"unsuccessful",type:"list",member:{locationName:"item",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},FastSnapshotRestoreStateErrors:{locationName:"fastSnapshotRestoreStateErrorSet",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}}}}}}}},EnableTransitGatewayRouteTablePropagation:{input:{type:"structure",required:["TransitGatewayRouteTableId","TransitGatewayAttachmentId"],members:{TransitGatewayRouteTableId:{},TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Propagation:{shape:"S18p",locationName:"propagation"}}}},EnableVgwRoutePropagation:{input:{type:"structure",required:["GatewayId","RouteTableId"],members:{GatewayId:{},RouteTableId:{},DryRun:{type:"boolean"}}}},EnableVolumeIO:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{locationName:"volumeId"}}}},EnableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},EnableVpcClassicLinkDnsSupport:{input:{type:"structure",members:{VpcId:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ExportClientVpnClientCertificateRevocationList:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{CertificateRevocationList:{locationName:"certificateRevocationList"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},ExportClientVpnClientConfiguration:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ClientConfiguration:{locationName:"clientConfiguration"}}}},ExportImage:{input:{type:"structure",required:["DiskImageFormat","ImageId","S3ExportLocation"],members:{ClientToken:{idempotencyToken:true},Description:{},DiskImageFormat:{},DryRun:{type:"boolean"},ImageId:{},S3ExportLocation:{type:"structure",required:["S3Bucket"],members:{S3Bucket:{},S3Prefix:{}}},RoleName:{}}},output:{type:"structure",members:{Description:{locationName:"description"},DiskImageFormat:{locationName:"diskImageFormat"},ExportImageTaskId:{locationName:"exportImageTaskId"},ImageId:{locationName:"imageId"},RoleName:{locationName:"roleName"},Progress:{locationName:"progress"},S3ExportLocation:{shape:"Spk",locationName:"s3ExportLocation"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"}}}},ExportTransitGatewayRoutes:{input:{type:"structure",required:["TransitGatewayRouteTableId","S3Bucket"],members:{TransitGatewayRouteTableId:{},Filters:{shape:"Sm1",locationName:"Filter"},S3Bucket:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{S3Location:{locationName:"s3Location"}}}},GetAssociatedIpv6PoolCidrs:{input:{type:"structure",required:["PoolId"],members:{PoolId:{},NextToken:{},MaxResults:{type:"integer"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Ipv6CidrAssociations:{locationName:"ipv6CidrAssociationSet",type:"list",member:{locationName:"item",type:"structure",members:{Ipv6Cidr:{locationName:"ipv6Cidr"},AssociatedResource:{locationName:"associatedResource"}}}},NextToken:{locationName:"nextToken"}}}},GetCapacityReservationUsage:{input:{type:"structure",required:["CapacityReservationId"],members:{CapacityReservationId:{},NextToken:{},MaxResults:{type:"integer"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},CapacityReservationId:{locationName:"capacityReservationId"},InstanceType:{locationName:"instanceType"},TotalInstanceCount:{locationName:"totalInstanceCount",type:"integer"},AvailableInstanceCount:{locationName:"availableInstanceCount",type:"integer"},State:{locationName:"state"},InstanceUsages:{locationName:"instanceUsageSet",type:"list",member:{locationName:"item",type:"structure",members:{AccountId:{locationName:"accountId"},UsedInstanceCount:{locationName:"usedInstanceCount",type:"integer"}}}}}}},GetCoipPoolUsage:{input:{type:"structure",required:["PoolId"],members:{PoolId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{CoipPoolId:{locationName:"coipPoolId"},CoipAddressUsages:{locationName:"coipAddressUsageSet",type:"list",member:{locationName:"item",type:"structure",members:{AllocationId:{locationName:"allocationId"},AwsAccountId:{locationName:"awsAccountId"},AwsService:{locationName:"awsService"},CoIp:{locationName:"coIp"}}}},LocalGatewayRouteTableId:{locationName:"localGatewayRouteTableId"}}}},GetConsoleOutput:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},DryRun:{locationName:"dryRun",type:"boolean"},Latest:{type:"boolean"}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Output:{locationName:"output"},Timestamp:{locationName:"timestamp",type:"timestamp"}}}},GetConsoleScreenshot:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{type:"boolean"},InstanceId:{},WakeUp:{type:"boolean"}}},output:{type:"structure",members:{ImageData:{locationName:"imageData"},InstanceId:{locationName:"instanceId"}}}},GetDefaultCreditSpecification:{input:{type:"structure",required:["InstanceFamily"],members:{DryRun:{type:"boolean"},InstanceFamily:{}}},output:{type:"structure",members:{InstanceFamilyCreditSpecification:{shape:"S1at",locationName:"instanceFamilyCreditSpecification"}}}},GetEbsDefaultKmsKeyId:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{KmsKeyId:{locationName:"kmsKeyId"}}}},GetEbsEncryptionByDefault:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{EbsEncryptionByDefault:{locationName:"ebsEncryptionByDefault",type:"boolean"}}}},GetHostReservationPurchasePreview:{input:{type:"structure",required:["HostIdSet","OfferingId"],members:{HostIdSet:{shape:"S1az"},OfferingId:{}}},output:{type:"structure",members:{CurrencyCode:{locationName:"currencyCode"},Purchase:{shape:"S1b1",locationName:"purchase"},TotalHourlyPrice:{locationName:"totalHourlyPrice"},TotalUpfrontPrice:{locationName:"totalUpfrontPrice"}}}},GetLaunchTemplateData:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{LaunchTemplateData:{shape:"Sb3",locationName:"launchTemplateData"}}}},GetPasswordData:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},PasswordData:{locationName:"passwordData"},Timestamp:{locationName:"timestamp",type:"timestamp"}}}},GetReservedInstancesExchangeQuote:{input:{type:"structure",required:["ReservedInstanceIds"],members:{DryRun:{type:"boolean"},ReservedInstanceIds:{shape:"S3",locationName:"ReservedInstanceId"},TargetConfigurations:{shape:"S5",locationName:"TargetConfiguration"}}},output:{type:"structure",members:{CurrencyCode:{locationName:"currencyCode"},IsValidExchange:{locationName:"isValidExchange",type:"boolean"},OutputReservedInstancesWillExpireAt:{locationName:"outputReservedInstancesWillExpireAt",type:"timestamp"},PaymentDue:{locationName:"paymentDue"},ReservedInstanceValueRollup:{shape:"S1b9",locationName:"reservedInstanceValueRollup"},ReservedInstanceValueSet:{locationName:"reservedInstanceValueSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservationValue:{shape:"S1b9",locationName:"reservationValue"},ReservedInstanceId:{locationName:"reservedInstanceId"}}}},TargetConfigurationValueRollup:{shape:"S1b9",locationName:"targetConfigurationValueRollup"},TargetConfigurationValueSet:{locationName:"targetConfigurationValueSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservationValue:{shape:"S1b9",locationName:"reservationValue"},TargetConfiguration:{locationName:"targetConfiguration",type:"structure",members:{InstanceCount:{locationName:"instanceCount",type:"integer"},OfferingId:{locationName:"offeringId"}}}}}},ValidationFailureReason:{locationName:"validationFailureReason"}}}},GetTransitGatewayAttachmentPropagations:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayAttachmentPropagations:{locationName:"transitGatewayAttachmentPropagations",type:"list",member:{locationName:"item",type:"structure",members:{TransitGatewayRouteTableId:{locationName:"transitGatewayRouteTableId"},State:{locationName:"state"}}}},NextToken:{locationName:"nextToken"}}}},GetTransitGatewayMulticastDomainAssociations:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{MulticastDomainAssociations:{locationName:"multicastDomainAssociations",type:"list",member:{locationName:"item",type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},Subnet:{shape:"S34",locationName:"subnet"}}}},NextToken:{locationName:"nextToken"}}}},GetTransitGatewayRouteTableAssociations:{input:{type:"structure",required:["TransitGatewayRouteTableId"],members:{TransitGatewayRouteTableId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Associations:{locationName:"associations",type:"list",member:{locationName:"item",type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},State:{locationName:"state"}}}},NextToken:{locationName:"nextToken"}}}},GetTransitGatewayRouteTablePropagations:{input:{type:"structure",required:["TransitGatewayRouteTableId"],members:{TransitGatewayRouteTableId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayRouteTablePropagations:{locationName:"transitGatewayRouteTablePropagations",type:"list",member:{locationName:"item",type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},State:{locationName:"state"}}}},NextToken:{locationName:"nextToken"}}}},ImportClientVpnClientCertificateRevocationList:{input:{type:"structure",required:["ClientVpnEndpointId","CertificateRevocationList"],members:{ClientVpnEndpointId:{},CertificateRevocationList:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ImportImage:{input:{type:"structure",members:{Architecture:{},ClientData:{shape:"S1by"},ClientToken:{},Description:{},DiskContainers:{locationName:"DiskContainer",type:"list",member:{locationName:"item",type:"structure",members:{Description:{},DeviceName:{},Format:{},SnapshotId:{},Url:{},UserBucket:{shape:"S1c1"}}}},DryRun:{type:"boolean"},Encrypted:{type:"boolean"},Hypervisor:{},KmsKeyId:{},LicenseType:{},Platform:{},RoleName:{},LicenseSpecifications:{type:"list",member:{locationName:"item",type:"structure",members:{LicenseConfigurationArn:{}}}}}},output:{type:"structure",members:{Architecture:{locationName:"architecture"},Description:{locationName:"description"},Encrypted:{locationName:"encrypted",type:"boolean"},Hypervisor:{locationName:"hypervisor"},ImageId:{locationName:"imageId"},ImportTaskId:{locationName:"importTaskId"},KmsKeyId:{locationName:"kmsKeyId"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Progress:{locationName:"progress"},SnapshotDetails:{shape:"St2",locationName:"snapshotDetailSet"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},LicenseSpecifications:{shape:"St5",locationName:"licenseSpecifications"}}}},ImportInstance:{input:{type:"structure",required:["Platform"],members:{Description:{locationName:"description"},DiskImages:{locationName:"diskImage",type:"list",member:{type:"structure",members:{Description:{},Image:{shape:"S1c8"},Volume:{shape:"S1c9"}}}},DryRun:{locationName:"dryRun",type:"boolean"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{AdditionalInfo:{locationName:"additionalInfo"},Architecture:{locationName:"architecture"},GroupIds:{shape:"S9u",locationName:"GroupId"},GroupNames:{shape:"Sae",locationName:"GroupName"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},InstanceType:{locationName:"instanceType"},Monitoring:{locationName:"monitoring",type:"boolean"},Placement:{shape:"S86",locationName:"placement"},PrivateIpAddress:{locationName:"privateIpAddress"},SubnetId:{locationName:"subnetId"},UserData:{locationName:"userData",type:"structure",members:{Data:{locationName:"data"}},sensitive:true}}},Platform:{locationName:"platform"}}},output:{type:"structure",members:{ConversionTask:{shape:"Soh",locationName:"conversionTask"}}}},ImportKeyPair:{input:{type:"structure",required:["KeyName","PublicKeyMaterial"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{locationName:"keyName"},PublicKeyMaterial:{locationName:"publicKeyMaterial",type:"blob"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},output:{type:"structure",members:{KeyFingerprint:{locationName:"keyFingerprint"},KeyName:{locationName:"keyName"},KeyPairId:{locationName:"keyPairId"},Tags:{shape:"Sj",locationName:"tagSet"}}}},ImportSnapshot:{input:{type:"structure",members:{ClientData:{shape:"S1by"},ClientToken:{},Description:{},DiskContainer:{type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"S1c1"}}},DryRun:{type:"boolean"},Encrypted:{type:"boolean"},KmsKeyId:{},RoleName:{}}},output:{type:"structure",members:{Description:{locationName:"description"},ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"Std",locationName:"snapshotTaskDetail"}}}},ImportVolume:{input:{type:"structure",required:["AvailabilityZone","Image","Volume"],members:{AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},DryRun:{locationName:"dryRun",type:"boolean"},Image:{shape:"S1c8",locationName:"image"},Volume:{shape:"S1c9",locationName:"volume"}}},output:{type:"structure",members:{ConversionTask:{shape:"Soh",locationName:"conversionTask"}}}},ModifyAvailabilityZoneGroup:{input:{type:"structure",required:["GroupName","OptInStatus"],members:{GroupName:{},OptInStatus:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyCapacityReservation:{input:{type:"structure",required:["CapacityReservationId"],members:{CapacityReservationId:{},InstanceCount:{type:"integer"},EndDate:{type:"timestamp"},EndDateType:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyClientVpnEndpoint:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},ServerCertificateArn:{},ConnectionLogOptions:{shape:"S6k"},DnsServers:{type:"structure",members:{CustomDnsServers:{shape:"So"},Enabled:{type:"boolean"}}},VpnPort:{type:"integer"},Description:{},SplitTunnel:{type:"boolean"},DryRun:{type:"boolean"},SecurityGroupIds:{shape:"S1u",locationName:"SecurityGroupId"},VpcId:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyDefaultCreditSpecification:{input:{type:"structure",required:["InstanceFamily","CpuCredits"],members:{DryRun:{type:"boolean"},InstanceFamily:{},CpuCredits:{}}},output:{type:"structure",members:{InstanceFamilyCreditSpecification:{shape:"S1at",locationName:"instanceFamilyCreditSpecification"}}}},ModifyEbsDefaultKmsKeyId:{input:{type:"structure",required:["KmsKeyId"],members:{KmsKeyId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{KmsKeyId:{locationName:"kmsKeyId"}}}},ModifyFleet:{input:{type:"structure",required:["FleetId","TargetCapacitySpecification"],members:{DryRun:{type:"boolean"},ExcessCapacityTerminationPolicy:{},FleetId:{},TargetCapacitySpecification:{shape:"S87"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyFpgaImageAttribute:{input:{type:"structure",required:["FpgaImageId"],members:{DryRun:{type:"boolean"},FpgaImageId:{},Attribute:{},OperationType:{},UserIds:{shape:"S1d0",locationName:"UserId"},UserGroups:{shape:"S1d1",locationName:"UserGroup"},ProductCodes:{shape:"S1d2",locationName:"ProductCode"},LoadPermission:{type:"structure",members:{Add:{shape:"S1d4"},Remove:{shape:"S1d4"}}},Description:{},Name:{}}},output:{type:"structure",members:{FpgaImageAttribute:{shape:"Squ",locationName:"fpgaImageAttribute"}}}},ModifyHosts:{input:{type:"structure",required:["HostIds"],members:{AutoPlacement:{locationName:"autoPlacement"},HostIds:{shape:"Srr",locationName:"hostId"},HostRecovery:{},InstanceType:{},InstanceFamily:{}}},output:{type:"structure",members:{Successful:{shape:"S1q",locationName:"successful"},Unsuccessful:{shape:"S1d9",locationName:"unsuccessful"}}}},ModifyIdFormat:{input:{type:"structure",required:["Resource","UseLongIds"],members:{Resource:{},UseLongIds:{type:"boolean"}}}},ModifyIdentityIdFormat:{input:{type:"structure",required:["PrincipalArn","Resource","UseLongIds"],members:{PrincipalArn:{locationName:"principalArn"},Resource:{locationName:"resource"},UseLongIds:{locationName:"useLongIds",type:"boolean"}}}},ModifyImageAttribute:{input:{type:"structure",required:["ImageId"],members:{Attribute:{},Description:{shape:"S7i"},ImageId:{},LaunchPermission:{type:"structure",members:{Add:{shape:"Ssh"},Remove:{shape:"Ssh"}}},OperationType:{},ProductCodes:{shape:"S1d2",locationName:"ProductCode"},UserGroups:{shape:"S1d1",locationName:"UserGroup"},UserIds:{shape:"S1d0",locationName:"UserId"},Value:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},ModifyInstanceAttribute:{input:{type:"structure",required:["InstanceId"],members:{SourceDestCheck:{shape:"Stk"},Attribute:{locationName:"attribute"},BlockDeviceMappings:{locationName:"blockDeviceMapping",type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},VolumeId:{locationName:"volumeId"}}},NoDevice:{locationName:"noDevice"},VirtualName:{locationName:"virtualName"}}}},DisableApiTermination:{shape:"Stk",locationName:"disableApiTermination"},DryRun:{locationName:"dryRun",type:"boolean"},EbsOptimized:{shape:"Stk",locationName:"ebsOptimized"},EnaSupport:{shape:"Stk",locationName:"enaSupport"},Groups:{shape:"S3j",locationName:"GroupId"},InstanceId:{locationName:"instanceId"},InstanceInitiatedShutdownBehavior:{shape:"S7i",locationName:"instanceInitiatedShutdownBehavior"},InstanceType:{shape:"S7i",locationName:"instanceType"},Kernel:{shape:"S7i",locationName:"kernel"},Ramdisk:{shape:"S7i",locationName:"ramdisk"},SriovNetSupport:{shape:"S7i",locationName:"sriovNetSupport"},UserData:{locationName:"userData",type:"structure",members:{Value:{locationName:"value",type:"blob"}}},Value:{locationName:"value"}}}},ModifyInstanceCapacityReservationAttributes:{input:{type:"structure",required:["InstanceId","CapacityReservationSpecification"],members:{InstanceId:{},CapacityReservationSpecification:{shape:"S1dk"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyInstanceCreditSpecification:{input:{type:"structure",required:["InstanceCreditSpecifications"],members:{DryRun:{type:"boolean"},ClientToken:{},InstanceCreditSpecifications:{locationName:"InstanceCreditSpecification",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{},CpuCredits:{}}}}}},output:{type:"structure",members:{SuccessfulInstanceCreditSpecifications:{locationName:"successfulInstanceCreditSpecificationSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"}}}},UnsuccessfulInstanceCreditSpecifications:{locationName:"unsuccessfulInstanceCreditSpecificationSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}}}}},ModifyInstanceEventStartTime:{input:{type:"structure",required:["InstanceId","InstanceEventId","NotBefore"],members:{DryRun:{type:"boolean"},InstanceId:{},InstanceEventId:{},NotBefore:{type:"timestamp"}}},output:{type:"structure",members:{Event:{shape:"Stx",locationName:"event"}}}},ModifyInstanceMetadataOptions:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},HttpTokens:{},HttpPutResponseHopLimit:{type:"integer"},HttpEndpoint:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceMetadataOptions:{shape:"Sx5",locationName:"instanceMetadataOptions"}}}},ModifyInstancePlacement:{input:{type:"structure",required:["InstanceId"],members:{Affinity:{locationName:"affinity"},GroupName:{},HostId:{locationName:"hostId"},InstanceId:{locationName:"instanceId"},Tenancy:{locationName:"tenancy"},PartitionNumber:{type:"integer"},HostResourceGroupArn:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyLaunchTemplate:{input:{type:"structure",members:{DryRun:{type:"boolean"},ClientToken:{},LaunchTemplateId:{},LaunchTemplateName:{},DefaultVersion:{locationName:"SetDefaultVersion"}}},output:{type:"structure",members:{LaunchTemplate:{shape:"Saw",locationName:"launchTemplate"}}}},ModifyNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},Description:{shape:"S7i",locationName:"description"},DryRun:{locationName:"dryRun",type:"boolean"},Groups:{shape:"S9u",locationName:"SecurityGroupId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},SourceDestCheck:{shape:"Stk",locationName:"sourceDestCheck"}}}},ModifyReservedInstances:{input:{type:"structure",required:["ReservedInstancesIds","TargetConfigurations"],members:{ReservedInstancesIds:{shape:"S10o",locationName:"ReservedInstancesId"},ClientToken:{locationName:"clientToken"},TargetConfigurations:{locationName:"ReservedInstancesConfigurationSetItemType",type:"list",member:{shape:"S11a",locationName:"item"}}}},output:{type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"}}}},ModifySnapshotAttribute:{input:{type:"structure",required:["SnapshotId"],members:{Attribute:{},CreateVolumePermission:{type:"structure",members:{Add:{shape:"S12k"},Remove:{shape:"S12k"}}},GroupNames:{shape:"S12c",locationName:"UserGroup"},OperationType:{},SnapshotId:{},UserIds:{shape:"S1d0",locationName:"UserId"},DryRun:{locationName:"dryRun",type:"boolean"}}}},ModifySpotFleetRequest:{input:{type:"structure",required:["SpotFleetRequestId"],members:{ExcessCapacityTerminationPolicy:{locationName:"excessCapacityTerminationPolicy"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},TargetCapacity:{locationName:"targetCapacity",type:"integer"},OnDemandTargetCapacity:{type:"integer"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifySubnetAttribute:{input:{type:"structure",required:["SubnetId"],members:{AssignIpv6AddressOnCreation:{shape:"Stk"},MapPublicIpOnLaunch:{shape:"Stk"},SubnetId:{locationName:"subnetId"},MapCustomerOwnedIpOnLaunch:{shape:"Stk"},CustomerOwnedIpv4Pool:{}}}},ModifyTrafficMirrorFilterNetworkServices:{input:{type:"structure",required:["TrafficMirrorFilterId"],members:{TrafficMirrorFilterId:{},AddNetworkServices:{shape:"Ses",locationName:"AddNetworkService"},RemoveNetworkServices:{shape:"Ses",locationName:"RemoveNetworkService"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorFilter:{shape:"Sem",locationName:"trafficMirrorFilter"}}}},ModifyTrafficMirrorFilterRule:{input:{type:"structure",required:["TrafficMirrorFilterRuleId"],members:{TrafficMirrorFilterRuleId:{},TrafficDirection:{},RuleNumber:{type:"integer"},RuleAction:{},DestinationPortRange:{shape:"Sew"},SourcePortRange:{shape:"Sew"},Protocol:{type:"integer"},DestinationCidrBlock:{},SourceCidrBlock:{},Description:{},RemoveFields:{locationName:"RemoveField",type:"list",member:{}},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorFilterRule:{shape:"Seo",locationName:"trafficMirrorFilterRule"}}}},ModifyTrafficMirrorSession:{input:{type:"structure",required:["TrafficMirrorSessionId"],members:{TrafficMirrorSessionId:{},TrafficMirrorTargetId:{},TrafficMirrorFilterId:{},PacketLength:{type:"integer"},SessionNumber:{type:"integer"},VirtualNetworkId:{type:"integer"},Description:{},RemoveFields:{locationName:"RemoveField",type:"list",member:{}},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TrafficMirrorSession:{shape:"Sf1",locationName:"trafficMirrorSession"}}}},ModifyTransitGatewayVpcAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},AddSubnetIds:{shape:"Sg0"},RemoveSubnetIds:{shape:"Sg0"},Options:{type:"structure",members:{DnsSupport:{},Ipv6Support:{}}},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayVpcAttachment:{shape:"Sn",locationName:"transitGatewayVpcAttachment"}}}},ModifyVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{type:"boolean"},VolumeId:{},Size:{type:"integer"},VolumeType:{},Iops:{type:"integer"}}},output:{type:"structure",members:{VolumeModification:{shape:"S16j",locationName:"volumeModification"}}}},ModifyVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{AutoEnableIO:{shape:"Stk"},VolumeId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},ModifyVpcAttribute:{input:{type:"structure",required:["VpcId"],members:{EnableDnsHostnames:{shape:"Stk"},EnableDnsSupport:{shape:"Stk"},VpcId:{locationName:"vpcId"}}}},ModifyVpcEndpoint:{input:{type:"structure",required:["VpcEndpointId"],members:{DryRun:{type:"boolean"},VpcEndpointId:{},ResetPolicy:{type:"boolean"},PolicyDocument:{},AddRouteTableIds:{shape:"Sgb",locationName:"AddRouteTableId"},RemoveRouteTableIds:{shape:"Sgb",locationName:"RemoveRouteTableId"},AddSubnetIds:{shape:"Sgc",locationName:"AddSubnetId"},RemoveSubnetIds:{shape:"Sgc",locationName:"RemoveSubnetId"},AddSecurityGroupIds:{shape:"Sgd",locationName:"AddSecurityGroupId"},RemoveSecurityGroupIds:{shape:"Sgd",locationName:"RemoveSecurityGroupId"},PrivateDnsEnabled:{type:"boolean"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyVpcEndpointConnectionNotification:{input:{type:"structure",required:["ConnectionNotificationId"],members:{DryRun:{type:"boolean"},ConnectionNotificationId:{},ConnectionNotificationArn:{},ConnectionEvents:{shape:"So"}}},output:{type:"structure",members:{ReturnValue:{locationName:"return",type:"boolean"}}}},ModifyVpcEndpointServiceConfiguration:{input:{type:"structure",required:["ServiceId"],members:{DryRun:{type:"boolean"},ServiceId:{},PrivateDnsName:{},RemovePrivateDnsName:{type:"boolean"},AcceptanceRequired:{type:"boolean"},AddNetworkLoadBalancerArns:{shape:"So",locationName:"AddNetworkLoadBalancerArn"},RemoveNetworkLoadBalancerArns:{shape:"So",locationName:"RemoveNetworkLoadBalancerArn"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ModifyVpcEndpointServicePermissions:{input:{type:"structure",required:["ServiceId"],members:{DryRun:{type:"boolean"},ServiceId:{},AddAllowedPrincipals:{shape:"So"},RemoveAllowedPrincipals:{shape:"So"}}},output:{type:"structure",members:{ReturnValue:{locationName:"return",type:"boolean"}}}},ModifyVpcPeeringConnectionOptions:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{AccepterPeeringConnectionOptions:{shape:"S1f6"},DryRun:{type:"boolean"},RequesterPeeringConnectionOptions:{shape:"S1f6"},VpcPeeringConnectionId:{}}},output:{type:"structure",members:{AccepterPeeringConnectionOptions:{shape:"S1f8",locationName:"accepterPeeringConnectionOptions"},RequesterPeeringConnectionOptions:{shape:"S1f8",locationName:"requesterPeeringConnectionOptions"}}}},ModifyVpcTenancy:{input:{type:"structure",required:["VpcId","InstanceTenancy"],members:{VpcId:{},InstanceTenancy:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ReturnValue:{locationName:"return",type:"boolean"}}}},ModifyVpnConnection:{input:{type:"structure",required:["VpnConnectionId"],members:{VpnConnectionId:{},TransitGatewayId:{},CustomerGatewayId:{},VpnGatewayId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{VpnConnection:{shape:"Shm",locationName:"vpnConnection"}}}},ModifyVpnTunnelCertificate:{input:{type:"structure",required:["VpnConnectionId","VpnTunnelOutsideIpAddress"],members:{VpnConnectionId:{},VpnTunnelOutsideIpAddress:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{VpnConnection:{shape:"Shm",locationName:"vpnConnection"}}}},ModifyVpnTunnelOptions:{input:{type:"structure",required:["VpnConnectionId","VpnTunnelOutsideIpAddress","TunnelOptions"],members:{VpnConnectionId:{},VpnTunnelOutsideIpAddress:{},TunnelOptions:{type:"structure",members:{TunnelInsideCidr:{},PreSharedKey:{},Phase1LifetimeSeconds:{type:"integer"},Phase2LifetimeSeconds:{type:"integer"},RekeyMarginTimeSeconds:{type:"integer"},RekeyFuzzPercentage:{type:"integer"},ReplayWindowSize:{type:"integer"},DPDTimeoutSeconds:{type:"integer"},Phase1EncryptionAlgorithms:{shape:"Sh7",locationName:"Phase1EncryptionAlgorithm"},Phase2EncryptionAlgorithms:{shape:"Sh9",locationName:"Phase2EncryptionAlgorithm"},Phase1IntegrityAlgorithms:{shape:"Shb",locationName:"Phase1IntegrityAlgorithm"},Phase2IntegrityAlgorithms:{shape:"Shd",locationName:"Phase2IntegrityAlgorithm"},Phase1DHGroupNumbers:{shape:"Shf",locationName:"Phase1DHGroupNumber"},Phase2DHGroupNumbers:{shape:"Shh",locationName:"Phase2DHGroupNumber"},IKEVersions:{shape:"Shj",locationName:"IKEVersion"}}},DryRun:{type:"boolean"}}},output:{type:"structure",members:{VpnConnection:{shape:"Shm",locationName:"vpnConnection"}}}},MonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"Sn1",locationName:"InstanceId"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"S1fl",locationName:"instancesSet"}}}},MoveAddressToVpc:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{AllocationId:{locationName:"allocationId"},Status:{locationName:"status"}}}},ProvisionByoipCidr:{input:{type:"structure",required:["Cidr"],members:{Cidr:{},CidrAuthorizationContext:{type:"structure",required:["Message","Signature"],members:{Message:{},Signature:{}}},PubliclyAdvertisable:{type:"boolean"},Description:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ByoipCidr:{shape:"S1e",locationName:"byoipCidr"}}}},PurchaseHostReservation:{input:{type:"structure",required:["HostIdSet","OfferingId"],members:{ClientToken:{},CurrencyCode:{},HostIdSet:{shape:"S1az"},LimitPrice:{},OfferingId:{}}},output:{type:"structure",members:{ClientToken:{locationName:"clientToken"},CurrencyCode:{locationName:"currencyCode"},Purchase:{shape:"S1b1",locationName:"purchase"},TotalHourlyPrice:{locationName:"totalHourlyPrice"},TotalUpfrontPrice:{locationName:"totalUpfrontPrice"}}}},PurchaseReservedInstancesOffering:{input:{type:"structure",required:["InstanceCount","ReservedInstancesOfferingId"],members:{InstanceCount:{type:"integer"},ReservedInstancesOfferingId:{},DryRun:{locationName:"dryRun",type:"boolean"},LimitPrice:{locationName:"limitPrice",type:"structure",members:{Amount:{locationName:"amount",type:"double"},CurrencyCode:{locationName:"currencyCode"}}},PurchaseTime:{type:"timestamp"}}},output:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}}},PurchaseScheduledInstances:{input:{type:"structure",required:["PurchaseRequests"],members:{ClientToken:{idempotencyToken:true},DryRun:{type:"boolean"},PurchaseRequests:{locationName:"PurchaseRequest",type:"list",member:{locationName:"PurchaseRequest",type:"structure",required:["InstanceCount","PurchaseToken"],members:{InstanceCount:{type:"integer"},PurchaseToken:{}}}}}},output:{type:"structure",members:{ScheduledInstanceSet:{locationName:"scheduledInstanceSet",type:"list",member:{shape:"S125",locationName:"item"}}}}},RebootInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"Sn1",locationName:"InstanceId"},DryRun:{locationName:"dryRun",type:"boolean"}}}},RegisterImage:{input:{type:"structure",required:["Name"],members:{ImageLocation:{},Architecture:{locationName:"architecture"},BlockDeviceMappings:{shape:"S8y",locationName:"BlockDeviceMapping"},Description:{locationName:"description"},DryRun:{locationName:"dryRun",type:"boolean"},EnaSupport:{locationName:"enaSupport",type:"boolean"},KernelId:{locationName:"kernelId"},Name:{locationName:"name"},BillingProducts:{locationName:"BillingProduct",type:"list",member:{locationName:"item"}},RamdiskId:{locationName:"ramdiskId"},RootDeviceName:{locationName:"rootDeviceName"},SriovNetSupport:{locationName:"sriovNetSupport"},VirtualizationType:{locationName:"virtualizationType"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}}},RegisterInstanceEventNotificationAttributes:{input:{type:"structure",members:{DryRun:{type:"boolean"},InstanceTagAttribute:{type:"structure",members:{IncludeAllTagsOfInstance:{type:"boolean"},InstanceTagKeys:{shape:"Sli",locationName:"InstanceTagKey"}}}}},output:{type:"structure",members:{InstanceTagAttribute:{shape:"Slk",locationName:"instanceTagAttribute"}}}},RegisterTransitGatewayMulticastGroupMembers:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},GroupIpAddress:{},NetworkInterfaceIds:{shape:"Slm"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{RegisteredMulticastGroupMembers:{locationName:"registeredMulticastGroupMembers",type:"structure",members:{TransitGatewayMulticastDomainId:{locationName:"transitGatewayMulticastDomainId"},RegisteredNetworkInterfaceIds:{shape:"So",locationName:"registeredNetworkInterfaceIds"},GroupIpAddress:{locationName:"groupIpAddress"}}}}}},RegisterTransitGatewayMulticastGroupSources:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},GroupIpAddress:{},NetworkInterfaceIds:{shape:"Slm"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{RegisteredMulticastGroupSources:{locationName:"registeredMulticastGroupSources",type:"structure",members:{TransitGatewayMulticastDomainId:{locationName:"transitGatewayMulticastDomainId"},RegisteredNetworkInterfaceIds:{shape:"So",locationName:"registeredNetworkInterfaceIds"},GroupIpAddress:{locationName:"groupIpAddress"}}}}}},RejectTransitGatewayPeeringAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayPeeringAttachment:{shape:"Se",locationName:"transitGatewayPeeringAttachment"}}}},RejectTransitGatewayVpcAttachment:{input:{type:"structure",required:["TransitGatewayAttachmentId"],members:{TransitGatewayAttachmentId:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{TransitGatewayVpcAttachment:{shape:"Sn",locationName:"transitGatewayVpcAttachment"}}}},RejectVpcEndpointConnections:{input:{type:"structure",required:["ServiceId","VpcEndpointIds"],members:{DryRun:{type:"boolean"},ServiceId:{},VpcEndpointIds:{shape:"Su",locationName:"VpcEndpointId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"Sx",locationName:"unsuccessful"}}}},RejectVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ReleaseAddress:{input:{type:"structure",members:{AllocationId:{},PublicIp:{},NetworkBorderGroup:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},ReleaseHosts:{input:{type:"structure",required:["HostIds"],members:{HostIds:{shape:"Srr",locationName:"hostId"}}},output:{type:"structure",members:{Successful:{shape:"S1q",locationName:"successful"},Unsuccessful:{shape:"S1d9",locationName:"unsuccessful"}}}},ReplaceIamInstanceProfileAssociation:{input:{type:"structure",required:["IamInstanceProfile","AssociationId"],members:{IamInstanceProfile:{shape:"S2i"},AssociationId:{}}},output:{type:"structure",members:{IamInstanceProfileAssociation:{shape:"S2k",locationName:"iamInstanceProfileAssociation"}}}},ReplaceNetworkAclAssociation:{input:{type:"structure",required:["AssociationId","NetworkAclId"],members:{AssociationId:{locationName:"associationId"},DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}}},ReplaceNetworkAclEntry:{input:{type:"structure",required:["Egress","NetworkAclId","Protocol","RuleAction","RuleNumber"],members:{CidrBlock:{locationName:"cidrBlock"},DryRun:{locationName:"dryRun",type:"boolean"},Egress:{locationName:"egress",type:"boolean"},IcmpTypeCode:{shape:"Sck",locationName:"Icmp"},Ipv6CidrBlock:{locationName:"ipv6CidrBlock"},NetworkAclId:{locationName:"networkAclId"},PortRange:{shape:"Scl",locationName:"portRange"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},RuleNumber:{locationName:"ruleNumber",type:"integer"}}}},ReplaceRoute:{input:{type:"structure",required:["RouteTableId"],members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationIpv6CidrBlock:{locationName:"destinationIpv6CidrBlock"},DryRun:{locationName:"dryRun",type:"boolean"},EgressOnlyInternetGatewayId:{locationName:"egressOnlyInternetGatewayId"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},LocalTarget:{type:"boolean"},NatGatewayId:{locationName:"natGatewayId"},TransitGatewayId:{},LocalGatewayId:{},NetworkInterfaceId:{locationName:"networkInterfaceId"},RouteTableId:{locationName:"routeTableId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}}},ReplaceRouteTableAssociation:{input:{type:"structure",required:["AssociationId","RouteTableId"],members:{AssociationId:{locationName:"associationId"},DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"},AssociationState:{shape:"S2r",locationName:"associationState"}}}},ReplaceTransitGatewayRoute:{input:{type:"structure",required:["DestinationCidrBlock","TransitGatewayRouteTableId"],members:{DestinationCidrBlock:{},TransitGatewayRouteTableId:{},TransitGatewayAttachmentId:{},Blackhole:{type:"boolean"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Route:{shape:"Sfq",locationName:"route"}}}},ReportInstanceStatus:{input:{type:"structure",required:["Instances","ReasonCodes","Status"],members:{Description:{locationName:"description"},DryRun:{locationName:"dryRun",type:"boolean"},EndTime:{locationName:"endTime",type:"timestamp"},Instances:{shape:"Sn1",locationName:"instanceId"},ReasonCodes:{locationName:"reasonCode",type:"list",member:{locationName:"item"}},StartTime:{locationName:"startTime",type:"timestamp"},Status:{locationName:"status"}}}},RequestSpotFleet:{input:{type:"structure",required:["SpotFleetRequestConfig"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestConfig:{shape:"S137",locationName:"spotFleetRequestConfig"}}},output:{type:"structure",members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"}}}},RequestSpotInstances:{input:{type:"structure",members:{AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},BlockDurationMinutes:{locationName:"blockDurationMinutes",type:"integer"},ClientToken:{locationName:"clientToken"},DryRun:{locationName:"dryRun",type:"boolean"},InstanceCount:{locationName:"instanceCount",type:"integer"},LaunchGroup:{locationName:"launchGroup"},LaunchSpecification:{type:"structure",members:{SecurityGroupIds:{locationName:"SecurityGroupId",type:"list",member:{locationName:"item"}},SecurityGroups:{locationName:"SecurityGroup",type:"list",member:{locationName:"item"}},AddressingType:{locationName:"addressingType"},BlockDeviceMappings:{shape:"Ssg",locationName:"blockDeviceMapping"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},IamInstanceProfile:{shape:"S2i",locationName:"iamInstanceProfile"},ImageId:{locationName:"imageId"},InstanceType:{locationName:"instanceType"},KernelId:{locationName:"kernelId"},KeyName:{locationName:"keyName"},Monitoring:{shape:"S13z",locationName:"monitoring"},NetworkInterfaces:{shape:"S13e",locationName:"NetworkInterface"},Placement:{shape:"S13g",locationName:"placement"},RamdiskId:{locationName:"ramdiskId"},SubnetId:{locationName:"subnetId"},UserData:{locationName:"userData"}}},SpotPrice:{locationName:"spotPrice"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},InstanceInterruptionBehavior:{}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"S13w",locationName:"spotInstanceRequestSet"}}}},ResetEbsDefaultKmsKeyId:{input:{type:"structure",members:{DryRun:{type:"boolean"}}},output:{type:"structure",members:{KmsKeyId:{locationName:"kmsKeyId"}}}},ResetFpgaImageAttribute:{input:{type:"structure",required:["FpgaImageId"],members:{DryRun:{type:"boolean"},FpgaImageId:{},Attribute:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},ResetImageAttribute:{input:{type:"structure",required:["Attribute","ImageId"],members:{Attribute:{},ImageId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},ResetInstanceAttribute:{input:{type:"structure",required:["Attribute","InstanceId"],members:{Attribute:{locationName:"attribute"},DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"}}}},ResetNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},SourceDestCheck:{locationName:"sourceDestCheck"}}}},ResetSnapshotAttribute:{input:{type:"structure",required:["Attribute","SnapshotId"],members:{Attribute:{},SnapshotId:{},DryRun:{locationName:"dryRun",type:"boolean"}}}},RestoreAddressToClassic:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{PublicIp:{locationName:"publicIp"},Status:{locationName:"status"}}}},RevokeClientVpnIngress:{input:{type:"structure",required:["ClientVpnEndpointId","TargetNetworkCidr"],members:{ClientVpnEndpointId:{},TargetNetworkCidr:{},AccessGroupId:{},RevokeAllGroups:{type:"boolean"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Status:{shape:"S40",locationName:"status"}}}},RevokeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},IpPermissions:{shape:"S43",locationName:"ipPermissions"},CidrIp:{locationName:"cidrIp"},FromPort:{locationName:"fromPort",type:"integer"},IpProtocol:{locationName:"ipProtocol"},ToPort:{locationName:"toPort",type:"integer"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"}}}},RevokeSecurityGroupIngress:{input:{type:"structure",members:{CidrIp:{},FromPort:{type:"integer"},GroupId:{},GroupName:{},IpPermissions:{shape:"S43"},IpProtocol:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},ToPort:{type:"integer"},DryRun:{locationName:"dryRun",type:"boolean"}}}},RunInstances:{input:{type:"structure",required:["MaxCount","MinCount"],members:{BlockDeviceMappings:{shape:"S8y",locationName:"BlockDeviceMapping"},ImageId:{},InstanceType:{},Ipv6AddressCount:{type:"integer"},Ipv6Addresses:{shape:"Sba",locationName:"Ipv6Address"},KernelId:{},KeyName:{},MaxCount:{type:"integer"},MinCount:{type:"integer"},Monitoring:{shape:"S13z"},Placement:{shape:"S86"},RamdiskId:{},SecurityGroupIds:{shape:"S9u",locationName:"SecurityGroupId"},SecurityGroups:{shape:"Sae",locationName:"SecurityGroup"},SubnetId:{},UserData:{},AdditionalInfo:{locationName:"additionalInfo"},ClientToken:{locationName:"clientToken"},DisableApiTermination:{locationName:"disableApiTermination",type:"boolean"},DryRun:{locationName:"dryRun",type:"boolean"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},IamInstanceProfile:{shape:"S2i",locationName:"iamInstanceProfile"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},NetworkInterfaces:{shape:"S13e",locationName:"networkInterface"},PrivateIpAddress:{locationName:"privateIpAddress"},ElasticGpuSpecification:{type:"list",member:{shape:"Saa",locationName:"item"}},ElasticInferenceAccelerators:{locationName:"ElasticInferenceAccelerator",type:"list",member:{locationName:"item",type:"structure",required:["Type"],members:{Type:{},Count:{type:"integer"}}}},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"},LaunchTemplate:{type:"structure",members:{LaunchTemplateId:{},LaunchTemplateName:{},Version:{}}},InstanceMarketOptions:{type:"structure",members:{MarketType:{},SpotOptions:{type:"structure",members:{MaxPrice:{},SpotInstanceType:{},BlockDurationMinutes:{type:"integer"},ValidUntil:{type:"timestamp"},InstanceInterruptionBehavior:{}}}}},CreditSpecification:{shape:"Sak"},CpuOptions:{type:"structure",members:{CoreCount:{type:"integer"},ThreadsPerCore:{type:"integer"}}},CapacityReservationSpecification:{shape:"S1dk"},HibernationOptions:{type:"structure",members:{Configured:{type:"boolean"}}},LicenseSpecifications:{locationName:"LicenseSpecification",type:"list",member:{locationName:"item",type:"structure",members:{LicenseConfigurationArn:{}}}},MetadataOptions:{type:"structure",members:{HttpTokens:{},HttpPutResponseHopLimit:{type:"integer"},HttpEndpoint:{}}}}},output:{shape:"Swk"}},RunScheduledInstances:{input:{type:"structure",required:["LaunchSpecification","ScheduledInstanceId"],members:{ClientToken:{idempotencyToken:true},DryRun:{type:"boolean"},InstanceCount:{type:"integer"},LaunchSpecification:{type:"structure",required:["ImageId"],members:{BlockDeviceMappings:{locationName:"BlockDeviceMapping",type:"list",member:{locationName:"BlockDeviceMapping",type:"structure",members:{DeviceName:{},Ebs:{type:"structure",members:{DeleteOnTermination:{type:"boolean"},Encrypted:{type:"boolean"},Iops:{type:"integer"},SnapshotId:{},VolumeSize:{type:"integer"},VolumeType:{}}},NoDevice:{},VirtualName:{}}}},EbsOptimized:{type:"boolean"},IamInstanceProfile:{type:"structure",members:{Arn:{},Name:{}}},ImageId:{},InstanceType:{},KernelId:{},KeyName:{},Monitoring:{type:"structure",members:{Enabled:{type:"boolean"}}},NetworkInterfaces:{locationName:"NetworkInterface",type:"list",member:{locationName:"NetworkInterface",type:"structure",members:{AssociatePublicIpAddress:{type:"boolean"},DeleteOnTermination:{type:"boolean"},Description:{},DeviceIndex:{type:"integer"},Groups:{shape:"S1if",locationName:"Group"},Ipv6AddressCount:{type:"integer"},Ipv6Addresses:{locationName:"Ipv6Address",type:"list",member:{locationName:"Ipv6Address",type:"structure",members:{Ipv6Address:{}}}},NetworkInterfaceId:{},PrivateIpAddress:{},PrivateIpAddressConfigs:{locationName:"PrivateIpAddressConfig",type:"list",member:{locationName:"PrivateIpAddressConfigSet",type:"structure",members:{Primary:{type:"boolean"},PrivateIpAddress:{}}}},SecondaryPrivateIpAddressCount:{type:"integer"},SubnetId:{}}}},Placement:{type:"structure",members:{AvailabilityZone:{},GroupName:{}}},RamdiskId:{},SecurityGroupIds:{shape:"S1if",locationName:"SecurityGroupId"},SubnetId:{},UserData:{}}},ScheduledInstanceId:{}}},output:{type:"structure",members:{InstanceIdSet:{locationName:"instanceIdSet",type:"list",member:{locationName:"item"}}}}},SearchLocalGatewayRoutes:{input:{type:"structure",required:["LocalGatewayRouteTableId","Filters"],members:{LocalGatewayRouteTableId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Routes:{locationName:"routeSet",type:"list",member:{shape:"Sbz",locationName:"item"}},NextToken:{locationName:"nextToken"}}}},SearchTransitGatewayMulticastGroups:{input:{type:"structure",members:{TransitGatewayMulticastDomainId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{MulticastGroups:{locationName:"multicastGroups",type:"list",member:{locationName:"item",type:"structure",members:{GroupIpAddress:{locationName:"groupIpAddress"},TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},SubnetId:{locationName:"subnetId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},NetworkInterfaceId:{locationName:"networkInterfaceId"},GroupMember:{locationName:"groupMember",type:"boolean"},GroupSource:{locationName:"groupSource",type:"boolean"},MemberType:{locationName:"memberType"},SourceType:{locationName:"sourceType"}}}},NextToken:{locationName:"nextToken"}}}},SearchTransitGatewayRoutes:{input:{type:"structure",required:["TransitGatewayRouteTableId","Filters"],members:{TransitGatewayRouteTableId:{},Filters:{shape:"Sm1",locationName:"Filter"},MaxResults:{type:"integer"},DryRun:{type:"boolean"}}},output:{type:"structure",members:{Routes:{locationName:"routeSet",type:"list",member:{shape:"Sfq",locationName:"item"}},AdditionalRoutesAvailable:{locationName:"additionalRoutesAvailable",type:"boolean"}}}},SendDiagnosticInterrupt:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},DryRun:{type:"boolean"}}}},StartInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"Sn1",locationName:"InstanceId"},AdditionalInfo:{locationName:"additionalInfo"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{StartingInstances:{shape:"S1j3",locationName:"instancesSet"}}}},StartVpcEndpointServicePrivateDnsVerification:{input:{type:"structure",required:["ServiceId"],members:{DryRun:{type:"boolean"},ServiceId:{}}},output:{type:"structure",members:{ReturnValue:{locationName:"return",type:"boolean"}}}},StopInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"Sn1",locationName:"InstanceId"},Hibernate:{type:"boolean"},DryRun:{locationName:"dryRun",type:"boolean"},Force:{locationName:"force",type:"boolean"}}},output:{type:"structure",members:{StoppingInstances:{shape:"S1j3",locationName:"instancesSet"}}}},TerminateClientVpnConnections:{input:{type:"structure",required:["ClientVpnEndpointId"],members:{ClientVpnEndpointId:{},ConnectionId:{},Username:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ClientVpnEndpointId:{locationName:"clientVpnEndpointId"},Username:{locationName:"username"},ConnectionStatuses:{locationName:"connectionStatuses",type:"list",member:{locationName:"item",type:"structure",members:{ConnectionId:{locationName:"connectionId"},PreviousStatus:{shape:"Sng",locationName:"previousStatus"},CurrentStatus:{shape:"Sng",locationName:"currentStatus"}}}}}}},TerminateInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"Sn1",locationName:"InstanceId"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{TerminatingInstances:{shape:"S1j3",locationName:"instancesSet"}}}},UnassignIpv6Addresses:{input:{type:"structure",required:["Ipv6Addresses","NetworkInterfaceId"],members:{Ipv6Addresses:{shape:"S1y",locationName:"ipv6Addresses"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},output:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},UnassignedIpv6Addresses:{shape:"S1y",locationName:"unassignedIpv6Addresses"}}}},UnassignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId","PrivateIpAddresses"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"S22",locationName:"privateIpAddress"}}}},UnmonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"Sn1",locationName:"InstanceId"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"S1fl",locationName:"instancesSet"}}}},UpdateSecurityGroupRuleDescriptionsEgress:{input:{type:"structure",required:["IpPermissions"],members:{DryRun:{type:"boolean"},GroupId:{},GroupName:{},IpPermissions:{shape:"S43"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},UpdateSecurityGroupRuleDescriptionsIngress:{input:{type:"structure",required:["IpPermissions"],members:{DryRun:{type:"boolean"},GroupId:{},GroupName:{},IpPermissions:{shape:"S43"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}}},WithdrawByoipCidr:{input:{type:"structure",required:["Cidr"],members:{Cidr:{},DryRun:{type:"boolean"}}},output:{type:"structure",members:{ByoipCidr:{shape:"S1e",locationName:"byoipCidr"}}}}},shapes:{S3:{type:"list",member:{locationName:"ReservedInstanceId"}},S5:{type:"list",member:{locationName:"TargetConfigurationRequest",type:"structure",required:["OfferingId"],members:{InstanceCount:{type:"integer"},OfferingId:{}}}},Se:{type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},RequesterTgwInfo:{shape:"Sf",locationName:"requesterTgwInfo"},AccepterTgwInfo:{shape:"Sf",locationName:"accepterTgwInfo"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},State:{locationName:"state"},CreationTime:{locationName:"creationTime",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sf:{type:"structure",members:{TransitGatewayId:{locationName:"transitGatewayId"},OwnerId:{locationName:"ownerId"},Region:{locationName:"region"}}},Sj:{type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Value:{locationName:"value"}}}},Sn:{type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},TransitGatewayId:{locationName:"transitGatewayId"},VpcId:{locationName:"vpcId"},VpcOwnerId:{locationName:"vpcOwnerId"},State:{locationName:"state"},SubnetIds:{shape:"So",locationName:"subnetIds"},CreationTime:{locationName:"creationTime",type:"timestamp"},Options:{locationName:"options",type:"structure",members:{DnsSupport:{locationName:"dnsSupport"},Ipv6Support:{locationName:"ipv6Support"}}},Tags:{shape:"Sj",locationName:"tagSet"}}},So:{type:"list",member:{locationName:"item"}},Su:{type:"list",member:{locationName:"item"}},Sx:{type:"list",member:{shape:"Sy",locationName:"item"}},Sy:{type:"structure",members:{Error:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},ResourceId:{locationName:"resourceId"}}},S13:{type:"structure",members:{AccepterVpcInfo:{shape:"S14",locationName:"accepterVpcInfo"},ExpirationTime:{locationName:"expirationTime",type:"timestamp"},RequesterVpcInfo:{shape:"S14",locationName:"requesterVpcInfo"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Tags:{shape:"Sj",locationName:"tagSet"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},S14:{type:"structure",members:{CidrBlock:{locationName:"cidrBlock"},Ipv6CidrBlockSet:{locationName:"ipv6CidrBlockSet",type:"list",member:{locationName:"item",type:"structure",members:{Ipv6CidrBlock:{locationName:"ipv6CidrBlock"}}}},CidrBlockSet:{locationName:"cidrBlockSet",type:"list",member:{locationName:"item",type:"structure",members:{CidrBlock:{locationName:"cidrBlock"}}}},OwnerId:{locationName:"ownerId"},PeeringOptions:{locationName:"peeringOptions",type:"structure",members:{AllowDnsResolutionFromRemoteVpc:{locationName:"allowDnsResolutionFromRemoteVpc",type:"boolean"},AllowEgressFromLocalClassicLinkToRemoteVpc:{locationName:"allowEgressFromLocalClassicLinkToRemoteVpc",type:"boolean"},AllowEgressFromLocalVpcToRemoteClassicLink:{locationName:"allowEgressFromLocalVpcToRemoteClassicLink",type:"boolean"}}},VpcId:{locationName:"vpcId"},Region:{locationName:"region"}}},S1e:{type:"structure",members:{Cidr:{locationName:"cidr"},Description:{locationName:"description"},StatusMessage:{locationName:"statusMessage"},State:{locationName:"state"}}},S1l:{type:"list",member:{locationName:"item",type:"structure",members:{ResourceType:{locationName:"resourceType"},Tags:{shape:"Sj",locationName:"Tag"}}}},S1q:{type:"list",member:{locationName:"item"}},S1u:{type:"list",member:{locationName:"item"}},S1y:{type:"list",member:{locationName:"item"}},S22:{type:"list",member:{locationName:"PrivateIpAddress"}},S2d:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S2i:{type:"structure",members:{Arn:{locationName:"arn"},Name:{locationName:"name"}}},S2k:{type:"structure",members:{AssociationId:{locationName:"associationId"},InstanceId:{locationName:"instanceId"},IamInstanceProfile:{shape:"S2l",locationName:"iamInstanceProfile"},State:{locationName:"state"},Timestamp:{locationName:"timestamp",type:"timestamp"}}},S2l:{type:"structure",members:{Arn:{locationName:"arn"},Id:{locationName:"id"}}},S2r:{type:"structure",members:{State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"}}},S2v:{type:"structure",members:{AssociationId:{locationName:"associationId"},Ipv6CidrBlock:{locationName:"ipv6CidrBlock"},Ipv6CidrBlockState:{locationName:"ipv6CidrBlockState",type:"structure",members:{State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"}}}}},S31:{type:"structure",members:{TransitGatewayMulticastDomainId:{locationName:"transitGatewayMulticastDomainId"},TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},Subnets:{locationName:"subnets",type:"list",member:{shape:"S34",locationName:"item"}}}},S34:{type:"structure",members:{SubnetId:{locationName:"subnetId"},State:{locationName:"state"}}},S39:{type:"structure",members:{TransitGatewayRouteTableId:{locationName:"transitGatewayRouteTableId"},TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},State:{locationName:"state"}}},S3e:{type:"structure",members:{AssociationId:{locationName:"associationId"},Ipv6CidrBlock:{locationName:"ipv6CidrBlock"},Ipv6CidrBlockState:{shape:"S3f",locationName:"ipv6CidrBlockState"},NetworkBorderGroup:{locationName:"networkBorderGroup"},Ipv6Pool:{locationName:"ipv6Pool"}}},S3f:{type:"structure",members:{State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"}}},S3h:{type:"structure",members:{AssociationId:{locationName:"associationId"},CidrBlock:{locationName:"cidrBlock"},CidrBlockState:{shape:"S3f",locationName:"cidrBlockState"}}},S3j:{type:"list",member:{locationName:"groupId"}},S3r:{type:"structure",members:{AttachTime:{locationName:"attachTime",type:"timestamp"},Device:{locationName:"device"},InstanceId:{locationName:"instanceId"},State:{locationName:"status"},VolumeId:{locationName:"volumeId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},S3w:{type:"structure",members:{State:{locationName:"state"},VpcId:{locationName:"vpcId"}}},S40:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S43:{type:"list",member:{locationName:"item",type:"structure",members:{FromPort:{locationName:"fromPort",type:"integer"},IpProtocol:{locationName:"ipProtocol"},IpRanges:{locationName:"ipRanges",type:"list",member:{locationName:"item",type:"structure",members:{CidrIp:{locationName:"cidrIp"},Description:{locationName:"description"}}}},Ipv6Ranges:{locationName:"ipv6Ranges",type:"list",member:{locationName:"item",type:"structure",members:{CidrIpv6:{locationName:"cidrIpv6"},Description:{locationName:"description"}}}},PrefixListIds:{locationName:"prefixListIds",type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},PrefixListId:{locationName:"prefixListId"}}}},ToPort:{locationName:"toPort",type:"integer"},UserIdGroupPairs:{locationName:"groups",type:"list",member:{shape:"S4c",locationName:"item"}}}}},S4c:{type:"structure",members:{Description:{locationName:"description"},GroupId:{locationName:"groupId"},GroupName:{locationName:"groupName"},PeeringStatus:{locationName:"peeringStatus"},UserId:{locationName:"userId"},VpcId:{locationName:"vpcId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},S4g:{type:"structure",members:{S3:{type:"structure",members:{AWSAccessKeyId:{},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},UploadPolicy:{locationName:"uploadPolicy",type:"blob"},UploadPolicySignature:{locationName:"uploadPolicySignature"}}}}},S4k:{type:"structure",members:{BundleId:{locationName:"bundleId"},BundleTaskError:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},InstanceId:{locationName:"instanceId"},Progress:{locationName:"progress"},StartTime:{locationName:"startTime",type:"timestamp"},State:{locationName:"state"},Storage:{shape:"S4g",locationName:"storage"},UpdateTime:{locationName:"updateTime",type:"timestamp"}}},S53:{type:"list",member:{locationName:"item",type:"structure",members:{ClientToken:{locationName:"clientToken"},CreateDate:{locationName:"createDate",type:"timestamp"},InstanceCounts:{locationName:"instanceCounts",type:"list",member:{locationName:"item",type:"structure",members:{InstanceCount:{locationName:"instanceCount",type:"integer"},State:{locationName:"state"}}}},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Active:{locationName:"active",type:"boolean"},CurrencyCode:{locationName:"currencyCode"},Price:{locationName:"price",type:"double"},Term:{locationName:"term",type:"long"}}}},ReservedInstancesId:{locationName:"reservedInstancesId"},ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Tags:{shape:"Sj",locationName:"tagSet"},UpdateDate:{locationName:"updateDate",type:"timestamp"}}}},S5f:{type:"list",member:{locationName:"item"}},S5q:{type:"list",member:{locationName:"SpotInstanceRequestId"}},S6c:{type:"structure",members:{CapacityReservationId:{locationName:"capacityReservationId"},OwnerId:{locationName:"ownerId"},CapacityReservationArn:{locationName:"capacityReservationArn"},AvailabilityZoneId:{locationName:"availabilityZoneId"},InstanceType:{locationName:"instanceType"},InstancePlatform:{locationName:"instancePlatform"},AvailabilityZone:{locationName:"availabilityZone"},Tenancy:{locationName:"tenancy"},TotalInstanceCount:{locationName:"totalInstanceCount",type:"integer"},AvailableInstanceCount:{locationName:"availableInstanceCount",type:"integer"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},EphemeralStorage:{locationName:"ephemeralStorage",type:"boolean"},State:{locationName:"state"},EndDate:{locationName:"endDate",type:"timestamp"},EndDateType:{locationName:"endDateType"},InstanceMatchCriteria:{locationName:"instanceMatchCriteria"},CreateDate:{locationName:"createDate",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"}}},S6k:{type:"structure",members:{Enabled:{type:"boolean"},CloudwatchLogGroup:{},CloudwatchLogStream:{}}},S6n:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S6r:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S6w:{type:"structure",members:{BgpAsn:{locationName:"bgpAsn"},CustomerGatewayId:{locationName:"customerGatewayId"},IpAddress:{locationName:"ipAddress"},CertificateArn:{locationName:"certificateArn"},State:{locationName:"state"},Type:{locationName:"type"},DeviceName:{locationName:"deviceName"},Tags:{shape:"Sj",locationName:"tagSet"}}},S6z:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},AvailabilityZoneId:{locationName:"availabilityZoneId"},AvailableIpAddressCount:{locationName:"availableIpAddressCount",type:"integer"},CidrBlock:{locationName:"cidrBlock"},DefaultForAz:{locationName:"defaultForAz",type:"boolean"},MapPublicIpOnLaunch:{locationName:"mapPublicIpOnLaunch",type:"boolean"},MapCustomerOwnedIpOnLaunch:{locationName:"mapCustomerOwnedIpOnLaunch",type:"boolean"},CustomerOwnedIpv4Pool:{locationName:"customerOwnedIpv4Pool"},State:{locationName:"state"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},OwnerId:{locationName:"ownerId"},AssignIpv6AddressOnCreation:{locationName:"assignIpv6AddressOnCreation",type:"boolean"},Ipv6CidrBlockAssociationSet:{locationName:"ipv6CidrBlockAssociationSet",type:"list",member:{shape:"S2v",locationName:"item"}},Tags:{shape:"Sj",locationName:"tagSet"},SubnetArn:{locationName:"subnetArn"},OutpostArn:{locationName:"outpostArn"}}},S75:{type:"structure",members:{CidrBlock:{locationName:"cidrBlock"},DhcpOptionsId:{locationName:"dhcpOptionsId"},State:{locationName:"state"},VpcId:{locationName:"vpcId"},OwnerId:{locationName:"ownerId"},InstanceTenancy:{locationName:"instanceTenancy"},Ipv6CidrBlockAssociationSet:{locationName:"ipv6CidrBlockAssociationSet",type:"list",member:{shape:"S3e",locationName:"item"}},CidrBlockAssociationSet:{locationName:"cidrBlockAssociationSet",type:"list",member:{shape:"S3h",locationName:"item"}},IsDefault:{locationName:"isDefault",type:"boolean"},Tags:{shape:"Sj",locationName:"tagSet"}}},S7e:{type:"structure",members:{DhcpConfigurations:{locationName:"dhcpConfigurationSet",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{locationName:"valueSet",type:"list",member:{shape:"S7i",locationName:"item"}}}}},DhcpOptionsId:{locationName:"dhcpOptionsId"},OwnerId:{locationName:"ownerId"},Tags:{shape:"Sj",locationName:"tagSet"}}},S7i:{type:"structure",members:{Value:{locationName:"value"}}},S7l:{type:"structure",members:{Attachments:{shape:"S7m",locationName:"attachmentSet"},EgressOnlyInternetGatewayId:{locationName:"egressOnlyInternetGatewayId"},Tags:{shape:"Sj",locationName:"tagSet"}}},S7m:{type:"list",member:{locationName:"item",type:"structure",members:{State:{locationName:"state"},VpcId:{locationName:"vpcId"}}}},S86:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Affinity:{locationName:"affinity"},GroupName:{locationName:"groupName"},PartitionNumber:{locationName:"partitionNumber",type:"integer"},HostId:{locationName:"hostId"},Tenancy:{locationName:"tenancy"},SpreadDomain:{locationName:"spreadDomain"},HostResourceGroupArn:{locationName:"hostResourceGroupArn"}}},S87:{type:"structure",required:["TotalTargetCapacity"],members:{TotalTargetCapacity:{type:"integer"},OnDemandTargetCapacity:{type:"integer"},SpotTargetCapacity:{type:"integer"},DefaultTargetCapacityType:{}}},S8e:{type:"structure",members:{LaunchTemplateSpecification:{shape:"S8f",locationName:"launchTemplateSpecification"},Overrides:{shape:"S8g",locationName:"overrides"}}},S8f:{type:"structure",members:{LaunchTemplateId:{locationName:"launchTemplateId"},LaunchTemplateName:{locationName:"launchTemplateName"},Version:{locationName:"version"}}},S8g:{type:"structure",members:{InstanceType:{locationName:"instanceType"},MaxPrice:{locationName:"maxPrice"},SubnetId:{locationName:"subnetId"},AvailabilityZone:{locationName:"availabilityZone"},WeightedCapacity:{locationName:"weightedCapacity",type:"double"},Priority:{locationName:"priority",type:"double"},Placement:{locationName:"placement",type:"structure",members:{GroupName:{locationName:"groupName"}}}}},S8l:{type:"list",member:{locationName:"item"}},S8v:{type:"structure",members:{Bucket:{},Key:{}}},S8y:{type:"list",member:{shape:"S8z",locationName:"BlockDeviceMapping"}},S8z:{type:"structure",members:{DeviceName:{locationName:"deviceName"},VirtualName:{locationName:"virtualName"},Ebs:{locationName:"ebs",type:"structure",members:{DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},Iops:{locationName:"iops",type:"integer"},SnapshotId:{locationName:"snapshotId"},VolumeSize:{locationName:"volumeSize",type:"integer"},VolumeType:{locationName:"volumeType"},KmsKeyId:{},Encrypted:{locationName:"encrypted",type:"boolean"}}},NoDevice:{locationName:"noDevice"}}},S99:{type:"structure",members:{Description:{locationName:"description"},ExportTaskId:{locationName:"exportTaskId"},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{ContainerFormat:{locationName:"containerFormat"},DiskImageFormat:{locationName:"diskImageFormat"},S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}},InstanceExportDetails:{locationName:"instanceExport",type:"structure",members:{InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"}}},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},Tags:{shape:"Sj",locationName:"tagSet"}}},S9f:{type:"structure",members:{Attachments:{shape:"S7m",locationName:"attachmentSet"},InternetGatewayId:{locationName:"internetGatewayId"},OwnerId:{locationName:"ownerId"},Tags:{shape:"Sj",locationName:"tagSet"}}},S9l:{type:"structure",members:{KernelId:{},EbsOptimized:{type:"boolean"},IamInstanceProfile:{type:"structure",members:{Arn:{},Name:{}}},BlockDeviceMappings:{locationName:"BlockDeviceMapping",type:"list",member:{locationName:"BlockDeviceMapping",type:"structure",members:{DeviceName:{},VirtualName:{},Ebs:{type:"structure",members:{Encrypted:{type:"boolean"},DeleteOnTermination:{type:"boolean"},Iops:{type:"integer"},KmsKeyId:{},SnapshotId:{},VolumeSize:{type:"integer"},VolumeType:{}}},NoDevice:{}}}},NetworkInterfaces:{locationName:"NetworkInterface",type:"list",member:{locationName:"InstanceNetworkInterfaceSpecification",type:"structure",members:{AssociatePublicIpAddress:{type:"boolean"},DeleteOnTermination:{type:"boolean"},Description:{},DeviceIndex:{type:"integer"},Groups:{shape:"S9u",locationName:"SecurityGroupId"},InterfaceType:{},Ipv6AddressCount:{type:"integer"},Ipv6Addresses:{type:"list",member:{locationName:"InstanceIpv6Address",type:"structure",members:{Ipv6Address:{}}}},NetworkInterfaceId:{},PrivateIpAddress:{},PrivateIpAddresses:{shape:"S9x"},SecondaryPrivateIpAddressCount:{type:"integer"},SubnetId:{}}}},ImageId:{},InstanceType:{},KeyName:{},Monitoring:{type:"structure",members:{Enabled:{type:"boolean"}}},Placement:{type:"structure",members:{AvailabilityZone:{},Affinity:{},GroupName:{},HostId:{},Tenancy:{},SpreadDomain:{},HostResourceGroupArn:{},PartitionNumber:{type:"integer"}}},RamDiskId:{},DisableApiTermination:{type:"boolean"},InstanceInitiatedShutdownBehavior:{},UserData:{},TagSpecifications:{locationName:"TagSpecification",type:"list",member:{locationName:"LaunchTemplateTagSpecificationRequest",type:"structure",members:{ResourceType:{},Tags:{shape:"Sj",locationName:"Tag"}}}},ElasticGpuSpecifications:{locationName:"ElasticGpuSpecification",type:"list",member:{shape:"Saa",locationName:"ElasticGpuSpecification"}},ElasticInferenceAccelerators:{locationName:"ElasticInferenceAccelerator",type:"list",member:{locationName:"item",type:"structure",required:["Type"],members:{Type:{},Count:{type:"integer"}}}},SecurityGroupIds:{shape:"S9u",locationName:"SecurityGroupId"},SecurityGroups:{shape:"Sae",locationName:"SecurityGroup"},InstanceMarketOptions:{type:"structure",members:{MarketType:{},SpotOptions:{type:"structure",members:{MaxPrice:{},SpotInstanceType:{},BlockDurationMinutes:{type:"integer"},ValidUntil:{type:"timestamp"},InstanceInterruptionBehavior:{}}}}},CreditSpecification:{shape:"Sak"},CpuOptions:{type:"structure",members:{CoreCount:{type:"integer"},ThreadsPerCore:{type:"integer"}}},CapacityReservationSpecification:{type:"structure",members:{CapacityReservationPreference:{},CapacityReservationTarget:{shape:"Sao"}}},LicenseSpecifications:{locationName:"LicenseSpecification",type:"list",member:{locationName:"item",type:"structure",members:{LicenseConfigurationArn:{}}}},HibernationOptions:{type:"structure",members:{Configured:{type:"boolean"}}},MetadataOptions:{type:"structure",members:{HttpTokens:{},HttpPutResponseHopLimit:{type:"integer"},HttpEndpoint:{}}}}},S9u:{type:"list",member:{locationName:"SecurityGroupId"}},S9x:{type:"list",member:{locationName:"item",type:"structure",members:{Primary:{locationName:"primary",type:"boolean"},PrivateIpAddress:{locationName:"privateIpAddress"}}}},Saa:{type:"structure",required:["Type"],members:{Type:{}}},Sae:{type:"list",member:{locationName:"SecurityGroup"}},Sak:{type:"structure",required:["CpuCredits"],members:{CpuCredits:{}}},Sao:{type:"structure",members:{CapacityReservationId:{}}},Saw:{type:"structure",members:{LaunchTemplateId:{locationName:"launchTemplateId"},LaunchTemplateName:{locationName:"launchTemplateName"},CreateTime:{locationName:"createTime",type:"timestamp"},CreatedBy:{locationName:"createdBy"},DefaultVersionNumber:{locationName:"defaultVersionNumber",type:"long"},LatestVersionNumber:{locationName:"latestVersionNumber",type:"long"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sax:{type:"structure",members:{Errors:{locationName:"errorSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},Sb2:{type:"structure",members:{LaunchTemplateId:{locationName:"launchTemplateId"},LaunchTemplateName:{locationName:"launchTemplateName"},VersionNumber:{locationName:"versionNumber",type:"long"},VersionDescription:{locationName:"versionDescription"},CreateTime:{locationName:"createTime",type:"timestamp"},CreatedBy:{locationName:"createdBy"},DefaultVersion:{locationName:"defaultVersion",type:"boolean"},LaunchTemplateData:{shape:"Sb3",locationName:"launchTemplateData"}}},Sb3:{type:"structure",members:{KernelId:{locationName:"kernelId"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},IamInstanceProfile:{locationName:"iamInstanceProfile",type:"structure",members:{Arn:{locationName:"arn"},Name:{locationName:"name"}}},BlockDeviceMappings:{locationName:"blockDeviceMappingSet",type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},VirtualName:{locationName:"virtualName"},Ebs:{locationName:"ebs",type:"structure",members:{Encrypted:{locationName:"encrypted",type:"boolean"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},Iops:{locationName:"iops",type:"integer"},KmsKeyId:{locationName:"kmsKeyId"},SnapshotId:{locationName:"snapshotId"},VolumeSize:{locationName:"volumeSize",type:"integer"},VolumeType:{locationName:"volumeType"}}},NoDevice:{locationName:"noDevice"}}}},NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{locationName:"item",type:"structure",members:{AssociatePublicIpAddress:{locationName:"associatePublicIpAddress",type:"boolean"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},Description:{locationName:"description"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Groups:{shape:"S3j",locationName:"groupSet"},InterfaceType:{locationName:"interfaceType"},Ipv6AddressCount:{locationName:"ipv6AddressCount",type:"integer"},Ipv6Addresses:{shape:"Sba",locationName:"ipv6AddressesSet"},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateIpAddresses:{shape:"S9x",locationName:"privateIpAddressesSet"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},SubnetId:{locationName:"subnetId"}}}},ImageId:{locationName:"imageId"},InstanceType:{locationName:"instanceType"},KeyName:{locationName:"keyName"},Monitoring:{locationName:"monitoring",type:"structure",members:{Enabled:{locationName:"enabled",type:"boolean"}}},Placement:{locationName:"placement",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Affinity:{locationName:"affinity"},GroupName:{locationName:"groupName"},HostId:{locationName:"hostId"},Tenancy:{locationName:"tenancy"},SpreadDomain:{locationName:"spreadDomain"},HostResourceGroupArn:{locationName:"hostResourceGroupArn"},PartitionNumber:{locationName:"partitionNumber",type:"integer"}}},RamDiskId:{locationName:"ramDiskId"},DisableApiTermination:{locationName:"disableApiTermination",type:"boolean"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},UserData:{locationName:"userData"},TagSpecifications:{locationName:"tagSpecificationSet",type:"list",member:{locationName:"item",type:"structure",members:{ResourceType:{locationName:"resourceType"},Tags:{shape:"Sj",locationName:"tagSet"}}}},ElasticGpuSpecifications:{locationName:"elasticGpuSpecificationSet",type:"list",member:{locationName:"item",type:"structure",members:{Type:{locationName:"type"}}}},ElasticInferenceAccelerators:{locationName:"elasticInferenceAcceleratorSet",type:"list",member:{locationName:"item",type:"structure",members:{Type:{locationName:"type"},Count:{locationName:"count",type:"integer"}}}},SecurityGroupIds:{shape:"So",locationName:"securityGroupIdSet"},SecurityGroups:{shape:"So",locationName:"securityGroupSet"},InstanceMarketOptions:{locationName:"instanceMarketOptions",type:"structure",members:{MarketType:{locationName:"marketType"},SpotOptions:{locationName:"spotOptions",type:"structure",members:{MaxPrice:{locationName:"maxPrice"},SpotInstanceType:{locationName:"spotInstanceType"},BlockDurationMinutes:{locationName:"blockDurationMinutes",type:"integer"},ValidUntil:{locationName:"validUntil",type:"timestamp"},InstanceInterruptionBehavior:{locationName:"instanceInterruptionBehavior"}}}}},CreditSpecification:{locationName:"creditSpecification",type:"structure",members:{CpuCredits:{locationName:"cpuCredits"}}},CpuOptions:{locationName:"cpuOptions",type:"structure",members:{CoreCount:{locationName:"coreCount",type:"integer"},ThreadsPerCore:{locationName:"threadsPerCore",type:"integer"}}},CapacityReservationSpecification:{locationName:"capacityReservationSpecification",type:"structure",members:{CapacityReservationPreference:{locationName:"capacityReservationPreference"},CapacityReservationTarget:{shape:"Sbp",locationName:"capacityReservationTarget"}}},LicenseSpecifications:{locationName:"licenseSet",type:"list",member:{locationName:"item",type:"structure",members:{LicenseConfigurationArn:{locationName:"licenseConfigurationArn"}}}},HibernationOptions:{locationName:"hibernationOptions",type:"structure",members:{Configured:{locationName:"configured",type:"boolean"}}},MetadataOptions:{locationName:"metadataOptions",type:"structure",members:{State:{locationName:"state"},HttpTokens:{locationName:"httpTokens"},HttpPutResponseHopLimit:{locationName:"httpPutResponseHopLimit",type:"integer"},HttpEndpoint:{locationName:"httpEndpoint"}}}}},Sba:{type:"list",member:{locationName:"item",type:"structure",members:{Ipv6Address:{locationName:"ipv6Address"}}}},Sbp:{type:"structure",members:{CapacityReservationId:{locationName:"capacityReservationId"}}},Sbz:{type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},LocalGatewayVirtualInterfaceGroupId:{locationName:"localGatewayVirtualInterfaceGroupId"},Type:{locationName:"type"},State:{locationName:"state"},LocalGatewayRouteTableId:{locationName:"localGatewayRouteTableId"}}},Sc4:{type:"structure",members:{LocalGatewayRouteTableVpcAssociationId:{locationName:"localGatewayRouteTableVpcAssociationId"},LocalGatewayRouteTableId:{locationName:"localGatewayRouteTableId"},LocalGatewayId:{locationName:"localGatewayId"},VpcId:{locationName:"vpcId"},State:{locationName:"state"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sc8:{type:"structure",members:{CreateTime:{locationName:"createTime",type:"timestamp"},DeleteTime:{locationName:"deleteTime",type:"timestamp"},FailureCode:{locationName:"failureCode"},FailureMessage:{locationName:"failureMessage"},NatGatewayAddresses:{locationName:"natGatewayAddressSet",type:"list",member:{locationName:"item",type:"structure",members:{AllocationId:{locationName:"allocationId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIp:{locationName:"privateIp"},PublicIp:{locationName:"publicIp"}}}},NatGatewayId:{locationName:"natGatewayId"},ProvisionedBandwidth:{locationName:"provisionedBandwidth",type:"structure",members:{ProvisionTime:{locationName:"provisionTime",type:"timestamp"},Provisioned:{locationName:"provisioned"},RequestTime:{locationName:"requestTime",type:"timestamp"},Requested:{locationName:"requested"},Status:{locationName:"status"}}},State:{locationName:"state"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},Tags:{shape:"Sj",locationName:"tagSet"}}},Scf:{type:"structure",members:{Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkAclAssociationId:{locationName:"networkAclAssociationId"},NetworkAclId:{locationName:"networkAclId"},SubnetId:{locationName:"subnetId"}}}},Entries:{locationName:"entrySet",type:"list",member:{locationName:"item",type:"structure",members:{CidrBlock:{locationName:"cidrBlock"},Egress:{locationName:"egress",type:"boolean"},IcmpTypeCode:{shape:"Sck",locationName:"icmpTypeCode"},Ipv6CidrBlock:{locationName:"ipv6CidrBlock"},PortRange:{shape:"Scl",locationName:"portRange"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},RuleNumber:{locationName:"ruleNumber",type:"integer"}}}},IsDefault:{locationName:"default",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},Tags:{shape:"Sj",locationName:"tagSet"},VpcId:{locationName:"vpcId"},OwnerId:{locationName:"ownerId"}}},Sck:{type:"structure",members:{Code:{locationName:"code",type:"integer"},Type:{locationName:"type",type:"integer"}}},Scl:{type:"structure",members:{From:{locationName:"from",type:"integer"},To:{locationName:"to",type:"integer"}}},Scs:{type:"structure",members:{Association:{shape:"Sct",locationName:"association"},Attachment:{shape:"Scu",locationName:"attachment"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},Groups:{shape:"Scv",locationName:"groupSet"},InterfaceType:{locationName:"interfaceType"},Ipv6Addresses:{locationName:"ipv6AddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{Ipv6Address:{locationName:"ipv6Address"}}}},MacAddress:{locationName:"macAddress"},NetworkInterfaceId:{locationName:"networkInterfaceId"},OutpostArn:{locationName:"outpostArn"},OwnerId:{locationName:"ownerId"},PrivateDnsName:{locationName:"privateDnsName"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{Association:{shape:"Sct",locationName:"association"},Primary:{locationName:"primary",type:"boolean"},PrivateDnsName:{locationName:"privateDnsName"},PrivateIpAddress:{locationName:"privateIpAddress"}}}},RequesterId:{locationName:"requesterId"},RequesterManaged:{locationName:"requesterManaged",type:"boolean"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Status:{locationName:"status"},SubnetId:{locationName:"subnetId"},TagSet:{shape:"Sj",locationName:"tagSet"},VpcId:{locationName:"vpcId"}}},Sct:{type:"structure",members:{AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"},IpOwnerId:{locationName:"ipOwnerId"},PublicDnsName:{locationName:"publicDnsName"},PublicIp:{locationName:"publicIp"}}},Scu:{type:"structure",members:{AttachTime:{locationName:"attachTime",type:"timestamp"},AttachmentId:{locationName:"attachmentId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},Status:{locationName:"status"}}},Scv:{type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"}}}},Sd6:{type:"structure",members:{NetworkInterfacePermissionId:{locationName:"networkInterfacePermissionId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},AwsAccountId:{locationName:"awsAccountId"},AwsService:{locationName:"awsService"},Permission:{locationName:"permission"},PermissionState:{locationName:"permissionState",type:"structure",members:{State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"}}}}},Sdc:{type:"structure",members:{GroupName:{locationName:"groupName"},State:{locationName:"state"},Strategy:{locationName:"strategy"},PartitionCount:{locationName:"partitionCount",type:"integer"},GroupId:{locationName:"groupId"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sdp:{type:"structure",members:{Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{Main:{locationName:"main",type:"boolean"},RouteTableAssociationId:{locationName:"routeTableAssociationId"},RouteTableId:{locationName:"routeTableId"},SubnetId:{locationName:"subnetId"},GatewayId:{locationName:"gatewayId"},AssociationState:{shape:"S2r",locationName:"associationState"}}}},PropagatingVgws:{locationName:"propagatingVgwSet",type:"list",member:{locationName:"item",type:"structure",members:{GatewayId:{locationName:"gatewayId"}}}},RouteTableId:{locationName:"routeTableId"},Routes:{locationName:"routeSet",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationIpv6CidrBlock:{locationName:"destinationIpv6CidrBlock"},DestinationPrefixListId:{locationName:"destinationPrefixListId"},EgressOnlyInternetGatewayId:{locationName:"egressOnlyInternetGatewayId"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},NatGatewayId:{locationName:"natGatewayId"},TransitGatewayId:{locationName:"transitGatewayId"},LocalGatewayId:{locationName:"localGatewayId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Origin:{locationName:"origin"},State:{locationName:"state"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}}},Tags:{shape:"Sj",locationName:"tagSet"},VpcId:{locationName:"vpcId"},OwnerId:{locationName:"ownerId"}}},Se1:{type:"structure",members:{DataEncryptionKeyId:{locationName:"dataEncryptionKeyId"},Description:{locationName:"description"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"},OwnerId:{locationName:"ownerId"},Progress:{locationName:"progress"},SnapshotId:{locationName:"snapshotId"},StartTime:{locationName:"startTime",type:"timestamp"},State:{locationName:"status"},StateMessage:{locationName:"statusMessage"},VolumeId:{locationName:"volumeId"},VolumeSize:{locationName:"volumeSize",type:"integer"},OwnerAlias:{locationName:"ownerAlias"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sec:{type:"structure",members:{Bucket:{locationName:"bucket"},Fault:{shape:"Sed",locationName:"fault"},OwnerId:{locationName:"ownerId"},Prefix:{locationName:"prefix"},State:{locationName:"state"}}},Sed:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Sei:{type:"list",member:{}},Sem:{type:"structure",members:{TrafficMirrorFilterId:{locationName:"trafficMirrorFilterId"},IngressFilterRules:{shape:"Sen",locationName:"ingressFilterRuleSet"},EgressFilterRules:{shape:"Sen",locationName:"egressFilterRuleSet"},NetworkServices:{shape:"Ses",locationName:"networkServiceSet"},Description:{locationName:"description"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sen:{type:"list",member:{shape:"Seo",locationName:"item"}},Seo:{type:"structure",members:{TrafficMirrorFilterRuleId:{locationName:"trafficMirrorFilterRuleId"},TrafficMirrorFilterId:{locationName:"trafficMirrorFilterId"},TrafficDirection:{locationName:"trafficDirection"},RuleNumber:{locationName:"ruleNumber",type:"integer"},RuleAction:{locationName:"ruleAction"},Protocol:{locationName:"protocol",type:"integer"},DestinationPortRange:{shape:"Ser",locationName:"destinationPortRange"},SourcePortRange:{shape:"Ser",locationName:"sourcePortRange"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},SourceCidrBlock:{locationName:"sourceCidrBlock"},Description:{locationName:"description"}}},Ser:{type:"structure",members:{FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"}}},Ses:{type:"list",member:{locationName:"item"}},Sew:{type:"structure",members:{FromPort:{type:"integer"},ToPort:{type:"integer"}}},Sf1:{type:"structure",members:{TrafficMirrorSessionId:{locationName:"trafficMirrorSessionId"},TrafficMirrorTargetId:{locationName:"trafficMirrorTargetId"},TrafficMirrorFilterId:{locationName:"trafficMirrorFilterId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},OwnerId:{locationName:"ownerId"},PacketLength:{locationName:"packetLength",type:"integer"},SessionNumber:{locationName:"sessionNumber",type:"integer"},VirtualNetworkId:{locationName:"virtualNetworkId",type:"integer"},Description:{locationName:"description"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sf4:{type:"structure",members:{TrafficMirrorTargetId:{locationName:"trafficMirrorTargetId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},NetworkLoadBalancerArn:{locationName:"networkLoadBalancerArn"},Type:{locationName:"type"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sfe:{type:"structure",members:{TransitGatewayId:{locationName:"transitGatewayId"},TransitGatewayArn:{locationName:"transitGatewayArn"},State:{locationName:"state"},OwnerId:{locationName:"ownerId"},Description:{locationName:"description"},CreationTime:{locationName:"creationTime",type:"timestamp"},Options:{locationName:"options",type:"structure",members:{AmazonSideAsn:{locationName:"amazonSideAsn",type:"long"},AutoAcceptSharedAttachments:{locationName:"autoAcceptSharedAttachments"},DefaultRouteTableAssociation:{locationName:"defaultRouteTableAssociation"},AssociationDefaultRouteTableId:{locationName:"associationDefaultRouteTableId"},DefaultRouteTablePropagation:{locationName:"defaultRouteTablePropagation"},PropagationDefaultRouteTableId:{locationName:"propagationDefaultRouteTableId"},VpnEcmpSupport:{locationName:"vpnEcmpSupport"},DnsSupport:{locationName:"dnsSupport"},MulticastSupport:{locationName:"multicastSupport"}}},Tags:{shape:"Sj",locationName:"tagSet"}}},Sfj:{type:"structure",members:{TransitGatewayMulticastDomainId:{locationName:"transitGatewayMulticastDomainId"},TransitGatewayId:{locationName:"transitGatewayId"},State:{locationName:"state"},CreationTime:{locationName:"creationTime",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sfq:{type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},TransitGatewayAttachments:{locationName:"transitGatewayAttachments",type:"list",member:{locationName:"item",type:"structure",members:{ResourceId:{locationName:"resourceId"},TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceType:{locationName:"resourceType"}}}},Type:{locationName:"type"},State:{locationName:"state"}}},Sfx:{type:"structure",members:{TransitGatewayRouteTableId:{locationName:"transitGatewayRouteTableId"},TransitGatewayId:{locationName:"transitGatewayId"},State:{locationName:"state"},DefaultAssociationRouteTable:{locationName:"defaultAssociationRouteTable",type:"boolean"},DefaultPropagationRouteTable:{locationName:"defaultPropagationRouteTable",type:"boolean"},CreationTime:{locationName:"creationTime",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sg0:{type:"list",member:{locationName:"item"}},Sg4:{type:"structure",members:{Attachments:{locationName:"attachmentSet",type:"list",member:{shape:"S3r",locationName:"item"}},AvailabilityZone:{locationName:"availabilityZone"},CreateTime:{locationName:"createTime",type:"timestamp"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"},OutpostArn:{locationName:"outpostArn"},Size:{locationName:"size",type:"integer"},SnapshotId:{locationName:"snapshotId"},State:{locationName:"status"},VolumeId:{locationName:"volumeId"},Iops:{locationName:"iops",type:"integer"},Tags:{shape:"Sj",locationName:"tagSet"},VolumeType:{locationName:"volumeType"},FastRestored:{locationName:"fastRestored",type:"boolean"},MultiAttachEnabled:{locationName:"multiAttachEnabled",type:"boolean"}}},Sgb:{type:"list",member:{locationName:"item"}},Sgc:{type:"list",member:{locationName:"item"}},Sgd:{type:"list",member:{locationName:"item"}},Sgf:{type:"structure",members:{VpcEndpointId:{locationName:"vpcEndpointId"},VpcEndpointType:{locationName:"vpcEndpointType"},VpcId:{locationName:"vpcId"},ServiceName:{locationName:"serviceName"},State:{locationName:"state"},PolicyDocument:{locationName:"policyDocument"},RouteTableIds:{shape:"So",locationName:"routeTableIdSet"},SubnetIds:{shape:"So",locationName:"subnetIdSet"},Groups:{locationName:"groupSet",type:"list",member:{locationName:"item",type:"structure",members:{GroupId:{locationName:"groupId"},GroupName:{locationName:"groupName"}}}},PrivateDnsEnabled:{locationName:"privateDnsEnabled",type:"boolean"},RequesterManaged:{locationName:"requesterManaged",type:"boolean"},NetworkInterfaceIds:{shape:"So",locationName:"networkInterfaceIdSet"},DnsEntries:{shape:"Sgj",locationName:"dnsEntrySet"},CreationTimestamp:{locationName:"creationTimestamp",type:"timestamp"},Tags:{shape:"Sj",locationName:"tagSet"},OwnerId:{locationName:"ownerId"},LastError:{locationName:"lastError",type:"structure",members:{Message:{locationName:"message"},Code:{locationName:"code"}}}}},Sgj:{type:"list",member:{locationName:"item",type:"structure",members:{DnsName:{locationName:"dnsName"},HostedZoneId:{locationName:"hostedZoneId"}}}},Sgo:{type:"structure",members:{ConnectionNotificationId:{locationName:"connectionNotificationId"},ServiceId:{locationName:"serviceId"},VpcEndpointId:{locationName:"vpcEndpointId"},ConnectionNotificationType:{locationName:"connectionNotificationType"},ConnectionNotificationArn:{locationName:"connectionNotificationArn"},ConnectionEvents:{shape:"So",locationName:"connectionEvents"},ConnectionNotificationState:{locationName:"connectionNotificationState"}}},Sgt:{type:"structure",members:{ServiceType:{shape:"Sgu",locationName:"serviceType"},ServiceId:{locationName:"serviceId"},ServiceName:{locationName:"serviceName"},ServiceState:{locationName:"serviceState"},AvailabilityZones:{shape:"So",locationName:"availabilityZoneSet"},AcceptanceRequired:{locationName:"acceptanceRequired",type:"boolean"},ManagesVpcEndpoints:{locationName:"managesVpcEndpoints",type:"boolean"},NetworkLoadBalancerArns:{shape:"So",locationName:"networkLoadBalancerArnSet"},BaseEndpointDnsNames:{shape:"So",locationName:"baseEndpointDnsNameSet"},PrivateDnsName:{locationName:"privateDnsName"},PrivateDnsNameConfiguration:{locationName:"privateDnsNameConfiguration",type:"structure",members:{State:{locationName:"state"},Type:{locationName:"type"},Value:{locationName:"value"},Name:{locationName:"name"}}},Tags:{shape:"Sj",locationName:"tagSet"}}},Sgu:{type:"list",member:{locationName:"item",type:"structure",members:{ServiceType:{locationName:"serviceType"}}}},Sh7:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{}}}},Sh9:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{}}}},Shb:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{}}}},Shd:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{}}}},Shf:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{type:"integer"}}}},Shh:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{type:"integer"}}}},Shj:{type:"list",member:{locationName:"item",type:"structure",members:{Value:{}}}},Shm:{type:"structure",members:{CustomerGatewayConfiguration:{locationName:"customerGatewayConfiguration"},CustomerGatewayId:{locationName:"customerGatewayId"},Category:{locationName:"category"},State:{locationName:"state"},Type:{locationName:"type"},VpnConnectionId:{locationName:"vpnConnectionId"},VpnGatewayId:{locationName:"vpnGatewayId"},TransitGatewayId:{locationName:"transitGatewayId"},Options:{locationName:"options",type:"structure",members:{EnableAcceleration:{locationName:"enableAcceleration",type:"boolean"},StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"},TunnelOptions:{locationName:"tunnelOptionSet",type:"list",member:{locationName:"item",type:"structure",members:{OutsideIpAddress:{locationName:"outsideIpAddress"},TunnelInsideCidr:{locationName:"tunnelInsideCidr"},PreSharedKey:{locationName:"preSharedKey"},Phase1LifetimeSeconds:{locationName:"phase1LifetimeSeconds",type:"integer"},Phase2LifetimeSeconds:{locationName:"phase2LifetimeSeconds",type:"integer"},RekeyMarginTimeSeconds:{locationName:"rekeyMarginTimeSeconds",type:"integer"},RekeyFuzzPercentage:{locationName:"rekeyFuzzPercentage",type:"integer"},ReplayWindowSize:{locationName:"replayWindowSize",type:"integer"},DpdTimeoutSeconds:{locationName:"dpdTimeoutSeconds",type:"integer"},Phase1EncryptionAlgorithms:{locationName:"phase1EncryptionAlgorithmSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value"}}}},Phase2EncryptionAlgorithms:{locationName:"phase2EncryptionAlgorithmSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value"}}}},Phase1IntegrityAlgorithms:{locationName:"phase1IntegrityAlgorithmSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value"}}}},Phase2IntegrityAlgorithms:{locationName:"phase2IntegrityAlgorithmSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value"}}}},Phase1DHGroupNumbers:{locationName:"phase1DHGroupNumberSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value",type:"integer"}}}},Phase2DHGroupNumbers:{locationName:"phase2DHGroupNumberSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value",type:"integer"}}}},IkeVersions:{locationName:"ikeVersionSet",type:"list",member:{locationName:"item",type:"structure",members:{Value:{locationName:"value"}}}}}}}}},Routes:{locationName:"routes",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},Source:{locationName:"source"},State:{locationName:"state"}}}},Tags:{shape:"Sj",locationName:"tagSet"},VgwTelemetry:{locationName:"vgwTelemetry",type:"list",member:{locationName:"item",type:"structure",members:{AcceptedRouteCount:{locationName:"acceptedRouteCount",type:"integer"},LastStatusChange:{locationName:"lastStatusChange",type:"timestamp"},OutsideIpAddress:{locationName:"outsideIpAddress"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},CertificateArn:{locationName:"certificateArn"}}}}}},Sif:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"state"},Type:{locationName:"type"},VpcAttachments:{locationName:"attachments",type:"list",member:{shape:"S3w",locationName:"item"}},VpnGatewayId:{locationName:"vpnGatewayId"},AmazonSideAsn:{locationName:"amazonSideAsn",type:"long"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sir:{type:"list",member:{}},Sj1:{type:"list",member:{locationName:"item"}},Sjc:{type:"list",member:{locationName:"item"}},Sl4:{type:"list",member:{locationName:"item"}},Sli:{type:"list",member:{locationName:"item"}},Slk:{type:"structure",members:{InstanceTagKeys:{shape:"Sli",locationName:"instanceTagKeySet"},IncludeAllTagsOfInstance:{locationName:"includeAllTagsOfInstance",type:"boolean"}}},Slm:{type:"list",member:{locationName:"item"}},Sm1:{type:"list",member:{locationName:"Filter",type:"structure",members:{Name:{},Values:{shape:"So",locationName:"Value"}}}},Sma:{type:"list",member:{locationName:"item",type:"structure",members:{Deadline:{locationName:"deadline",type:"timestamp"},Resource:{locationName:"resource"},UseLongIds:{locationName:"useLongIds",type:"boolean"}}}},Sn1:{type:"list",member:{locationName:"InstanceId"}},Sng:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Soh:{type:"structure",members:{ConversionTaskId:{locationName:"conversionTaskId"},ExpirationTime:{locationName:"expirationTime"},ImportInstance:{locationName:"importInstance",type:"structure",members:{Description:{locationName:"description"},InstanceId:{locationName:"instanceId"},Platform:{locationName:"platform"},Volumes:{locationName:"volumes",type:"list",member:{locationName:"item",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},BytesConverted:{locationName:"bytesConverted",type:"long"},Description:{locationName:"description"},Image:{shape:"Sol",locationName:"image"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Volume:{shape:"Som",locationName:"volume"}}}}}},ImportVolume:{locationName:"importVolume",type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},BytesConverted:{locationName:"bytesConverted",type:"long"},Description:{locationName:"description"},Image:{shape:"Sol",locationName:"image"},Volume:{shape:"Som",locationName:"volume"}}},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},Tags:{shape:"Sj",locationName:"tagSet"}}},Sol:{type:"structure",members:{Checksum:{locationName:"checksum"},Format:{locationName:"format"},ImportManifestUrl:{locationName:"importManifestUrl"},Size:{locationName:"size",type:"long"}}},Som:{type:"structure",members:{Id:{locationName:"id"},Size:{locationName:"size",type:"long"}}},Spk:{type:"structure",members:{S3Bucket:{locationName:"s3Bucket"},S3Prefix:{locationName:"s3Prefix"}}},Sq1:{type:"structure",members:{EventDescription:{locationName:"eventDescription"},EventSubType:{locationName:"eventSubType"},InstanceId:{locationName:"instanceId"}}},Sq4:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceType:{locationName:"instanceType"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},InstanceHealth:{locationName:"instanceHealth"}}}},Squ:{type:"structure",members:{FpgaImageId:{locationName:"fpgaImageId"},Name:{locationName:"name"},Description:{locationName:"description"},LoadPermissions:{locationName:"loadPermissions",type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},ProductCodes:{shape:"Sqy",locationName:"productCodes"}}},Sqy:{type:"list",member:{locationName:"item",type:"structure",members:{ProductCodeId:{locationName:"productCode"},ProductCodeType:{locationName:"type"}}}},Sr3:{type:"list",member:{locationName:"Owner"}},Sro:{type:"list",member:{locationName:"item"}},Srr:{type:"list",member:{locationName:"item"}},Ssg:{type:"list",member:{shape:"S8z",locationName:"item"}},Ssh:{type:"list",member:{locationName:"item",type:"structure",members:{Group:{locationName:"group"},UserId:{locationName:"userId"}}}},Ssu:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},St2:{type:"list",member:{locationName:"item",type:"structure",members:{Description:{locationName:"description"},DeviceName:{locationName:"deviceName"},DiskImageSize:{locationName:"diskImageSize",type:"double"},Format:{locationName:"format"},Progress:{locationName:"progress"},SnapshotId:{locationName:"snapshotId"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Url:{locationName:"url"},UserBucket:{shape:"St4",locationName:"userBucket"}}}},St4:{type:"structure",members:{S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}},St5:{type:"list",member:{locationName:"item",type:"structure",members:{LicenseConfigurationArn:{locationName:"licenseConfigurationArn"}}}},Std:{type:"structure",members:{Description:{locationName:"description"},DiskImageSize:{locationName:"diskImageSize",type:"double"},Encrypted:{locationName:"encrypted",type:"boolean"},Format:{locationName:"format"},KmsKeyId:{locationName:"kmsKeyId"},Progress:{locationName:"progress"},SnapshotId:{locationName:"snapshotId"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Url:{locationName:"url"},UserBucket:{shape:"St4",locationName:"userBucket"}}},Sth:{type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},Status:{locationName:"status"},VolumeId:{locationName:"volumeId"}}}}}},Stk:{type:"structure",members:{Value:{locationName:"value",type:"boolean"}}},Stx:{type:"structure",members:{InstanceEventId:{locationName:"instanceEventId"},Code:{locationName:"code"},Description:{locationName:"description"},NotAfter:{locationName:"notAfter",type:"timestamp"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotBeforeDeadline:{locationName:"notBeforeDeadline",type:"timestamp"}}},Su0:{type:"structure",members:{Code:{locationName:"code",type:"integer"},Name:{locationName:"name"}}},Su2:{type:"structure",members:{Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{ImpairedSince:{locationName:"impairedSince",type:"timestamp"},Name:{locationName:"name"},Status:{locationName:"status"}}}},Status:{locationName:"status"}}},Swk:{type:"structure",members:{Groups:{shape:"Scv",locationName:"groupSet"},Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{AmiLaunchIndex:{locationName:"amiLaunchIndex",type:"integer"},ImageId:{locationName:"imageId"},InstanceId:{locationName:"instanceId"},InstanceType:{locationName:"instanceType"},KernelId:{locationName:"kernelId"},KeyName:{locationName:"keyName"},LaunchTime:{locationName:"launchTime",type:"timestamp"},Monitoring:{shape:"Swn",locationName:"monitoring"},Placement:{shape:"S86",locationName:"placement"},Platform:{locationName:"platform"},PrivateDnsName:{locationName:"privateDnsName"},PrivateIpAddress:{locationName:"privateIpAddress"},ProductCodes:{shape:"Sqy",locationName:"productCodes"},PublicDnsName:{locationName:"dnsName"},PublicIpAddress:{locationName:"ipAddress"},RamdiskId:{locationName:"ramdiskId"},State:{shape:"Su0",locationName:"instanceState"},StateTransitionReason:{locationName:"reason"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},Architecture:{locationName:"architecture"},BlockDeviceMappings:{shape:"Sth",locationName:"blockDeviceMapping"},ClientToken:{locationName:"clientToken"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},EnaSupport:{locationName:"enaSupport",type:"boolean"},Hypervisor:{locationName:"hypervisor"},IamInstanceProfile:{shape:"S2l",locationName:"iamInstanceProfile"},InstanceLifecycle:{locationName:"instanceLifecycle"},ElasticGpuAssociations:{locationName:"elasticGpuAssociationSet",type:"list",member:{locationName:"item",type:"structure",members:{ElasticGpuId:{locationName:"elasticGpuId"},ElasticGpuAssociationId:{locationName:"elasticGpuAssociationId"},ElasticGpuAssociationState:{locationName:"elasticGpuAssociationState"},ElasticGpuAssociationTime:{locationName:"elasticGpuAssociationTime"}}}},ElasticInferenceAcceleratorAssociations:{locationName:"elasticInferenceAcceleratorAssociationSet",type:"list",member:{locationName:"item",type:"structure",members:{ElasticInferenceAcceleratorArn:{locationName:"elasticInferenceAcceleratorArn"},ElasticInferenceAcceleratorAssociationId:{locationName:"elasticInferenceAcceleratorAssociationId"},ElasticInferenceAcceleratorAssociationState:{locationName:"elasticInferenceAcceleratorAssociationState"},ElasticInferenceAcceleratorAssociationTime:{locationName:"elasticInferenceAcceleratorAssociationTime",type:"timestamp"}}}},NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{locationName:"item",type:"structure",members:{Association:{shape:"Sww",locationName:"association"},Attachment:{locationName:"attachment",type:"structure",members:{AttachTime:{locationName:"attachTime",type:"timestamp"},AttachmentId:{locationName:"attachmentId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"}}},Description:{locationName:"description"},Groups:{shape:"Scv",locationName:"groupSet"},Ipv6Addresses:{shape:"Sba",locationName:"ipv6AddressesSet"},MacAddress:{locationName:"macAddress"},NetworkInterfaceId:{locationName:"networkInterfaceId"},OwnerId:{locationName:"ownerId"},PrivateDnsName:{locationName:"privateDnsName"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{Association:{shape:"Sww",locationName:"association"},Primary:{locationName:"primary",type:"boolean"},PrivateDnsName:{locationName:"privateDnsName"},PrivateIpAddress:{locationName:"privateIpAddress"}}}},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Status:{locationName:"status"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},InterfaceType:{locationName:"interfaceType"}}}},OutpostArn:{locationName:"outpostArn"},RootDeviceName:{locationName:"rootDeviceName"},RootDeviceType:{locationName:"rootDeviceType"},SecurityGroups:{shape:"Scv",locationName:"groupSet"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},SriovNetSupport:{locationName:"sriovNetSupport"},StateReason:{shape:"Ssu",locationName:"stateReason"},Tags:{shape:"Sj",locationName:"tagSet"},VirtualizationType:{locationName:"virtualizationType"},CpuOptions:{locationName:"cpuOptions",type:"structure",members:{CoreCount:{locationName:"coreCount",type:"integer"},ThreadsPerCore:{locationName:"threadsPerCore",type:"integer"}}},CapacityReservationId:{locationName:"capacityReservationId"},CapacityReservationSpecification:{locationName:"capacityReservationSpecification",type:"structure",members:{CapacityReservationPreference:{locationName:"capacityReservationPreference"},CapacityReservationTarget:{shape:"Sbp",locationName:"capacityReservationTarget"}}},HibernationOptions:{locationName:"hibernationOptions",type:"structure",members:{Configured:{locationName:"configured",type:"boolean"}}},Licenses:{locationName:"licenseSet",type:"list",member:{locationName:"item",type:"structure",members:{LicenseConfigurationArn:{locationName:"licenseConfigurationArn"}}}},MetadataOptions:{shape:"Sx5",locationName:"metadataOptions"}}}},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},ReservationId:{locationName:"reservationId"}}},Swn:{type:"structure",members:{State:{locationName:"state"}}},Sww:{type:"structure",members:{IpOwnerId:{locationName:"ipOwnerId"},PublicDnsName:{locationName:"publicDnsName"},PublicIp:{locationName:"publicIp"}}},Sx5:{type:"structure",members:{State:{locationName:"state"},HttpTokens:{locationName:"httpTokens"},HttpPutResponseHopLimit:{locationName:"httpPutResponseHopLimit",type:"integer"},HttpEndpoint:{locationName:"httpEndpoint"}}},Sym:{type:"list",member:{locationName:"item"}},S10o:{type:"list",member:{locationName:"ReservedInstancesId"}},S10w:{type:"list",member:{locationName:"item",type:"structure",members:{Amount:{locationName:"amount",type:"double"},Frequency:{locationName:"frequency"}}}},S11a:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},InstanceCount:{locationName:"instanceCount",type:"integer"},InstanceType:{locationName:"instanceType"},Platform:{locationName:"platform"},Scope:{locationName:"scope"}}},S11x:{type:"structure",members:{Frequency:{locationName:"frequency"},Interval:{locationName:"interval",type:"integer"},OccurrenceDaySet:{locationName:"occurrenceDaySet",type:"list",member:{locationName:"item",type:"integer"}},OccurrenceRelativeToEnd:{locationName:"occurrenceRelativeToEnd",type:"boolean"},OccurrenceUnit:{locationName:"occurrenceUnit"}}},S125:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},CreateDate:{locationName:"createDate",type:"timestamp"},HourlyPrice:{locationName:"hourlyPrice"},InstanceCount:{locationName:"instanceCount",type:"integer"},InstanceType:{locationName:"instanceType"},NetworkPlatform:{locationName:"networkPlatform"},NextSlotStartTime:{locationName:"nextSlotStartTime",type:"timestamp"},Platform:{locationName:"platform"},PreviousSlotEndTime:{locationName:"previousSlotEndTime",type:"timestamp"},Recurrence:{shape:"S11x",locationName:"recurrence"},ScheduledInstanceId:{locationName:"scheduledInstanceId"},SlotDurationInHours:{locationName:"slotDurationInHours",type:"integer"},TermEndDate:{locationName:"termEndDate",type:"timestamp"},TermStartDate:{locationName:"termStartDate",type:"timestamp"},TotalScheduledInstanceHours:{locationName:"totalScheduledInstanceHours",type:"integer"}}},S12c:{type:"list",member:{locationName:"GroupName"}},S12k:{type:"list",member:{locationName:"item",type:"structure",members:{Group:{locationName:"group"},UserId:{locationName:"userId"}}}},S12o:{type:"list",member:{locationName:"SnapshotId"}},S137:{type:"structure",required:["IamFleetRole","TargetCapacity"],members:{AllocationStrategy:{locationName:"allocationStrategy"},OnDemandAllocationStrategy:{locationName:"onDemandAllocationStrategy"},ClientToken:{locationName:"clientToken"},ExcessCapacityTerminationPolicy:{locationName:"excessCapacityTerminationPolicy"},FulfilledCapacity:{locationName:"fulfilledCapacity",type:"double"},OnDemandFulfilledCapacity:{locationName:"onDemandFulfilledCapacity",type:"double"},IamFleetRole:{locationName:"iamFleetRole"},LaunchSpecifications:{locationName:"launchSpecifications",type:"list",member:{locationName:"item",type:"structure",members:{SecurityGroups:{shape:"Scv",locationName:"groupSet"},AddressingType:{locationName:"addressingType"},BlockDeviceMappings:{shape:"Ssg",locationName:"blockDeviceMapping"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},IamInstanceProfile:{shape:"S2i",locationName:"iamInstanceProfile"},ImageId:{locationName:"imageId"},InstanceType:{locationName:"instanceType"},KernelId:{locationName:"kernelId"},KeyName:{locationName:"keyName"},Monitoring:{locationName:"monitoring",type:"structure",members:{Enabled:{locationName:"enabled",type:"boolean"}}},NetworkInterfaces:{shape:"S13e",locationName:"networkInterfaceSet"},Placement:{shape:"S13g",locationName:"placement"},RamdiskId:{locationName:"ramdiskId"},SpotPrice:{locationName:"spotPrice"},SubnetId:{locationName:"subnetId"},UserData:{locationName:"userData"},WeightedCapacity:{locationName:"weightedCapacity",type:"double"},TagSpecifications:{locationName:"tagSpecificationSet",type:"list",member:{locationName:"item",type:"structure",members:{ResourceType:{locationName:"resourceType"},Tags:{shape:"Sj",locationName:"tag"}}}}}}},LaunchTemplateConfigs:{locationName:"launchTemplateConfigs",type:"list",member:{locationName:"item",type:"structure",members:{LaunchTemplateSpecification:{shape:"S8f",locationName:"launchTemplateSpecification"},Overrides:{locationName:"overrides",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},SpotPrice:{locationName:"spotPrice"},SubnetId:{locationName:"subnetId"},AvailabilityZone:{locationName:"availabilityZone"},WeightedCapacity:{locationName:"weightedCapacity",type:"double"},Priority:{locationName:"priority",type:"double"}}}}}}},SpotPrice:{locationName:"spotPrice"},TargetCapacity:{locationName:"targetCapacity",type:"integer"},OnDemandTargetCapacity:{locationName:"onDemandTargetCapacity",type:"integer"},OnDemandMaxTotalPrice:{locationName:"onDemandMaxTotalPrice"},SpotMaxTotalPrice:{locationName:"spotMaxTotalPrice"},TerminateInstancesWithExpiration:{locationName:"terminateInstancesWithExpiration",type:"boolean"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},ReplaceUnhealthyInstances:{locationName:"replaceUnhealthyInstances",type:"boolean"},InstanceInterruptionBehavior:{locationName:"instanceInterruptionBehavior"},LoadBalancersConfig:{locationName:"loadBalancersConfig",type:"structure",members:{ClassicLoadBalancersConfig:{locationName:"classicLoadBalancersConfig",type:"structure",members:{ClassicLoadBalancers:{locationName:"classicLoadBalancers",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"}}}}}},TargetGroupsConfig:{locationName:"targetGroupsConfig",type:"structure",members:{TargetGroups:{locationName:"targetGroups",type:"list",member:{locationName:"item",type:"structure",members:{Arn:{locationName:"arn"}}}}}}}},InstancePoolsToUseCount:{locationName:"instancePoolsToUseCount",type:"integer"},TagSpecifications:{shape:"S1l",locationName:"TagSpecification"}}},S13e:{type:"list",member:{locationName:"item",type:"structure",members:{AssociatePublicIpAddress:{locationName:"associatePublicIpAddress",type:"boolean"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},Description:{locationName:"description"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Groups:{shape:"S9u",locationName:"SecurityGroupId"},Ipv6AddressCount:{locationName:"ipv6AddressCount",type:"integer"},Ipv6Addresses:{shape:"Sba",locationName:"ipv6AddressesSet",queryName:"Ipv6Addresses"},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateIpAddresses:{shape:"S9x",locationName:"privateIpAddressesSet",queryName:"PrivateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},SubnetId:{locationName:"subnetId"},InterfaceType:{}}}},S13g:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"},Tenancy:{locationName:"tenancy"}}},S13w:{type:"list",member:{locationName:"item",type:"structure",members:{ActualBlockHourlyPrice:{locationName:"actualBlockHourlyPrice"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},BlockDurationMinutes:{locationName:"blockDurationMinutes",type:"integer"},CreateTime:{locationName:"createTime",type:"timestamp"},Fault:{shape:"Sed",locationName:"fault"},InstanceId:{locationName:"instanceId"},LaunchGroup:{locationName:"launchGroup"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{UserData:{locationName:"userData"},SecurityGroups:{shape:"Scv",locationName:"groupSet"},AddressingType:{locationName:"addressingType"},BlockDeviceMappings:{shape:"Ssg",locationName:"blockDeviceMapping"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},IamInstanceProfile:{shape:"S2i",locationName:"iamInstanceProfile"},ImageId:{locationName:"imageId"},InstanceType:{locationName:"instanceType"},KernelId:{locationName:"kernelId"},KeyName:{locationName:"keyName"},NetworkInterfaces:{shape:"S13e",locationName:"networkInterfaceSet"},Placement:{shape:"S13g",locationName:"placement"},RamdiskId:{locationName:"ramdiskId"},SubnetId:{locationName:"subnetId"},Monitoring:{shape:"S13z",locationName:"monitoring"}}},LaunchedAvailabilityZone:{locationName:"launchedAvailabilityZone"},ProductDescription:{locationName:"productDescription"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},SpotPrice:{locationName:"spotPrice"},State:{locationName:"state"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"},UpdateTime:{locationName:"updateTime",type:"timestamp"}}},Tags:{shape:"Sj",locationName:"tagSet"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},InstanceInterruptionBehavior:{locationName:"instanceInterruptionBehavior"}}}},S13z:{type:"structure",required:["Enabled"],members:{Enabled:{locationName:"enabled",type:"boolean"}}},S14e:{type:"list",member:{locationName:"item",type:"structure",members:{FromPort:{locationName:"fromPort",type:"integer"},IpProtocol:{locationName:"ipProtocol"},IpRanges:{locationName:"ipRanges",type:"list",member:{locationName:"item"}},PrefixListIds:{locationName:"prefixListIds",type:"list",member:{locationName:"item"}},ToPort:{locationName:"toPort",type:"integer"},UserIdGroupPairs:{locationName:"groups",type:"list",member:{shape:"S4c",locationName:"item"}}}}},S156:{type:"list",member:{}},S15y:{type:"list",member:{locationName:"VolumeId"}},S16j:{type:"structure",members:{VolumeId:{locationName:"volumeId"},ModificationState:{locationName:"modificationState"},StatusMessage:{locationName:"statusMessage"},TargetSize:{locationName:"targetSize",type:"integer"},TargetIops:{locationName:"targetIops",type:"integer"},TargetVolumeType:{locationName:"targetVolumeType"},OriginalSize:{locationName:"originalSize",type:"integer"},OriginalIops:{locationName:"originalIops",type:"integer"},OriginalVolumeType:{locationName:"originalVolumeType"},Progress:{locationName:"progress",type:"long"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"}}},S16p:{type:"list",member:{locationName:"VpcId"}},S18e:{type:"list",member:{locationName:"AvailabilityZone"}},S18p:{type:"structure",members:{TransitGatewayAttachmentId:{locationName:"transitGatewayAttachmentId"},ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},TransitGatewayRouteTableId:{locationName:"transitGatewayRouteTableId"},State:{locationName:"state"}}},S1at:{type:"structure",members:{InstanceFamily:{locationName:"instanceFamily"},CpuCredits:{locationName:"cpuCredits"}}},S1az:{type:"list",member:{locationName:"item"}},S1b1:{type:"list",member:{locationName:"item",type:"structure",members:{CurrencyCode:{locationName:"currencyCode"},Duration:{locationName:"duration",type:"integer"},HostIdSet:{shape:"Sro",locationName:"hostIdSet"},HostReservationId:{locationName:"hostReservationId"},HourlyPrice:{locationName:"hourlyPrice"},InstanceFamily:{locationName:"instanceFamily"},PaymentOption:{locationName:"paymentOption"},UpfrontPrice:{locationName:"upfrontPrice"}}}},S1b9:{type:"structure",members:{HourlyPrice:{locationName:"hourlyPrice"},RemainingTotalValue:{locationName:"remainingTotalValue"},RemainingUpfrontValue:{locationName:"remainingUpfrontValue"}}},S1by:{type:"structure",members:{Comment:{},UploadEnd:{type:"timestamp"},UploadSize:{type:"double"},UploadStart:{type:"timestamp"}}},S1c1:{type:"structure",members:{S3Bucket:{},S3Key:{}}},S1c8:{type:"structure",required:["Bytes","Format","ImportManifestUrl"],members:{Bytes:{locationName:"bytes",type:"long"},Format:{locationName:"format"},ImportManifestUrl:{locationName:"importManifestUrl"}}},S1c9:{type:"structure",required:["Size"],members:{Size:{locationName:"size",type:"long"}}},S1d0:{type:"list",member:{locationName:"UserId"}},S1d1:{type:"list",member:{locationName:"UserGroup"}},S1d2:{type:"list",member:{locationName:"ProductCode"}},S1d4:{type:"list",member:{locationName:"item",type:"structure",members:{Group:{},UserId:{}}}},S1d9:{type:"list",member:{shape:"Sy",locationName:"item"}},S1dk:{type:"structure",members:{CapacityReservationPreference:{},CapacityReservationTarget:{shape:"Sao"}}},S1f6:{type:"structure",members:{AllowDnsResolutionFromRemoteVpc:{type:"boolean"},AllowEgressFromLocalClassicLinkToRemoteVpc:{type:"boolean"},AllowEgressFromLocalVpcToRemoteClassicLink:{type:"boolean"}}},S1f8:{type:"structure",members:{AllowDnsResolutionFromRemoteVpc:{locationName:"allowDnsResolutionFromRemoteVpc",type:"boolean"},AllowEgressFromLocalClassicLinkToRemoteVpc:{locationName:"allowEgressFromLocalClassicLinkToRemoteVpc",type:"boolean"},AllowEgressFromLocalVpcToRemoteClassicLink:{locationName:"allowEgressFromLocalVpcToRemoteClassicLink",type:"boolean"}}},S1fl:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},Monitoring:{shape:"Swn",locationName:"monitoring"}}}},S1if:{type:"list",member:{locationName:"SecurityGroupId"}},S1j3:{type:"list",member:{locationName:"item",type:"structure",members:{CurrentState:{shape:"Su0",locationName:"currentState"},InstanceId:{locationName:"instanceId"},PreviousState:{shape:"Su0",locationName:"previousState"}}}}}}},,,,function(e,t,n){"use strict";const r=typeof URL==="undefined"?n(835).URL:URL;const o="text/plain";const i="us-ascii";const a=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const s=(e,{stripHash:t})=>{const n=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!n){throw new Error(`Invalid URL: ${e}`)}const r=n[1].split(";");const a=n[2];const s=t?"":n[3];let c=false;if(r[r.length-1]==="base64"){r.pop();c=true}const u=(r.shift()||"").toLowerCase();const l=r.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());if(t==="charset"){n=n.toLowerCase();if(n===i){return""}}return`${t}${n?`=${n}`:""}`}).filter(Boolean);const p=[...l];if(c){p.push("base64")}if(p.length!==0||u&&u!==o){p.unshift(u)}return`data:${p.join(";")},${c?a.trim():a}${s?`#${s}`:""}`};const c=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return s(e,t)}const n=e.startsWith("//");const o=!n&&/^\.*\//.test(e);if(!o){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const i=new r(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&i.protocol==="https:"){i.protocol="http:"}if(t.forceHttps&&i.protocol==="http:"){i.protocol="https:"}if(t.stripAuthentication){i.username="";i.password=""}if(t.stripHash){i.hash=""}if(i.pathname){i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(i.pathname){i.pathname=decodeURI(i.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const n=e[e.length-1];if(a(n,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);i.pathname=e.slice(1).join("/")+"/"}}if(i.hostname){i.hostname=i.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)){i.hostname=i.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...i.searchParams.keys()]){if(a(e,t.removeQueryParameters)){i.searchParams.delete(e)}}}if(t.sortQueryParameters){i.searchParams.sort()}if(t.removeTrailingSlash){i.pathname=i.pathname.replace(/\/$/,"")}e=i.toString();if((t.removeTrailingSlash||i.pathname==="/")&&i.hash===""){e=e.replace(/\/$/,"")}if(n&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=c;e.exports.default=c},,,,,function(e,t,n){var r=n(984);var o=r.util.inherit;r.Signers.V2=o(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=r.util.date.getDate();var n=this.request;n.params.Timestamp=r.util.date.iso8601(t);n.params.SignatureVersion="2";n.params.SignatureMethod="HmacSHA256";n.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){n.params.SecurityToken=e.sessionToken}delete n.params.Signature;n.params.Signature=this.signature(e);n.body=r.util.queryParamsToString(n.params);n.headers["Content-Length"]=n.body.length},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(r.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=r.Signers.V2},,,,,,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(698);e.exports=t=function(e){o(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(984);var o=r.util;var i=r.Model.Shape;var a=n(117);var s={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var n=null;var r=null;var i=new a.Parser(s);i.parseString(e,function(e,t){r=e;n=t});if(n){var c=parseXml(n,t);if(n.ResponseMetadata){c.ResponseMetadata=parseXml(n.ResponseMetadata[0],{})}return c}else if(r){throw o.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var n={};if(e===null)return n;o.each(t.members,function(r,o){var i=o.name;if(Object.prototype.hasOwnProperty.call(e,i)&&Array.isArray(e[i])){var a=e[i];if(!o.flattened)a=a[0];n[r]=parseXml(a,o)}else if(o.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,i)){n[r]=parseScalar(e.$[i],o)}else if(o.type==="list"&&!t.api.xmlNoDefaultLists){n[r]=o.defaultValue}});return n}function parseMap(e,t){var n={};if(e===null)return n;var r=t.key.name||"key";var i=t.value.name||"value";var a=t.flattened?e:e.entry;if(Array.isArray(a)){o.arrayEach(a,function(e){n[e[r][0]]=parseXml(e[i][0],t.value)})}return n}function parseList(e,t){var n=[];var r=t.member.name||"member";if(t.flattened){o.arrayEach(e,function(e){n.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){o.arrayEach(e[r],function(e){n.push(parseXml(e,t.member))})}return n}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new i.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){o[i]=parseList(a,{member:{}})}else{o[i]=parseXml(a[0],{})}}return o}e.exports=NodeXmlParser},,,,,,,,,,,,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h,N,g,b,I,v,S={}.hasOwnProperty;v=n(779),b=v.isObject,g=v.isFunction,I=v.isPlainObject;m=n(212);r=n(525);o=n(79);y=n(253);N=n(800);d=n(177);u=n(960);l=n(933);i=n(241);s=n(802);a=n(578);c=n(226);t=n(883);h=n(925);f=n(133);e.exports=p=function(){function XMLDocumentCB(e,t,n){var r;e||(e={});if(!e.writer){e.writer=new f(e)}else if(I(e.writer)){r=e.writer;e.writer=new f(r)}this.options=e;this.writer=e.writer;this.stringify=new h(e);this.onDataCallback=t||function(){};this.onEndCallback=n||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,n){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!b(t)){r=[t,n],n=r[0],t=r[1]}this.currentNode=new m(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(n!=null){this.text(n)}return this};XMLDocumentCB.prototype.element=function(e,t,n){if(this.currentNode&&this.currentNode instanceof l){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,n)}};XMLDocumentCB.prototype.attribute=function(e,n){var r,o;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(b(e)){for(r in e){if(!S.call(e,r))continue;o=e[r];this.attribute(r,o)}}else{if(g(n)){n=n.apply()}if(!this.options.skipNullAttributes||n!=null){this.currentNode.attributes[e]=new t(this,e,n)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new N(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new o(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new y(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var n,r,o,i,a;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(n=0,i=e.length;n=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof m){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,n){return this.node(e,t,n)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,n){return this.declaration(e,t,n)};XMLDocumentCB.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)};XMLDocumentCB.prototype.e=function(e,t,n){return this.element(e,t,n)};XMLDocumentCB.prototype.n=function(e,t,n){return this.node(e,t,n)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},,,,,function(e,t,n){var r=n(683);var o=n(151);function v4(e,t,n){var i=t&&n||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[i+s]=a[s]}}return t||o(a)}e.exports=v4},,,function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},,,function(e,t,n){var r=n(984);var o=n(129);var i=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var n=r.util.getProfilesFromSharedConfig(i,this.filename);var o=n[this.profile]||{};if(Object.keys(o).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(o["credential_process"]){this.loadViaCredentialProcess(o,function(n,r){if(n){e(n,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){o.exec(e["credential_process"],function(e,n,o){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var i=JSON.parse(n);if(i.Expiration){var a=r.util.date.getDate();var s=new Date(i.Expiration);if(s=0?"&":"?";var c=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t{const n=new i;const C=[];let R;let D;let E;let k;let x=0;let A=false;const P=e.cookieJar?o.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null;const _=e.cookieJar?o.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null;const M=p.object(e.agent)?e.agent:null;const L=async t=>{try{for(const n of e.hooks.beforeError){t=await n(t)}n.emit("error",t)}catch(e){n.emit("error",e)}};const O=async e=>{const o=E||D;if(e.protocol!=="http:"&&e.protocol!=="https:"){throw new g(e)}decodeURI(o);let i;if(p.function(e.request)){i={request:e.request}}else{i=e.protocol==="https:"?s:a}if(M){const t=e.protocol==="https:"?"https":"http";e.agent=M[t]||e.agent}if(e.useElectronNet&&process.versions.electron){const e={x:require}["yx".slice(1)];const t=e("electron");i=t.net||t.remote.net}if(e.cookieJar){const t=await _(o,{});if(p.nonEmptyString(t)){e.headers.cookie=t}}let c;const l=async t=>{try{if(e.useElectronNet){t=new Proxy(t,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const n=e[t];return p.function(n)?n.bind(e):n}})}const{statusCode:i}=t;t.url=o;t.requestUrl=D;t.retryCount=x;t.timings=c;t.redirectUrls=C;t.request={gotOptions:e};const a=t.headers["set-cookie"];if(e.cookieJar&&a){await Promise.all(a.map(e=>P(e,t.url)))}if(e.followRedirect&&"location"in t.headers){if(w.has(i)||T.has(i)&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(i===303){e.method="GET"}if(C.length>=10){throw new b(i,C,e)}const a=Buffer.from(t.headers.location,"binary").toString();const s=new r(a,o);E=s.toString();C.push(E);const c={...e,...S(s)};for(const t of e.hooks.beforeRedirect){await t(c)}n.emit("redirect",t,c);await O(c);return}}f(t,e,n)}catch(e){L(e)}};const y=r=>{if(A){r.once("error",()=>{});r.abort();return}R=r;r.once("error",t=>{if(r.aborted){return}if(t instanceof d.TimeoutError){t=new v(t,e)}else{t=new I(t,e)}if(n.retry(t)===false){L(t)}});c=m(r);h.upload(r,n,k);if(e.gotTimeout){d(r,e.gotTimeout,e)}n.emit("request",r);const o=()=>{r.emit("upload-complete")};try{if(p.nodeStream(e.body)){e.body.once("end",o);e.body.pipe(r);e.body=undefined}else if(e.body){r.end(e.body,o)}else if(t&&(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")){t.once("end",o);t.pipe(r)}else{r.end(o)}}catch(t){L(new I(t,e))}};if(e.cache){const t=new u(i.request,e.cache);const n=t(e,l);n.once("error",t=>{if(t instanceof u.RequestError){L(new I(t,e))}else{L(new N(t,e))}});n.once("request",y)}else{try{y(i.request(e,l))}catch(t){L(new I(t,e))}}};n.retry=(t=>{let n;try{n=e.retry.retries(++x,t)}catch(e){L(e);return}if(n){const r=async e=>{try{for(const n of e.hooks.beforeRetry){await n(e,t,x)}await O(e)}catch(e){L(e)}};setTimeout(r,n,{...e,forceRefresh:true});return true}return false});n.abort=(()=>{if(R){R.once("error",()=>{});R.abort()}else{A=true}});setImmediate(async()=>{try{const{body:t}=e;if(p.buffer(t)){e.body=l(t);k=t.length}else{k=await y(e)}if(p.undefined(e.headers["content-length"])&&p.undefined(e.headers["transfer-encoding"])){if((k>0||e.method==="PUT")&&!p.null(k)){e.headers["content-length"]=k}}for(const t of e.hooks.beforeRequest){await t(e)}D=e.href||new r(e.path,c.format(e)).toString();await O(e)}catch(e){L(e)}});return n})},,,,,function(e,t,n){n(713);var r=n(984);var o=r.Service;var i=r.apiLoader;i.services["cognitoidentity"]={};r.CognitoIdentity=o.defineService("cognitoidentity",["2014-06-30"]);n(106);Object.defineProperty(i.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=n(558);e.paginators=n(39).pagination;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},,function(e,t,n){var r=n(984).util;var o=n(200);var i=r.buffer.toBuffer;var a=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var n=0,r=t.length;ni){e[o]=a.substr(0,i)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=i(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var n=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,n){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=o.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},,,function(e,t,n){"use strict";const r=n(631);const o=n(281);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:n}=t;let i;await new Promise((a,s)=>{const c=e=>{if(e){e.bufferedData=i.getBufferedValue()}s(e)};i=r(e,o(t),e=>{if(e){c(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>n){c(new MaxBufferError)}})});return i.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},,,,,,function(e){e.exports=require("http")},,function(e,t,n){"use strict";const r=n(627);e.exports=(e=>r.nodeStream(e)&&r.function(e.getBoundary))},,,,,,,function(e){e.exports=require("events")},,,,function(e,t,n){var r=n(116).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},,,,function(e,t,n){const r=n(827);const o=n(808);const i=n(989);const a=n(77);async function run(){try{const e=r.getInput("aws-region",{required:true});const t=r.getInput("aws-access-key-id",{required:true});const n=r.getInput("aws-secret-access-key",{required:true});const s=r.getInput("aws-security-group-id",{required:true}).split(",").map(e=>e.trim());const c=parseInt(r.getInput("port",{required:false}));const u=r.getInput("description",{required:false});i.config.update({region:e,accessKeyId:t,secretAccessKey:n});const l=new a;const p=await l.describeSecurityGroups({GroupIds:s}).promise();for(const e of p.SecurityGroups){const t=e.IpPermissions.find(e=>e.FromPort===c);if(t){const n=t.IpRanges.find(e=>e.Description===u);if(n){await l.revokeSecurityGroupIngress({GroupId:e.GroupId,CidrIp:n.CidrIp,IpProtocol:"tcp",FromPort:c,ToPort:c}).promise()}}const n=await o.v4();await l.authorizeSecurityGroupIngress({GroupId:e.GroupId,IpPermissions:[{IpProtocol:"tcp",FromPort:c,ToPort:c,IpRanges:[{CidrIp:`${n}/32`,Description:u}]}]}).promise();console.log(`The IP ${n} is added`)}}catch(e){r.setFailed(e.message)}}run()},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=typeof URL==="undefined"?n(835).URL:URL;const o=Object.prototype.toString;const i=e=>t=>typeof t===e;const a=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);const s=e=>{const t=o.call(e).slice(8,-1);if(t){return t}return null};const c=e=>t=>s(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(Array.isArray(e)){return"Array"}if(a(e)){return"Buffer"}const t=s(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const t=e=>typeof e==="object";e.undefined=i("undefined");e.string=i("string");e.number=i("number");e.function_=i("function");e.null_=(e=>e===null);e.class_=(t=>e.function_(t)&&t.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=i("symbol");e.numericString=(t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)));e.array=Array.isArray;e.buffer=a;e.nullOrUndefined=(t=>e.null_(t)||e.undefined(t));e.object=(n=>!e.nullOrUndefined(n)&&(e.function_(n)||t(n)));e.iterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]));e.asyncIterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]));e.generator=(t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw));e.nativePromise=(e=>c("Promise")(e));const n=n=>!e.null_(n)&&t(n)&&e.function_(n.then)&&e.function_(n.catch);e.promise=(t=>e.nativePromise(t)||n(t));e.generatorFunction=c("GeneratorFunction");e.asyncFunction=c("AsyncFunction");e.boundFunction=(t=>e.function_(t)&&!t.hasOwnProperty("prototype"));e.regExp=c("RegExp");e.date=c("Date");e.error=c("Error");e.map=(e=>c("Map")(e));e.set=(e=>c("Set")(e));e.weakMap=(e=>c("WeakMap")(e));e.weakSet=(e=>c("WeakSet")(e));e.int8Array=c("Int8Array");e.uint8Array=c("Uint8Array");e.uint8ClampedArray=c("Uint8ClampedArray");e.int16Array=c("Int16Array");e.uint16Array=c("Uint16Array");e.int32Array=c("Int32Array");e.uint32Array=c("Uint32Array");e.float32Array=c("Float32Array");e.float64Array=c("Float64Array");e.arrayBuffer=c("ArrayBuffer");e.sharedArrayBuffer=c("SharedArrayBuffer");e.dataView=c("DataView");e.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);e.urlInstance=(e=>c("URL")(e));e.urlString=(t=>{if(!e.string(t)){return false}try{new r(t);return true}catch(e){return false}});e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const o=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(t=>e.null_(t)||o.has(typeof t));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let t;return s(e)==="Object"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))});const u=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const t=s(e);if(t===null){return false}return u.has(t)});const l=t=>e.safeInteger(t)&&t>-1;e.arrayLike=(t=>!e.nullOrUndefined(t)&&!e.function_(t)&&l(t.length));e.inRange=((t,n)=>{if(e.number(n)){return t>=Math.min(0,n)&&t<=Math.max(n,0)}if(e.array(n)&&n.length===2){return t>=Math.min(...n)&&t<=Math.max(...n)}throw new TypeError(`Invalid range: ${JSON.stringify(n)}`)});const p=1;const m=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(t=>e.object(t)&&t.nodeType===p&&e.string(t.nodeName)&&!e.plainObject(t)&&m.every(e=>e in t));e.observable=(e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false});e.nodeStream=(n=>!e.nullOrUndefined(n)&&t(n)&&e.function_(n.pipe)&&!e.observable(n));e.infinite=(e=>e===Infinity||e===-Infinity);const d=t=>n=>e.integer(n)&&Math.abs(n%2)===t;e.even=d(0);e.odd=d(1);const y=t=>e.string(t)&&/\S/.test(t)===false;e.emptyArray=(t=>e.array(t)&&t.length===0);e.nonEmptyArray=(t=>e.array(t)&&t.length>0);e.emptyString=(t=>e.string(t)&&t.length===0);e.nonEmptyString=(t=>e.string(t)&&t.length>0);e.emptyStringOrWhitespace=(t=>e.emptyString(t)||y(t));e.emptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length===0);e.nonEmptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0);e.emptySet=(t=>e.set(t)&&t.size===0);e.nonEmptySet=(t=>e.set(t)&&t.size>0);e.emptyMap=(t=>e.map(t)&&t.size===0);e.nonEmptyMap=(t=>e.map(t)&&t.size>0);const f=(t,n,r)=>{if(e.function_(n)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(n)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return t.call(r,n)};e.any=((e,...t)=>f(Array.prototype.some,e,t));e.all=((e,...t)=>f(Array.prototype.every,e,t))})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});t.default=is;e.exports=is;e.exports.default=is},,,,function(e,t,n){var r=n(870);var o=n(183);var i=n(747);var a=function(){};var s=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!s)return false;if(!i)return false;return(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&c(e.close)};var l=function(e){return e.setHeader&&c(e.abort)};var p=function(e,t,n,i){i=r(i);var s=false;e.on("close",function(){s=true});o(e,{readable:t,writable:n},function(e){if(e)return i(e);s=true;i()});var p=false;return function(t){if(s)return;if(p)return;p=true;if(u(e))return e.close(a);if(l(e))return e.abort();if(c(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var m=function(e){e()};var d=function(e,t){return e.pipe(t)};var y=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var n;var r=e.map(function(o,i){var a=i0;return p(o,a,s,function(e){if(!n)n=e;if(e)r.forEach(m);if(a)return;r.forEach(m);t(n)})});return e.reduce(d)};e.exports=y},,function(e,t,n){var r=n(984);var o=n(995);var i=n(571);function populateBody(e){var t=e.service.api.operations[e.operation].input;var n=new r.XML.Builder;var i=e.params;var a=t.payload;if(a){var s=t.members[a];i=i[a];if(i===undefined)return;if(s.type==="structure"){var c=s.name;e.httpRequest.body=n.toXML(i,s,c,true)}else{e.httpRequest.body=i}}else{e.httpRequest.body=n.toXML(i,t,t.name||t.shape||o.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){i.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){i.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(n){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=o.error(new Error,{code:t.Code,message:t.Message})}else{e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){i.extractData(e);var t;var n=e.request;var a=e.httpResponse.body;var s=n.service.api.operations[n.operation];var c=s.output;var u=s.hasEventOutput;var l=c.payload;if(l){var p=c.members[l];if(p.isEventStream){t=new r.XML.Parser;e.data[l]=o.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,p)}else if(p.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),p)}else if(p.type==="binary"||p.isStreaming){e.data[l]=a}else{e.data[l]=p.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var m=t.parse(a.toString(),c);o.update(e.data,m)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,function(e,t,n){var r=n(984).util;var o=n(413).Transform;var i=r.buffer.alloc;function EventMessageChunkerStream(e){o.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(o.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,n){var r=e.length;var o=0;while(o{const{body:t}=e;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!t&&!e.stream){return 0}if(i.string(t)){return Buffer.byteLength(t)}if(a(t)){return o.promisify(t.getLength.bind(t))()}if(t instanceof r.ReadStream){const{size:e}=await o.promisify(r.stat)(t.path);return e}return null})},,,,,,,,,,function(e){e.exports=require("util")},,,,,function(e,t,n){"use strict";const r=n(862);const o=e=>r({exact:true}).test(e);o.v4=(e=>r.v4({exact:true}).test(e));o.v6=(e=>r.v6({exact:true}).test(e));o.version=(e=>o(e)?o.v4(e)?4:6:undefined);e.exports=o},,,,,,,,,function(e,t,n){var r=n(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},,,,,function(e,t,n){"use strict";var r=t;var o=n(293).Buffer;var i=n(87);r.toBuffer=function(e,t,n){n=~~n;var r;if(this.isV4Format(e)){r=t||new o(n+4);e.split(/\./g).map(function(e){r[n++]=parseInt(e,10)&255})}else if(this.isV6Format(e)){var i=e.split(":",8);var a;for(a=0;a0;a--){u.push("0")}i.splice.apply(i,u)}r=t||new o(n+16);for(a=0;a>8&255;r[n++]=l&255}}if(!r){throw Error("Invalid ip address: "+e)}return r};r.toString=function(e,t,n){t=~~t;n=n||e.length-t;var r=[];if(n===4){for(var o=0;o32){t="ipv6"}else{t=_normalizeFamily(t)}var n=4;if(t==="ipv6"){n=16}var i=new o(n);for(var a=0,s=i.length;a>c)&255}return r.toString(i)};r.mask=function(e,t){e=r.toBuffer(e);t=r.toBuffer(t);var n=new o(Math.max(e.length,t.length));var i=0;if(e.length===t.length){for(i=0;ie.length){o=t;i=e}var a=o.length-i.length;for(var n=a;n>>0};r.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(e&255)}},,,function(e,t,n){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,n){if(!(this instanceof SAXParser)){return new SAXParser(t,n)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=n||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=b.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(y)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n))t.push(n);return t}}function checkBufferLength(n){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var o=0;for(var i=0,a=t.length;ir){switch(t[i]){case"textNode":closeText(n);break;case"cdata":emitNode(n,"oncdata",n.cdata);n.cdata="";break;case"script":emitNode(n,"onscript",n.script);n.script="";break;default:error(n,"Max buffer length exceeded: "+t[i])}}o=Math.max(o,s)}var c=e.MAX_BUFFER_LENGTH-o;n.bufferCheckPosition=c+n.position}function clearBuffers(e){for(var n=0,r=t.length;n";var l="[CDATA[";var p="DOCTYPE";var m="http://www.w3.org/XML/1998/namespace";var d="http://www.w3.org/2000/xmlns/";var y={xml:m,xmlns:d};i=charClass(i);a=charClass(a);s=charClass(s);var f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var h=/[:_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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;var N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var g=/[#:_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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;c=charClass(c);u=charClass(u);function charClass(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function is(e,t){return isRegExp(e)?!!t.match(e):e[t]}function not(e,t){return!is(e,t)}var b=0;e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t];var r=typeof n==="number"?String.fromCharCode(n):n;e.ENTITIES[t]=r});for(var I in e.STATE){e.STATE[e.STATE[I]]=I}b=e.STATE;function emit(e,t,n){e[t]&&e[t](n)}function emitNode(e,t,n){if(e.textNode)closeText(e);emit(e,t,n)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var n=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){n.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",n)}function qname(e,t){var n=e.indexOf(":");var r=n<0?["",e]:e.split(":");var o=r[0];var i=r[1];if(t&&e==="xmlns"){o="xmlns";i=""}return{prefix:o,local:i}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var n=t.prefix;var r=t.local;if(n==="xmlns"){if(r==="xml"&&e.attribValue!==m){strictFail(e,"xml: prefix must be bound to "+m+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==d){strictFail(e,"xmlns: prefix must be bound to "+d+"\n"+"Actual: "+e.attribValue)}else{var o=e.tag;var i=e.tags[e.tags.length-1]||e;if(o.ns===i.ns){o.ns=Object.create(i.ns)}o.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var n=e.tag;var r=qname(e.tagName);n.prefix=r.prefix;n.local=r.local;n.uri=n.ns[r.prefix]||"";if(n.prefix&&!n.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));n.uri=r.prefix}var o=e.tags[e.tags.length-1]||e;if(n.ns&&o.ns!==n.ns){Object.keys(n.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:n.ns[t]})})}for(var i=0,a=e.attribList.length;i";e.tagName="";e.state=b.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var n=e.tagName;if(!e.strict){n=n[e.looseCase]()}var r=n;while(t--){var o=e.tags[t];if(o.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=b.TEXT;return}e.tagName=n;var i=e.tags.length;while(i-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var c in a.ns){s[c]=a.ns[c]}var u=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==u.ns){Object.keys(a.ns).forEach(function(t){var n=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:n})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=b.TEXT}function parseEntity(e){var t=e.entity;var n=t.toLowerCase();var r;var o="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[n]){return e.ENTITIES[n]}t=n;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);o=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);o=r.toString(10)}}t=t.replace(/^0+/,"");if(o.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=b.OPEN_WAKA;e.startTagPosition=e.position}else if(not(i,t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=b.TEXT}}function charAt(e,t){var n="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=b.TEXT}else if(is(c,r)){t.state=b.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case b.SGML_DECL_QUOTED:if(r===t.q){t.state=b.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case b.DOCTYPE:if(r===">"){t.state=b.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=b.DOCTYPE_DTD}else if(is(c,r)){t.state=b.DOCTYPE_QUOTED;t.q=r}}continue;case b.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=b.DOCTYPE}continue;case b.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=b.DOCTYPE}else if(is(c,r)){t.state=b.DOCTYPE_DTD_QUOTED;t.q=r}continue;case b.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=b.DOCTYPE_DTD;t.q=""}continue;case b.COMMENT:if(r==="-"){t.state=b.COMMENT_ENDING}else{t.comment+=r}continue;case b.COMMENT_ENDING:if(r==="-"){t.state=b.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=b.COMMENT}continue;case b.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=b.COMMENT}else{t.state=b.TEXT}continue;case b.CDATA:if(r==="]"){t.state=b.CDATA_ENDING}else{t.cdata+=r}continue;case b.CDATA_ENDING:if(r==="]"){t.state=b.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=b.CDATA}continue;case b.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=b.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=b.CDATA}continue;case b.PROC_INST:if(r==="?"){t.state=b.PROC_INST_ENDING}else if(is(i,r)){t.state=b.PROC_INST_BODY}else{t.procInstName+=r}continue;case b.PROC_INST_BODY:if(!t.procInstBody&&is(i,r)){continue}else if(r==="?"){t.state=b.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case b.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=b.TEXT}else{t.procInstBody+="?"+r;t.state=b.PROC_INST_BODY}continue;case b.OPEN_TAG:if(is(h,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else{if(not(i,r)){strictFail(t,"Invalid character in tag name")}t.state=b.ATTRIB}}continue;case b.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=b.ATTRIB}continue;case b.ATTRIB:if(is(i,r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else if(is(f,r)){t.attribName=r;t.attribValue="";t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_NAME:if(r==="="){t.state=b.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(is(i,r)){t.state=b.ATTRIB_NAME_SAW_WHITE}else if(is(h,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=b.ATTRIB_VALUE}else if(is(i,r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(is(f,r)){t.attribName=r;t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=b.ATTRIB}}continue;case b.ATTRIB_VALUE:if(is(i,r)){continue}else if(is(c,r)){t.q=r;t.state=b.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=b.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case b.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=b.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:if(is(i,r)){t.state=b.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else if(is(f,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_VALUE_UNQUOTED:if(not(u,r)){if(r==="&"){t.state=b.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=b.ATTRIB}continue;case b.CLOSE_TAG:if(!t.tagName){if(is(i,r)){continue}else if(not(f,r)){if(t.script){t.script+=""){closeTag(t)}else if(is(h,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var s;var m;switch(t.state){case b.TEXT_ENTITY:s=b.TEXT;m="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:s=b.ATTRIB_VALUE_QUOTED;m="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:s=b.ATTRIB_VALUE_UNQUOTED;m="attribValue";break}if(r===";"){t[m]+=parseEntity(t);t.entity="";t.state=s}else if(is(t.entity.length?g:N,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[m]+="&"+t.entity+r;t.entity="";t.state=s}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var n=function(){var n=16384;var r=[];var o;var i;var a=-1;var s=arguments.length;if(!s){return""}var c="";while(++a1114111||t(u)!==u){throw RangeError("Invalid code point: "+u)}if(u<=65535){r.push(u)}else{u-=65536;o=(u>>10)+55296;i=u%1024+56320;r.push(o,i)}if(a+1===s||r.length>n){c+=e.apply(null,r);r.length=0}}return c};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:n,configurable:true,writable:true})}else{String.fromCodePoint=n}})()}})(false?undefined:t)},function(e,t,n){var r=n(984);var o=r.util.inherit;var i=n(206);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var n=t.config.acceptors;var r=false;var o="retry";n.forEach(function(n){if(!r){var i=t.matchers[n.matcher];if(i&&i(e,n.expected,n.argument)){r=true;o=n.state}}});if(!r&&e.error)o="failure";if(o==="success"){t.setSuccess(e)}else{t.setError(e,o==="retry")}}r.ResourceWaiter=o({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,n){try{var r=i.search(e.data,n)}catch(e){return false}return i.strictDeepEqual(r,t)},pathAll:function(e,t,n){try{var r=i.search(e.data,n)}catch(e){return false}if(!Array.isArray(r))r=[r];var o=r.length;if(!o)return false;for(var a=0;a `0`",state:"success"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},BundleTaskComplete:{delay:15,operation:"DescribeBundleTasks",maxAttempts:40,acceptors:[{expected:"complete",matcher:"pathAll",state:"success",argument:"BundleTasks[].State"},{expected:"failed",matcher:"pathAny",state:"failure",argument:"BundleTasks[].State"}]},ConversionTaskCancelled:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},ConversionTaskCompleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"},{expected:"cancelled",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"},{expected:"cancelling",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"}]},ConversionTaskDeleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},CustomerGatewayAvailable:{delay:15,operation:"DescribeCustomerGateways",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"CustomerGateways[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"}]},ExportTaskCancelled:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ExportTaskCompleted:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ImageExists:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{matcher:"path",expected:true,argument:"length(Images[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidAMIID.NotFound",state:"retry"}]},ImageAvailable:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"Images[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"Images[].State",expected:"failed"}]},InstanceRunning:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"running",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"shutting-down",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].InstanceStatus.Status",expected:"ok"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStopped:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"stopped",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},InstanceTerminated:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"terminated",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},KeyPairExists:{operation:"DescribeKeyPairs",delay:5,maxAttempts:6,acceptors:[{expected:true,matcher:"path",state:"success",argument:"length(KeyPairs[].KeyName) > `0`"},{expected:"InvalidKeyPair.NotFound",matcher:"error",state:"retry"}]},NatGatewayAvailable:{operation:"DescribeNatGateways",delay:15,maxAttempts:40,acceptors:[{state:"success",matcher:"pathAll",argument:"NatGateways[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"failed"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleting"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleted"},{state:"retry",matcher:"error",expected:"NatGatewayNotFound"}]},NetworkInterfaceAvailable:{operation:"DescribeNetworkInterfaces",delay:20,maxAttempts:10,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"NetworkInterfaces[].Status"},{expected:"InvalidNetworkInterfaceID.NotFound",matcher:"error",state:"failure"}]},PasswordDataAvailable:{operation:"GetPasswordData",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"path",argument:"length(PasswordData) > `0`",expected:true}]},SnapshotCompleted:{delay:15,operation:"DescribeSnapshots",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"Snapshots[].State"}]},SecurityGroupExists:{operation:"DescribeSecurityGroups",delay:5,maxAttempts:6,acceptors:[{expected:true,matcher:"path",state:"success",argument:"length(SecurityGroups[].GroupId) > `0`"},{expected:"InvalidGroupNotFound",matcher:"error",state:"retry"}]},SpotInstanceRequestFulfilled:{operation:"DescribeSpotInstanceRequests",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"fulfilled"},{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"request-canceled-and-instance-running"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"schedule-expired"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"canceled-before-fulfillment"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"bad-parameters"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"system-error"},{state:"retry",matcher:"error",expected:"InvalidSpotInstanceRequestID.NotFound"}]},SubnetAvailable:{delay:15,operation:"DescribeSubnets",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Subnets[].State"}]},SystemStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].SystemStatus.Status",expected:"ok"}]},VolumeAvailable:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VolumeDeleted:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{matcher:"error",expected:"InvalidVolume.NotFound",state:"success"}]},VolumeInUse:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"in-use",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VpcAvailable:{delay:15,operation:"DescribeVpcs",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Vpcs[].State"}]},VpcExists:{operation:"DescribeVpcs",delay:1,maxAttempts:5,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcID.NotFound",state:"retry"}]},VpnConnectionAvailable:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpnConnectionDeleted:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpcPeeringConnectionExists:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"retry"}]},VpcPeeringConnectionDeleted:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpcPeeringConnections[].Status.Code"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"success"}]}}}},function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f={}.hasOwnProperty;y=n(779),d=y.isObject,m=y.isFunction,p=y.isEmpty;a=null;t=null;r=null;o=null;i=null;u=null;l=null;c=null;e.exports=s=function(){function XMLNode(e){this.parent=e;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.children=[];if(!a){a=n(212);t=n(525);r=n(79);o=n(960);i=n(933);u=n(253);l=n(800);c=n(177)}}XMLNode.prototype.element=function(e,t,n){var r,o,i,a,s,c,u,l,y,h;c=null;if(t==null){t={}}t=t.valueOf();if(!d(t)){y=[t,n],n=y[0],t=y[1]}if(e!=null){e=e.valueOf()}if(Array.isArray(e)){for(i=0,u=e.length;i{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};if(r.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}t.path=r.null(e.search)?e.pathname:`${e.pathname}${e.search}`;return t})},,,function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;n{const t=new r;const n=new r;const c=o(t,n);const u=new Set;let l=false;e.retry.retries=(()=>0);if(e.body){c.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const p=i(e,t);c._destroy=p.abort;p.on("response",t=>{const{statusCode:r}=t;t.on("error",t=>{c.emit("error",new s(t,e))});if(e.throwHttpErrors&&r!==304&&(r<200||r>299)){c.emit("error",new a(t,e),null,t);return}l=true;t.pipe(n);for(const n of u){if(n.headersSent){continue}for(const[r,o]of Object.entries(t.headers)){const t=e.decompress?r!=="content-encoding":true;if(t){n.setHeader(r,o)}}n.statusCode=t.statusCode}c.emit("response",t)});["error","request","redirect","uploadProgress","downloadProgress"].forEach(e=>p.on(e,(...t)=>c.emit(e,...t)));const m=c.pipe.bind(c);const d=c.unpipe.bind(c);c.pipe=((e,t)=>{if(l){throw new Error("Failed to pipe. The response has been emitted already.")}const n=m(e,t);if(Reflect.has(e,"setHeader")){u.add(e)}return n});c.unpipe=(e=>{u.delete(e);return d(e)});return c})},,function(e,t,n){var r=n(984);n(149);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(n,o){if(!n){var i=r.util.date.getDate();var a=new Date(o.Expiration);if(a1){var o=this.errors.join("\n* ");o="There were "+this.errors.length+" validation errors:\n* "+o;throw r.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,n){this.validateType(t,n,["object"],"structure");var r;for(var o=0;e.required&&o= 1,"+' but found "'+t+'" for '+n)}}},validatePattern:function validatePattern(e,t,n){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+n)}}},validateRange:function validateRange(e,t,n,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+n)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+n)}}},validateEnum:function validateRange(e,t,n){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+n)}}},validateType:function validateType(e,t,n,o){if(e===null||e===undefined)return false;var i=false;for(var a=0;a{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new r;o(e,t);return e.pipe(t)};e.exports=i},,,,,,,function(e,t){"use strict";t.toString=function(e){switch(e){case 0:return"QUERY";case 1:return"IQUERY";case 2:return"STATUS";case 3:return"OPCODE_3";case 4:return"NOTIFY";case 5:return"UPDATE";case 6:return"OPCODE_6";case 7:return"OPCODE_7";case 8:return"OPCODE_8";case 9:return"OPCODE_9";case 10:return"OPCODE_10";case 11:return"OPCODE_11";case 12:return"OPCODE_12";case 13:return"OPCODE_13";case 14:return"OPCODE_14";case 15:return"OPCODE_15"}return"OPCODE_"+e};t.toOpcode=function(e){switch(e.toUpperCase()){case"QUERY":return 0;case"IQUERY":return 1;case"STATUS":return 2;case"OPCODE_3":return 3;case"NOTIFY":return 4;case"UPDATE":return 5;case"OPCODE_6":return 6;case"OPCODE_7":return 7;case"OPCODE_8":return 8;case"OPCODE_9":return 9;case"OPCODE_10":return 10;case"OPCODE_11":return 11;case"OPCODE_12":return 12;case"OPCODE_13":return 13;case"OPCODE_14":return 14;case"OPCODE_15":return 15}return 0}},,,,,function(e,t,n){var r=n(796);var o=n(327);var i=n(21);var a=n(449);var s=n(107);var c=n(421);var u=n(995);var l=u.property;var p=u.memoizedProperty;function Api(e,t){var n=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var m=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(m&&c[m]){l(this,"xmlNoDefaultLists",c[m].xmlNoDefaultLists,false)}p(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(n,"endpointOperation",u.string.lowerFirst(e))}}l(this,"operations",new r(e.operations,t,function(e,n){return new o(e,n,t)},u.string.lowerFirst,addEndpointOperation));l(this,"shapes",new r(e.shapes,t,function(e,n){return i.create(n,t)}));l(this,"paginators",new r(e.paginators,t,function(e,n){return new a(e,n,t)}));l(this,"waiters",new r(e.waiters,t,function(e,n){return new s(e,n,t)},u.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},,function(e,t,n){(function(){var t,r,o,i,a,s,c;c=n(779),a=c.assign,s=c.isFunction;t=n(264);r=n(555);i=n(133);o=n(75);e.exports.create=function(e,n,r,o){var i,s;if(e==null){throw new Error("Root element needs a name")}o=a({},n,r,o);i=new t(o);s=i.element(e);if(!o.headless){i.declaration(o);if(o.pubID!=null||o.sysID!=null){i.doctype(o)}}return s};e.exports.begin=function(e,n,o){var i;if(s(e)){i=[e,n],n=i[0],o=i[1];e={}}if(n){return new r(e,n,o)}else{return new t(e)}};e.exports.stringWriter=function(e){return new i(e)};e.exports.streamWriter=function(e,t){return new o(e,t)}}).call(this)},,,function(e){(function(){var t,n,r,o,i,a,s=[].slice,c={}.hasOwnProperty;t=function(){var e,t,n,r,i,a;a=arguments[0],i=2<=arguments.length?s.call(arguments,1):[];if(o(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,n=i.length;e{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const n=o(e,Object.assign({https:true},t));return r.parse(n)})},,function(e,t,n){"use strict";const{URL:r}=n(835);const o=n(627);const i=n(405);const a=(e,...t)=>{for(const n of t){for(const[t,i]of Object.entries(n)){if(o.undefined(i)){continue}const n=e[t];if(o.urlInstance(n)&&(o.urlInstance(i)||o.string(i))){e[t]=new r(i,n)}else if(o.plainObject(i)){if(o.plainObject(n)){e[t]=a({},n,i)}else{e[t]=a({},i)}}else if(o.array(i)){e[t]=a([],i)}else{e[t]=i}}}return e};const s=(...e)=>{e=e.map(e=>e||{});const t=a({},...e);const n={};for(const e of i){n[e]=[]}for(const t of e){if(t.hooks){for(const e of i){n[e]=n[e].concat(t.hooks[e])}}}t.hooks=n;return t};const c=(e,t)=>{const n=e.map(e=>e.defaults.handler);const r=e.length-1;return{methods:t,options:s(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let o=-1;const i=e=>n[++o](e,o===r?t:i);return i(e)}}};e.exports=a;e.exports.options=s;e.exports.instances=c},,,,,,,function(e){e.exports={pagination:{}}},,,,,,function(e,t,n){var r=n(995).memoizedProperty;function memoize(e,t,n,o){r(this,o(e),function(){return n(e,t)})}function Collection(e,t,n,r,o){r=r||String;var i=this;for(var a in e){if(Object.prototype.hasOwnProperty.call(e,a)){memoize.call(i,a,e[a],n,r);if(o)o(a,e[a])}}}e.exports=Collection},function(e,t,n){var r=n(984);var o=r.util.inherit;r.Signers.S3=o(r.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=r.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var n=this.sign(e.secretAccessKey,this.stringToSign());var o="AWS "+e.accessKeyId+":"+n;this.request.headers["Authorization"]=o},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var n=this.canonicalizedAmzHeaders();if(n)t.push(n);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];r.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase()e.replace(/"/g,"")},v6:{servers:["2001:4860:4802:32::a","2001:4860:4802:34::a","2001:4860:4802:36::a","2001:4860:4802:38::a"],name:"o-o.myaddr.l.google.com",type:"TXT",transform:e=>e.replace(/"/g,"")}}];const p={v4:{dnsServers:l.map(({v4:{servers:e,...t}})=>({servers:e,question:t})),httpsUrls:["https://icanhazip.com/","https://api.ipify.org/"]},v6:{dnsServers:l.map(({v6:{servers:e,...t}})=>({servers:e,question:t})),httpsUrls:["https://icanhazip.com/","https://api6.ipify.org/"]}};const m=(e,t)=>{const n=p[e];const a=i({retries:0,maxQueries:1,socket:o.createSocket(e==="v6"?"udp6":"udp4"),timeout:t.timeout});a.retries=0;const s=r(a.query.bind(a));const u=(async()=>{for(const t of n.dnsServers){const{servers:n,question:r}=t;for(const t of n){if(a.destroyed){return}try{const{name:n,type:o,transform:i}=r;const u=await s({questions:[{name:n,type:o}]},53,t);const{answers:{0:{data:l}}}=u;const p=(typeof l==="string"?l:l.toString()).trim();const m=i?i(p):p;if(m&&c[e](m)){a.destroy();return m}}catch(e){}}}a.destroy();throw new Error("Couldn't find your IP")})();u.cancel=(()=>{a.destroy()});return u};const d=(e,t)=>{let n;const r=(async()=>{try{const r={family:e==="v6"?6:4,retries:0,timeout:t.timeout};const o=[].concat.apply(p[e].httpsUrls,t.fallbackUrls||[]);for(const t of o){try{const o=a(t,r);n=o.cancel;const i=await o;const u=(i.body||"").trim();if(u&&c[e](u)){return u}}catch(e){if(e instanceof s){throw e}}}throw new Error("Couldn't find your IP")}catch(e){if(!(e instanceof s)){throw e}}})();r.cancel=function(){return n.apply(this)};return r};const y=(e,t)=>{let n;const r=(async()=>{let r;const o=m(e,t);n=o.cancel;try{r=await o}catch(o){const i=d(e,t);n=i.cancel;r=await i}return r})();r.cancel=n;return r};e.exports.v4=(e=>{e={...u,...e};if(!e.onlyHttps){return y("v4",e)}if(e.onlyHttps){return d("v4",e)}return m("v4",e)});e.exports.v6=(e=>{e={...u,...e};if(!e.onlyHttps){return y("v6",e)}if(e.onlyHttps){return d("v6",e)}return m("v6",e)})},,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(215);const a=o(n(87));const s=o(n(277));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=i.toCommandValue(t);process.env[e]=n;i.issueCommand("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${s.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}t.getInput=getInput;function setOutput(e,t){i.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}t.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+a.EOL)}t.info=info;function startGroup(e){i.issue("group",e)}t.startGroup=startGroup;function endGroup(){i.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n})}t.group=group;function saveState(e,t){i.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function LinkedListNode(e,t){this.key=e;this.value=t}return LinkedListNode}();var r=function(){function LRUCache(e){this.nodeMap={};this.size=0;if(typeof e!=="number"||e<1){throw new Error("Cache size can only be positive number")}this.sizeLimit=e}Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this.size},enumerable:true,configurable:true});LRUCache.prototype.prependToList=function(e){if(!this.headerNode){this.tailNode=e}else{this.headerNode.prev=e;e.next=this.headerNode}this.headerNode=e;this.size++};LRUCache.prototype.removeFromTail=function(){if(!this.tailNode){return undefined}var e=this.tailNode;var t=e.prev;if(t){t.next=undefined}e.prev=undefined;this.tailNode=t;this.size--;return e};LRUCache.prototype.detachFromList=function(e){if(this.headerNode===e){this.headerNode=e.next}if(this.tailNode===e){this.tailNode=e.prev}if(e.prev){e.prev.next=e.next}if(e.next){e.next.prev=e.prev}e.next=undefined;e.prev=undefined;this.size--};LRUCache.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);this.prependToList(t);return t.value}};LRUCache.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);delete this.nodeMap[e]}};LRUCache.prototype.put=function(e,t){if(this.nodeMap[e]){this.remove(e)}else if(this.size===this.sizeLimit){var r=this.removeFromTail();var o=r.key;delete this.nodeMap[o]}var i=new n(e,t);this.nodeMap[e]=i;this.prependToList(i)};LRUCache.prototype.empty=function(){var e=Object.keys(this.nodeMap);for(var t=0;t{const t=new r;const n=new a((n,r,a)=>{const y=s(e);a(y.abort);y.on("response",async a=>{t.emit("response",a);const s=i.null(e.encoding)?o.buffer(a):o(a,e);let f;try{f=await s}catch(t){r(new l(t,e));return}const h=e.followRedirect?299:399;a.body=f;try{for(const[t,n]of Object.entries(e.hooks.afterResponse)){a=await n(a,n=>{n=m(p(e,{...n,retry:0,throwHttpErrors:false}));n.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);return d(n)})}}catch(e){r(e);return}const{statusCode:N}=a;if(e.json&&a.body){try{a.body=JSON.parse(a.body)}catch(t){if(N>=200&&N<300){const n=new u(t,N,e,f);Object.defineProperty(n,"response",{value:a});r(n);return}}}if(N!==304&&(N<200||N>h)){const t=new c(a,e);Object.defineProperty(t,"response",{value:a});if(y.retry(t)===false){if(e.throwHttpErrors){r(t);return}n(a)}return}n(a)});y.once("error",r);["request","redirect","uploadProgress","downloadProgress"].forEach(e=>y.on(e,(...n)=>t.emit(e,...n)))});n.on=((e,r)=>{t.on(e,r);return n});return n};e.exports=d},,,,,,,,,,,,,function(e,t,n){var r=n(984);var o=r.util.inherit;r.Endpoint=o({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var n=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(n?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=o({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});r.HttpResponse=o({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=o({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},,,,function(e,t,n){var r=n(984);var o=n(747);var i=n(101);var a=r.util.iniLoader;r.TokenFileWebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function TokenFileWebIdentityCredentials(e){r.Credentials.call(this);this.data=null;this.clientConfig=r.util.copy(e||{})},getParamsFromEnv:function getParamsFromEnv(){var e="AWS_WEB_IDENTITY_TOKEN_FILE",t="AWS_ROLE_ARN";if(process.env[e]&&process.env[t]){return[{envTokenFile:process.env[e],roleArn:process.env[t],roleSessionName:process.env["AWS_ROLE_SESSION_NAME"]}]}},getParamsFromSharedConfig:function getParamsFromSharedConfig(){var e=r.util.getProfilesFromSharedConfig(a);var t=process.env.AWS_PROFILE||r.util.defaultProfile;var n=e[t]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+t+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"})}var o=[];while(!n["web_identity_token_file"]&&n["source_profile"]){o.unshift({roleArn:n["role_arn"],roleSessionName:n["role_session_name"]});var i=n["source_profile"];n=e[i]}o.unshift({envTokenFile:n["web_identity_token_file"],roleArn:n["role_arn"],roleSessionName:n["role_session_name"]});return o},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},assumeRoleChaining:function assumeRoleChaining(e,t){var n=this;if(e.length===0){n.service.credentialsFrom(n.data,n);t()}else{var r=e.shift();n.service.config.credentials=n.service.credentialsFrom(n.data,n);n.service.assumeRole({RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,o){n.data=null;if(r){t(r)}else{n.data=o;n.assumeRoleChaining(e,t)}})}},load:function load(e){var t=this;try{var n=t.getParamsFromEnv();if(!n){n=t.getParamsFromSharedConfig()}if(n){var r=n.shift();var i=o.readFileSync(r.envTokenFile,{encoding:"ascii"});if(!t.service){t.createClients()}t.service.assumeRoleWithWebIdentity({WebIdentityToken:i,RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,o){t.data=null;if(r){e(r)}else{t.data=o;t.assumeRoleChaining(n,e)}})}}catch(t){e(t)}},createClients:function(){if(!this.service){var e=r.util.merge({},this.clientConfig);this.service=new i(e);this.service.retryableError=function(e){if(e.code==="IDPCommunicationErrorException"||e.code==="InvalidIdentityToken"){return true}else{return r.Service.prototype.retryableError.call(this,e)}}}}})},,,,,,,,,function(e){"use strict";const t="[a-fA-F\\d:]";const n=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${t})|(?<=${t})(?=\\s|$))`:"";const r="(?: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}";const o="[a-fA-F\\d]{1,4}";const i=`\n(\n(?:${o}:){7}(?:${o}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${o}:){6}(?:${r}|:${o}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${o}:){5}(?::${r}|(:${o}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${o}:){4}(?:(:${o}){0,1}:${r}|(:${o}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${o}:){3}(?:(:${o}){0,2}:${r}|(:${o}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${o}:){2}(?:(:${o}){0,3}:${r}|(:${o}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${o}:){1}(?:(:${o}){0,4}:${r}|(:${o}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${o}){0,5}:${r}|(?::${o}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim();const a=e=>e&&e.exact?new RegExp(`(?:^${r}$)|(?:^${i}$)`):new RegExp(`(?:${n(e)}${r}${n(e)})|(?:${n(e)}${i}${n(e)})`,"g");a.v4=(e=>e&&e.exact?new RegExp(`^${r}$`):new RegExp(`${n(e)}${r}${n(e)}`,"g"));a.v6=(e=>e&&e.exact?new RegExp(`^${i}$`):new RegExp(`${n(e)}${i}${n(e)}`,"g"));e.exports=a},,,,,,,,function(e,t,n){var r=n(719);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},,,,,,,,,,,,function(e,t){"use strict";t.toString=function(e){switch(e){case 1:return"IN";case 2:return"CS";case 3:return"CH";case 4:return"HS";case 255:return"ANY"}return"UNKNOWN_"+e};t.toClass=function(e){switch(e.toUpperCase()){case"IN":return 1;case"CS":return 2;case"CH":return 3;case"HS":return 4;case"ANY":return 255}return 0}},function(e){(function(){var t;e.exports=t=function(){function XMLAttribute(e,t,n){this.options=e.options;this.stringify=e.stringify;if(t==null){throw new Error("Missing attribute name of element "+e.name)}if(n==null){throw new Error("Missing attribute value for attribute "+t+" of element "+e.name)}this.name=this.stringify.attName(t);this.value=this.stringify.attValue(n)}XMLAttribute.prototype.clone=function(){return Object.create(this)};XMLAttribute.prototype.toString=function(e){return this.options.writer.set(e).attribute(this)};return XMLAttribute}()}).call(this)},,,,function(e,t,n){var r=n(995);var o=n(984);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var n=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(n.endpoint&&n.endpoint.hostPrefix){var r=n.endpoint.hostPrefix;var o=expandHostPrefix(r,e.params,n.input);prependEndpointPrefix(e.httpRequest.endpoint,o);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var n=t.operations[e.operation];var o=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(n.name);return n.endpointDiscoveryRequired!=="NULL"||o===true}function expandHostPrefix(e,t,n){r.each(n.members,function(n,o){if(o.hostLabel===true){if(typeof t[n]!=="string"||t[n]===""){throw r.error(new Error,{message:"Parameter "+n+" should be a non-empty string.",code:"InvalidParameter"})}var i=new RegExp("\\{"+n+"\\}","g");e=e.replace(i,t[n])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var n=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!n.test(e)){throw o.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(984);var o=n(101);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var n=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new o(n)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var n=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,o){var i={};if(r){e(r);return}if(o){i.TokenCode=o}t.service[n](i,function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(n,o){if(n){var i=n;if(n instanceof Error){i=n.message}e(r.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}));return}e(null,o)})}else{e(null)}}})},,,,,,,,,,function(e){(function(){var t,n=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=n(this.assertLegalChar,this);var t,o,i;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;o=e.stringify||{};for(t in o){if(!r.call(o,t))continue;i=o[t];this[t]=i}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}};const n=e=>{const n=e.emit.bind(e);e.emit=((r,...o)=>{if(r==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=n}return n(r,...o)})};let o=false;const i=()=>{t.upload=Date.now();t.phases.request=t.upload-t.connect};n(e);e.once("socket",e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const n=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.once("lookup",n);r(e,()=>{t.connect=Date.now();if(t.lookup===null){e.removeListener("lookup",n);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup;if(o&&!t.upload){i()}})});e.once("finish",()=>{o=true;if(t.connect){i()}});e.once("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;n(e);e.once("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t})},,,,,,,,,,,,,function(e,t,n){var r=n(984);var o=n(175);var i=r.util.inherit;var a=r.util.domain;var s=n(206);var c={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(c,e._asm.currentState)}var u=new o;u.setupStates=function(){var e=function(e,t){var n=this;n._haltHandlersOnError=false;n.emit(n._asm.currentState,function(e){if(e){if(isTerminalState(n)){if(a&&n.domain instanceof a.Domain){e.domainEmitter=n;e.domain=n.domain;e.domainThrown=false;n.domain.emit("error",e)}else{throw e}}else{n.response.error=e;t(e)}}else{t(n.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};u.setupStates();r.Request=i({constructor:function Request(e,t,n){var i=e.endpoint;var s=e.config.region;var c=e.config.customUserAgent;if(e.isGlobalEndpoint)s="us-east-1";this.domain=a&&a.active;this.service=e;this.operation=t;this.params=n||{};this.httpRequest=new r.HttpRequest(i,s);this.httpRequest.appendToUserAgent(c);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new o(u.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(n){if(n===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(n,o){if(n)return e(n,null);if(o===null)return e(null,null);var i=t.service.paginationConfig(t.operation);var a=i.resultKey;if(Array.isArray(a))a=a[0];var c=s.search(o,a);var u=true;r.util.arrayEach(c,function(t){u=e(null,t);if(u===false){return r.util.abort}});return u}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var n=null;if(r.HttpClient.streamsApiVersion===2){n=new e.PassThrough;process.nextTick(function(){t.send()})}else{n=new e.Stream;n.readable=true;n.sent=false;n.on("newListener",function(e){if(!n.sent&&e==="data"){n.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){n.emit("error",e)});this.on("httpHeaders",function streamHeaders(o,i,a){if(o<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var c;if(t.httpRequest.method!=="HEAD"){c=parseInt(i["content-length"],10)}if(c!==undefined&&!isNaN(c)&&c>=0){s=true;var u=0}var l=function checkContentLengthAndEmit(){if(s&&u!==c){n.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+u+" of "+c+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){n.end()}else{n.emit("end")}};var p=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var m=new e.PassThrough;m._write=function(t){if(t&&t.length){u+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};m.on("end",l);n.on("error",function(e){s=false;p.unpipe(m);m.emit("end");m.end()});p.pipe(m).pipe(n,{end:false})}else{p.pipe(n)}}else{if(s){p.on("data",function(e){if(e&&e.length){u+=e.length}})}p.on("data",function(e){n.emit("data",e)});p.on("end",l)}p.on("error",function(e){s=false;n.emit("error",e)})}});return n},emitEvent:function emit(e,t,n){if(typeof t==="function"){n=t;t=null}if(!n)n=function(){};if(!t)t=this.eventParameters(e,this.response);var o=r.SequentialExecutor.prototype.emit;o.call(this,e,t,function(e){if(e)this.response.error=e;n.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,n){t.on("complete",function(t){if(t.error){n(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},,,,function(e,t,n){(function(){var t,r,o,i=function(e,t){for(var n in t){if(a.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;o=n(779).isObject;r=n(698);e.exports=t=function(e){i(XMLDeclaration,e);function XMLDeclaration(e,t,n,r){var i;XMLDeclaration.__super__.constructor.call(this,e);if(o(t)){i=t,t=i.version,n=i.encoding,r=i.standalone}if(!t){t="1.0"}this.version=this.stringify.xmlVersion(t);if(n!=null){this.encoding=this.stringify.xmlEncoding(n)}if(r!=null){this.standalone=this.stringify.xmlStandalone(r)}}XMLDeclaration.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)};return XMLDeclaration}(r)}).call(this)},,,,,,,,function(e,t,n){"use strict";const r=n(240);const o=n(722);const i=n(836);const a=n(276);const s=n(783);const c=n(278);const u=e=>e.stream?o(e):i(e);const l=["get","post","put","patch","head","delete"];const p=e=>{e=s({},e);a.preNormalize(e.options);if(!e.handler){e.handler=((e,t)=>t(e))}function got(t,n){try{return e.handler(a(t,n,e),u)}catch(e){if(n&&n.stream){throw e}else{return Promise.reject(e)}}}got.create=p;got.extend=(t=>{let n;if(t&&Reflect.has(t,"mutableDefaults")){n=t.mutableDefaults;delete t.mutableDefaults}else{n=e.mutableDefaults}return p({options:s.options(e.options,t),handler:e.handler,mutableDefaults:n})});got.mergeInstances=((...e)=>p(s.instances(e)));got.stream=((e,t)=>got(e,{...t,stream:true}));for(const e of l){got[e]=((t,n)=>got(t,{...n,method:e}));got.stream[e]=((t,n)=>got.stream(t,{...n,method:e}))}Object.assign(got,{...r,mergeOptions:s.options});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:c(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};e.exports=p},,,,,,,,,,,,,function(e,t){(function(){"use strict";t.stripBOM=function(e){if(e[0]==="\ufeff"){return e.substring(1)}else{return e}}}).call(this)},function(e,t,n){var r=n(413).Transform;var o=n(726).parseEvent;function EventUnmarshallerStream(e){e=e||{};e.readableObjectMode=true;r.call(this,e);this._readableState.objectMode=true;this.parser=e.parser;this.eventStreamModel=e.eventStreamModel}EventUnmarshallerStream.prototype=Object.create(r.prototype);EventUnmarshallerStream.prototype._transform=function(e,t,n){try{var r=o(this.parser,e,this.eventStreamModel);this.push(r);return n()}catch(e){n(e)}};e.exports={EventUnmarshallerStream:EventUnmarshallerStream}},,function(e,t,n){var r={util:n(995)};var o={};o.toString();e.exports=r;r.util.update(r,{VERSION:"2.677.0",Signers:{},Protocol:{Json:n(485),Query:n(257),Rest:n(571),RestJson:n(138),RestXml:n(633)},XML:{Builder:n(323),Parser:null},JSON:{Builder:n(411),Parser:n(419)},Model:{Api:n(774),Operation:n(327),Shape:n(21),Paginator:n(449),ResourceWaiter:n(107)},apiLoader:n(429),EndpointCache:n(40).EndpointCache});n(115);n(67);n(457);n(849);n(427);n(956);n(707);n(692);n(642);n(755);r.events=new r.SequentialExecutor;r.util.memoizedProperty(r,"endpointCache",function(){return new r.EndpointCache(r.config.endpointCacheSize)},true)},,,,,function(e,t,n){n(713);e.exports=n(984)},,,,,function(e,t,n){"use strict";const r=n(413).PassThrough;const o=n(761);const i=n(64);e.exports=(e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const t=o.createUnzip();const n=new r;i(e,n);t.on("error",e=>{if(e.code==="Z_BUF_ERROR"){n.end();return}n.emit("error",e)});e.pipe(t).pipe(n);return n})},function(e,t,n){var r;var o={environment:"nodejs",engine:function engine(){if(o.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=o.environment;var t="aws-sdk-"+e+"/"+n(984).VERSION;if(e==="nodejs")t+=" "+o.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return o.url.parse(e)},urlFormat:function urlFormat(e){return o.url.format(e)},queryStringParse:function queryStringParse(e){return o.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var n=o.uriEscape;var r=Object.keys(e).sort();o.arrayEach(r,function(r){var i=e[r];var a=n(r);var s=a+"=";if(Array.isArray(i)){var c=[];o.arrayEach(i,function(e){c.push(n(e))});s=a+"="+c.sort().join("&"+a+"=")}else if(i!==undefined&&i!==null){s=a+"="+n(i)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(o.isBrowser())return null;return n(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw o.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=o.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw o.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return o.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof o.Buffer.from==="function"&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,t):new o.Buffer(e,t)},alloc:function(e,t,n){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof o.Buffer.alloc==="function"){return o.Buffer.alloc(e,t,n)}else{var r=new o.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,n)}return r}},toStream:function toStream(e){if(!o.Buffer.isBuffer(e))e=o.buffer.toBuffer(e);var t=new o.stream.Readable;var n=0;t._read=function(r){if(n>=e.length)return t.push(null);var o=n+r;if(o>e.length)o=e.length;t.push(e.slice(n,o));n=o};return t},concat:function(e){var t=0,n=0,r=null,i;for(i=0;i>>8^t[(n^i)&255]}return(n^-1)>>>0},hmac:function hmac(e,t,n,r){if(!n)n="binary";if(n==="buffer"){n=undefined}if(!r)r="sha256";if(typeof t==="string")t=o.buffer.toBuffer(t);return o.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function md5(e,t,n){return o.crypto.hash("md5",e,t,n)},sha256:function sha256(e,t,n){return o.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var i=o.crypto.createHash(e);if(!n){n="binary"}if(n==="buffer"){n=undefined}if(typeof t==="string")t=o.buffer.toBuffer(t);var a=o.arraySliceFn(t);var s=o.Buffer.isBuffer(t);if(o.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){i.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,i.digest(n))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var c=0,u=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e);c+=e.length;l._continueReading()};l._continueReading=function(){if(c>=t.size){r(null,i.digest(n));return}var e=c+u;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,c,e))};l._continueReading()}else{if(o.isBrowser()&&typeof t==="object"&&!s){t=new o.Buffer(new Uint8Array(t))}var p=i.update(t).digest(n);if(r)r(null,p);return p}},toHex:function toHex(e){var t=[];for(var n=0;n=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var n=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")n=true;if(!Array.isArray(e))e=[e];for(var o=0;o=0){s++;setTimeout(u,i+(e.retryAfter||0))}else{n(e)}};var u=function(){var t="";i.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){n(null,t)}else{var i=parseInt(e.headers["retry-after"],10)*1e3||0;var a=o.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(i&&a.retryable)a.retryAfter=i;c(a)}})},c)};r.util.defer(u)},uuid:{v4:function uuidV4(){return n(181).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var n=t.operation;var r=t.service.api.operations[n].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var n=(t||{})[e.operation];if(!n||!n.input||!n.input.payload)return undefined;return n.input.members[n.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var n={};var r={};if(process.env[o.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[o.sharedConfigFileEnv]})}var i=e.loadFrom({filename:t||process.env[o.configOptInEnv]&&process.env[o.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw o.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o},,function(e,t,n){(function(){"use strict";var e,r,o,i,a,s,c,u,l=function(e,t){return function(){return e.apply(t,arguments)}},p=function(e,t){for(var n in t){if(m.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},m={}.hasOwnProperty;c=n(691);o=n(614);e=n(981);s=n(202);u=n(213).setImmediate;r=n(566).defaults;i=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};a=function(e,t,n){var r,o,i;for(r=0,o=e.length;r0){c[e.options.childkey]=l}l=c}else if(y){y[e.options.childkey]=y[e.options.childkey]||[];p={};for(s in l){if(!m.call(l,s))continue;p[s]=l[s]}y[e.options.childkey].push(p);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(y,u,l)}else{if(e.options.explicitRoot){d=l;l={};l[u]=d}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);n=function(e){return function(n){var o,i;i=r[r.length-1];if(i){i[t]+=n;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||n.replace(/\\n/g,"").trim()!=="")){i[e.options.childkey]=i[e.options.childkey]||[];o={"#name":"__text__"};o[t]=n;if(e.options.normalize){o[t]=o[t].replace(/\s{2,}/g," ").trim()}i[e.options.childkey].push(o)}return i}}}(this);this.saxParser.ontext=n;return this.saxParser.oncdata=function(e){return function(e){var t;t=n(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,n){var r;if(n!=null&&typeof n==="function"){this.on("end",function(e){this.reset();return n(null,e)});this.on("error",function(e){this.reset();return n(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;u(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(o.EventEmitter);t.parseString=function(e,n,r){var o,i,a;if(r!=null){if(typeof r==="function"){o=r}if(typeof n==="object"){i=n}}else{if(typeof n==="function"){o=n}i={}}a=new t.Parser(i);return a.parseString(e,o)}}).call(this)}]); \ No newline at end of file diff --git a/dist/main/index.js b/dist/main/index.js new file mode 100644 index 0000000..1dbc505 --- /dev/null +++ b/dist/main/index.js @@ -0,0 +1 @@ +module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var r=n[t]={i:t,l:false,exports:{}};var o=true;try{e[t].call(r.exports,r,r.exports,__webpack_require__);o=false}finally{if(o)delete n[t]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(31)}return startup()}([,,function(e,t,n){var r=n(395);var o=n(153);var i=n(618);function populateBody(e){var t=e.service.api.operations[e.operation].input;var n=new r.XML.Builder;var i=e.params;var a=t.payload;if(a){var s=t.members[a];i=i[a];if(i===undefined)return;if(s.type==="structure"){var c=s.name;e.httpRequest.body=n.toXML(i,s,c,true)}else{e.httpRequest.body=i}}else{e.httpRequest.body=n.toXML(i,t,t.name||t.shape||o.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){i.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){i.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(n){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=o.error(new Error,{code:t.Code,message:t.Message})}else{e.error=o.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){i.extractData(e);var t;var n=e.request;var a=e.httpResponse.body;var s=n.service.api.operations[n.operation];var c=s.output;var u=s.hasEventOutput;var l=c.payload;if(l){var p=c.members[l];if(p.isEventStream){t=new r.XML.Parser;e.data[l]=o.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,p)}else if(p.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),p)}else if(p.type==="binary"||p.isStreaming){e.data[l]=a}else{e.data[l]=p.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var m=t.parse(a.toString(),c);o.update(e.data,m)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,,,,,,function(e,t,n){var r=n(49);var o=function(){};var i=function(e){return e.setHeader&&typeof e.abort==="function"};var a=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var s=function(e,t,n){if(typeof t==="function")return s(e,null,t);if(!t)t={};n=r(n||o);var c=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var p=t.writable||t.writable!==false&&e.writable;var m=false;var d=function(){if(!e.writable)y()};var y=function(){p=false;if(!l)n.call(e)};var f=function(){l=false;if(!p)n.call(e)};var h=function(t){n.call(e,t?new Error("exited with error code: "+t):null)};var N=function(t){n.call(e,t)};var g=function(){process.nextTick(b)};var b=function(){if(m)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return n.call(e,new Error("premature close"));if(p&&!(c&&(c.ended&&!c.destroyed)))return n.call(e,new Error("premature close"))};var I=function(){e.req.on("finish",y)};if(i(e)){e.on("complete",y);e.on("abort",g);if(e.req)I();else e.on("request",I)}else if(p&&!c){e.on("end",d);e.on("close",d)}if(a(e))e.on("exit",h);e.on("end",f);e.on("finish",y);if(t.error!==false)e.on("error",N);e.on("close",g);return function(){m=true;e.removeListener("complete",y);e.removeListener("abort",g);e.removeListener("request",I);if(e.req)e.req.removeListener("finish",y);e.removeListener("end",d);e.removeListener("close",d);e.removeListener("finish",y);e.removeListener("exit",h);e.removeListener("end",f);e.removeListener("error",N);e.removeListener("close",g)}};e.exports=s},,function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var n=0;n{const c=e=>{if(e){e.bufferedData=i.getBufferedValue()}s(e)};i=r(e,o(t),e=>{if(e){c(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>n){c(new MaxBufferError)}})});return i.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},,function(e,t,n){"use strict";const r=n(631);class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.name="TimeoutError";this.code="ETIMEDOUT";this.event=t}}const o=Symbol("reentry");const i=()=>{};e.exports=((e,t,n)=>{if(e[o]){return}e[o]=true;let a=false;const s=(e,t,...n)=>{if(a){return i}let r;const o=setTimeout(()=>{r=setImmediate(t,e,...n);if(r.unref){r.unref()}},e);if(o.unref){o.unref()}const s=()=>{clearTimeout(o);clearImmediate(r)};p.push(s);return s};const{host:c,hostname:u}=n;const l=(t,n)=>{e.emit("error",new TimeoutError(t,n));e.once("error",()=>{});e.abort()};const p=[];const m=()=>{a=true;p.forEach(e=>e())};e.once("error",m);e.once("response",e=>{e.once("end",m)});if(t.request!==undefined){s(t.request,l,"request")}if(t.socket!==undefined){const n=()=>{l(t.socket,"socket")};e.setTimeout(t.socket,n);p.push(()=>e.removeListener("timeout",n))}if(t.lookup!==undefined&&!e.socketPath&&!r.isIP(u||c)){e.once("socket",e=>{if(e.connecting){const n=s(t.lookup,l,"lookup");e.once("lookup",n)}})}if(t.connect!==undefined){e.once("socket",n=>{if(n.connecting){const o=()=>s(t.connect,l,"connect");if(e.socketPath||r.isIP(u||c)){n.once("connect",o())}else{n.once("lookup",e=>{if(e===null){n.once("connect",o())}})}}})}if(t.secureConnect!==undefined&&n.protocol==="https:"){e.once("socket",e=>{if(e.connecting){e.once("connect",()=>{const n=s(t.secureConnect,l,"secureConnect");e.once("secureConnect",n)})}})}if(t.send!==undefined){e.once("socket",n=>{const r=()=>s(t.send,l,"send");if(n.connecting){n.once("connect",()=>{e.once("upload-complete",r())})}else{e.once("upload-complete",r())}})}if(t.response!==undefined){e.once("upload-complete",()=>{const n=s(t.response,l,"response");e.once("response",n)})}});e.exports.TimeoutError=TimeoutError},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLDTDNotation,e);function XMLDTDNotation(e,t,n){XMLDTDNotation.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing notation name")}if(!n.pubID&&!n.sysID){throw new Error("Public or system identifiers are required for an external entity")}this.name=this.stringify.eleName(t);if(n.pubID!=null){this.pubID=this.stringify.dtdPubID(n.pubID)}if(n.sysID!=null){this.sysID=this.stringify.dtdSysID(n.sysID)}}XMLDTDNotation.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)};return XMLDTDNotation}(r)}).call(this)},,,function(e,t,n){var r=n(395);var o=n(106);var i=r.util.iniLoader;r.SharedIniFileCredentials=r.util.inherit(r.Credentials,{constructor:function SharedIniFileCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var n=r.util.getProfilesFromSharedConfig(i,this.filename);var o=n[this.profile]||{};if(Object.keys(o).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var a=Boolean(this.preferStaticCredentials&&o["aws_access_key_id"]&&o["aws_secret_access_key"]);if(o["role_arn"]&&!a){this.loadRoleProfile(n,o,function(n,r){if(n){e(n)}else{t.expired=false;t.accessKeyId=r.Credentials.AccessKeyId;t.secretAccessKey=r.Credentials.SecretAccessKey;t.sessionToken=r.Credentials.SessionToken;t.expireTime=r.Credentials.Expiration;e(null)}});return}this.accessKeyId=o["aws_access_key_id"];this.secretAccessKey=o["aws_secret_access_key"];this.sessionToken=o["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){i.clearCachedFiles();this.coalesceRefresh(e||r.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,n){if(this.disableAssumeRole){throw r.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var i=this;var a=t["role_arn"];var s=t["role_session_name"];var c=t["external_id"];var u=t["mfa_serial"];var l=t["source_profile"];if(!l){throw r.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var p=e[l];if(typeof p!=="object"){throw r.util.error(new Error("source_profile "+l+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var m=new r.SharedIniFileCredentials(r.util.merge(this.options||{},{profile:l,preferStaticCredentials:true}));this.roleArn=a;var d=new o({credentials:m,httpOptions:this.httpOptions});var y={RoleArn:a,RoleSessionName:s||"aws-sdk-js-"+Date.now()};if(c){y.ExternalId=c}if(u&&i.tokenCodeFn){y.SerialNumber=u;i.tokenCodeFn(u,function(e,t){if(e){var o;if(e instanceof Error){o=e.message}else{o=e}n(r.util.error(new Error("Error fetching MFA token: "+o),{code:"SharedIniFileCredentialsProviderFailure"}));return}y.TokenCode=t;d.assumeRole(y,n)});return}d.assumeRole(y,n)}})},,,,,,,function(e,t,n){"use strict";const r=n(553);const o=e=>r({exact:true}).test(e);o.v4=(e=>r.v4({exact:true}).test(e));o.v6=(e=>r.v6({exact:true}).test(e));o.version=(e=>o(e)?o.v4(e)?4:6:undefined);e.exports=o},,function(e,t,n){const r=n(470);const o=n(723);const i=n(659);async function run(){try{const e=await i.ec2.describeSecurityGroups({GroupIds:i.groupIds}).promise();for(const t of e.SecurityGroups){const e=t.IpPermissions.find(e=>e.FromPort===i.port);if(e){const n=e.IpRanges.find(e=>e.Description===i.description);if(n){await i.ec2.revokeSecurityGroupIngress({GroupId:t.GroupId,CidrIp:n.CidrIp,IpProtocol:"tcp",FromPort:i.port,ToPort:i.port}).promise()}}const n=await o.v4();await i.ec2.authorizeSecurityGroupIngress({GroupId:t.GroupId,IpPermissions:[{IpProtocol:"tcp",FromPort:i.port,ToPort:i.port,IpRanges:[{CidrIp:`${n}/32`,Description:i.description}]}]}).promise();console.log(`The IP ${n} is added`)}}catch(e){r.setFailed(e.message)}}run()},,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLCData,e);function XMLCData(e,t){XMLCData.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing CDATA text")}this.text=this.stringify.cdata(t)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(e){return this.options.writer.set(e).cdata(this)};return XMLCData}(r)}).call(this)},,,,,,,,function(e,t,n){var r=n(395);var o=n(106);r.TemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function TemporaryCredentials(e,t){r.Credentials.call(this);this.loadMasterCredentials(t);this.expired=true;this.params=e||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials;var n=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;n.call(t.service,function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})})},loadMasterCredentials:function loadMasterCredentials(e){this.masterCredentials=e||r.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}if(typeof this.masterCredentials.get!=="function"){this.masterCredentials=new r.Credentials(this.masterCredentials)}},createClients:function(){this.service=this.service||new o({params:this.params})}})},,,,function(e){e.exports={pagination:{DescribeAccountAttributes:{result_key:"AccountAttributes"},DescribeAddresses:{result_key:"Addresses"},DescribeAvailabilityZones:{result_key:"AvailabilityZones"},DescribeBundleTasks:{result_key:"BundleTasks"},DescribeByoipCidrs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ByoipCidrs"},DescribeCapacityReservations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"CapacityReservations"},DescribeClassicLinkInstances:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Instances"},DescribeClientVpnAuthorizationRules:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"AuthorizationRules"},DescribeClientVpnConnections:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Connections"},DescribeClientVpnEndpoints:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ClientVpnEndpoints"},DescribeClientVpnRoutes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Routes"},DescribeClientVpnTargetNetworks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ClientVpnTargetNetworks"},DescribeCoipPools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"CoipPools"},DescribeConversionTasks:{result_key:"ConversionTasks"},DescribeCustomerGateways:{result_key:"CustomerGateways"},DescribeDhcpOptions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"DhcpOptions"},DescribeEgressOnlyInternetGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"EgressOnlyInternetGateways"},DescribeExportImageTasks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ExportImageTasks"},DescribeExportTasks:{result_key:"ExportTasks"},DescribeFastSnapshotRestores:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"FastSnapshotRestores"},DescribeFleets:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Fleets"},DescribeFlowLogs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"FlowLogs"},DescribeFpgaImages:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"FpgaImages"},DescribeHostReservationOfferings:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"OfferingSet"},DescribeHostReservations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"HostReservationSet"},DescribeHosts:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Hosts"},DescribeIamInstanceProfileAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"IamInstanceProfileAssociations"},DescribeImages:{result_key:"Images"},DescribeImportImageTasks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ImportImageTasks"},DescribeImportSnapshotTasks:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ImportSnapshotTasks"},DescribeInstanceCreditSpecifications:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceCreditSpecifications"},DescribeInstanceStatus:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceStatuses"},DescribeInstanceTypeOfferings:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceTypeOfferings"},DescribeInstanceTypes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InstanceTypes"},DescribeInstances:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Reservations"},DescribeInternetGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"InternetGateways"},DescribeIpv6Pools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Ipv6Pools"},DescribeKeyPairs:{result_key:"KeyPairs"},DescribeLaunchTemplateVersions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LaunchTemplateVersions"},DescribeLaunchTemplates:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LaunchTemplates"},DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayRouteTableVirtualInterfaceGroupAssociations"},DescribeLocalGatewayRouteTableVpcAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayRouteTableVpcAssociations"},DescribeLocalGatewayRouteTables:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayRouteTables"},DescribeLocalGatewayVirtualInterfaceGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayVirtualInterfaceGroups"},DescribeLocalGatewayVirtualInterfaces:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGatewayVirtualInterfaces"},DescribeLocalGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"LocalGateways"},DescribeMovingAddresses:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"MovingAddressStatuses"},DescribeNatGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NatGateways"},DescribeNetworkAcls:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NetworkAcls"},DescribeNetworkInterfacePermissions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NetworkInterfacePermissions"},DescribeNetworkInterfaces:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"NetworkInterfaces"},DescribePlacementGroups:{result_key:"PlacementGroups"},DescribePrefixLists:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"PrefixLists"},DescribePrincipalIdFormat:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Principals"},DescribePublicIpv4Pools:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"PublicIpv4Pools"},DescribeRegions:{result_key:"Regions"},DescribeReservedInstances:{result_key:"ReservedInstances"},DescribeReservedInstancesListings:{result_key:"ReservedInstancesListings"},DescribeReservedInstancesModifications:{input_token:"NextToken",output_token:"NextToken",result_key:"ReservedInstancesModifications"},DescribeReservedInstancesOfferings:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ReservedInstancesOfferings"},DescribeRouteTables:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"RouteTables"},DescribeScheduledInstanceAvailability:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ScheduledInstanceAvailabilitySet"},DescribeScheduledInstances:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ScheduledInstanceSet"},DescribeSecurityGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SecurityGroups"},DescribeSnapshots:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Snapshots"},DescribeSpotFleetRequests:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SpotFleetRequestConfigs"},DescribeSpotInstanceRequests:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SpotInstanceRequests"},DescribeSpotPriceHistory:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"SpotPriceHistory"},DescribeStaleSecurityGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"StaleSecurityGroupSet"},DescribeSubnets:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Subnets"},DescribeTags:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Tags"},DescribeTrafficMirrorFilters:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TrafficMirrorFilters"},DescribeTrafficMirrorSessions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TrafficMirrorSessions"},DescribeTrafficMirrorTargets:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TrafficMirrorTargets"},DescribeTransitGatewayAttachments:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayAttachments"},DescribeTransitGatewayMulticastDomains:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayMulticastDomains"},DescribeTransitGatewayPeeringAttachments:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayPeeringAttachments"},DescribeTransitGatewayRouteTables:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayRouteTables"},DescribeTransitGatewayVpcAttachments:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayVpcAttachments"},DescribeTransitGateways:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGateways"},DescribeVolumeStatus:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VolumeStatuses"},DescribeVolumes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Volumes"},DescribeVolumesModifications:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VolumesModifications"},DescribeVpcClassicLinkDnsSupport:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Vpcs"},DescribeVpcEndpointConnectionNotifications:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ConnectionNotificationSet"},DescribeVpcEndpointConnections:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VpcEndpointConnections"},DescribeVpcEndpointServiceConfigurations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"ServiceConfigurations"},DescribeVpcEndpointServicePermissions:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"AllowedPrincipals"},DescribeVpcEndpoints:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VpcEndpoints"},DescribeVpcPeeringConnections:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"VpcPeeringConnections"},DescribeVpcs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Vpcs"},DescribeVpnConnections:{result_key:"VpnConnections"},DescribeVpnGateways:{result_key:"VpnGateways"},GetAssociatedIpv6PoolCidrs:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Ipv6CidrAssociations"},GetTransitGatewayAttachmentPropagations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayAttachmentPropagations"},GetTransitGatewayMulticastDomainAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"MulticastDomainAssociations"},GetTransitGatewayRouteTableAssociations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Associations"},GetTransitGatewayRouteTablePropagations:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"TransitGatewayRouteTablePropagations"},SearchLocalGatewayRoutes:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"Routes"},SearchTransitGatewayMulticastGroups:{input_token:"NextToken",limit_key:"MaxResults",output_token:"NextToken",result_key:"MulticastGroups"}}}},,function(e,t,n){var r=n(11);e.exports=r(once);e.exports.strict=r(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var n=e.name||"Function wrapped with `once`";t.onceError=n+" shouldn't be called more than once";t.called=false;return t}},,,,function(e,t,n){"use strict";const r=typeof URL==="undefined"?n(835).URL:URL;const o="text/plain";const i="us-ascii";const a=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const s=(e,{stripHash:t})=>{const n=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!n){throw new Error(`Invalid URL: ${e}`)}const r=n[1].split(";");const a=n[2];const s=t?"":n[3];let c=false;if(r[r.length-1]==="base64"){r.pop();c=true}const u=(r.shift()||"").toLowerCase();const l=r.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());if(t==="charset"){n=n.toLowerCase();if(n===i){return""}}return`${t}${n?`=${n}`:""}`}).filter(Boolean);const p=[...l];if(c){p.push("base64")}if(p.length!==0||u&&u!==o){p.unshift(u)}return`data:${p.join(";")},${c?a.trim():a}${s?`#${s}`:""}`};const c=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return s(e,t)}const n=e.startsWith("//");const o=!n&&/^\.*\//.test(e);if(!o){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const i=new r(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&i.protocol==="https:"){i.protocol="http:"}if(t.forceHttps&&i.protocol==="http:"){i.protocol="https:"}if(t.stripAuthentication){i.username="";i.password=""}if(t.stripHash){i.hash=""}if(i.pathname){i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(i.pathname){i.pathname=decodeURI(i.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const n=e[e.length-1];if(a(n,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);i.pathname=e.slice(1).join("/")+"/"}}if(i.hostname){i.hostname=i.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)){i.hostname=i.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...i.searchParams.keys()]){if(a(e,t.removeQueryParameters)){i.searchParams.delete(e)}}}if(t.sortQueryParameters){i.searchParams.sort()}if(t.removeTrailingSlash){i.pathname=i.pathname.replace(/\/$/,"")}e=i.toString();if((t.removeTrailingSlash||i.pathname==="/")&&i.hash===""){e=e.replace(/\/$/,"")}if(n&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=c;e.exports.default=c},,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon Cognito Identity",serviceId:"Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",uid:"cognito-identity-2014-06-30"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},output:{shape:"Sk"}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sv"}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sk"}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"},CustomRoleArn:{}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{}}}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"S10"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"S10"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sv"}},NextToken:{}}}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}}},ListTagsForResource:{input:{type:"structure",required:["ResourceArn"],members:{ResourceArn:{}}},output:{type:"structure",members:{Tags:{shape:"Sh"}}}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S1c"},RoleMappings:{shape:"S1e"}}}},TagResource:{input:{type:"structure",required:["ResourceArn","Tags"],members:{ResourceArn:{},Tags:{shape:"Sh"}}},output:{type:"structure",members:{}}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"S10"},LoginsToRemove:{shape:"Sw"}}}},UntagResource:{input:{type:"structure",required:["ResourceArn","TagKeys"],members:{ResourceArn:{},TagKeys:{type:"list",member:{}}}},output:{type:"structure",members:{}}},UpdateIdentityPool:{input:{shape:"Sk"},output:{shape:"Sk"}}},shapes:{S5:{type:"map",key:{},value:{}},S9:{type:"list",member:{}},Sb:{type:"list",member:{type:"structure",members:{ProviderName:{},ClientId:{},ServerSideTokenCheck:{type:"boolean"}}}},Sg:{type:"list",member:{}},Sh:{type:"map",key:{},value:{}},Sk:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},AllowClassicFlow:{type:"boolean"},SupportedLoginProviders:{shape:"S5"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S9"},CognitoIdentityProviders:{shape:"Sb"},SamlProviderARNs:{shape:"Sg"},IdentityPoolTags:{shape:"Sh"}}},Sv:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sw"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sw:{type:"list",member:{}},S10:{type:"map",key:{},value:{}},S1c:{type:"map",key:{},value:{}},S1e:{type:"map",key:{},value:{type:"structure",required:["Type"],members:{Type:{},AmbiguousRoleResolution:{},RulesConfiguration:{type:"structure",required:["Rules"],members:{Rules:{type:"list",member:{type:"structure",required:["Claim","MatchType","Value","RoleARN"],members:{Claim:{},MatchType:{},Value:{},RoleARN:{}}}}}}}}}}}},function(e,t,n){"use strict";const r=n(747);const o=n(669);const i=n(534);const a=n(504);e.exports=(async e=>{const{body:t}=e;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!t&&!e.stream){return 0}if(i.string(t)){return Buffer.byteLength(t)}if(a(t)){return o.promisify(t.getLength.bind(t))()}if(t instanceof r.ReadStream){const{size:e}=await o.promisify(r.stat)(t.path);return e}return null})},,,,,,,,,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Signers.RequestSigner=o({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};n(220);n(791);n(566);n(754);n(616);n(951)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const{URL:r,URLSearchParams:o}=n(835);const i=n(835);const a=n(534);const s=n(173);const c=n(474);const u=n(811);const l=n(504);const p=n(821);const m=n(433);const d=new Set([413,429,503]);const y=(e,t)=>{if(a.nullOrUndefined(e.headers)){e.headers={}}else{e.headers=c(e.headers)}if(e.baseUrl&&!e.baseUrl.toString().endsWith("/")){e.baseUrl+="/"}if(e.stream){e.json=false}if(a.nullOrUndefined(e.hooks)){e.hooks={}}else if(!a.object(e.hooks)){throw new TypeError(`Parameter \`hooks\` must be an object, not ${a(e.hooks)}`)}for(const n of m){if(a.nullOrUndefined(e.hooks[n])){if(t){e.hooks[n]=[...t.hooks[n]]}else{e.hooks[n]=[]}}}if(a.number(e.timeout)){e.gotTimeout={request:e.timeout}}else if(a.object(e.timeout)){e.gotTimeout=e.timeout}delete e.timeout;const{retry:n}=e;e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]};if(a.nonEmptyObject(t)&&n!==false){e.retry={...t.retry}}if(n!==false){if(a.number(n)){e.retry.retries=n}else{e.retry={...e.retry,...n}}}if(e.gotTimeout){e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter(e=>!a.nullOrUndefined(e)))}if(a.array(e.retry.methods)){e.retry.methods=new Set(e.retry.methods.map(e=>e.toUpperCase()))}if(a.array(e.retry.statusCodes)){e.retry.statusCodes=new Set(e.retry.statusCodes)}if(a.array(e.retry.errorCodes)){e.retry.errorCodes=new Set(e.retry.errorCodes)}return e};const f=(e,t,n)=>{if(a.plainObject(e)){t={...e,...t};e=t.url||{};delete t.url}if(n){t=p({},n.options,t?y(t,n.options):{})}else{t=p({},y(t))}if(!a.string(e)&&!a.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${a(e)}`)}if(a.string(e)){if(t.baseUrl){if(e.toString().startsWith("/")){e=e.toString().slice(1)}e=u(new r(e,t.baseUrl))}else{e=e.replace(/^unix:/,"http://$&");e=s(e)}}else if(a(e)==="URL"){e=u(e)}t=p({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const n=e(t);if(a.promise(n)){throw new TypeError("The `init` hook must be a synchronous function")}}const{baseUrl:i}=t;Object.defineProperty(t,"baseUrl",{set:()=>{throw new Error("Failed to set baseUrl. Options are normalized already.")},get:()=>i});const{query:c}=t;if(a.nonEmptyString(c)||a.nonEmptyObject(c)||c instanceof o){if(!a.string(c)){t.query=new o(c).toString()}t.path=`${t.path.split("?")[0]}?${t.query}`;delete t.query}if(t.hostname==="unix"){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,n,r]=e;t={...t,socketPath:n,path:r,host:null}}}const{headers:m}=t;for(const[e,t]of Object.entries(m)){if(a.nullOrUndefined(t)){delete m[e]}}if(t.json&&a.undefined(m.accept)){m.accept="application/json"}if(t.decompress&&a.undefined(m["accept-encoding"])){m["accept-encoding"]="gzip, deflate"}const{body:f}=t;if(a.nullOrUndefined(f)){t.method=t.method?t.method.toUpperCase():"GET"}else{const e=a.object(f)&&!a.buffer(f)&&!a.nodeStream(f);if(!a.nodeStream(f)&&!a.string(f)&&!a.buffer(f)&&!(t.form||t.json)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(t.json&&!(e||a.array(f))){throw new TypeError("The `body` option must be an Object or Array when the `json` option is used")}if(t.form&&!e){throw new TypeError("The `body` option must be an Object when the `form` option is used")}if(l(f)){m["content-type"]=m["content-type"]||`multipart/form-data; boundary=${f.getBoundary()}`}else if(t.form){m["content-type"]=m["content-type"]||"application/x-www-form-urlencoded";t.body=new o(f).toString()}else if(t.json){m["content-type"]=m["content-type"]||"application/json";t.body=JSON.stringify(f)}t.method=t.method?t.method.toUpperCase():"POST"}if(!a.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=((n,r)=>{if(n>e){return 0}if((!r||!t.retry.errorCodes.has(r.code))&&(!t.retry.methods.has(r.method)||!t.retry.statusCodes.has(r.statusCode))){return 0}if(Reflect.has(r,"headers")&&Reflect.has(r.headers,"retry-after")&&d.has(r.statusCode)){let e=Number(r.headers["retry-after"]);if(a.nan(e)){e=Date.parse(r.headers["retry-after"])-Date.now()}else{e*=1e3}if(e>t.retry.maxRetryAfter){return 0}return e}if(r.statusCode===413){return 0}const o=Math.random()*100;return 2**(n-1)*1e3+o})}return t};const h=e=>f(i.format(e),e);e.exports=f;e.exports.preNormalize=y;e.exports.reNormalize=h},function(e){e.exports=require("os")},,function(e){"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,n)=>{const r=new Set(Object.keys(e).concat(t));for(const t of r){if(t in n){continue}n[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},,,,function(e,t,n){"use strict";const r=n(413).Readable;const o=n(474);class Response extends r{constructor(e,t,n,r){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(n instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof r!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=o(t);this.body=n;this.url=r}_read(){this.push(this.body);this.push(null)}}e.exports=Response},,,,function(e){"use strict";e.exports=(e=>{const t={};for(const[n,r]of Object.entries(e)){t[n.toLowerCase()]=r}return t})},,,,,,function(e,t,n){var r=n(395);n(138);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(n,o){if(!n){var i=r.util.date.getDate();var a=new Date(o.Expiration);if(a{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();t=Object.assign({https:false},t);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")})},function(e){e.exports=require("child_process")},,,,,,,,,function(e,t,n){var r=n(395);n(711);var o=r.util.inherit;r.MetadataService=o({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,n){if(arguments.length===2){n=t;t={}}if(process.env[r.util.imdsDisabledEnv]){n(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var o=new r.HttpRequest("http://"+this.host+e);o.method=t.method||"GET";if(t.headers){o.headers=t.headers}r.util.handleRequestWithRetries(o,this,n)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var n="/latest/api/token";t.request(n,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var n=this;var o="/latest/meta-data/iam/security-credentials/";n.request(o,e,function(i,a){if(i){n.disableFetchToken=!(i.statusCode===401);t(r.util.error(i,{message:"EC2 Metadata roleName request returned error"}));return}a=a.split("\n")[0];n.request(o+a,e,function(e,o){if(e){n.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var i=JSON.parse(o);t(null,i)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,n){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,n)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,n){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var o={};if(n){o.headers={"x-aws-ec2-metadata-token":n}}t.fetchCredentials(o,callbacks)})}}});e.exports=r.MetadataService},function(e,t,n){var r=n(417);e.exports=function nodeRNG(){return r.randomBytes(16)}},,,,,,function(e,t,n){"use strict";const r=n(453);const o=n(966);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:n}=t;let i;return new Promise((a,s)=>{const c=e=>{if(e){e.bufferedData=i.getBufferedValue()}s(e)};i=r(e,o(t),e=>{if(e){c(e);return}a()});i.on("data",()=>{if(i.getBufferedLength()>n){c(new MaxBufferError)}})}).then(()=>i.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},,,,,,,,function(e,t,n){var r;var o={environment:"nodejs",engine:function engine(){if(o.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=o.environment;var t="aws-sdk-"+e+"/"+n(395).VERSION;if(e==="nodejs")t+=" "+o.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return o.url.parse(e)},urlFormat:function urlFormat(e){return o.url.format(e)},queryStringParse:function queryStringParse(e){return o.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var n=o.uriEscape;var r=Object.keys(e).sort();o.arrayEach(r,function(r){var i=e[r];var a=n(r);var s=a+"=";if(Array.isArray(i)){var c=[];o.arrayEach(i,function(e){c.push(n(e))});s=a+"="+c.sort().join("&"+a+"=")}else if(i!==undefined&&i!==null){s=a+"="+n(i)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(o.isBrowser())return null;return n(747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw o.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=o.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw o.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return o.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof o.Buffer.from==="function"&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,t):new o.Buffer(e,t)},alloc:function(e,t,n){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof o.Buffer.alloc==="function"){return o.Buffer.alloc(e,t,n)}else{var r=new o.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,n)}return r}},toStream:function toStream(e){if(!o.Buffer.isBuffer(e))e=o.buffer.toBuffer(e);var t=new o.stream.Readable;var n=0;t._read=function(r){if(n>=e.length)return t.push(null);var o=n+r;if(o>e.length)o=e.length;t.push(e.slice(n,o));n=o};return t},concat:function(e){var t=0,n=0,r=null,i;for(i=0;i>>8^t[(n^i)&255]}return(n^-1)>>>0},hmac:function hmac(e,t,n,r){if(!n)n="binary";if(n==="buffer"){n=undefined}if(!r)r="sha256";if(typeof t==="string")t=o.buffer.toBuffer(t);return o.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function md5(e,t,n){return o.crypto.hash("md5",e,t,n)},sha256:function sha256(e,t,n){return o.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var i=o.crypto.createHash(e);if(!n){n="binary"}if(n==="buffer"){n=undefined}if(typeof t==="string")t=o.buffer.toBuffer(t);var a=o.arraySliceFn(t);var s=o.Buffer.isBuffer(t);if(o.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){i.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,i.digest(n))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var c=0,u=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e);c+=e.length;l._continueReading()};l._continueReading=function(){if(c>=t.size){r(null,i.digest(n));return}var e=c+u;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,c,e))};l._continueReading()}else{if(o.isBrowser()&&typeof t==="object"&&!s){t=new o.Buffer(new Uint8Array(t))}var p=i.update(t).digest(n);if(r)r(null,p);return p}},toHex:function toHex(e){var t=[];for(var n=0;n=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var n=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")n=true;if(!Array.isArray(e))e=[e];for(var o=0;o=0){s++;setTimeout(u,i+(e.retryAfter||0))}else{n(e)}};var u=function(){var t="";i.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){n(null,t)}else{var i=parseInt(e.headers["retry-after"],10)*1e3||0;var a=o.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(i&&a.retryable)a.retryAfter=i;c(a)}})},c)};r.util.defer(u)},uuid:{v4:function uuidV4(){return n(898).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var n=t.operation;var r=t.service.api.operations[n].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var n=(t||{})[e.operation];if(!n||!n.input||!n.input.payload)return undefined;return n.input.members[n.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var n={};var r={};if(process.env[o.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[o.sharedConfigFileEnv]})}var i=e.loadFrom({filename:t||process.env[o.configOptInEnv]&&process.env[o.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw o.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o},function(e){"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const r=new Set([500,502,503,504]);const o={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const i={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return r.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const n=e.trim().split(/\s*,\s*/);for(const e of n){const[n,r]=e.split(/\s*=\s*/,2);t[n]=r===undefined?true:r.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const n in e){const r=e[n];t.push(r===true?n:n+"="+r)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:n,cacheHeuristic:r,immutableMinTimeToLive:o,ignoreCargoCult:i,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=n!==false;this._cacheHeuristic=undefined!==r?r:.1;this._immutableMinTtl=undefined!==o?o:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(i&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const n of t){if(e.headers[n]!==this._reqHeaders[n])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const n in e){if(o[n])continue;t[n]=e[n]}if(e.connection){const n=e.connection.trim().split(/\s*,\s*/);for(const e of n){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const n=Date.parse(this._resHeaders.expires);if(Number.isNaN(n)||nn){return Math.max(e,(t-n)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const n=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const n=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(n){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let n=false;if(t.status!==undefined&&t.status!=304){n=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){n=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){n=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){n=true}}if(!n){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const r={};for(const e in this._resHeaders){r[e]=e in t.headers&&!i[e]?t.headers[e]:this._resHeaders[e]}const o=Object.assign({},t,{status:this._status,method:this._method,headers:r});return{policy:new this.constructor(e,o,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},,,,,,,,,,,function(e){function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},,,,,function(e,t,n){var r=n(395);var o=n(214);var i=n(106);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var n=this;Object.defineProperty(this,"identityId",{get:function(){n.loadCachedId();return n._identityId||n.params.IdentityId},set:function(e){n._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(n){if(!n){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(n);e(n)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(n,r){if(!n&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(n)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(n,r){if(!n){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(n)}e(n)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(n,r){if(!n){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(n){if(!n){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(n)})}else{t.clearIdOnNotAuthorized(n);e(n)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var n=Object.keys(e.params.Logins);var o=(e.getStorage("providers")||"").split(",");var i=o.filter(function(e){return n.indexOf(e)!==-1});if(i.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new o(t)}this.sts=this.sts||new i(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},,,function(e,t,n){"use strict";const r=n(835);const o=n(128);e.exports=((e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const n=o(e,Object.assign({https:true},t));return r.parse(n)})},,function(e,t,n){var r=n(395).util;var o=r.buffer.toBuffer;var i=4;var a=i*2;var s=4;var c=a+s*2;function splitMessage(e){if(!r.Buffer.isBuffer(e))e=o(e);if(e.length=192){const n=f.decode(e,e.readUInt16BE(t-1)-49152);f.decode.bytes=2;return n}while(o){if(o>=192){n.push(f.decode(e,e.readUInt16BE(t-1)-49152));t++;break}n.push(e.toString("utf-8",t,t+o));t+=o;o=e[t++]}f.decode.bytes=t-r;return n.join(".")};f.decode.bytes=0;f.encodingLength=function(e){if(e===".")return 1;return Buffer.byteLength(e)+2};const h={};h.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(h.encodingLength(e));if(!n)n=0;const r=t.write(e,n+1);t[n]=r;h.encode.bytes=r+1;return t};h.encode.bytes=0;h.decode=function(e,t){if(!t)t=0;const n=e[t];const r=e.toString("utf-8",t+1,t+1+n);h.decode.bytes=n+1;return r};h.decode.bytes=0;h.encodingLength=function(e){return Buffer.byteLength(e)+1};const N={};N.encode=function(e,t,n){if(!t)t=N.encodingLength(e);if(!n)n=0;const r=(e.flags||0)&32767;const o=e.type==="response"?l:u;t.writeUInt16BE(e.id||0,n);t.writeUInt16BE(r|o,n+2);t.writeUInt16BE(e.questions.length,n+4);t.writeUInt16BE(e.answers.length,n+6);t.writeUInt16BE(e.authorities.length,n+8);t.writeUInt16BE(e.additionals.length,n+10);return t};N.encode.bytes=12;N.decode=function(e,t){if(!t)t=0;if(e.length<12)throw new Error("Header must be 12 bytes");const n=e.readUInt16BE(t+2);return{id:e.readUInt16BE(t),type:n&l?"response":"query",flags:n&32767,flag_qr:(n>>15&1)===1,opcode:i.toString(n>>11&15),flag_aa:(n>>10&1)===1,flag_tc:(n>>9&1)===1,flag_rd:(n>>8&1)===1,flag_ra:(n>>7&1)===1,flag_z:(n>>6&1)===1,flag_ad:(n>>5&1)===1,flag_cd:(n>>4&1)===1,rcode:o.toString(n&15),questions:new Array(e.readUInt16BE(t+4)),answers:new Array(e.readUInt16BE(t+6)),authorities:new Array(e.readUInt16BE(t+8)),additionals:new Array(e.readUInt16BE(t+10))}};N.decode.bytes=12;N.encodingLength=function(){return 12};const g=t.unknown={};g.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(g.encodingLength(e));if(!n)n=0;t.writeUInt16BE(e.length,n);e.copy(t,n+2);g.encode.bytes=e.length+2;return t};g.encode.bytes=0;g.decode=function(e,t){if(!t)t=0;const n=e.readUInt16BE(t);const r=e.slice(t+2,t+2+n);g.decode.bytes=n+2;return r};g.decode.bytes=0;g.encodingLength=function(e){return e.length+2};const b=t.ns={};b.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(b.encodingLength(e));if(!n)n=0;f.encode(e,t,n+2);t.writeUInt16BE(f.encode.bytes,n);b.encode.bytes=f.encode.bytes+2;return t};b.encode.bytes=0;b.decode=function(e,t){if(!t)t=0;const n=e.readUInt16BE(t);const r=f.decode(e,t+2);b.decode.bytes=n+2;return r};b.decode.bytes=0;b.encodingLength=function(e){return f.encodingLength(e)+2};const I=t.soa={};I.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(I.encodingLength(e));if(!n)n=0;const r=n;n+=2;f.encode(e.mname,t,n);n+=f.encode.bytes;f.encode(e.rname,t,n);n+=f.encode.bytes;t.writeUInt32BE(e.serial||0,n);n+=4;t.writeUInt32BE(e.refresh||0,n);n+=4;t.writeUInt32BE(e.retry||0,n);n+=4;t.writeUInt32BE(e.expire||0,n);n+=4;t.writeUInt32BE(e.minimum||0,n);n+=4;t.writeUInt16BE(n-r-2,r);I.encode.bytes=n-r;return t};I.encode.bytes=0;I.decode=function(e,t){if(!t)t=0;const n=t;const r={};t+=2;r.mname=f.decode(e,t);t+=f.decode.bytes;r.rname=f.decode(e,t);t+=f.decode.bytes;r.serial=e.readUInt32BE(t);t+=4;r.refresh=e.readUInt32BE(t);t+=4;r.retry=e.readUInt32BE(t);t+=4;r.expire=e.readUInt32BE(t);t+=4;r.minimum=e.readUInt32BE(t);t+=4;I.decode.bytes=t-n;return r};I.decode.bytes=0;I.encodingLength=function(e){return 22+f.encodingLength(e.mname)+f.encodingLength(e.rname)};const v=t.txt={};v.encode=function(e,t,n){if(!Array.isArray(e))e=[e];for(let t=0;t0){const n=e[t++];--r;if(r0){n.timeout=e.readUInt16BE(t);t+=2}break;case 14:n.tags=[];for(let o=0;o0){r[i++]=P.decode(e,t);t+=P.decode.bytes;o-=P.decode.bytes}_.decode.bytes=t-n;return r};_.decode.bytes=0;_.encodingLength=function(e){return 2+encodingLengthList(e||[],P)};const M=t.dnskey={};M.PROTOCOL_DNSSEC=3;M.ZONE_KEY=128;M.SECURE_ENTRYPOINT=32768;M.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(M.encodingLength(e));if(!n)n=0;const r=n;const o=e.key;if(!Buffer.isBuffer(o)){throw new Error("Key must be a Buffer")}n+=2;t.writeUInt16BE(e.flags,n);n+=2;t.writeUInt8(M.PROTOCOL_DNSSEC,n);n+=1;t.writeUInt8(e.algorithm,n);n+=1;o.copy(t,n,0,o.length);n+=o.length;M.encode.bytes=n-r;t.writeUInt16BE(M.encode.bytes-2,r);return t};M.encode.bytes=0;M.decode=function(e,t){if(!t)t=0;const n=t;var r={};var o=e.readUInt16BE(t);t+=2;r.flags=e.readUInt16BE(t);t+=2;if(e.readUInt8(t)!==M.PROTOCOL_DNSSEC){throw new Error("Protocol must be 3")}t+=1;r.algorithm=e.readUInt8(t);t+=1;r.key=e.slice(t,n+o+2);t+=r.key.length;M.decode.bytes=t-n;return r};M.decode.bytes=0;M.encodingLength=function(e){return 6+Buffer.byteLength(e.key)};const L=t.rrsig={};L.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(L.encodingLength(e));if(!n)n=0;const o=n;const i=e.signature;if(!Buffer.isBuffer(i)){throw new Error("Signature must be a Buffer")}n+=2;t.writeUInt16BE(r.toType(e.typeCovered),n);n+=2;t.writeUInt8(e.algorithm,n);n+=1;t.writeUInt8(e.labels,n);n+=1;t.writeUInt32BE(e.originalTTL,n);n+=4;t.writeUInt32BE(e.expiration,n);n+=4;t.writeUInt32BE(e.inception,n);n+=4;t.writeUInt16BE(e.keyTag,n);n+=2;f.encode(e.signersName,t,n);n+=f.encode.bytes;i.copy(t,n,0,i.length);n+=i.length;L.encode.bytes=n-o;t.writeUInt16BE(L.encode.bytes-2,o);return t};L.encode.bytes=0;L.decode=function(e,t){if(!t)t=0;const n=t;var o={};var i=e.readUInt16BE(t);t+=2;o.typeCovered=r.toString(e.readUInt16BE(t));t+=2;o.algorithm=e.readUInt8(t);t+=1;o.labels=e.readUInt8(t);t+=1;o.originalTTL=e.readUInt32BE(t);t+=4;o.expiration=e.readUInt32BE(t);t+=4;o.inception=e.readUInt32BE(t);t+=4;o.keyTag=e.readUInt16BE(t);t+=2;o.signersName=f.decode(e,t);t+=f.decode.bytes;o.signature=e.slice(t,n+i+2);t+=o.signature.length;L.decode.bytes=t-n;return o};L.decode.bytes=0;L.encodingLength=function(e){return 20+f.encodingLength(e.signersName)+Buffer.byteLength(e.signature)};const O=t.rp={};O.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(O.encodingLength(e));if(!n)n=0;const r=n;n+=2;f.encode(e.mbox||".",t,n);n+=f.encode.bytes;f.encode(e.txt||".",t,n);n+=f.encode.bytes;O.encode.bytes=n-r;t.writeUInt16BE(O.encode.bytes-2,r);return t};O.encode.bytes=0;O.decode=function(e,t){if(!t)t=0;const n=t;const r={};t+=2;r.mbox=f.decode(e,t)||".";t+=f.decode.bytes;r.txt=f.decode(e,t)||".";t+=f.decode.bytes;O.decode.bytes=t-n;return r};O.decode.bytes=0;O.encodingLength=function(e){return 2+f.encodingLength(e.mbox||".")+f.encodingLength(e.txt||".")};const F={};F.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(F.encodingLength(e));if(!n)n=0;const o=n;var i=[];for(var a=0;a>8]===undefined){i[s>>8]=[]}i[s>>8][s>>3&31]|=1<<7-(s&7)}for(a=0;a>8]=Math.max(t[o>>8]||0,o&255)}var i=0;for(n=0;n>15&1)===1;n.options=_.decode(e,t+8);t+=8+_.decode.bytes}else{const r=e.readUInt16BE(t+2);n.ttl=e.readUInt32BE(t+4);n.class=a.toString(r&m);n.flush=!!(r&p);const o=V(n.type);n.data=o.decode(e,t+8);t+=8+o.decode.bytes}U.decode.bytes=t-o;return n};U.decode.bytes=0;U.encodingLength=function(e){const t=e.data!==null&&e.data!==undefined?e.data:e.options;return f.encodingLength(e.name)+8+V(e.type).encodingLength(t)};const H=t.question={};H.encode=function(e,t,n){if(!t)t=Buffer.allocUnsafe(H.encodingLength(e));if(!n)n=0;const o=n;f.encode(e.name,t,n);n+=f.encode.bytes;t.writeUInt16BE(r.toType(e.type),n);n+=2;t.writeUInt16BE(a.toClass(e.class===undefined?"IN":e.class),n);n+=2;H.encode.bytes=n-o;return e};H.encode.bytes=0;H.decode=function(e,t){if(!t)t=0;const n=t;const o={};o.name=f.decode(e,t);t+=f.decode.bytes;o.type=r.toString(e.readUInt16BE(t));t+=2;o.class=a.toString(e.readUInt16BE(t));t+=2;const i=!!(o.class&d);if(i)o.class&=y;H.decode.bytes=t-n;return o};H.decode.bytes=0;H.encodingLength=function(e){return f.encodingLength(e.name)+4};t.AUTHORITATIVE_ANSWER=1<<10;t.TRUNCATED_RESPONSE=1<<9;t.RECURSION_DESIRED=1<<8;t.RECURSION_AVAILABLE=1<<7;t.AUTHENTIC_DATA=1<<5;t.CHECKING_DISABLED=1<<4;t.DNSSEC_OK=1<<15;t.encode=function(e,n,r){if(!n)n=Buffer.allocUnsafe(t.encodingLength(e));if(!r)r=0;const o=r;if(!e.questions)e.questions=[];if(!e.answers)e.answers=[];if(!e.authorities)e.authorities=[];if(!e.additionals)e.additionals=[];N.encode(e,n,r);r+=N.encode.bytes;r=encodeList(e.questions,H,n,r);r=encodeList(e.answers,U,n,r);r=encodeList(e.authorities,U,n,r);r=encodeList(e.additionals,U,n,r);t.encode.bytes=r-o;return n};t.encode.bytes=0;t.decode=function(e,n){if(!n)n=0;const r=n;const o=N.decode(e,n);n+=N.decode.bytes;n=decodeList(o.questions,H,e,n);n=decodeList(o.answers,U,e,n);n=decodeList(o.authorities,U,e,n);n=decodeList(o.additionals,U,e,n);t.decode.bytes=n-r;return o};t.decode.bytes=0;t.encodingLength=function(e){return N.encodingLength(e)+encodingLengthList(e.questions||[],H)+encodingLengthList(e.answers||[],U)+encodingLengthList(e.authorities||[],U)+encodingLengthList(e.additionals||[],U)};t.streamEncode=function(e){const n=t.encode(e);const r=Buffer.allocUnsafe(2);r.writeUInt16BE(n.byteLength);const o=Buffer.concat([r,n]);t.streamEncode.bytes=o.byteLength;return o};t.streamEncode.bytes=0;t.streamDecode=function(e){const n=e.readUInt16BE(0);if(e.byteLength=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var n;if(e[t.clientConfig]){n=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(n)return n}if(!r.util.isNode())return n;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var o=process.env[t.env];n=validateRegionalEndpointsFlagValue(o,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(n)return n}var i={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);i=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)){var s=i[t.sharedConfig];n=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+i[t.sharedConfig]+'".'});if(n)return n}return n}e.exports=resolveRegionalEndpointsFlag},,function(e,t,n){var r=n(153);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=n(417);r.Buffer=n(293).Buffer;r.domain=n(229);r.stream=n(413);r.url=n(835);r.querystring=n(191);r.environment="nodejs";r.createEventStream=r.stream.Readable?n(445).createEventStream:n(661).createEventStream;r.realClock=n(693);r.clientSideMonitoring={Publisher:n(701).Publisher,configProvider:n(762)};r.iniLoader=n(892).iniLoader;var o;e.exports=o=n(395);n(923);n(906);n(43);n(543);n(751);n(170);n(540);n(982);o.XML.Parser=n(810);n(888);n(960);n(868);n(103);n(426);n(316);n(872);n(634);n(22);n(982);o.CredentialProviderChain.defaultProviders=[function(){return new o.EnvironmentCredentials("AWS")},function(){return new o.EnvironmentCredentials("AMAZON")},function(){return new o.SharedIniFileCredentials},function(){return new o.ECSCredentials},function(){return new o.ProcessCredentials},function(){return new o.TokenFileWebIdentityCredentials},function(){return new o.EC2MetadataCredentials}];o.util.update(o.Config.prototype.keys,{credentials:function(){var e=null;new o.CredentialProviderChain([function(){return new o.EnvironmentCredentials("AWS")},function(){return new o.EnvironmentCredentials("AMAZON")},function(){return new o.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,n){if(!t)e=n});return e},credentialProvider:function(){return new o.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[o.util.configOptInEnv]){var n=[{filename:e[o.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[o.util.sharedConfigFileEnv]}];var r=o.util.iniLoader;while(!t&&n.length){var i=r.loadFrom(n.shift());var a=i[e.AWS_PROFILE||o.util.defaultProfile];t=a&&a.region}}return t}});o.config=new o.Config},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";const r=n(534);e.exports=function deepFreeze(e){for(const[t,n]of Object.entries(e)){if(r.plainObject(n)||r.array(n)){deepFreeze(e[t])}}return Object.freeze(e)}},,,function(e,t,n){var r=n(153).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},,,,,function(e){e.exports={pagination:{}}},,,,,,,,,,function(e){e.exports={pagination:{}}},,,,,,,,,,,,,function(e){e.exports=require("buffer")},,,,,,,,,,function(e,t,n){"use strict";const r=n(614);const o=n(205);const i=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const n=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[n]))(e)}return new Map};class Keyv extends r{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:o.stringify,deserialize:o.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=i(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.get(e)).then(t=>{t=typeof t==="string"?this.opts.deserialize(t):t;if(t===undefined){return undefined}if(typeof t.expires==="number"&&Date.now()>t.expires){this.delete(e);return undefined}return t.value})}set(e,t,n){e=this._getKeyPrefix(e);if(typeof n==="undefined"){n=this.opts.ttl}if(n===0){n=undefined}const r=this.opts.store;return Promise.resolve().then(()=>{const o=typeof n==="number"?Date.now()+n:null;t={value:t,expires:o};return r.set(e,this.opts.serialize(t),n)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},function(e){e.exports=require("string_decoder")},,function(e,t){"use strict";t.toString=function(e){switch(e){case 0:return"QUERY";case 1:return"IQUERY";case 2:return"STATUS";case 3:return"OPCODE_3";case 4:return"NOTIFY";case 5:return"UPDATE";case 6:return"OPCODE_6";case 7:return"OPCODE_7";case 8:return"OPCODE_8";case 9:return"OPCODE_9";case 10:return"OPCODE_10";case 11:return"OPCODE_11";case 12:return"OPCODE_12";case 13:return"OPCODE_13";case 14:return"OPCODE_14";case 15:return"OPCODE_15"}return"OPCODE_"+e};t.toOpcode=function(e){switch(e.toUpperCase()){case"QUERY":return 0;case"IQUERY":return 1;case"STATUS":return 2;case"OPCODE_3":return 3;case"NOTIFY":return 4;case"UPDATE":return 5;case"OPCODE_6":return 6;case"OPCODE_7":return 7;case"OPCODE_8":return 8;case"OPCODE_9":return 9;case"OPCODE_10":return 10;case"OPCODE_11":return 11;case"OPCODE_12":return 12;case"OPCODE_13":return 13;case"OPCODE_14":return 14;case"OPCODE_15":return 15}return 0}},,,,,,function(e,t,n){(function(){var t,r,o,i,a,s,c;c=n(582),a=c.assign,s=c.isFunction;t=n(559);r=n(768);i=n(750);o=n(458);e.exports.create=function(e,n,r,o){var i,s;if(e==null){throw new Error("Root element needs a name")}o=a({},n,r,o);i=new t(o);s=i.element(e);if(!o.headless){i.declaration(o);if(o.pubID!=null||o.sysID!=null){i.doctype(o)}}return s};e.exports.begin=function(e,n,o){var i;if(s(e)){i=[e,n],n=i[0],o=i[1];e={}}if(n){return new r(e,n,o)}else{return new t(e)}};e.exports.stringWriter=function(e){return new i(e)};e.exports.streamWriter=function(e,t){return new o(e,t)}}).call(this)},,,function(e,t,n){var r=n(153);var o=n(618);var i=n(912);var a=n(337);var s=n(806);function populateBody(e){var t=new a;var n=e.service.api.operations[e.operation].input;if(n.payload){var r={};var o=n.members[n.payload];r=e.params[n.payload];if(r===undefined)return;if(o.type==="structure"){e.httpRequest.body=t.build(r,o);applyContentTypeHeader(e)}else{e.httpRequest.body=r;if(o.type==="binary"||o.isStreaming){applyContentTypeHeader(e,true)}}}else{var i=t.build(e.params,n);if(i!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=i}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var n=e.service.api.operations[e.operation];var r=n.input;if(!e.httpRequest.headers["Content-Type"]){var o=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=o}}function buildRequest(e){o.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){i.extractError(e)}function extractData(e){o.extractData(e);var t=e.request;var n=t.service.api.operations[t.operation];var a=t.service.api.operations[t.operation].output||{};var c;var u=n.hasEventOutput;if(a.payload){var l=a.members[a.payload];var p=e.httpResponse.body;if(l.isEventStream){c=new s;e.data[payload]=r.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:p,c,l)}else if(l.type==="structure"||l.type==="list"){var c=new s;e.data[a.payload]=c.parse(p,l)}else if(l.type==="binary"||l.isStreaming){e.data[a.payload]=p}else{e.data[a.payload]=l.toType(p)}}else{var m=e.data;i.extractData(e);e.data=r.merge(m,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},function(e,t,n){var r=n(395);r.ECSCredentials=r.RemoteCredentials},,,,,,,,,function(e,t,n){"use strict";const r=n(413).PassThrough;const o=n(89);const i=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new r;o(e,t);return e.pipe(t)};e.exports=i},,,,,,,,function(e,t,n){(function(){var t,r,o,i=function(e,t){for(var n in t){if(a.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;o=n(582).isObject;r=n(855);e.exports=t=function(e){i(XMLDTDEntity,e);function XMLDTDEntity(e,t,n,r){XMLDTDEntity.__super__.constructor.call(this,e);if(n==null){throw new Error("Missing entity name")}if(r==null){throw new Error("Missing entity value")}this.pe=!!t;this.name=this.stringify.eleName(n);if(!o(r)){this.value=this.stringify.dtdEntityValue(r)}else{if(!r.pubID&&!r.sysID){throw new Error("Public and/or system identifiers are required for an external entity")}if(r.pubID&&!r.sysID){throw new Error("System identifier is required for a public external entity")}if(r.pubID!=null){this.pubID=this.stringify.dtdPubID(r.pubID)}if(r.sysID!=null){this.sysID=this.stringify.dtdSysID(r.sysID)}if(r.nData!=null){this.nData=this.stringify.dtdNData(r.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity")}}}XMLDTDEntity.prototype.toString=function(e){return this.options.writer.set(e).dtdEntity(this)};return XMLDTDEntity}(r)}).call(this)},,,,function(e,t,n){var r=n(153);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var n={};r.each(e,function(e,r){var o=t.members[e];if(o){if(o.location!=="body")return;var i=o.isLocationName?o.name:e;var a=translate(r,o);if(a!==undefined)n[i]=a}});return n}function translateList(e,t){var n=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r!==undefined)n.push(r)});return n}function translateMap(e,t){var n={};r.each(e,function(e,r){var o=translate(r,t.value);if(o!==undefined)n[e]=o});return n}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},function(e,t,n){"use strict";const r=n(774);const o=n(794);const i=n(916);const a=n(86);const s=n(821);const c=n(262);const u=e=>e.stream?o(e):i(e);const l=["get","post","put","patch","head","delete"];const p=e=>{e=s({},e);a.preNormalize(e.options);if(!e.handler){e.handler=((e,t)=>t(e))}function got(t,n){try{return e.handler(a(t,n,e),u)}catch(e){if(n&&n.stream){throw e}else{return Promise.reject(e)}}}got.create=p;got.extend=(t=>{let n;if(t&&Reflect.has(t,"mutableDefaults")){n=t.mutableDefaults;delete t.mutableDefaults}else{n=e.mutableDefaults}return p({options:s.options(e.options,t),handler:e.handler,mutableDefaults:n})});got.mergeInstances=((...e)=>p(s.instances(e)));got.stream=((e,t)=>got(e,{...t,stream:true}));for(const e of l){got[e]=((t,n)=>got(t,{...n,method:e}));got.stream[e]=((t,n)=>got.stream(t,{...n,method:e}))}Object.assign(got,{...r,mergeOptions:s.options});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:c(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};e.exports=p},,,,,,,,,,,,function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},,,,,,,,,,,function(e,t,n){n(234);e.exports=n(395)},,,,function(e,t,n){"use strict";const{Transform:r}=n(413);e.exports={download(e,t,n){let o=0;return new r({transform(e,r,i){o+=e.length;const a=n?o/n:0;if(a<1){t.emit("downloadProgress",{percent:a,transferred:o,total:n})}i(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:o,total:n});e()}})},upload(e,t,n){const r=150;let o=0;let i;t.emit("uploadProgress",{percent:0,transferred:0,total:n});e.once("error",()=>{clearInterval(i)});e.once("response",()=>{clearInterval(i);t.emit("uploadProgress",{percent:1,transferred:o,total:n})});e.once("socket",a=>{const s=()=>{i=setInterval(()=>{const r=o;const i=e._header?Buffer.byteLength(e._header):0;o=a.bytesWritten-i;if(o===r||o===n){return}t.emit("uploadProgress",{percent:n?o/n:0,transferred:o,total:n})},r)};if(a.connecting){a.once("connect",s)}else if(a.writable){s()}})}}},,,,,,,,,,function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const o=n==="buffer";let i=false;if(t){i=!(n||o)}else{n=n||"utf8"}if(o){n=null}const a=new r({objectMode:i});if(n){a.setEncoding(n)}let s=0;const c=[];a.on("data",e=>{c.push(e);if(i){s=c.length}else{s+=e.length}});a.getBufferedValue=(()=>{if(t){return c}return o?Buffer.concat(c,s):c.join("")});a.getBufferedLength=(()=>s);return a})},,,,,,,function(e,t,n){var r=n(395);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},,,,,,,,,,,,,function(e,t,n){var r={util:n(153)};var o={};o.toString();e.exports=r;r.util.update(r,{VERSION:"2.680.0",Signers:{},Protocol:{Json:n(912),Query:n(576),Rest:n(618),RestJson:n(315),RestXml:n(2)},XML:{Builder:n(492),Parser:null},JSON:{Builder:n(337),Parser:n(806)},Model:{Api:n(788),Operation:n(964),Shape:n(682),Paginator:n(265),ResourceWaiter:n(624)},apiLoader:n(165),EndpointCache:n(120).EndpointCache});n(610);n(503);n(755);n(711);n(606);n(597);n(828);n(930);n(66);n(977);r.events=new r.SequentialExecutor;r.util.memoizedProperty(r,"endpointCache",function(){return new r.EndpointCache(r.config.endpointCacheSize)},true)},,,function(e,t){"use strict";t.toString=function(e){switch(e){case 0:return"NOERROR";case 1:return"FORMERR";case 2:return"SERVFAIL";case 3:return"NXDOMAIN";case 4:return"NOTIMP";case 5:return"REFUSED";case 6:return"YXDOMAIN";case 7:return"YXRRSET";case 8:return"NXRRSET";case 9:return"NOTAUTH";case 10:return"NOTZONE";case 11:return"RCODE_11";case 12:return"RCODE_12";case 13:return"RCODE_13";case 14:return"RCODE_14";case 15:return"RCODE_15"}return"RCODE_"+e};t.toRcode=function(e){switch(e.toUpperCase()){case"NOERROR":return 0;case"FORMERR":return 1;case"SERVFAIL":return 2;case"NXDOMAIN":return 3;case"NOTIMP":return 4;case"REFUSED":return 5;case"YXDOMAIN":return 6;case"YXRRSET":return 7;case"NXRRSET":return 8;case"NOTAUTH":return 9;case"NOTZONE":return 10;case"RCODE_11":return 11;case"RCODE_12":return 12;case"RCODE_13":return 13;case"RCODE_14":return 14;case"RCODE_15":return 15}return 0}},,,,,,function(e,t,n){var r=n(918).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var n=this.attributes;for(var o=0,i=Object.keys(n);o":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},,,,,,,,,function(e){e.exports=require("stream")},,,,function(e){e.exports=require("crypto")},,,,,,function(e){(function(){var t,n={}.hasOwnProperty;e.exports=t=function(){function XMLWriterBase(e){var t,r,o,i,a,s,c,u,l;e||(e={});this.pretty=e.pretty||false;this.allowEmpty=(r=e.allowEmpty)!=null?r:false;if(this.pretty){this.indent=(o=e.indent)!=null?o:" ";this.newline=(i=e.newline)!=null?i:"\n";this.offset=(a=e.offset)!=null?a:0;this.dontprettytextnodes=(s=e.dontprettytextnodes)!=null?s:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash=(c=e.spacebeforeslash)!=null?c:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;u=e.writer||{};for(t in u){if(!n.call(u,t))continue;l=u[t];this[t]=l}}XMLWriterBase.prototype.set=function(e){var t,r,o;e||(e={});if("pretty"in e){this.pretty=e.pretty}if("allowEmpty"in e){this.allowEmpty=e.allowEmpty}if(this.pretty){this.indent="indent"in e?e.indent:" ";this.newline="newline"in e?e.newline:"\n";this.offset="offset"in e?e.offset:0;this.dontprettytextnodes="dontprettytextnodes"in e?e.dontprettytextnodes:0}else{this.indent="";this.newline="";this.offset=0;this.dontprettytextnodes=0}this.spacebeforeslash="spacebeforeslash"in e?e.spacebeforeslash:"";if(this.spacebeforeslash===true){this.spacebeforeslash=" "}this.newlinedefault=this.newline;this.prettydefault=this.pretty;r=e.writer||{};for(t in r){if(!n.call(r,t))continue;o=r[t];this[t]=o}return this};XMLWriterBase.prototype.space=function(e){var t;if(this.pretty){t=(e||0)+this.offset+1;if(t>0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},,,function(e,t,n){var r=n(395),o="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",i="AWS_CONTAINER_CREDENTIALS_FULL_URI",a="AWS_CONTAINER_AUTHORIZATION_TOKEN",s=["https:"],c=["http:","https:"],u=["localhost","127.0.0.1"],l="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[o]||process.env[i]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[o],t=process.env[i];if(e){return"http://"+l+e}else if(t){var n=r.util.urlParse(t);if(c.indexOf(n.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+c.join(",")+" only; "+n.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(s.indexOf(n.protocol)<0&&u.indexOf(n.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+u.join(",")+" for "+n.protocol+"; "+n.protocol+"//"+n.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+o+" or "+i+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[i]){return process.env[a]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var n=new r.HttpRequest(e);n.method="GET";n.headers.Accept="application/json";var o=this.getECSAuthToken();if(o){n.headers.Authorization=o}r.util.handleRequestWithRetries(n,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var n;try{n=this.getECSFullUri()}catch(t){e(t);return}this.request(n,function(n,o){if(!n){try{o=JSON.parse(o);var i=t.formatCreds(o);if(!t.credsFormatIsValid(i)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,i)}catch(e){n=e}}e(n,i)})}})},,,,,function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(n(87));function issueCommand(e,t,n){const r=new Command(e,t,n);process.stdout.write(r.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const i="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=i+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const r=this.properties[n];if(r){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(r)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,function(e){"use strict";e.exports=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"]},,,,,,function(e,t,n){var r=n(153);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,n){serializeStructure("",e,t,n)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,n,o){r.each(n.members,function(n,r){var i=t[n];if(i===null||i===undefined)return;var a=ucfirst(r);a=e?e+"."+a:a;serializeMember(a,i,r,o)})}function serializeMap(e,t,n,o){var i=1;r.each(t,function(t,r){var a=n.flattened?".":".entry.";var s=a+i+++".";var c=s+(n.key.name||"key");var u=s+(n.value.name||"value");serializeMember(e+c,t,n.key,o);serializeMember(e+u,r,n.value,o)})}function serializeList(e,t,n,o){var i=n.member||{};if(t.length===0){o.call(this,e,null);return}r.arrayEach(t,function(t,r){var a="."+(r+1);if(n.api.protocol==="ec2"){a=a+""}else if(n.flattened){if(i.name){var s=e.split(".");s.pop();s.push(ucfirst(i));e=s.join(".")}}else{a="."+(i.name?i.name:"member")+a}serializeMember(e+a,t,i,o)})}function serializeMember(e,t,n,r){if(t===null||t===undefined)return;if(n.type==="structure"){serializeStructure(e,t,n,r)}else if(n.type==="list"){serializeList(e,t,n,r)}else if(n.type==="map"){serializeMap(e,t,n,r)}else{r(e,n.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},,,,,,function(e,t,n){var r=n(862).EventMessageChunkerStream;var o=n(804).EventUnmarshallerStream;function createEventStream(e,t,n){var i=new o({parser:t,eventStreamModel:n});var a=new r;e.pipe(a).pipe(i);e.on("error",function(e){a.emit("error",e)});a.on("error",function(e){i.emit("error",e)});return i}e.exports={createEventStream:createEventStream}},,,,,,,,function(e,t,n){var r=n(49);var o=n(9);var i=n(747);var a=function(){};var s=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!s)return false;if(!i)return false;return(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&c(e.close)};var l=function(e){return e.setHeader&&c(e.abort)};var p=function(e,t,n,i){i=r(i);var s=false;e.on("close",function(){s=true});o(e,{readable:t,writable:n},function(e){if(e)return i(e);s=true;i()});var p=false;return function(t){if(s)return;if(p)return;p=true;if(u(e))return e.close(a);if(l(e))return e.abort();if(c(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var m=function(e){e()};var d=function(e,t){return e.pipe(t)};var y=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var n;var r=e.map(function(o,i){var a=i0;return p(o,a,s,function(e){if(!n)n=e;if(e)r.forEach(m);if(a)return;r.forEach(m);t(n)})});return e.reduce(d)};e.exports=y},,,function(e,t,n){"use strict";const r=n(958);e.exports=(e=>{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}};const n=e=>{const n=e.emit.bind(e);e.emit=((r,...o)=>{if(r==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=n}return n(r,...o)})};let o=false;const i=()=>{t.upload=Date.now();t.phases.request=t.upload-t.connect};n(e);e.once("socket",e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const n=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.once("lookup",n);r(e,()=>{t.connect=Date.now();if(t.lookup===null){e.removeListener("lookup",n);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup;if(o&&!t.upload){i()}})});e.once("finish",()=>{o=true;if(t.connect){i()}});e.once("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;n(e);e.once("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t})},,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h=function(e,t){for(var n in t){if(N.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},N={}.hasOwnProperty;c=n(738);u=n(735);t=n(35);r=n(919);l=n(796);m=n(660);y=n(708);p=n(491);o=n(801);i=n(463);a=n(333);s=n(19);f=n(423);e.exports=d=function(e){h(XMLStreamWriter,e);function XMLStreamWriter(e,t){XMLStreamWriter.__super__.constructor.call(this,t);this.stream=e}XMLStreamWriter.prototype.document=function(e){var t,n,o,i,a,s,l,m;s=e.children;for(n=0,i=s.length;n"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,n){var c,u,l,m;n||(n=0);this.stream.write(this.space(n));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));m=e.children;for(u=0,l=m.length;u");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,n){var o,i,a,s,c,u,d,f;n||(n=0);f=this.space(n);this.stream.write(f+"<"+e.name);u=e.attributes;for(c in u){if(!N.call(u,c))continue;o=u[c];this.attribute(o)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);d=e.children;for(a=0,s=d.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(f)}).call(this)},,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLDTDElement,e);function XMLDTDElement(e,t,n){XMLDTDElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing DTD element name")}if(!n){n="(#PCDATA)"}if(Array.isArray(n)){n="("+n.join(",")+")"}this.name=this.stringify.eleName(t);this.value=this.stringify.dtdElementValue(n)}XMLDTDElement.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)};return XMLDTDElement}(r)}).call(this)},,,,,,,function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))t[n]=e[n];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(431);const a=o(n(87));const s=o(n(622));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const n=i.toCommandValue(t);process.env[e]=n;i.issueCommand("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){i.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${s.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}t.getInput=getInput;function setOutput(e,t){i.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}t.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+a.EOL)}t.info=info;function startGroup(e){i.issue("group",e)}t.startGroup=startGroup;function endGroup(){i.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n})}t.group=group;function saveState(e,t){i.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,,,function(e){"use strict";e.exports=function(e){var t={};var n=Object.keys(Object(e));for(var r=0;r=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};o=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,n,o;this.options={};n=r["0.2"];for(t in n){if(!s.call(n,t))continue;o=n[t];this.options[t]=o}for(t in e){if(!s.call(e,t))continue;o=e[t];this.options[t]=o}}Builder.prototype.buildObject=function(t){var n,o,c,u,l;n=this.options.attrkey;o=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}c=function(e){return function(t,r){var u,l,p,m,d,y;if(typeof r!=="object"){if(e.options.cdata&&i(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(m in r){if(!s.call(r,m))continue;l=r[m];for(d in l){p=l[d];t=c(t.ele(d),p).up()}}}else{for(d in r){if(!s.call(r,d))continue;l=r[d];if(d===n){if(typeof l==="object"){for(u in l){y=l[u];t=t.att(u,y)}}}else if(d===o){if(e.options.cdata&&i(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(m in l){if(!s.call(l,m))continue;p=l[m];if(typeof p==="string"){if(e.options.cdata&&i(p)){t=t.ele(d).raw(a(p)).up()}else{t=t.ele(d,p).up()}}else{t=c(t.ele(d),p).up()}}}else if(typeof l==="object"){t=c(t.ele(d),l).up()}else{if(typeof l==="string"&&e.options.cdata&&i(l)){t=t.ele(d).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(d,l.toString()).up()}}}}return t}}(this);u=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return c(u,t).end(this.options.renderOpts)};return Builder}()}).call(this)},,,,,,function(e){e.exports={_from:"got@^9.6.0",_id:"got@9.6.0",_inBundle:false,_integrity:"sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==",_location:"/got",_phantomChildren:{},_requested:{type:"range",registry:true,raw:"got@^9.6.0",name:"got",escapedName:"got",rawSpec:"^9.6.0",saveSpec:null,fetchSpec:"^9.6.0"},_requiredBy:["/public-ip"],_resolved:"https://registry.npmjs.org/got/-/got-9.6.0.tgz",_shasum:"edf45e7d67f99545705de1f7bbeeeb121765ed85",_spec:"got@^9.6.0",_where:"/Users/sohelamin/Desktop/github/aws-security-group-add-ip/node_modules/public-ip",ava:{concurrency:4},browser:{"decompress-response":false,electron:false},bugs:{url:"https://github.com/sindresorhus/got/issues"},bundleDependencies:false,dependencies:{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},deprecated:false,description:"Simplified HTTP requests",devDependencies:{ava:"^1.1.0",coveralls:"^3.0.0",delay:"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0",np:"^3.1.0",nyc:"^13.1.0","p-event":"^2.1.0",pem:"^1.13.2",proxyquire:"^2.0.1",sinon:"^7.2.2","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","tough-cookie":"^3.0.0",xo:"^0.24.0"},engines:{node:">=8.6"},files:["source"],homepage:"https://github.com/sindresorhus/got#readme",keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],license:"MIT",main:"source",name:"got",repository:{type:"git",url:"git+https://github.com/sindresorhus/got.git"},scripts:{release:"np",test:"xo && nyc ava"},version:"9.6.0"}},,,,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(855);e.exports=r=function(e){o(XMLProcessingInstruction,e);function XMLProcessingInstruction(e,t,n){XMLProcessingInstruction.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing instruction target")}this.target=this.stringify.insTarget(t);if(n){this.value=this.stringify.insValue(n)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(e){return this.options.writer.set(e).processingInstruction(this)};return XMLProcessingInstruction}(t)}).call(this)},function(e,t,n){var r=n(153);var o=n(404).XmlNode;var i=n(948).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,n,r){var i=new o(n);applyNamespaces(i,t,true);serialize(i,e,t);return i.children.length>0||r?i.toString():""};function serialize(e,t,n){switch(n.type){case"structure":return serializeStructure(e,t,n);case"map":return serializeMap(e,t,n);case"list":return serializeList(e,t,n);default:return serializeScalar(e,t,n)}}function serializeStructure(e,t,n){r.arrayEach(n.memberNames,function(r){var i=n.members[r];if(i.location!=="body")return;var a=t[r];var s=i.name;if(a!==undefined&&a!==null){if(i.isXmlAttribute){e.addAttribute(s,a)}else if(i.flattened){serialize(e,a,i)}else{var c=new o(s);e.addChildNode(c);applyNamespaces(c,i);serialize(c,a,i)}}})}function serializeMap(e,t,n){var i=n.key.name||"key";var a=n.value.name||"value";r.each(t,function(t,r){var s=new o(n.flattened?n.name:"entry");e.addChildNode(s);var c=new o(i);var u=new o(a);s.addChildNode(c);s.addChildNode(u);serialize(c,t,n.key);serialize(u,r,n.value)})}function serializeList(e,t,n){if(n.flattened){r.arrayEach(t,function(t){var r=n.member.name||n.name;var i=new o(r);e.addChildNode(i);serialize(i,t,n.member)})}else{r.arrayEach(t,function(t){var r=n.member.name||"member";var i=new o(r);e.addChildNode(i);serialize(i,t,n.member)})}}function serializeScalar(e,t,n){e.addChildNode(new i(n.toWireFormat(t)))}function applyNamespaces(e,t,n){var r,o="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)o+=":"+t.xmlNamespacePrefix}else if(n&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(o,r)}e.exports=XmlBuilder},,,,,,,,,,,function(e,t,n){var r=n(395);var o=n(788);var i=n(546);var a=r.util.inherit;var s=0;r.Service=a({constructor:function Service(e){if(!this.loadServiceClass){throw r.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var n=r.util.copy(e);var o=new t(e);Object.defineProperty(o,"_originalConfig",{get:function(){return n},enumerable:false,configurable:true});o._clientId=++s;return o}this.initialize(e)},initialize:function initialize(e){var t=r.config[this.serviceIdentifier];this.config=new r.Config(r.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)i.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);r.SequentialExecutor.call(this);r.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||r.Service._clientSideMonitoring)&&this.publisher){var n=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){n.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){n.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!r.util.isEmpty(this.api)){return null}else if(t.apiConfig){return r.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new r.Config(r.config);t.update(e,true);var n=t.apiVersions[this.constructor.serviceIdentifier];n=n||t.apiVersion;return this.getLatestServiceClass(n)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){r.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(r.util.isType(e,Date)){e=r.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var n=null;for(var o=t.length-1;o>=0;o--){if(t[o][t[o].length-1]!=="*"){n=t[o]}if(t[o].substr(0,10)<=e){return n}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,n){if(typeof t==="function"){n=t;t=null}t=t||{};if(this.config.params){var o=this.api.operations[e];if(o){t=r.util.copy(t);r.util.each(this.config.params,function(e,n){if(o.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=n}}})}}var i=new r.Request(this,e,t);this.addAllRequestListeners(i);this.attachMonitoringEmitter(i);if(n)i.send(n);return i},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,n){if(typeof t==="function"){n=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return n?r.send(n):r},waitFor:function waitFor(e,t,n){var o=new r.ResourceWaiter(this,e);return o.wait(t,n)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var n=0;n299){if(o.code)n.FinalAwsException=o.code;if(o.message)n.FinalAwsExceptionMessage=o.message}else{if(o.code||o.name)n.FinalSdkException=o.code||o.name;if(o.message)n.FinalSdkExceptionMessage=o.message}}return n},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var n={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){n.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){n.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return n;if(e.httpRequest.headers["x-amz-security-token"]){n.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){n.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){n.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){n.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return n},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var n=e.response;var r=n.error;if(n.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var n;var o;var i;var a=0;var s;var c;var u=this;var l=true;e.on("validate",function(){i=r.util.realClock.now();c=Date.now()},l);e.on("sign",function(){n=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){o=Math.round(r.util.realClock.now()-n)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var n=u.apiAttemptEvent(e);n.Timestamp=t;n.AttemptLatency=o>=0?o:0;n.Region=s;u.emit("apiCallAttempt",[n])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var i=u.attemptFailEvent(e);i.Timestamp=t;o=o||Math.round(r.util.realClock.now()-n);i.AttemptLatency=o>=0?o:0;i.Region=s;u.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=u.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=c;var n=Math.round(r.util.realClock.now()-i);t.Latency=n>=0?n:0;var o=e.response;if(o.error&&o.error.retryable&&typeof o.retryCount==="number"&&typeof o.maxRetries==="number"&&o.retryCount>=o.maxRetries){t.MaxRetriesExceeded=1}u.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var n=null;var o="";if(e){var i=e.service.api.operations||{};n=i[e.operation]||null;o=n?n.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(o==="v4"||o==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var n=this.api.operations[e].paginator;if(!n){if(t){var o=new Error;throw r.util.error(o,"No pagination configuration for "+e)}return null}return n}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var n=e.prototype.api.operations[t];if(n.authtype==="none"){e.prototype[t]=function(e,n){return this.makeUnauthenticatedRequest(t,e,n)}}else{e.prototype[t]=function(e,n){return this.makeRequest(t,e,n)}}})},defineService:function defineService(e,t,n){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){n=t;t=[]}var o=a(r.Service,n||{});if(typeof e==="string"){r.Service.addVersions(o,t);var i=o.serviceIdentifier||e;o.serviceIdentifier=i}else{o.prototype.api=e;r.Service.defineMethods(o)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var c=r.util.clientSideMonitoring.configProvider;var u=c();this.prototype.publisher=new s(u);if(u.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(o.prototype);r.Service.addDefaultMonitoringListeners(o.prototype);return o},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var n=0;nr.nodeStream(e)&&r.function(e.getBoundary))},,,function(e,t){"use strict";t.toString=function(e){switch(e){case 1:return"LLQ";case 2:return"UL";case 3:return"NSID";case 5:return"DAU";case 6:return"DHU";case 7:return"N3U";case 8:return"CLIENT_SUBNET";case 9:return"EXPIRE";case 10:return"COOKIE";case 11:return"TCP_KEEPALIVE";case 12:return"PADDING";case 13:return"CHAIN";case 14:return"KEY_TAG";case 26946:return"DEVICEID"}if(e<0){return null}return`OPTION_${e}`};t.toCode=function(e){if(typeof e==="number"){return e}if(!e){return-1}switch(e.toUpperCase()){case"OPTION_0":return 0;case"LLQ":return 1;case"UL":return 2;case"NSID":return 3;case"OPTION_4":return 4;case"DAU":return 5;case"DHU":return 6;case"N3U":return 7;case"CLIENT_SUBNET":return 8;case"EXPIRE":return 9;case"COOKIE":return 10;case"TCP_KEEPALIVE":return 11;case"PADDING":return 12;case"CHAIN":return 13;case"KEY_TAG":return 14;case"DEVICEID":return 26946;case"OPTION_65535":return 65535}const t=e.match(/_(\d+)$/);if(t){return parseInt(t[1],10)}return-1}},,,,function(e){e.exports={version:2,waiters:{InstanceExists:{delay:5,maxAttempts:40,operation:"DescribeInstances",acceptors:[{matcher:"path",expected:true,argument:"length(Reservations[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},BundleTaskComplete:{delay:15,operation:"DescribeBundleTasks",maxAttempts:40,acceptors:[{expected:"complete",matcher:"pathAll",state:"success",argument:"BundleTasks[].State"},{expected:"failed",matcher:"pathAny",state:"failure",argument:"BundleTasks[].State"}]},ConversionTaskCancelled:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},ConversionTaskCompleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"},{expected:"cancelled",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"},{expected:"cancelling",matcher:"pathAny",state:"failure",argument:"ConversionTasks[].State"}]},ConversionTaskDeleted:{delay:15,operation:"DescribeConversionTasks",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"ConversionTasks[].State"}]},CustomerGatewayAvailable:{delay:15,operation:"DescribeCustomerGateways",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"CustomerGateways[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"CustomerGateways[].State"}]},ExportTaskCancelled:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"cancelled",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ExportTaskCompleted:{delay:15,operation:"DescribeExportTasks",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"ExportTasks[].State"}]},ImageExists:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{matcher:"path",expected:true,argument:"length(Images[]) > `0`",state:"success"},{matcher:"error",expected:"InvalidAMIID.NotFound",state:"retry"}]},ImageAvailable:{operation:"DescribeImages",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"Images[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"Images[].State",expected:"failed"}]},InstanceRunning:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"running",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"shutting-down",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].InstanceStatus.Status",expected:"ok"},{matcher:"error",expected:"InvalidInstanceID.NotFound",state:"retry"}]},InstanceStopped:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"stopped",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"terminated",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},InstanceTerminated:{delay:15,operation:"DescribeInstances",maxAttempts:40,acceptors:[{expected:"terminated",matcher:"pathAll",state:"success",argument:"Reservations[].Instances[].State.Name"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"},{expected:"stopping",matcher:"pathAny",state:"failure",argument:"Reservations[].Instances[].State.Name"}]},KeyPairExists:{operation:"DescribeKeyPairs",delay:5,maxAttempts:6,acceptors:[{expected:true,matcher:"path",state:"success",argument:"length(KeyPairs[].KeyName) > `0`"},{expected:"InvalidKeyPair.NotFound",matcher:"error",state:"retry"}]},NatGatewayAvailable:{operation:"DescribeNatGateways",delay:15,maxAttempts:40,acceptors:[{state:"success",matcher:"pathAll",argument:"NatGateways[].State",expected:"available"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"failed"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleting"},{state:"failure",matcher:"pathAny",argument:"NatGateways[].State",expected:"deleted"},{state:"retry",matcher:"error",expected:"NatGatewayNotFound"}]},NetworkInterfaceAvailable:{operation:"DescribeNetworkInterfaces",delay:20,maxAttempts:10,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"NetworkInterfaces[].Status"},{expected:"InvalidNetworkInterfaceID.NotFound",matcher:"error",state:"failure"}]},PasswordDataAvailable:{operation:"GetPasswordData",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"path",argument:"length(PasswordData) > `0`",expected:true}]},SnapshotCompleted:{delay:15,operation:"DescribeSnapshots",maxAttempts:40,acceptors:[{expected:"completed",matcher:"pathAll",state:"success",argument:"Snapshots[].State"}]},SecurityGroupExists:{operation:"DescribeSecurityGroups",delay:5,maxAttempts:6,acceptors:[{expected:true,matcher:"path",state:"success",argument:"length(SecurityGroups[].GroupId) > `0`"},{expected:"InvalidGroupNotFound",matcher:"error",state:"retry"}]},SpotInstanceRequestFulfilled:{operation:"DescribeSpotInstanceRequests",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"fulfilled"},{state:"success",matcher:"pathAll",argument:"SpotInstanceRequests[].Status.Code",expected:"request-canceled-and-instance-running"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"schedule-expired"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"canceled-before-fulfillment"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"bad-parameters"},{state:"failure",matcher:"pathAny",argument:"SpotInstanceRequests[].Status.Code",expected:"system-error"},{state:"retry",matcher:"error",expected:"InvalidSpotInstanceRequestID.NotFound"}]},SubnetAvailable:{delay:15,operation:"DescribeSubnets",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Subnets[].State"}]},SystemStatusOk:{operation:"DescribeInstanceStatus",maxAttempts:40,delay:15,acceptors:[{state:"success",matcher:"pathAll",argument:"InstanceStatuses[].SystemStatus.Status",expected:"ok"}]},VolumeAvailable:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VolumeDeleted:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{matcher:"error",expected:"InvalidVolume.NotFound",state:"success"}]},VolumeInUse:{delay:15,operation:"DescribeVolumes",maxAttempts:40,acceptors:[{expected:"in-use",matcher:"pathAll",state:"success",argument:"Volumes[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"Volumes[].State"}]},VpcAvailable:{delay:15,operation:"DescribeVpcs",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"Vpcs[].State"}]},VpcExists:{operation:"DescribeVpcs",delay:1,maxAttempts:5,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcID.NotFound",state:"retry"}]},VpnConnectionAvailable:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"available",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"deleting",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"},{expected:"deleted",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpnConnectionDeleted:{delay:15,operation:"DescribeVpnConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpnConnections[].State"},{expected:"pending",matcher:"pathAny",state:"failure",argument:"VpnConnections[].State"}]},VpcPeeringConnectionExists:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{matcher:"status",expected:200,state:"success"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"retry"}]},VpcPeeringConnectionDeleted:{delay:15,operation:"DescribeVpcPeeringConnections",maxAttempts:40,acceptors:[{expected:"deleted",matcher:"pathAll",state:"success",argument:"VpcPeeringConnections[].Status.Code"},{matcher:"error",expected:"InvalidVpcPeeringConnectionID.NotFound",state:"success"}]}}}},,,function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=typeof URL==="undefined"?n(835).URL:URL;const o=Object.prototype.toString;const i=e=>t=>typeof t===e;const a=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);const s=e=>{const t=o.call(e).slice(8,-1);if(t){return t}return null};const c=e=>t=>s(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(Array.isArray(e)){return"Array"}if(a(e)){return"Buffer"}const t=s(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const t=e=>typeof e==="object";e.undefined=i("undefined");e.string=i("string");e.number=i("number");e.function_=i("function");e.null_=(e=>e===null);e.class_=(t=>e.function_(t)&&t.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=i("symbol");e.numericString=(t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)));e.array=Array.isArray;e.buffer=a;e.nullOrUndefined=(t=>e.null_(t)||e.undefined(t));e.object=(n=>!e.nullOrUndefined(n)&&(e.function_(n)||t(n)));e.iterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]));e.asyncIterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]));e.generator=(t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw));e.nativePromise=(e=>c("Promise")(e));const n=n=>!e.null_(n)&&t(n)&&e.function_(n.then)&&e.function_(n.catch);e.promise=(t=>e.nativePromise(t)||n(t));e.generatorFunction=c("GeneratorFunction");e.asyncFunction=c("AsyncFunction");e.boundFunction=(t=>e.function_(t)&&!t.hasOwnProperty("prototype"));e.regExp=c("RegExp");e.date=c("Date");e.error=c("Error");e.map=(e=>c("Map")(e));e.set=(e=>c("Set")(e));e.weakMap=(e=>c("WeakMap")(e));e.weakSet=(e=>c("WeakSet")(e));e.int8Array=c("Int8Array");e.uint8Array=c("Uint8Array");e.uint8ClampedArray=c("Uint8ClampedArray");e.int16Array=c("Int16Array");e.uint16Array=c("Uint16Array");e.int32Array=c("Int32Array");e.uint32Array=c("Uint32Array");e.float32Array=c("Float32Array");e.float64Array=c("Float64Array");e.arrayBuffer=c("ArrayBuffer");e.sharedArrayBuffer=c("SharedArrayBuffer");e.dataView=c("DataView");e.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);e.urlInstance=(e=>c("URL")(e));e.urlString=(t=>{if(!e.string(t)){return false}try{new r(t);return true}catch(e){return false}});e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const o=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(t=>e.null_(t)||o.has(typeof t));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let t;return s(e)==="Object"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))});const u=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const t=s(e);if(t===null){return false}return u.has(t)});const l=t=>e.safeInteger(t)&&t>-1;e.arrayLike=(t=>!e.nullOrUndefined(t)&&!e.function_(t)&&l(t.length));e.inRange=((t,n)=>{if(e.number(n)){return t>=Math.min(0,n)&&t<=Math.max(n,0)}if(e.array(n)&&n.length===2){return t>=Math.min(...n)&&t<=Math.max(...n)}throw new TypeError(`Invalid range: ${JSON.stringify(n)}`)});const p=1;const m=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(t=>e.object(t)&&t.nodeType===p&&e.string(t.nodeName)&&!e.plainObject(t)&&m.every(e=>e in t));e.observable=(e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false});e.nodeStream=(n=>!e.nullOrUndefined(n)&&t(n)&&e.function_(n.pipe)&&!e.observable(n));e.infinite=(e=>e===Infinity||e===-Infinity);const d=t=>n=>e.integer(n)&&Math.abs(n%2)===t;e.even=d(0);e.odd=d(1);const y=t=>e.string(t)&&/\S/.test(t)===false;e.emptyArray=(t=>e.array(t)&&t.length===0);e.nonEmptyArray=(t=>e.array(t)&&t.length>0);e.emptyString=(t=>e.string(t)&&t.length===0);e.nonEmptyString=(t=>e.string(t)&&t.length>0);e.emptyStringOrWhitespace=(t=>e.emptyString(t)||y(t));e.emptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length===0);e.nonEmptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0);e.emptySet=(t=>e.set(t)&&t.size===0);e.nonEmptySet=(t=>e.set(t)&&t.size>0);e.emptyMap=(t=>e.map(t)&&t.size===0);e.nonEmptyMap=(t=>e.map(t)&&t.size>0);const f=(t,n,r)=>{if(e.function_(n)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(n)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return t.call(r,n)};e.any=((e,...t)=>f(Array.prototype.some,e,t));e.all=((e,...t)=>f(Array.prototype.every,e,t))})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});t.default=is;e.exports=is;e.exports.default=is},,,,,,function(e,t,n){var r=n(395);var o=n(106);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})},createClients:function(){this.service=this.service||new o({params:this.params})}})},,,function(e,t,n){var r=n(395);var o=n(106);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var n=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new o(n)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var n=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,o){var i={};if(r){e(r);return}if(o){i.TokenCode=o}t.service[n](i,function(n,r){if(!n){t.service.credentialsFrom(r,t)}e(n)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(n,o){if(n){var i=n;if(n instanceof Error){i=n.message}e(r.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}));return}e(null,o)})}else{e(null)}}})},,,function(e,t,n){var r=n(153);var o=n(572);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var n=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[n,r],[t,"*"],[n,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,n){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=n}})}function configureEndpoint(e){var t=derivedKeys(e);for(var n=0;ne&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${t})|(?<=${t})(?=\\s|$))`:"";const r="(?: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}";const o="[a-fA-F\\d]{1,4}";const i=`\n(\n(?:${o}:){7}(?:${o}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${o}:){6}(?:${r}|:${o}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${o}:){5}(?::${r}|(:${o}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${o}:){4}(?:(:${o}){0,1}:${r}|(:${o}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${o}:){3}(?:(:${o}){0,2}:${r}|(:${o}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${o}:){2}(?:(:${o}){0,3}:${r}|(:${o}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${o}:){1}(?:(:${o}){0,4}:${r}|(:${o}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::((?::${o}){0,5}:${r}|(?::${o}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim();const a=e=>e&&e.exact?new RegExp(`(?:^${r}$)|(?:^${i}$)`):new RegExp(`(?:${n(e)}${r}${n(e)})|(?:${n(e)}${i}${n(e)})`,"g");a.v4=(e=>e&&e.exact?new RegExp(`^${r}$`):new RegExp(`${n(e)}${r}${n(e)}`,"g"));a.v6=(e=>e&&e.exact?new RegExp(`^${i}$`):new RegExp(`${n(e)}${i}${n(e)}`,"g"));e.exports=a},,,,function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((n,r,o)=>{t.push(o);e(...t).then(n,r)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,n)=>{this._reject=n;const r=e=>{this._isPending=false;t(e)};const o=e=>{this._isPending=false;n(e)};const i=e=>{this._cancelHandlers.push(e)};Object.defineProperties(i,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(r,o,i)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.default=PCancelable;e.exports.CancelError=CancelError},,function(e,t,n){(function(){var t,r,o,i,a,s=function(e,t){for(var n in t){if(c.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;a=n(582).isPlainObject;r=n(855);i=n(602);o=n(750);e.exports=t=function(e){s(XMLDocument,e);function XMLDocument(e){XMLDocument.__super__.constructor.call(this,null);e||(e={});if(!e.writer){e.writer=new o}this.options=e;this.stringify=new i(e);this.isDocument=true}XMLDocument.prototype.end=function(e){var t;if(!e){e=this.options.writer}else if(a(e)){t=e;e=this.options.writer.set(t)}return e.document(this)};XMLDocument.prototype.toString=function(e){return this.options.writer.set(e).document(this)};return XMLDocument}(r)}).call(this)},,,,,,,function(e,t,n){var r=n(395);var o=r.util.inherit;n(791);r.Signers.V3Https=o(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},,,,,,function(e){e.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{endpoint:"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{endpoint:"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:true},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:true},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:true},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3signature:{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"s3"}}}},,,,function(e,t,n){var r=n(395);var o=n(153);var i=n(439);var a=n(682);var s=n(904).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var n=e.httpRequest;n.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";n.params={Version:e.service.api.apiVersion,Action:t.name};var r=new i;r.serialize(e.params,t.input,function(e,t){n.params[e]=t});n.body=o.queryParamsToString(n.params);s(e)}function extractError(e){var t,n=e.httpResponse.body.toString();if(n.match("{const n=new i;const C=[];let R;let D;let E;let k;let x=0;let A=false;const P=e.cookieJar?o.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null;const _=e.cookieJar?o.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null;const M=p.object(e.agent)?e.agent:null;const L=async t=>{try{for(const n of e.hooks.beforeError){t=await n(t)}n.emit("error",t)}catch(e){n.emit("error",e)}};const O=async e=>{const o=E||D;if(e.protocol!=="http:"&&e.protocol!=="https:"){throw new g(e)}decodeURI(o);let i;if(p.function(e.request)){i={request:e.request}}else{i=e.protocol==="https:"?s:a}if(M){const t=e.protocol==="https:"?"https":"http";e.agent=M[t]||e.agent}if(e.useElectronNet&&process.versions.electron){const e={x:require}["yx".slice(1)];const t=e("electron");i=t.net||t.remote.net}if(e.cookieJar){const t=await _(o,{});if(p.nonEmptyString(t)){e.headers.cookie=t}}let c;const l=async t=>{try{if(e.useElectronNet){t=new Proxy(t,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const n=e[t];return p.function(n)?n.bind(e):n}})}const{statusCode:i}=t;t.url=o;t.requestUrl=D;t.retryCount=x;t.timings=c;t.redirectUrls=C;t.request={gotOptions:e};const a=t.headers["set-cookie"];if(e.cookieJar&&a){await Promise.all(a.map(e=>P(e,t.url)))}if(e.followRedirect&&"location"in t.headers){if(w.has(i)||T.has(i)&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(i===303){e.method="GET"}if(C.length>=10){throw new b(i,C,e)}const a=Buffer.from(t.headers.location,"binary").toString();const s=new r(a,o);E=s.toString();C.push(E);const c={...e,...S(s)};for(const t of e.hooks.beforeRedirect){await t(c)}n.emit("redirect",t,c);await O(c);return}}f(t,e,n)}catch(e){L(e)}};const y=r=>{if(A){r.once("error",()=>{});r.abort();return}R=r;r.once("error",t=>{if(r.aborted){return}if(t instanceof d.TimeoutError){t=new v(t,e)}else{t=new I(t,e)}if(n.retry(t)===false){L(t)}});c=m(r);h.upload(r,n,k);if(e.gotTimeout){d(r,e.gotTimeout,e)}n.emit("request",r);const o=()=>{r.emit("upload-complete")};try{if(p.nodeStream(e.body)){e.body.once("end",o);e.body.pipe(r);e.body=undefined}else if(e.body){r.end(e.body,o)}else if(t&&(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")){t.once("end",o);t.pipe(r)}else{r.end(o)}}catch(t){L(new I(t,e))}};if(e.cache){const t=new u(i.request,e.cache);const n=t(e,l);n.once("error",t=>{if(t instanceof u.RequestError){L(new I(t,e))}else{L(new N(t,e))}});n.once("request",y)}else{try{y(i.request(e,l))}catch(t){L(new I(t,e))}}};n.retry=(t=>{let n;try{n=e.retry.retries(++x,t)}catch(e){L(e);return}if(n){const r=async e=>{try{for(const n of e.hooks.beforeRetry){await n(e,t,x)}await O(e)}catch(e){L(e)}};setTimeout(r,n,{...e,forceRefresh:true});return true}return false});n.abort=(()=>{if(R){R.once("error",()=>{});R.abort()}else{A=true}});setImmediate(async()=>{try{const{body:t}=e;if(p.buffer(t)){e.body=l(t);k=t.length}else{k=await y(e)}if(p.undefined(e.headers["content-length"])&&p.undefined(e.headers["transfer-encoding"])){if((k>0||e.method==="PUT")&&!p.null(k)){e.headers["content-length"]=k}}for(const t of e.hooks.beforeRequest){await t(e)}D=e.href||new r(e.path,c.format(e)).toString();await O(e)}catch(e){L(e)}});return n})},,,,,,,,,,,,,function(e,t,n){var r=n(395);var o=n(696);var i=r.util.inherit;var a=r.util.domain;var s=n(802);var c={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(c,e._asm.currentState)}var u=new o;u.setupStates=function(){var e=function(e,t){var n=this;n._haltHandlersOnError=false;n.emit(n._asm.currentState,function(e){if(e){if(isTerminalState(n)){if(a&&n.domain instanceof a.Domain){e.domainEmitter=n;e.domain=n.domain;e.domainThrown=false;n.domain.emit("error",e)}else{throw e}}else{n.response.error=e;t(e)}}else{t(n.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};u.setupStates();r.Request=i({constructor:function Request(e,t,n){var i=e.endpoint;var s=e.config.region;var c=e.config.customUserAgent;if(e.isGlobalEndpoint)s="us-east-1";this.domain=a&&a.active;this.service=e;this.operation=t;this.params=n||{};this.httpRequest=new r.HttpRequest(i,s);this.httpRequest.appendToUserAgent(c);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new o(u.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(n){if(n===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(n,o){if(n)return e(n,null);if(o===null)return e(null,null);var i=t.service.paginationConfig(t.operation);var a=i.resultKey;if(Array.isArray(a))a=a[0];var c=s.search(o,a);var u=true;r.util.arrayEach(c,function(t){u=e(null,t);if(u===false){return r.util.abort}});return u}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var n=null;if(r.HttpClient.streamsApiVersion===2){n=new e.PassThrough;process.nextTick(function(){t.send()})}else{n=new e.Stream;n.readable=true;n.sent=false;n.on("newListener",function(e){if(!n.sent&&e==="data"){n.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){n.emit("error",e)});this.on("httpHeaders",function streamHeaders(o,i,a){if(o<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var c;if(t.httpRequest.method!=="HEAD"){c=parseInt(i["content-length"],10)}if(c!==undefined&&!isNaN(c)&&c>=0){s=true;var u=0}var l=function checkContentLengthAndEmit(){if(s&&u!==c){n.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+u+" of "+c+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){n.end()}else{n.emit("end")}};var p=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var m=new e.PassThrough;m._write=function(t){if(t&&t.length){u+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};m.on("end",l);n.on("error",function(e){s=false;p.unpipe(m);m.emit("end");m.end()});p.pipe(m).pipe(n,{end:false})}else{p.pipe(n)}}else{if(s){p.on("data",function(e){if(e&&e.length){u+=e.length}})}p.on("data",function(e){n.emit("data",e)});p.on("end",l)}p.on("error",function(e){s=false;n.emit("error",e)})}});return n},emitEvent:function emit(e,t,n){if(typeof t==="function"){n=t;t=null}if(!n)n=function(){};if(!t)t=this.eventParameters(e,this.response);var o=r.SequentialExecutor.prototype.emit;o.call(this,e,t,function(e){if(e)this.response.error=e;n.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,n){t.on("complete",function(t){if(t.error){n(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},,,,,function(e){(function(){var t,n=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=n(this.assertLegalChar,this);var t,o,i;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;o=e.stringify||{};for(t in o){if(!r.call(o,t))continue;i=o[t];this[t]=i}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(i,function(n,r){if(n){t(n)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var n=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var o=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=o}catch(r){if(n&&n.isStreaming){if(n.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,n,o){n.httpResponse.statusCode=e;n.httpResponse.statusMessage=o;n.httpResponse.headers=t;n.httpResponse.body=r.util.buffer.toBuffer("");n.httpResponse.buffers=[];n.httpResponse.numBytes=0;var i=t.date||t.Date;var a=n.request.service;if(i){var s=Date.parse(i);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var n=t.httpResponse.headers["content-length"];var o={loaded:t.httpResponse.numBytes,total:n};t.request.emit("httpDownloadProgress",[o,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,n)}else{t()}})}),CorePost:(new o).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){if(e.code==="NetworkingError"&&e.errno==="ENOTFOUND"){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new o).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var o=t.service.config.logger;if(!o)return;function filterSensitiveLog(e,t){if(!t){return t}switch(e.type){case"structure":var n={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){n[t]=filterSensitiveLog(e.members[t],r)}else{n[t]=r}});return n;case"list":var o=[];r.util.arrayEach(t,function(t,n){o.push(filterSensitiveLog(e.member,t))});return o;case"map":var i={};r.util.each(t,function(t,n){i[t]=filterSensitiveLog(e.value,n)});return i;default:if(e.isSensitive){return"***SensitiveInformation***"}else{return t}}}function buildMessage(){var i=e.request.service.getSkewCorrectedDate().getTime();var a=(i-t.startTime.getTime())/1e3;var s=o.isTTY?true:false;var c=e.httpResponse.statusCode;var u=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;u=filterSensitiveLog(l,t.params)}var p=n(669).inspect(u,true,null);var m="";if(s)m+="";m+="[AWS "+t.service.serviceIdentifier+" "+c;m+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)m+="";m+=" "+r.util.string.lowerFirst(t.operation);m+="("+p+")";if(s)m+="";return m}var i=buildMessage();if(typeof o.log==="function"){o.log(i)}else if(typeof o.write==="function"){o.write(i+"\n")}})}),Json:(new o).addNamedListeners(function(e){var t=n(912);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new o).addNamedListeners(function(e){var t=n(618);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new o).addNamedListeners(function(e){var t=n(315);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new o).addNamedListeners(function(e){var t=n(2);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new o).addNamedListeners(function(e){var t=n(576);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},,,,function(e,t,n){var r=n(395);r.SequentialExecutor=r.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,n){if(this._events[e]){n?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,n){t._isAsync=true;return this.on(e,t,n)},removeListener:function removeListener(e,t){var n=this._events[e];if(n){var r=n.length;var o=-1;for(var i=0;i-1){n.splice(o,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,n){if(!n)n=function(){};var r=this.listeners(e);var o=r.length;this.callListeners(r,t,n);return o>0},callListeners:function callListeners(e,t,n,o){var i=this;var a=o||null;function callNextListener(o){if(o){a=r.util.error(a||new Error,o);if(i._haltHandlersOnError){return n.call(i,a)}}i.callListeners(e,t,n,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(i,t.concat([callNextListener]));return}else{try{s.apply(i,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&i._haltHandlersOnError){n.call(i,a);return}}}n.call(i,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,n){if(typeof n==="function")n=[n];r.util.arrayEach(n,function(n){t.on(e,n)})});return t},addNamedListener:function addNamedListener(e,t,n,r){this[e]=n;this.addListener(t,n,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,n,r){n._isAsync=true;return this.addNamedListener(e,t,n,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},,,,function(e){e.exports=require("events")},,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Signers.S3=o(r.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=r.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var n=this.sign(e.secretAccessKey,this.stringToSign());var o="AWS "+e.accessKeyId+":"+n;this.request.headers["Authorization"]=o},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var n=this.canonicalizedAmzHeaders();if(n)t.push(n);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];r.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase()=0?"&":"?";var c=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t{const s=Number(e.headers["content-length"])||null;const c=a.download(e,n,s);i(e,c);const u=t.decompress===true&&o.function(r)&&t.method!=="HEAD"?r(c):c;if(!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])){t.encoding=null}n.emit("response",u);n.emit("downloadProgress",{percent:0,transferred:0,total:s});e.pipe(c)})},function(e,t,n){var r=n(395);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},,,,,,,,,,,function(e,t,n){(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,n){if(!(this instanceof SAXParser)){return new SAXParser(t,n)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=n||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=b.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(y)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n))t.push(n);return t}}function checkBufferLength(n){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var o=0;for(var i=0,a=t.length;ir){switch(t[i]){case"textNode":closeText(n);break;case"cdata":emitNode(n,"oncdata",n.cdata);n.cdata="";break;case"script":emitNode(n,"onscript",n.script);n.script="";break;default:error(n,"Max buffer length exceeded: "+t[i])}}o=Math.max(o,s)}var c=e.MAX_BUFFER_LENGTH-o;n.bufferCheckPosition=c+n.position}function clearBuffers(e){for(var n=0,r=t.length;n";var l="[CDATA[";var p="DOCTYPE";var m="http://www.w3.org/XML/1998/namespace";var d="http://www.w3.org/2000/xmlns/";var y={xml:m,xmlns:d};i=charClass(i);a=charClass(a);s=charClass(s);var f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var h=/[:_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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;var N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var g=/[#:_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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;c=charClass(c);u=charClass(u);function charClass(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function is(e,t){return isRegExp(e)?!!t.match(e):e[t]}function not(e,t){return!is(e,t)}var b=0;e.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t];var r=typeof n==="number"?String.fromCharCode(n):n;e.ENTITIES[t]=r});for(var I in e.STATE){e.STATE[e.STATE[I]]=I}b=e.STATE;function emit(e,t,n){e[t]&&e[t](n)}function emitNode(e,t,n){if(e.textNode)closeText(e);emit(e,t,n)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==b.BEGIN&&e.state!==b.BEGIN_WHITESPACE&&e.state!==b.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var n=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){n.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",n)}function qname(e,t){var n=e.indexOf(":");var r=n<0?["",e]:e.split(":");var o=r[0];var i=r[1];if(t&&e==="xmlns"){o="xmlns";i=""}return{prefix:o,local:i}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var n=t.prefix;var r=t.local;if(n==="xmlns"){if(r==="xml"&&e.attribValue!==m){strictFail(e,"xml: prefix must be bound to "+m+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==d){strictFail(e,"xmlns: prefix must be bound to "+d+"\n"+"Actual: "+e.attribValue)}else{var o=e.tag;var i=e.tags[e.tags.length-1]||e;if(o.ns===i.ns){o.ns=Object.create(i.ns)}o.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var n=e.tag;var r=qname(e.tagName);n.prefix=r.prefix;n.local=r.local;n.uri=n.ns[r.prefix]||"";if(n.prefix&&!n.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));n.uri=r.prefix}var o=e.tags[e.tags.length-1]||e;if(n.ns&&o.ns!==n.ns){Object.keys(n.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:n.ns[t]})})}for(var i=0,a=e.attribList.length;i";e.tagName="";e.state=b.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var n=e.tagName;if(!e.strict){n=n[e.looseCase]()}var r=n;while(t--){var o=e.tags[t];if(o.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=b.TEXT;return}e.tagName=n;var i=e.tags.length;while(i-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var c in a.ns){s[c]=a.ns[c]}var u=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==u.ns){Object.keys(a.ns).forEach(function(t){var n=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:n})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=b.TEXT}function parseEntity(e){var t=e.entity;var n=t.toLowerCase();var r;var o="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[n]){return e.ENTITIES[n]}t=n;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);o=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);o=r.toString(10)}}t=t.replace(/^0+/,"");if(o.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=b.OPEN_WAKA;e.startTagPosition=e.position}else if(not(i,t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=b.TEXT}}function charAt(e,t){var n="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=b.TEXT}else if(is(c,r)){t.state=b.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case b.SGML_DECL_QUOTED:if(r===t.q){t.state=b.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case b.DOCTYPE:if(r===">"){t.state=b.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=b.DOCTYPE_DTD}else if(is(c,r)){t.state=b.DOCTYPE_QUOTED;t.q=r}}continue;case b.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=b.DOCTYPE}continue;case b.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=b.DOCTYPE}else if(is(c,r)){t.state=b.DOCTYPE_DTD_QUOTED;t.q=r}continue;case b.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=b.DOCTYPE_DTD;t.q=""}continue;case b.COMMENT:if(r==="-"){t.state=b.COMMENT_ENDING}else{t.comment+=r}continue;case b.COMMENT_ENDING:if(r==="-"){t.state=b.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=b.COMMENT}continue;case b.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=b.COMMENT}else{t.state=b.TEXT}continue;case b.CDATA:if(r==="]"){t.state=b.CDATA_ENDING}else{t.cdata+=r}continue;case b.CDATA_ENDING:if(r==="]"){t.state=b.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=b.CDATA}continue;case b.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=b.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=b.CDATA}continue;case b.PROC_INST:if(r==="?"){t.state=b.PROC_INST_ENDING}else if(is(i,r)){t.state=b.PROC_INST_BODY}else{t.procInstName+=r}continue;case b.PROC_INST_BODY:if(!t.procInstBody&&is(i,r)){continue}else if(r==="?"){t.state=b.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case b.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=b.TEXT}else{t.procInstBody+="?"+r;t.state=b.PROC_INST_BODY}continue;case b.OPEN_TAG:if(is(h,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else{if(not(i,r)){strictFail(t,"Invalid character in tag name")}t.state=b.ATTRIB}}continue;case b.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=b.ATTRIB}continue;case b.ATTRIB:if(is(i,r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else if(is(f,r)){t.attribName=r;t.attribValue="";t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_NAME:if(r==="="){t.state=b.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(is(i,r)){t.state=b.ATTRIB_NAME_SAW_WHITE}else if(is(h,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=b.ATTRIB_VALUE}else if(is(i,r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(is(f,r)){t.attribName=r;t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=b.ATTRIB}}continue;case b.ATTRIB_VALUE:if(is(i,r)){continue}else if(is(c,r)){t.q=r;t.state=b.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=b.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case b.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=b.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:if(is(i,r)){t.state=b.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=b.OPEN_TAG_SLASH}else if(is(f,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=b.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case b.ATTRIB_VALUE_UNQUOTED:if(not(u,r)){if(r==="&"){t.state=b.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=b.ATTRIB}continue;case b.CLOSE_TAG:if(!t.tagName){if(is(i,r)){continue}else if(not(f,r)){if(t.script){t.script+=""){closeTag(t)}else if(is(h,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:var s;var m;switch(t.state){case b.TEXT_ENTITY:s=b.TEXT;m="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:s=b.ATTRIB_VALUE_QUOTED;m="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:s=b.ATTRIB_VALUE_UNQUOTED;m="attribValue";break}if(r===";"){t[m]+=parseEntity(t);t.entity="";t.state=s}else if(is(t.entity.length?g:N,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[m]+="&"+t.entity+r;t.entity="";t.state=s}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var n=function(){var n=16384;var r=[];var o;var i;var a=-1;var s=arguments.length;if(!s){return""}var c="";while(++a1114111||t(u)!==u){throw RangeError("Invalid code point: "+u)}if(u<=65535){r.push(u)}else{u-=65536;o=(u>>10)+55296;i=u%1024+56320;r.push(o,i)}if(a+1===s||r.length>n){c+=e.apply(null,r);r.length=0}}return c};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:n,configurable:true,writable:true})}else{String.fromCodePoint=n}})()}})(false?undefined:t)},,,,,,,,,,,,function(e,t,n){var r=n(683).parseMessage;function parseEvent(e,t,n){var o=r(t);var i=o.headers[":message-type"];if(i){if(i.value==="error"){throw parseError(o)}else if(i.value!=="event"){return}}var a=o.headers[":event-type"];var s=n.members[a.value];if(!s){return}var c={};var u=s.eventPayloadMemberName;if(u){var l=s.members[u];if(l.type==="binary"){c[u]=o.body}else{c[u]=e.parse(o.body.toString(),l)}}var p=s.eventHeaderMemberNames;for(var m=0;me.trim());const l=parseInt(r.getInput("port",{required:false}));const p=r.getInput("description",{required:false});o.config.update({region:a,accessKeyId:s,secretAccessKey:c});const m=new i;e.exports={region:a,accessKeyId:s,secretAccessKey:c,groupIds:u,port:l,description:p,ec2:m}},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(855);e.exports=r=function(e){o(XMLRaw,e);function XMLRaw(e,t){XMLRaw.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing raw text")}this.value=this.stringify.raw(t)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(e){return this.options.writer.set(e).raw(this)};return XMLRaw}(t)}).call(this)},function(e,t,n){var r=n(625).eventMessageChunker;var o=n(657).parseEvent;function createEventStream(e,t,n){var i=r(e);var a=[];for(var s=0;s-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=o.base64.decode(e);if(this.isSensitive&&o.isNode()&&typeof o.Buffer.alloc==="function"){var n=o.Buffer.alloc(t.length,t);t.fill(0);t=n}return t};this.toWireFormat=o.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},function(e,t,n){var r=n(733).Int64;var o=n(175).splitMessage;var i="boolean";var a="byte";var s="short";var c="integer";var u="long";var l="binary";var p="string";var m="timestamp";var d="uuid";function parseHeaders(e){var t={};var n=0;while(n0&&e[e.length-1];if(typeof t==="function"){this.once("listening",t);this.socket.bind(...e.slice(0,-1))}else{this.socket.bind(...e)}};DNS.prototype.destroy=function(e){if(e){this.once("close",e)}if(this.destroyed){return}this.destroyed=true;clearInterval(this._interval);this.socket.close();for(let e=0;ethis.retries){this._queries[t]=null;this.inflight--;this.emit("timeout",n.query,n.port,n.host);n.callback(new Error("Query timed out"));continue}n.tries++;this.socket.send(n.buffer,0,n.buffer.length,n.port,Array.isArray(n.host)?n.host[Math.floor(n.host.length*Math.random())]:n.host||"127.0.0.1")}};DNS.prototype._shouldRedirect=function(e,t){if(this.maxRedirects<=0||!e||e.query.questions.length!==1||t.answers.filter(e=>e.type==="A").length>0){return false}if(e.redirects>this.maxRedirects){return false}const n=t.answers.filter(e=>e.type==="CNAME");if(n.length===0){return false}const r=this._getNextEmptyId();if(r===-1){e.callback(new Error("Query array is full!"));return true}e.query={id:r+1,flags:i.RECURSION_DESIRED,questions:[{type:"A",name:n[0].data}]};e.redirects++;e.firstTry=Date.now();e.tries=0;e.buffer=i.encode(e.query);this._queries[r]=e;this.socket.send(e.buffer,0,e.buffer.length,e.port,Array.isArray(e.host)?e.host[Math.floor(e.host.length*Math.random())]:e.host||"127.0.0.1");return true};DNS.prototype._onmessage=function(e,t){let n;try{n=i.decode(e)}catch(e){this.emit("warning",e);return}if(n.type==="response"&&n.id){const e=this._queries[n.id-1];if(e){this._queries[n.id-1]=null;this.inflight--;if(!this._shouldRedirect(e,n)){e.callback(null,n)}}}this.emit(n.type,n,t.port,t.address)};DNS.prototype.unref=function(){this.socket.unref()};DNS.prototype.ref=function(){this.socket.ref()};DNS.prototype.response=function(e,t,n,r){if(this.destroyed){return}t.type="response";t.id=e.id;const o=i.encode(t);this.socket.send(o,0,o.length,n,r)};DNS.prototype.cancel=function(e){const t=this._queries[e];if(!t)return;this._queries[e]=null;this.inflight--;t.callback(new Error("Query cancelled"))};DNS.prototype.setRetries=function(e,t){const n=this._queries[e];if(!n)return;n.firstTry=n.firstTry-this.timeout*(t-n.retries);n.retries=this.retries-t};DNS.prototype._getNextEmptyId=function(){let e=-1;for(let t=this.maxQueries;t>0;t--){const n=(this._id+t)%this.maxQueries;if(this._queries[n]===null){e=n;this._id=(n+1)%this.maxQueries;break}}return e};DNS.prototype.query=function(e,t,n,r){if(this.destroyed){r(new Error("Socket destroyed"));return 0}this.inflight++;e.type="query";e.flags=typeof e.flags==="number"?e.flags:DNS.RECURSION_DESIRED;const o=this._getNextEmptyId();if(o===-1){r(new Error("Query array is full!"));return 0}e.id=o+1;const a=i.encode(e);this._queries[o]={callback:r||noop,redirects:0,firstTry:Date.now(),query:e,tries:0,buffer:a,port:t,host:n};this.socket.send(a,0,a.length,t,Array.isArray(n)?n[Math.floor(n.length*Math.random())]:n||"127.0.0.1");return o};function noop(){}function isListening(e){try{return e.address().port!==0}catch(e){return false}}},,,,function(e,t,n){var r=n(395).util;var o=n(200);var i=r.buffer.toBuffer;var a=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var n=0,r=t.length;ni){e[o]=a.substr(0,i)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=i(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var n=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,n){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=o.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},,,,,,,function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;t=n(855);e.exports=r=function(e){o(XMLText,e);function XMLText(e,t){XMLText.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element text")}this.value=this.stringify.eleText(t)}XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(e){return this.options.writer.set(e).text(this)};return XMLText}(t)}).call(this)},,,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Endpoint=o({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var n=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(n?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=o({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});r.HttpResponse=o({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=o({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},,,,function(e){e.exports={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",serviceId:"STS",signatureVersion:"v4",uid:"sts-2011-06-15",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"},Tags:{shape:"S8"},TransitiveTagKeys:{type:"list",member:{}},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"}}}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{type:"string",sensitive:true},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sh"},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{type:"string",sensitive:true},ProviderId:{},PolicyArns:{shape:"S4"},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sh"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sm"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}}},GetAccessKeyInfo:{input:{type:"structure",required:["AccessKeyId"],members:{AccessKeyId:{}}},output:{resultWrapper:"GetAccessKeyInfoResult",type:"structure",members:{Account:{}}}},GetCallerIdentity:{input:{type:"structure",members:{}},output:{resultWrapper:"GetCallerIdentityResult",type:"structure",members:{UserId:{},Account:{},Arn:{}}}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},PolicyArns:{shape:"S4"},DurationSeconds:{type:"integer"},Tags:{shape:"S8"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sh"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sh"}}}}},shapes:{S4:{type:"list",member:{type:"structure",members:{arn:{}}}},S8:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},Sh:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sm:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}}},,,function(e,t,n){"use strict";var r=n(413);function DuplexWrapper(e,t,n){if(typeof n==="undefined"){n=t;t=e;e=null}r.Duplex.call(this,e);if(typeof n.read!=="function"){n=new r.Readable(e).wrap(n)}this._writable=t;this._readable=n;this._waiting=false;var o=this;t.once("finish",function(){o.end()});this.once("finish",function(){t.end()});n.on("readable",function(){if(o._waiting){o._waiting=false;o._read()}});n.once("end",function(){o.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){o.emit("error",e)});n.on("error",function(e){o.emit("error",e)})}}DuplexWrapper.prototype=Object.create(r.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,n){this._writable.write(e,t,n)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,n){return new DuplexWrapper(e,t,n)};e.exports.DuplexWrapper=DuplexWrapper},,,,function(e){var t=[];for(var n=0;n<256;++n){t[n]=(n+256).toString(16).substr(1)}function bytesToUuid(e,n){var r=n||0;var o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}e.exports=bytesToUuid},function(e,t,n){"use strict";const{promisify:r}=n(669);const o=n(200);const i=n(697);const{get:a,CancelError:s}=n(798);const c=n(29);const u={timeout:5e3,onlyHttps:false};const l=[{v4:{servers:["208.67.222.222","208.67.220.220","208.67.222.220","208.67.220.222"],name:"myip.opendns.com",type:"A"},v6:{servers:["2620:0:ccc::2","2620:0:ccd::2"],name:"myip.opendns.com",type:"AAAA"}},{v4:{servers:["216.239.32.10","216.239.34.10","216.239.36.10","216.239.38.10"],name:"o-o.myaddr.l.google.com",type:"TXT",transform:e=>e.replace(/"/g,"")},v6:{servers:["2001:4860:4802:32::a","2001:4860:4802:34::a","2001:4860:4802:36::a","2001:4860:4802:38::a"],name:"o-o.myaddr.l.google.com",type:"TXT",transform:e=>e.replace(/"/g,"")}}];const p={v4:{dnsServers:l.map(({v4:{servers:e,...t}})=>({servers:e,question:t})),httpsUrls:["https://icanhazip.com/","https://api.ipify.org/"]},v6:{dnsServers:l.map(({v6:{servers:e,...t}})=>({servers:e,question:t})),httpsUrls:["https://icanhazip.com/","https://api6.ipify.org/"]}};const m=(e,t)=>{const n=p[e];const a=i({retries:0,maxQueries:1,socket:o.createSocket(e==="v6"?"udp6":"udp4"),timeout:t.timeout});a.retries=0;const s=r(a.query.bind(a));const u=(async()=>{for(const t of n.dnsServers){const{servers:n,question:r}=t;for(const t of n){if(a.destroyed){return}try{const{name:n,type:o,transform:i}=r;const u=await s({questions:[{name:n,type:o}]},53,t);const{answers:{0:{data:l}}}=u;const p=(typeof l==="string"?l:l.toString()).trim();const m=i?i(p):p;if(m&&c[e](m)){a.destroy();return m}}catch(e){}}}a.destroy();throw new Error("Couldn't find your IP")})();u.cancel=(()=>{a.destroy()});return u};const d=(e,t)=>{let n;const r=(async()=>{try{const r={family:e==="v6"?6:4,retries:0,timeout:t.timeout};const o=[].concat.apply(p[e].httpsUrls,t.fallbackUrls||[]);for(const t of o){try{const o=a(t,r);n=o.cancel;const i=await o;const u=(i.body||"").trim();if(u&&c[e](u)){return u}}catch(e){if(e instanceof s){throw e}}}throw new Error("Couldn't find your IP")}catch(e){if(!(e instanceof s)){throw e}}})();r.cancel=function(){return n.apply(this)};return r};const y=(e,t)=>{let n;const r=(async()=>{let r;const o=m(e,t);n=o.cancel;try{r=await o}catch(o){const i=d(e,t);n=i.cancel;r=await i}return r})();r.cancel=n;return r};e.exports.v4=(e=>{e={...u,...e};if(!e.onlyHttps){return y("v4",e)}if(e.onlyHttps){return d("v4",e)}return m("v4",e)});e.exports.v6=(e=>{e={...u,...e};if(!e.onlyHttps){return y("v6",e)}if(e.onlyHttps){return d("v6",e)}return m("v6",e)})},,,,,,,,,,function(e,t,n){var r=n(395).util;var o=r.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!r.Buffer.isBuffer(e))e=o(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256){t[n]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},,function(e,t,n){(function(){var t,r,o,i,a,s,c,u=function(e,t){for(var n in t){if(l.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},l={}.hasOwnProperty;c=n(582).isObject;s=n(855);t=n(801);o=n(333);r=n(463);i=n(19);e.exports=a=function(e){u(XMLDocType,e);function XMLDocType(e,t,n){var r,o;XMLDocType.__super__.constructor.call(this,e);this.documentObject=e;if(c(t)){r=t,t=r.pubID,n=r.sysID}if(n==null){o=[t,n],n=o[0],t=o[1]}if(t!=null){this.pubID=this.stringify.dtdPubID(t)}if(n!=null){this.sysID=this.stringify.dtdSysID(n)}}XMLDocType.prototype.element=function(e,t){var n;n=new r(this,e,t);this.children.push(n);return this};XMLDocType.prototype.attList=function(e,n,r,o,i){var a;a=new t(this,e,n,r,o,i);this.children.push(a);return this};XMLDocType.prototype.entity=function(e,t){var n;n=new o(this,false,e,t);this.children.push(n);return this};XMLDocType.prototype.pEntity=function(e,t){var n;n=new o(this,true,e,t);this.children.push(n);return this};XMLDocType.prototype.notation=function(e,t){var n;n=new i(this,e,t);this.children.push(n);return this};XMLDocType.prototype.toString=function(e){return this.options.writer.set(e).docType(this)};XMLDocType.prototype.ele=function(e,t){return this.element(e,t)};XMLDocType.prototype.att=function(e,t,n,r,o){return this.attList(e,t,n,r,o)};XMLDocType.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocType.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocType.prototype.not=function(e,t){return this.notation(e,t)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};return XMLDocType}(s)}).call(this)},,,function(e,t,n){(function(){var t,r,o,i=function(e,t){for(var n in t){if(a.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;o=n(582).isObject;r=n(855);e.exports=t=function(e){i(XMLDeclaration,e);function XMLDeclaration(e,t,n,r){var i;XMLDeclaration.__super__.constructor.call(this,e);if(o(t)){i=t,t=i.version,n=i.encoding,r=i.standalone}if(!t){t="1.0"}this.version=this.stringify.xmlVersion(t);if(n!=null){this.encoding=this.stringify.xmlEncoding(n)}if(r!=null){this.standalone=this.stringify.xmlStandalone(r)}}XMLDeclaration.prototype.toString=function(e){return this.options.writer.set(e).declaration(this)};return XMLDeclaration}(r)}).call(this)},,,,,,,,,function(e){e.exports=require("fs")},,,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h=function(e,t){for(var n in t){if(N.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},N={}.hasOwnProperty;c=n(738);u=n(735);t=n(35);r=n(919);l=n(796);m=n(660);y=n(708);p=n(491);o=n(801);i=n(463);a=n(333);s=n(19);f=n(423);e.exports=d=function(e){h(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,n,o,i,a;this.textispresent=false;i="";a=e.children;for(n=0,o=a.length;n"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var n;n=this.space(t);n+='";n+=this.newline;return n};XMLStringWriter.prototype.docType=function(e,n){var c,u,l,m,d;n||(n=0);m=this.space(n);m+="0){m+=" [";m+=this.newline;d=e.children;for(u=0,l=d.length;u";m+=this.newline;return m};XMLStringWriter.prototype.element=function(e,n){var o,i,a,s,c,u,d,f,h,g,b,I,v;n||(n=0);v=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(n);f="";f+=I+"<"+e.name;h=e.attributes;for(d in h){if(!N.call(h,d))continue;o=h[d];f+=this.attribute(o)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){f+=">"+this.newline}else{f+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){f+=">";f+=e.children[0].value;f+=""+this.newline}else{if(this.dontprettytextnodes){g=e.children;for(a=0,c=g.length;a"+this.newline;b=e.children;for(s=0,u=b.length;s"+this.newline}return f};XMLStringWriter.prototype.processingInstruction=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.dtdNotation=function(e,t){var n;n=this.space(t)+""+this.newline;return n};XMLStringWriter.prototype.openNode=function(e,t){var n,r,o,i;t||(t=0);if(e instanceof l){o=this.space(t)+"<"+e.name;i=e.attributes;for(r in i){if(!N.call(i,r))continue;n=i[r];o+=this.attribute(n)}o+=(e.children?">":"/>")+this.newline;return o}else{o=this.space(t)+"")+this.newline;return o}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof u):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(f)}).call(this)},function(e,t,n){var r=n(395);var o=n(106);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(n,r){t.data=null;if(!n){t.data=r;t.service.credentialsFrom(r,t)}e(n)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new o(e)}}})},,,function(e,t,n){var r=n(395);var o=n(819);var i=r.util.inherit;var a="presigned-expires";r.Signers.V4=i(r.Signers.RequestSigner,{constructor:function V4(e,t,n){r.Signers.RequestSigner.call(this,e);this.serviceName=t;n=n||{};this.signatureCache=typeof n.signatureCache==="boolean"?n.signatureCache:true;this.operation=n.operation;this.signatureVersion=n.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function addAuthorization(e,t){var n=r.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");if(this.isPresigned()){this.updateForPresigned(e,n)}else{this.addHeaders(e,n)}this.request.headers["Authorization"]=this.authorization(e,n)},addHeaders:function addHeaders(e,t){this.request.headers["X-Amz-Date"]=t;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}},updateForPresigned:function updateForPresigned(e,t){var n=this.credentialString(t);var o={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+n,"X-Amz-Expires":this.request.headers[a],"X-Amz-SignedHeaders":this.signedHeaders()};if(e.sessionToken){o["X-Amz-Security-Token"]=e.sessionToken}if(this.request.headers["Content-Type"]){o["Content-Type"]=this.request.headers["Content-Type"]}if(this.request.headers["Content-MD5"]){o["Content-MD5"]=this.request.headers["Content-MD5"]}if(this.request.headers["Cache-Control"]){o["Cache-Control"]=this.request.headers["Cache-Control"]}r.util.each.call(this,this.request.headers,function(e,t){if(e===a)return;if(this.isSignableHeader(e)){var n=e.toLowerCase();if(n.indexOf("x-amz-meta-")===0){o[n]=t}else if(n.indexOf("x-amz-")===0){o[e]=t}}});var i=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=i+r.util.queryParamsToString(o)},authorization:function authorization(e,t){var n=[];var r=this.credentialString(t);n.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);n.push("SignedHeaders="+this.signedHeaders());n.push("Signature="+this.signature(e,t));return n.join(", ")},signature:function signature(e,t){var n=o.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(n,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,n){e.push([t,n])});e.sort(function(e,t){return e[0].toLowerCase()=0}function fromConfigFile(e){var t;try{var n=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=n[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},,,,,,function(e,t,n){(function(){var t,r,o,i,a,s,c,u,l,p,m,d,y,f,h,N,g,b,I,v,S={}.hasOwnProperty;v=n(582),b=v.isObject,g=v.isFunction,I=v.isPlainObject;m=n(796);r=n(35);o=n(919);y=n(660);N=n(708);d=n(491);u=n(738);l=n(735);i=n(801);s=n(333);a=n(463);c=n(19);t=n(884);h=n(602);f=n(750);e.exports=p=function(){function XMLDocumentCB(e,t,n){var r;e||(e={});if(!e.writer){e.writer=new f(e)}else if(I(e.writer)){r=e.writer;e.writer=new f(r)}this.options=e;this.writer=e.writer;this.stringify=new h(e);this.onDataCallback=t||function(){};this.onEndCallback=n||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.node=function(e,t,n){var r;if(e==null){throw new Error("Missing node name")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node")}this.openCurrent();e=e.valueOf();if(t==null){t={}}t=t.valueOf();if(!b(t)){r=[t,n],n=r[0],t=r[1]}this.currentNode=new m(this,e,t);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(n!=null){this.text(n)}return this};XMLDocumentCB.prototype.element=function(e,t,n){if(this.currentNode&&this.currentNode instanceof l){return this.dtdElement.apply(this,arguments)}else{return this.node(e,t,n)}};XMLDocumentCB.prototype.attribute=function(e,n){var r,o;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode")}if(e!=null){e=e.valueOf()}if(b(e)){for(r in e){if(!S.call(e,r))continue;o=e[r];this.attribute(r,o)}}else{if(g(n)){n=n.apply()}if(!this.options.skipNullAttributes||n!=null){this.currentNode.attributes[e]=new t(this,e,n)}}return this};XMLDocumentCB.prototype.text=function(e){var t;this.openCurrent();t=new N(this,e);this.onData(this.writer.text(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.cdata=function(e){var t;this.openCurrent();t=new r(this,e);this.onData(this.writer.cdata(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.comment=function(e){var t;this.openCurrent();t=new o(this,e);this.onData(this.writer.comment(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.raw=function(e){var t;this.openCurrent();t=new y(this,e);this.onData(this.writer.raw(t,this.currentLevel+1));return this};XMLDocumentCB.prototype.instruction=function(e,t){var n,r,o,i,a;this.openCurrent();if(e!=null){e=e.valueOf()}if(t!=null){t=t.valueOf()}if(Array.isArray(e)){for(n=0,i=e.length;n=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof m){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,n){return this.node(e,t,n)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,n){return this.declaration(e,t,n)};XMLDocumentCB.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)};XMLDocumentCB.prototype.e=function(e,t,n){return this.element(e,t,n)};XMLDocumentCB.prototype.n=function(e,t,n){return this.node(e,t,n)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},function(e,t,n){"use strict";var r=t;var o=n(293).Buffer;var i=n(87);r.toBuffer=function(e,t,n){n=~~n;var r;if(this.isV4Format(e)){r=t||new o(n+4);e.split(/\./g).map(function(e){r[n++]=parseInt(e,10)&255})}else if(this.isV6Format(e)){var i=e.split(":",8);var a;for(a=0;a0;a--){u.push("0")}i.splice.apply(i,u)}r=t||new o(n+16);for(a=0;a>8&255;r[n++]=l&255}}if(!r){throw Error("Invalid ip address: "+e)}return r};r.toString=function(e,t,n){t=~~t;n=n||e.length-t;var r=[];if(n===4){for(var o=0;o32){t="ipv6"}else{t=_normalizeFamily(t)}var n=4;if(t==="ipv6"){n=16}var i=new o(n);for(var a=0,s=i.length;a>c)&255}return r.toString(i)};r.mask=function(e,t){e=r.toBuffer(e);t=r.toBuffer(t);var n=new o(Math.max(e.length,t.length));var i=0;if(e.length===t.length){for(i=0;ie.length){o=t;i=e}var a=o.length-i.length;for(var n=a;n>>0};r.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(e&255)}},,,,,function(e,t,n){"use strict";const r=n(835);const o=n(605);const i=n(557);const a=n(534);class GotError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!a.undefined(t.code)){this.code=t.code}Object.assign(this,{host:n.host,hostname:n.hostname,method:n.method,path:n.path,socketPath:n.socketPath,protocol:n.protocol,url:n.href,gotOptions:n})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,t,n,i){super(`${e.message} in "${r.format(n)}": \n${i.slice(0,77)}...`,e,n);this.name="ParseError";this.statusCode=t;this.statusMessage=o.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,t){const{statusCode:n}=e;let{statusMessage:r}=e;if(r){r=r.replace(/\r?\n/g," ").trim()}else{r=o.STATUS_CODES[n]}super(`Response code ${n} (${r})`,{},t);this.name="HTTPError";this.statusCode=n;this.statusMessage=r;this.headers=e.headers;this.body=e.body}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,t,n){super("Redirected 10 times. Aborting.",{},n);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=o.STATUS_CODES[this.statusCode];this.redirectUrls=t}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.TimeoutError=class extends GotError{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t);this.name="TimeoutError";this.event=e.event}};e.exports.CancelError=i.CancelError},,,,,,,,,,,,,,function(e,t,n){var r=n(583);var o=n(964);var i=n(682);var a=n(265);var s=n(624);var c=n(694);var u=n(153);var l=u.property;var p=u.memoizedProperty;function Api(e,t){var n=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var m=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(m&&c[m]){l(this,"xmlNoDefaultLists",c[m].xmlNoDefaultLists,false)}p(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(n,"endpointOperation",u.string.lowerFirst(e))}}l(this,"operations",new r(e.operations,t,function(e,n){return new o(e,n,t)},u.string.lowerFirst,addEndpointOperation));l(this,"shapes",new r(e.shapes,t,function(e,n){return i.create(n,t)}));l(this,"paginators",new r(e.paginators,t,function(e,n){return new a(e,n,t)}));l(this,"waiters",new r(e.waiters,t,function(e,n){return new s(e,n,t)},u.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},,,function(e,t,n){var r=n(395);var o=r.util.inherit;r.Signers.V3=o(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var n=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=n;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,n)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(n){t.push(n.toLowerCase().trim()+":"+String(e[n]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},,,function(e,t,n){"use strict";const{PassThrough:r}=n(413);const o=n(718);const i=n(584);const{HTTPError:a,ReadError:s}=n(774);e.exports=(e=>{const t=new r;const n=new r;const c=o(t,n);const u=new Set;let l=false;e.retry.retries=(()=>0);if(e.body){c.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const p=i(e,t);c._destroy=p.abort;p.on("response",t=>{const{statusCode:r}=t;t.on("error",t=>{c.emit("error",new s(t,e))});if(e.throwHttpErrors&&r!==304&&(r<200||r>299)){c.emit("error",new a(t,e),null,t);return}l=true;t.pipe(n);for(const n of u){if(n.headersSent){continue}for(const[r,o]of Object.entries(t.headers)){const t=e.decompress?r!=="content-encoding":true;if(t){n.setHeader(r,o)}}n.statusCode=t.statusCode}c.emit("response",t)});["error","request","redirect","uploadProgress","downloadProgress"].forEach(e=>p.on(e,(...t)=>c.emit(e,...t)));const m=c.pipe.bind(c);const d=c.unpipe.bind(c);c.pipe=((e,t)=>{if(l){throw new Error("Failed to pipe. The response has been emitted already.")}const n=m(e,t);if(Reflect.has(e,"setHeader")){u.add(e)}return n});c.unpipe=(e=>{u.delete(e);return d(e)});return c})},,function(e,t,n){(function(){var t,r,o,i,a,s,c=function(e,t){for(var n in t){if(u.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},u={}.hasOwnProperty;s=n(582),a=s.isObject,i=s.isFunction;o=n(855);t=n(884);e.exports=r=function(e){c(XMLElement,e);function XMLElement(e,t,n){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(n!=null){this.attribute(n)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,n,r;n=Object.create(this);if(n.isRoot){n.documentObject=null}n.attributes={};r=this.attributes;for(t in r){if(!u.call(r,t))continue;e=r[t];n.attributes[t]=e.clone()}n.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=n;return n.children.push(t)});return n};XMLElement.prototype.attribute=function(e,n){var r,o;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!u.call(e,r))continue;o=e[r];this.attribute(r,o)}}else{if(i(n)){n=n.apply()}if(!this.options.skipNullAttributes||n!=null){this.attributes[e]=new t(this,e,n)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,n,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(n=0,r=e.length;n":true,"=":true,"!":true};var H={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var n;var r;var o;while(this._current"){if(e[this._current]==="="){this._current++;return{type:k,value:">=",start:t}}else{return{type:D,value:">",start:t}}}else if(n==="="){if(e[this._current]==="="){this._current++;return{type:R,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var n=this._current;var r=e.length;var o;while(e[this._current]!=="`"&&this._current=0){return true}else if(n.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var j={};j[m]=0;j[d]=0;j[y]=0;j[f]=0;j[h]=0;j[N]=0;j[b]=0;j[I]=0;j[v]=0;j[S]=0;j[T]=1;j[w]=2;j[C]=3;j[R]=5;j[D]=5;j[E]=5;j[k]=5;j[x]=5;j[A]=5;j[P]=9;j[_]=20;j[M]=21;j[L]=40;j[O]=45;j[F]=50;j[G]=55;j[B]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==m){var n=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+n.type+", value: "+n.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var n=t.tokenize(e);n.push({type:m,value:"",start:e.length});this.tokens=n},expression:function(e){var t=this._lookaheadToken(0);this._advance();var n=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===G){this._match(G);return this._parseMultiselectList()}else if(t===F){this._match(F);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(j[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===G){t=this.expression(e)}else if(this._lookahead(0)===M){t=this.expression(e)}else if(this._lookahead(0)===L){this._match(L);t=this._parseDotRHS(e)}else{var n=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==f){var t=this.expression(0);e.push(t);if(this._lookahead(0)===N){this._match(N);if(this._lookahead(0)===f){throw new Error("Unexpected token Rbracket")}}}this._match(f);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[d,y];var n,r,o,i;for(;;){n=this._lookaheadToken(0);if(t.indexOf(n.type)<0){throw new Error("Expecting an identifier token, got: "+n.type)}r=n.value;this._advance();this._match(g);o=this.expression(0);i={type:"KeyValuePair",name:r,value:o};e.push(i);if(this._lookahead(0)===N){this._match(N)}else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var n,r,o,i,a,s,c,u,l,p;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":o=this.visit(e.children[0],t);for(p=1;p0){for(p=f;ph;p+=N){o.push(t[p])}}return o;case"Projection":var g=this.visit(e.children[0],t);if(!isArray(g)){return null}l=[];for(p=0;pa;break;case k:o=i>=a;break;case E:o=i=e){t=n<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[n]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[n]}]},contains:{_func:this._functionContains,_signature:[{types:[o,i]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[o]},{types:[o]}]},floor:{_func:this._functionFloor,_signature:[{types:[n]}]},length:{_func:this._functionLength,_signature:[{types:[o,i,a]}]},map:{_func:this._functionMap,_signature:[{types:[c]},{types:[i]}]},max:{_func:this._functionMax,_signature:[{types:[l,p]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[i]},{types:[c]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[o]},{types:[o]}]},min:{_func:this._functionMin,_signature:[{types:[l,p]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[i]},{types:[c]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[p,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[i]},{types:[c]}]},join:{_func:this._functionJoin,_signature:[{types:[o]},{types:[p]}]},reverse:{_func:this._functionReverse,_signature:[{types:[o,i]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var n=this.functionTable[e];if(n===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,n._signature);return n._func.call(this,t)},_validateArgs:function(e,t,n){var r;if(n[n.length-1].variadic){if(t.length=0;i--){r+=n[i]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var n=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var n=this._interpreter;var r=e[0];var o=e[1];for(var i=0;i0){var t=this._getTypeName(e[0][0]);if(t===n){return Math.max.apply(Math,e[0])}else{var r=e[0];var o=r[0];for(var i=1;i0){var t=this._getTypeName(e[0][0]);if(t===n){return Math.min.apply(Math,e[0])}else{var r=e[0];var o=r[0];for(var i=1;io){return 1}else if(na){a=c;s=r[u]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var i=this.createKeyFunction(t,[n,o]);var a=Infinity;var s;var c;for(var u=0;u1){o[i]=parseList(a,{member:{}})}else{o[i]=parseXml(a[0],{})}}return o}e.exports=NodeXmlParser},function(e,t,n){"use strict";const r=n(534);e.exports=(e=>{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};if(r.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}t.path=r.null(e.search)?e.pathname:`${e.pathname}${e.search}`;return t})},,,,,,,function(e){e.exports=require("tls")},function(e,t,n){var r=n(395);var o={};var i=[];var a=50;var s="aws4_request";e.exports={createScope:function createScope(e,t,n){return[e.substr(0,8),t,n,s].join("/")},getSigningKey:function getSigningKey(e,t,n,c,u){var l=r.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var p=[l,t,n,c].join("_");u=u!==false;if(u&&p in o){return o[p]}var m=r.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var d=r.util.crypto.hmac(m,n,"buffer");var y=r.util.crypto.hmac(d,c,"buffer");var f=r.util.crypto.hmac(y,s,"buffer");if(u){o[p]=f;i.push(p);if(i.length>a){delete o[i.shift()]}}return f},emptyCache:function emptyCache(){o={};i=[]}}},,function(e,t,n){"use strict";const{URL:r}=n(835);const o=n(534);const i=n(433);const a=(e,...t)=>{for(const n of t){for(const[t,i]of Object.entries(n)){if(o.undefined(i)){continue}const n=e[t];if(o.urlInstance(n)&&(o.urlInstance(i)||o.string(i))){e[t]=new r(i,n)}else if(o.plainObject(i)){if(o.plainObject(n)){e[t]=a({},n,i)}else{e[t]=a({},i)}}else if(o.array(i)){e[t]=a([],i)}else{e[t]=i}}}return e};const s=(...e)=>{e=e.map(e=>e||{});const t=a({},...e);const n={};for(const e of i){n[e]=[]}for(const t of e){if(t.hooks){for(const e of i){n[e]=n[e].concat(t.hooks[e])}}}t.hooks=n;return t};const c=(e,t)=>{const n=e.map(e=>e.defaults.handler);const r=e.length-1;return{methods:t,options:s(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let o=-1;const i=e=>n[++o](e,o===r?t:i);return i(e)}}};e.exports=a;e.exports.options=s;e.exports.instances=c},,,,,function(e,t,n){var r=n(139);var o=n(722);function v4(e,t,n){var i=t&&n||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[i+s]=a[s]}}return t||o(a)}e.exports=v4},,function(e,t,n){var r=n(395);var o=r.util.inherit;var i=n(802);r.Response=o({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var n=this.request.service;var o=this.request.operation;try{t=n.paginationConfig(o,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var i=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var a=t.inputToken;if(typeof a==="string")a=[a];for(var s=0;s{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const t=o.createUnzip();const n=new r;i(e,n);t.on("error",e=>{if(e.code==="Z_BUF_ERROR"){n.end();return}n.emit("error",e)});e.pipe(t).pipe(n);return n})},function(e,t,n){var r=n(395).util;var o=n(413).Transform;var i=r.buffer.alloc;function EventMessageChunkerStream(e){o.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(o.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,n){var r=e.length;var o=0;while(o0){c[e.options.childkey]=l}l=c}else if(y){y[e.options.childkey]=y[e.options.childkey]||[];p={};for(s in l){if(!m.call(l,s))continue;p[s]=l[s]}y[e.options.childkey].push(p);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(y,u,l)}else{if(e.options.explicitRoot){d=l;l={};l[u]=d}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);n=function(e){return function(n){var o,i;i=r[r.length-1];if(i){i[t]+=n;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||n.replace(/\\n/g,"").trim()!=="")){i[e.options.childkey]=i[e.options.childkey]||[];o={"#name":"__text__"};o[t]=n;if(e.options.normalize){o[t]=o[t].replace(/\s{2,}/g," ").trim()}i[e.options.childkey].push(o)}return i}}}(this);this.saxParser.ontext=n;return this.saxParser.oncdata=function(e){return function(e){var t;t=n(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,n){var r;if(n!=null&&typeof n==="function"){this.on("end",function(e){this.reset();return n(null,e)});this.on("error",function(e){this.reset();return n(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;u(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(o.EventEmitter);t.parseString=function(e,n,r){var o,i,a;if(r!=null){if(typeof r==="function"){o=r}if(typeof n==="object"){i=n}}else{if(typeof n==="function"){o=n}i={}}a=new t.Parser(i);return a.parseString(e,o)}}).call(this)},,,function(e,t,n){var r=n(395);var o=r.util.stream.Stream;var i=r.util.stream.Transform;var a=r.util.stream.Readable;n(711);var s="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,o,i){var a=this;var c=e.endpoint;var u="";if(!t)t={};if(t.proxy){u=c.protocol+"//"+c.hostname;if(c.port!==80&&c.port!==443){u+=":"+c.port}c=new r.Endpoint(t.proxy)}var l=c.protocol==="https:";var p=l?n(211):n(605);var m={host:c.hostname,port:c.port,method:e.method,headers:e.headers,path:u+e.path};if(!t.agent){m.agent=this.getAgent(l,{keepAlive:process.env[s]==="1"?true:false})}r.util.update(m,t);delete m.proxy;delete m.timeout;var d=p.request(m,function(e){if(d.didCallback)return;o(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=d;d.didCallback=false;if(t.connectTimeout){var y;d.on("socket",function(e){if(e.connecting){y=setTimeout(function connectTimeout(){if(d.didCallback)return;d.didCallback=true;d.abort();i(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(y);y=null})}})}d.setTimeout(t.timeout||0,function(){if(d.didCallback)return;d.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";i(r.util.error(new Error(e),{code:"TimeoutError"}));d.abort()});d.on("error",function(){if(y){clearTimeout(y);y=null}if(d.didCallback)return;d.didCallback=true;i.apply(d,arguments)});var f=e.headers.Expect||e.headers.expect;if(f==="100-continue"){d.on("continue",function(){a.writeBody(d,e)})}else{this.writeBody(d,e)}return d},writeBody:function writeBody(e,t){var n=t.body;var r=parseInt(t.headers["Content-Length"],10);if(n instanceof o){var i=this.progressStream(e,r);if(i){n.pipe(i).pipe(e)}else{n.pipe(e)}}else if(n){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(n)}else{e.end()}},getAgent:function getAgent(e,t){var o=e?n(211):n(605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new o.Agent(r.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0"?false:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=o.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new o.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof i==="undefined"){return}var n=0;var r=new i;r._transform=function(r,o,i){if(r){n+=r.length;e.emit("sendProgress",{loaded:n,total:t})}i(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=a?2:1},,,,function(e,t,n){var r=n(960).IniLoader;e.exports.iniLoader=new r},,,,,,function(e,t,n){var r=n(953);var o=n(826);var i=o;i.v1=r;i.v4=o;e.exports=i},,,,,,function(e,t,n){var r=n(153);var o=n(395);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var n=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(n.endpoint&&n.endpoint.hostPrefix){var r=n.endpoint.hostPrefix;var o=expandHostPrefix(r,e.params,n.input);prependEndpointPrefix(e.httpRequest.endpoint,o);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var n=t.operations[e.operation];var o=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(n.name);return n.endpointDiscoveryRequired!=="NULL"||o===true}function expandHostPrefix(e,t,n){r.each(n.members,function(n,o){if(o.hostLabel===true){if(typeof t[n]!=="string"||t[n]===""){throw r.error(new Error,{message:"Parameter "+n+" should be a non-empty string.",code:"InvalidParameter"})}var i=new RegExp("\\{"+n+"\\}","g");e=e.replace(i,t[n])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var n=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!n.test(e)){throw o.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},,function(e,t,n){var r=n(395);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var n=0;var o=t.providers.slice(0);function resolveNext(e,i){if(!e&&i||n===o.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,i)});t.resolveCallbacks.length=0;return}var a=o[n++];if(typeof a==="function"){i=a.call()}else{i=a}if(i.get){i.get(function(e){resolveNext(e,e?null:i)})}else{resolveNext(null,i)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},,,,,,function(e,t,n){var r=n(153);var o=n(337);var i=n(806);var a=n(904).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var n=e.service.api;var r=n.targetPrefix+"."+n.operations[e.operation].name;var i=n.jsonVersion||"1.0";var s=n.operations[e.operation].input;var c=new o;if(i===1)i="1.0";t.body=c.build(e.params||{},s);t.headers["Content-Type"]="application/x-amz-json-"+i;t.headers["X-Amz-Target"]=r;a(e)}function extractError(e){var t={};var n=e.httpResponse;t.code=n.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(n.body.length>0){try{var o=JSON.parse(n.body.toString());if(o.__type||o.code){t.code=(o.__type||o.code).split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=o.message||o.Message||null}}catch(o){t.statusCode=n.statusCode;t.message=n.statusMessage}}else{t.statusCode=n.statusCode;t.message=n.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var n=e.request.service.api.operations[e.request.operation];var r=n.output||{};var o=new i;e.data=o.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},,,,function(e,t,n){"use strict";const r=n(614);const o=n(145);const i=n(534);const a=n(557);const s=n(584);const{HTTPError:c,ParseError:u,ReadError:l}=n(774);const{options:p}=n(821);const{reNormalize:m}=n(86);const d=e=>{const t=new r;const n=new a((n,r,a)=>{const y=s(e);a(y.abort);y.on("response",async a=>{t.emit("response",a);const s=i.null(e.encoding)?o.buffer(a):o(a,e);let f;try{f=await s}catch(t){r(new l(t,e));return}const h=e.followRedirect?299:399;a.body=f;try{for(const[t,n]of Object.entries(e.hooks.afterResponse)){a=await n(a,n=>{n=m(p(e,{...n,retry:0,throwHttpErrors:false}));n.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);return d(n)})}}catch(e){r(e);return}const{statusCode:N}=a;if(e.json&&a.body){try{a.body=JSON.parse(a.body)}catch(t){if(N>=200&&N<300){const n=new u(t,N,e,f);Object.defineProperty(n,"response",{value:a});r(n);return}}}if(N!==304&&(N<200||N>h)){const t=new c(a,e);Object.defineProperty(t,"response",{value:a});if(y.retry(t)===false){if(e.throwHttpErrors){r(t);return}n(a)}return}n(a)});y.once("error",r);["request","redirect","uploadProgress","downloadProgress"].forEach(e=>y.on(e,(...n)=>t.emit(e,...n)))});n.on=((e,r)=>{t.on(e,r);return n});return n};e.exports=d},,function(e){function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},function(e,t,n){(function(){var t,r,o=function(e,t){for(var n in t){if(i.call(t,n))e[n]=t[n]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},i={}.hasOwnProperty;r=n(855);e.exports=t=function(e){o(XMLComment,e);function XMLComment(e,t){XMLComment.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing comment text")}this.text=this.stringify.comment(t)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(e){return this.options.writer.set(e).comment(this)};return XMLComment}(r)}).call(this)},,,,function(e,t,n){var r=n(395);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(n){if(!n)t.expired=false;if(e)e(n)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var n=this;if(n.refreshCallbacks.push(e)===1){n.load(function onLoad(e){r.util.arrayEach(n.refreshCallbacks,function(n){if(t){n(e)}else{r.util.defer(function(){n(e)})}});n.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},,function(e,t,n){var r=n(395);r.util.update(r.EC2.prototype,{setupRequestListeners:function setupRequestListeners(e){e.removeListener("extractError",r.EventListeners.Query.EXTRACT_ERROR);e.addListener("extractError",this.extractError);if(e.operation==="copySnapshot"){e.onAsync("validate",this.buildCopySnapshotPresignedUrl)}},buildCopySnapshotPresignedUrl:function buildCopySnapshotPresignedUrl(e,t){if(e.params.PresignedUrl||e._subRequest){return t()}e.params=r.util.copy(e.params);e.params.DestinationRegion=e.service.config.region;var n=r.util.copy(e.service.config);delete n.endpoint;n.region=e.params.SourceRegion;var o=new e.service.constructor(n);var i=o[e.operation](e.params);i._subRequest=true;i.presign(function(n,r){if(n)t(n);else{e.params.PresignedUrl=r;t()}})},extractError:function extractError(e){var t=e.httpResponse;var n=(new r.XML.Parser).parse(t.body.toString()||"");if(n.Errors){e.error=r.util.error(new Error,{code:n.Errors.Error.Code,message:n.Errors.Error.Message})}else{e.error=r.util.error(new Error,{code:t.statusCode,message:null})}e.error.requestId=n.RequestID||null}})},,,,,function(e,t,n){var r=n(395);var o=r.util.inherit;var i=n(802);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var n=t.config.acceptors;var r=false;var o="retry";n.forEach(function(n){if(!r){var i=t.matchers[n.matcher];if(i&&i(e,n.expected,n.argument)){r=true;o=n.state}}});if(!r&&e.error)o="failure";if(o==="success"){t.setSuccess(e)}else{t.setError(e,o==="retry")}}r.ResourceWaiter=o({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,n){try{var r=i.search(e.data,n)}catch(e){return false}return i.strictDeepEqual(r,t)},pathAll:function(e,t,n){try{var r=i.search(e.data,n)}catch(e){return false}if(!Array.isArray(r))r=[r];var o=r.length;if(!o)return false;for(var a=0;a{let p;if(typeof t==="string"){p=normalizeUrlObject(o.parse(t));t={}}else if(t instanceof o.URL){p=normalizeUrlObject(o.parse(t.toString()));t={}}else{const[e,...n]=(t.path||"").split("?");const r=n.length>0?`?${n.join("?")}`:"";p=normalizeUrlObject({...t,pathname:e,search:r})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(p)};t.headers=u(t.headers);const m=new r;const d=i(o.format(p),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const y=`${t.method}:${d}`;let f=false;let h=false;const N=t=>{h=true;let r=false;let o;const i=new Promise(e=>{o=(()=>{if(!r){r=true;e()}})});const u=e=>{if(f&&!t.forceRefresh){e.status=e.statusCode;const n=s.fromObject(f.cachePolicy).revalidatedPolicy(t,e);if(!n.modified){const t=n.policy.responseHeaders();e=new c(f.statusCode,t,f.body,f.url);e.cachePolicy=n.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new s(t,e,t);e.fromCache=false}let o;if(t.cache&&e.cachePolicy.storable()){o=l(e);(async()=>{try{const n=a.buffer(e);await Promise.race([i,new Promise(t=>e.once("end",t))]);if(r){return}const o=await n;const s={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?f.statusCode:e.statusCode,body:o};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(y,s,c)}catch(e){m.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&f){(async()=>{try{await this.cache.delete(y)}catch(e){m.emit("error",new CacheableRequest.CacheError(e))}})()}m.emit("response",o||e);if(typeof n==="function"){n(o||e)}};try{const n=e(t,u);n.once("error",o);n.once("abort",o);m.emit("request",n)}catch(e){m.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):undefined;if(typeof t==="undefined"){return N(e)}const r=s.fromObject(t.cachePolicy);if(r.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=r.responseHeaders();const o=new c(t.statusCode,e,t.body,t.url);o.cachePolicy=r;o.fromCache=true;m.emit("response",o);if(typeof n==="function"){n(o)}}else{f=t;e.headers=r.revalidationHeaders(e);N(e)}};const r=e=>m.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",r);m.on("response",()=>this.cache.removeListener("error",r));try{await e(t)}catch(e){if(t.automaticFailover&&!h){N(t)}m.emit("error",new CacheableRequest.CacheError(e))}})();return m}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},,function(e,t,n){var r=n(965).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},,,function(e,t,n){var r=n(395);var o=r.util.inherit;var i="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[i];var n=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(n===r.Signers.V4){if(t>604800){var o="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:o,retryable:false})}e.httpRequest.headers[i]=t}else if(n===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[i]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var n=r.util.urlParse(e.httpRequest.path);var o={};if(n.search){o=r.util.queryStringParse(n.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");o["AWSAccessKeyId"]=a[0];o["Signature"]=a[1];r.util.each(e.httpRequest.headers,function(e,t){if(e===i)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete o[e];e=e.toLowerCase()}o[e]=t});delete e.httpRequest.headers[i];delete o["Authorization"];delete o["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var c=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=c;delete o["Expires"]}t.pathname=n.pathname;t.search=r.util.queryParamsToString(o)}r.Signers.Presign=o({sign:function sign(e,t,n){e.httpRequest.headers[i]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(n){e.build(function(){if(this.response.error)n(this.response.error);else{n(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},function(e,t,n){"use strict";const{Readable:r}=n(413);e.exports=(e=>new r({read(){this.push(e);this.push(null)}}))},function(e,t,n){var r=n(139);var o=n(722);var i;var a;var s=0;var c=0;function v1(e,t,n){var u=t&&n||0;var l=t||[];e=e||{};var p=e.node||i;var m=e.clockseq!==undefined?e.clockseq:a;if(p==null||m==null){var d=r();if(p==null){p=i=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]}if(m==null){m=a=(d[6]<<8|d[7])&16383}}var y=e.msecs!==undefined?e.msecs:(new Date).getTime();var f=e.nsecs!==undefined?e.nsecs:c+1;var h=y-s+(f-c)/1e4;if(h<0&&e.clockseq===undefined){m=m+1&16383}if((h<0||y>s)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=y;c=f;a=m;y+=122192928e5;var N=((y&268435455)*1e4+f)%4294967296;l[u++]=N>>>24&255;l[u++]=N>>>16&255;l[u++]=N>>>8&255;l[u++]=N&255;var g=y/4294967296*1e4&268435455;l[u++]=g>>>8&255;l[u++]=g&255;l[u++]=g>>>24&15|16;l[u++]=g>>>16&255;l[u++]=m>>>8|128;l[u++]=m&255;for(var b=0;b<6;++b){l[u+b]=p[b]}return t?t:o(l)}e.exports=v1},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=n(818);const o=(e,t)=>{let n;if(typeof t==="function"){const e=t;n={connect:e}}else{n=t}const o=typeof n.connect==="function";const i=typeof n.secureConnect==="function";const a=typeof n.close==="function";const s=()=>{if(o){n.connect()}if(e instanceof r.TLSSocket&&i){if(e.authorized){n.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",n.secureConnect)}}if(a){e.once("close",n.close)}};if(e.writable&&!e.connecting){s()}else if(e.connecting){e.once("connect",s)}else if(e.destroyed&&a){n.close(e._hadError)}};t.default=o;e.exports=o;e.exports.default=o},,function(e,t,n){var r=n(395);var o=n(87);var i=n(622);function parseFile(e,t){var n=r.util.ini.parse(r.util.readFileSync(e));var o={};Object.keys(n).forEach(function(e){var r=n[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(o,e,{value:r,enumerable:true})});return o}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var n=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[n]){var r=this.parseFile(n,t);Object.defineProperty(this.resolvedProfiles,n,{value:r})}return this.resolvedProfiles[n]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return i.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof o.homedir==="function"){return o.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},,,,function(e,t,n){var r=n(682);var o=n(153);var i=o.property;var a=o.memoizedProperty;function Operation(e,t,n){var o=this;n=n||{};i(this,"name",t.name||e);i(this,"api",n.api,false);t.http=t.http||{};i(this,"endpoint",t.endpoint);i(this,"httpMethod",t.http.method||"POST");i(this,"httpPath",t.http.requestUri||"/");i(this,"authtype",t.authtype||"");i(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");a(this,"input",function(){if(!t.input){return new r.create({type:"structure"},n)}return r.create(t.input,n)});a(this,"output",function(){if(!t.output){return new r.create({type:"structure"},n)}return r.create(t.output,n)});a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var o=0;o/g,">")}e.exports={escapeElement:escapeElement}},function(e,t,n){"use strict";const{PassThrough:r}=n(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:n}=e;const o=n==="buffer";let i=false;if(t){i=!(n||o)}else{n=n||"utf8"}if(o){n=null}let a=0;const s=[];const c=new r({objectMode:i});if(n){c.setEncoding(n)}c.on("data",e=>{s.push(e);if(i){a=s.length}else{a+=e.length}});c.getBufferedValue=(()=>{if(t){return s}return o?Buffer.concat(s,a):s.join("")});c.getBufferedLength=(()=>a);return c})},,,,,,,,,,,function(e,t,n){var r=n(395);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,n){this.errors=[];this.validateMember(e,t||{},n||"params");if(this.errors.length>1){var o=this.errors.join("\n* ");o="There were "+this.errors.length+" validation errors:\n* "+o;throw r.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,n){this.validateType(t,n,["object"],"structure");var r;for(var o=0;e.required&&o= 1,"+' but found "'+t+'" for '+n)}}},validatePattern:function validatePattern(e,t,n){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+n)}}},validateRange:function validateRange(e,t,n,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+n)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+n)}}},validateEnum:function validateRange(e,t,n){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+n)}}},validateType:function validateType(e,t,n,o){if(e===null||e===undefined)return false;var i=false;for(var a=0;a0){o.arrayEach(n.required,function(r){var o=n.members[r];if(o.endpointDiscoveryId===true){var i=o.isLocationName?o.name:r;e[i]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],o)}})}}function marshallCustomIdentifiers(e,t){var n={};marshallCustomIdentifiersHelper(n,e.params,t);return n}function optionalDiscoverEndpoint(e){var t=e.service;var n=t.api;var i=n.operations?n.operations[e.operation]:undefined;var a=i?i.input:undefined;var s=marshallCustomIdentifiers(e,a);var c=getCacheKey(e);if(Object.keys(s).length>0){c=o.update(c,s);if(i)c.operation=i.name}var u=r.endpointCache.get(c);if(u&&u.length===1&&u[0].Address===""){return}else if(u&&u.length>0){e.httpRequest.updateEndpoint(u[0].Address)}else{var l=t.makeRequest(n.endpointOperation,{Operation:i.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(c,t.Endpoints)}else if(e){r.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var n=e.service;var i=n.api;var s=i.operations?i.operations[e.operation]:undefined;var c=s?s.input:undefined;var u=marshallCustomIdentifiers(e,c);var l=getCacheKey(e);if(Object.keys(u).length>0){l=o.update(l,u);if(s)l.operation=s.name}var p=r.EndpointCache.getKeyString(l);var m=r.endpointCache.get(p);if(m&&m.length===1&&m[0].Address===""){if(!a[p])a[p]=[];a[p].push({request:e,callback:t});return}else if(m&&m.length>0){e.httpRequest.updateEndpoint(m[0].Address);t()}else{var d=n.makeRequest(i.endpointOperation,{Operation:s.name,Identifiers:u});d.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(d);r.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:60}]);d.send(function(n,i){if(n){var s={code:"EndpointDiscoveryException",message:"Request cannot be fulfilled without specifying an endpoint",retryable:false};e.response.error=o.error(n,s);r.endpointCache.remove(l);if(a[p]){var c=a[p];o.arrayEach(c,function(e){e.request.response.error=o.error(n,s);e.callback()});delete a[p]}}else if(i){r.endpointCache.put(p,i.Endpoints);e.httpRequest.updateEndpoint(i.Endpoints[0].Address);if(a[p]){var c=a[p];o.arrayEach(c,function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address);e.callback()});delete a[p]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var n=t.apiVersion;if(n&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=n}}function invalidateCachedEndpoints(e){var t=e.error;var n=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||n.statusCode===421)){var i=e.request;var a=i.service.api.operations||{};var s=a[i.operation]?a[i.operation].input:undefined;var c=marshallCustomIdentifiers(i,s);var u=getCacheKey(i);if(Object.keys(c).length>0){u=o.update(u,c);if(a[i.operation])u.operation=a[i.operation].name}r.endpointCache.remove(u)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw o.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function isEndpointDiscoveryEnabled(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled===true)return true;if(o.isBrowser())return false;for(var n=0;n item.trim()); - const port = parseInt(core.getInput('port', { required: false })); - const description = core.getInput('description', { required: false }); - - AWS.config.update({ - region, - accessKeyId, - secretAccessKey, - }); - const ec2 = new EC2(); - - const result = await ec2.describeSecurityGroups({ - GroupIds: groupIds, - }).promise(); - - for (const group of result.SecurityGroups) { - const ruleByPort = group.IpPermissions - .find(permission => permission.FromPort === port); - - if (ruleByPort) { - const ipByDesc = ruleByPort.IpRanges - .find(ip => ip.Description === description); - - if (ipByDesc) { - await ec2.revokeSecurityGroupIngress({ - GroupId: group.GroupId, - CidrIp: ipByDesc.CidrIp, - IpProtocol: 'tcp', - FromPort: port, - ToPort: port, - }).promise(); - } - } - - const myPublicIp = await publicIp.v4(); - await ec2.authorizeSecurityGroupIngress({ - GroupId: group.GroupId, - IpPermissions: [{ - IpProtocol: 'tcp', - FromPort: port, - ToPort: port, - IpRanges: [{ - CidrIp: `${myPublicIp}/32`, - Description: description, - }], - }]  - }).promise(); - - console.log(`The IP ${myPublicIp} is added`); - } - - } catch (error) { - core.setFailed(error.message); - } -} - -run(); diff --git a/package-lock.json b/package-lock.json index 0b998db..d0b9abd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,10 +22,16 @@ "defer-to-connect": "^1.0.1" } }, + "@zeit/ncc": { + "version": "0.22.2", + "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.22.2.tgz", + "integrity": "sha512-LGW5RPIwulh+fyKiMTgbIEbdc/hdf/4+U5B1WbT/We0jweHoywDbk9hi+3hNjSzQNShGumP72zgc6PHEUG5syg==", + "dev": true + }, "aws-sdk": { - "version": "2.677.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.677.0.tgz", - "integrity": "sha512-vzQWRh1sgM0HRNmbLXgxnFPySLQrtSNgs9dNQsksGiYrJtf1wYjJSh4UHhekeyMuorQqef3m4AY0vFWsWyZSMg==", + "version": "2.680.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.680.0.tgz", + "integrity": "sha512-sq19d5cNrgtcoMQc8GlwRrN11zT5FVxc+ZHL9P6lNAlGA3av3dwpt6+4smvhHpPzpzT0fG5A7HMczgjbLaLUDA==", "requires": { "buffer": "4.9.1", "events": "1.1.1", diff --git a/package.json b/package.json index 0cab4a2..202e73b 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,10 @@ "name": "aws-security-group-add-ip", "version": "1.0.0", "description": "Add IP address to your AWS security group", - "main": "index.js", + "main": "src/main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "package": "ncc build index.js -m -o dist" + "package": "ncc build src/main.js -m -o dist/main && ncc build src/cleanup.js -m -o dist/cleanup" }, "keywords": [ "aws", @@ -19,5 +19,8 @@ "@actions/core": "^1.2.4", "aws-sdk": "^2.670.0", "public-ip": "^4.0.1" + }, + "devDependencies": { + "@zeit/ncc": "^0.22.2" } } diff --git a/src/cleanup.js b/src/cleanup.js new file mode 100644 index 0000000..4a2782d --- /dev/null +++ b/src/cleanup.js @@ -0,0 +1,25 @@ +const publicIp = require('public-ip'); + +const config = require('./config'); + +async function run() { + try { + const myPublicIp = await publicIp.v4(); + + for (const groupId of config.groupIds) { + await config.ec2.revokeSecurityGroupIngress({ + GroupId: groupId, + CidrIp: `${myPublicIp}/32`, + IpProtocol: 'tcp', + FromPort: config.port, + ToPort: config.port, + }).promise(); + } + + console.log(`The IP ${myPublicIp} is removed`); + } catch (error) { + core.setFailed(error.message); + } +} + +run(); diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..82c235f --- /dev/null +++ b/src/config.js @@ -0,0 +1,30 @@ +const core = require('@actions/core'); +const AWS = require('aws-sdk/global'); +const EC2 = require('aws-sdk/clients/ec2'); + +const region = core.getInput('aws-region', { required: true }); +const accessKeyId = core.getInput('aws-access-key-id', { required: true }); +const secretAccessKey = core.getInput('aws-secret-access-key', { required: true }); +const groupIds = core + .getInput('aws-security-group-id', { required: true }) + .split(',') + .map(item => item.trim()); +const port = parseInt(core.getInput('port', { required: false })); +const description = core.getInput('description', { required: false }); + +AWS.config.update({ + region, + accessKeyId, + secretAccessKey, +}); +const ec2 = new EC2(); + +module.exports = { + region, + accessKeyId, + secretAccessKey, + groupIds, + port, + description, + ec2, +}; diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..1bacdcc --- /dev/null +++ b/src/main.js @@ -0,0 +1,53 @@ +const core = require('@actions/core'); +const publicIp = require('public-ip'); + +const config = require('./config'); + +async function run() { + try { + const result = await config.ec2.describeSecurityGroups({ + GroupIds: config.groupIds, + }).promise(); + + for (const group of result.SecurityGroups) { + const ruleByPort = group.IpPermissions + .find(permission => permission.FromPort === config.port); + + if (ruleByPort) { + const ipByDesc = ruleByPort.IpRanges + .find(ip => ip.Description === config.description); + + if (ipByDesc) { + await config.ec2.revokeSecurityGroupIngress({ + GroupId: group.GroupId, + CidrIp: ipByDesc.CidrIp, + IpProtocol: 'tcp', + FromPort: config.port, + ToPort: config.port, + }).promise(); + } + } + + const myPublicIp = await publicIp.v4(); + await config.ec2.authorizeSecurityGroupIngress({ + GroupId: group.GroupId, + IpPermissions: [{ + IpProtocol: 'tcp', + FromPort: config.port, + ToPort: config.port, + IpRanges: [{ + CidrIp: `${myPublicIp}/32`, + Description: config.description, + }], + }]  + }).promise(); + + console.log(`The IP ${myPublicIp} is added`); + } + + } catch (error) { + core.setFailed(error.message); + } +} + +run();