/*! For license information please see main.a8f75a45fb457ff10a69.bundle.js.LICENSE.txt */ (()=>{var e,t,r={93379:e=>{var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,r){return"number"!=typeof r||t[e]?r:r+"px"}},70254:e=>{e.exports=function(e){function t(a){if(r[a])return r[a].exports;var n=r[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=r)},function(e,t,r){e.exports=!r(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var a=r(32)("wks"),n=r(9),i=r(0).Symbol,o="function"==typeof i;(e.exports=function(e){return a[e]||(a[e]=o&&i[e]||(o?i:n)("Symbol."+e))}).store=a},function(e,t,r){var a=r(0),n=r(2),i=r(8),o=r(22),s=r(10),u=function(e,t,r){var p,c,m,l,d=e&u.F,y=e&u.G,b=e&u.S,h=e&u.P,g=e&u.B,f=y?a:b?a[t]||(a[t]={}):(a[t]||{}).prototype,S=y?n:n[t]||(n[t]={}),N=S.prototype||(S.prototype={});for(p in y&&(r=t),r)m=((c=!d&&f&&void 0!==f[p])?f:r)[p],l=g&&c?s(m,a):h&&"function"==typeof m?s(Function.call,m):m,f&&o(f,p,m,e&u.U),S[p]!=m&&i(S,p,l),h&&N[p]!=m&&(N[p]=m)};a.core=n,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){var a=r(16),n=r(21);e.exports=r(3)?function(e,t,r){return a.f(e,t,n(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){var r=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+a).toString(36))}},function(e,t,r){var a=r(24);e.exports=function(e,t,r){if(a(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,n){return e.call(t,r,a,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var a=r(28),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),a=e.name||"",n=e.type||"",i=n.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim();return"."===t.charAt(0)?a.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?i===t.replace(/\/.*$/,""):n===t}))}return!0},r(14),r(34)},function(e,t,r){r(15),e.exports=r(2).Array.some},function(e,t,r){"use strict";var a=r(7),n=r(25)(3);a(a.P+a.F*!r(33)([].some,!0),"Array",{some:function(e){return n(this,e,arguments[1])}})},function(e,t,r){var a=r(17),n=r(18),i=r(20),o=Object.defineProperty;t.f=r(3)?Object.defineProperty:function(e,t,r){if(a(e),t=i(t,!0),a(r),n)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var a=r(1);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){e.exports=!r(3)&&!r(4)((function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var a=r(1),n=r(0).document,i=a(n)&&a(n.createElement);e.exports=function(e){return i?n.createElement(e):{}}},function(e,t,r){var a=r(1);e.exports=function(e,t){if(!a(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!a(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!a(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!a(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var a=r(0),n=r(8),i=r(23),o=r(9)("src"),s=Function.toString,u=(""+s).split("toString");r(2).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var p="function"==typeof r;p&&(i(r,"name")||n(r,"name",t)),e[t]!==r&&(p&&(i(r,o)||n(r,o,e[t]?""+e[t]:u.join(String(t)))),e===a?e[t]=r:s?e[t]?e[t]=r:n(e,t,r):(delete e[t],n(e,t,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var a=r(10),n=r(26),i=r(27),o=r(12),s=r(29);e.exports=function(e,t){var r=1==e,u=2==e,p=3==e,c=4==e,m=6==e,l=5==e||m,d=t||s;return function(t,s,y){for(var b,h,g=i(t),f=n(g),S=a(s,y,3),N=o(f.length),I=0,v=r?d(t,N):u?d(t,0):void 0;N>I;I++)if((l||I in f)&&(h=S(b=f[I],I,g),e))if(r)v[I]=h;else if(h)switch(e){case 3:return!0;case 5:return b;case 6:return I;case 2:v.push(b)}else if(c)return!1;return m?-1:p||c?c:v}}},function(e,t,r){var a=r(5);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,r){var a=r(11);e.exports=function(e){return Object(a(e))}},function(e,t){var r=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:r)(e)}},function(e,t,r){var a=r(30);e.exports=function(e,t){return new(a(e))(t)}},function(e,t,r){var a=r(1),n=r(31),i=r(6)("species");e.exports=function(e){var t;return n(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!n(t.prototype)||(t=void 0),a(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,r){var a=r(5);e.exports=Array.isArray||function(e){return"Array"==a(e)}},function(e,t,r){var a=r(0),n=a["__core-js_shared__"]||(a["__core-js_shared__"]={});e.exports=function(e){return n[e]||(n[e]={})}},function(e,t,r){"use strict";var a=r(4);e.exports=function(e,t){return!!e&&a((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,r){r(35),e.exports=r(2).String.endsWith},function(e,t,r){"use strict";var a=r(7),n=r(12),i=r(36),o="".endsWith;a(a.P+a.F*r(38)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,a=n(t.length),s=void 0===r?a:Math.min(n(r),a),u=String(e);return o?o.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,r){var a=r(37),n=r(11);e.exports=function(e,t,r){if(a(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(n(e))}},function(e,t,r){var a=r(1),n=r(5),i=r(6)("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==n(e))}},function(e,t,r){var a=r(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,!"/./"[e](t)}catch(e){}}return!0}}])},64653:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.acm={},a.ACM=n.defineService("acm",["2015-12-08"]),Object.defineProperty(i.services.acm,"2015-12-08",{get:function(){var e=r(34662);return e.paginators=r(42680).o,e.waiters=r(85678).V,e},enumerable:!0,configurable:!0}),e.exports=a.ACM},43289:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.apigateway={},a.APIGateway=n.defineService("apigateway",["2015-07-09"]),r(53370),Object.defineProperty(i.services.apigateway,"2015-07-09",{get:function(){var e=r(59463);return e.paginators=r(25878).o,e},enumerable:!0,configurable:!0}),e.exports=a.APIGateway},36097:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.applicationautoscaling={},a.ApplicationAutoScaling=n.defineService("applicationautoscaling",["2016-02-06"]),Object.defineProperty(i.services.applicationautoscaling,"2016-02-06",{get:function(){var e=r(47320);return e.paginators=r(40322).o,e},enumerable:!0,configurable:!0}),e.exports=a.ApplicationAutoScaling},71942:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.athena={},a.Athena=n.defineService("athena",["2017-05-18"]),Object.defineProperty(i.services.athena,"2017-05-18",{get:function(){var e=r(28680);return e.paginators=r(44417).o,e},enumerable:!0,configurable:!0}),e.exports=a.Athena},37376:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.autoscaling={},a.AutoScaling=n.defineService("autoscaling",["2011-01-01"]),Object.defineProperty(i.services.autoscaling,"2011-01-01",{get:function(){var e=r(55394);return e.paginators=r(81436).o,e},enumerable:!0,configurable:!0}),e.exports=a.AutoScaling},84047:(e,t,r)=>{r(17321),e.exports={ACM:r(64653),APIGateway:r(43289),ApplicationAutoScaling:r(36097),AutoScaling:r(37376),CloudFormation:r(45107),CloudFront:r(94924),CloudHSM:r(94508),CloudTrail:r(95473),CloudWatch:r(4352),CloudWatchEvents:r(30552),CloudWatchLogs:r(60867),CodeBuild:r(61668),CodeCommit:r(68101),CodeDeploy:r(39529),CodePipeline:r(339),CognitoIdentity:r(96105),CognitoIdentityServiceProvider:r(1071),CognitoSync:r(97478),ConfigService:r(6269),CUR:r(75453),DeviceFarm:r(79162),DirectConnect:r(15147),DynamoDB:r(76254),DynamoDBStreams:r(40341),EC2:r(67163),ECR:r(650),ECS:r(72169),EFS:r(43556),ElastiCache:r(11775),ElasticBeanstalk:r(20061),ELB:r(25838),ELBv2:r(24359),EMR:r(35351),ElasticTranscoder:r(71621),Firehose:r(98405),GameLift:r(3940),IAM:r(96559),Inspector:r(32456),Iot:r(999),IotData:r(44030),Kinesis:r(96814),KMS:r(78),Lambda:r(44655),LexRuntime:r(25718),MachineLearning:r(61744),MarketplaceCommerceAnalytics:r(64910),MTurk:r(93978),MobileAnalytics:r(9382),OpsWorks:r(16974),Polly:r(49756),RDS:r(83189),Redshift:r(21615),Rekognition:r(93487),Route53:r(95730),Route53Domains:r(58100),S3:r(34766),ServiceCatalog:r(68641),SES:r(16410),SNS:r(33561),SQS:r(81314),SSM:r(61170),StorageGateway:r(94060),STS:r(93568),XRay:r(44501),WAF:r(95474),WorkDocs:r(93143),LexModelBuildingService:r(3018),Athena:r(71942),CloudHSMV2:r(99699),Pricing:r(75661),CostExplorer:r(59310),MediaStoreData:r(50641),Comprehend:r(42054),KinesisVideoArchivedMedia:r(27629),KinesisVideoMedia:r(40545),KinesisVideo:r(69670),Translate:r(89678),ResourceGroups:r(26139),Connect:r(65261),SecretsManager:r(29639),IoTAnalytics:r(38276),ComprehendMedical:r(98525),Personalize:r(59004),PersonalizeEvents:r(65120),PersonalizeRuntime:r(49574),ForecastService:r(16349),ForecastQueryService:r(20862),KinesisVideoSignalingChannels:r(618),Location:r(39111),LexRuntimeV2:r(79739)}},45107:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudformation={},a.CloudFormation=n.defineService("cloudformation",["2010-05-15"]),Object.defineProperty(i.services.cloudformation,"2010-05-15",{get:function(){var e=r(31930);return e.paginators=r(10611).o,e.waiters=r(53732).V,e},enumerable:!0,configurable:!0}),e.exports=a.CloudFormation},94924:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudfront={},a.CloudFront=n.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26","2019-03-26*","2020-05-31"]),r(67781),Object.defineProperty(i.services.cloudfront,"2016-11-25",{get:function(){var e=r(64908);return e.paginators=r(57305).o,e.waiters=r(71106).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.cloudfront,"2017-03-25",{get:function(){var e=r(76944);return e.paginators=r(83654).o,e.waiters=r(83406).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.cloudfront,"2017-10-30",{get:function(){var e=r(80198);return e.paginators=r(52915).o,e.waiters=r(13399).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.cloudfront,"2018-06-18",{get:function(){var e=r(29549);return e.paginators=r(7805).o,e.waiters=r(2353).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.cloudfront,"2018-11-05",{get:function(){var e=r(22253);return e.paginators=r(29533).o,e.waiters=r(36883).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.cloudfront,"2019-03-26",{get:function(){var e=r(29574);return e.paginators=r(35556).o,e.waiters=r(97142).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.cloudfront,"2020-05-31",{get:function(){var e=r(66310);return e.paginators=r(48335).o,e.waiters=r(83517).V,e},enumerable:!0,configurable:!0}),e.exports=a.CloudFront},94508:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudhsm={},a.CloudHSM=n.defineService("cloudhsm",["2014-05-30"]),Object.defineProperty(i.services.cloudhsm,"2014-05-30",{get:function(){var e=r(18637);return e.paginators=r(18988).o,e},enumerable:!0,configurable:!0}),e.exports=a.CloudHSM},99699:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudhsmv2={},a.CloudHSMV2=n.defineService("cloudhsmv2",["2017-04-28"]),Object.defineProperty(i.services.cloudhsmv2,"2017-04-28",{get:function(){var e=r(90554);return e.paginators=r(77334).o,e},enumerable:!0,configurable:!0}),e.exports=a.CloudHSMV2},95473:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudtrail={},a.CloudTrail=n.defineService("cloudtrail",["2013-11-01"]),Object.defineProperty(i.services.cloudtrail,"2013-11-01",{get:function(){var e=r(11506);return e.paginators=r(27523).o,e},enumerable:!0,configurable:!0}),e.exports=a.CloudTrail},4352:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudwatch={},a.CloudWatch=n.defineService("cloudwatch",["2010-08-01"]),Object.defineProperty(i.services.cloudwatch,"2010-08-01",{get:function(){var e=r(16363);return e.paginators=r(46675).o,e.waiters=r(21466).V,e},enumerable:!0,configurable:!0}),e.exports=a.CloudWatch},30552:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudwatchevents={},a.CloudWatchEvents=n.defineService("cloudwatchevents",["2014-02-03*","2015-10-07"]),Object.defineProperty(i.services.cloudwatchevents,"2015-10-07",{get:function(){var e=r(40299);return e.paginators=r(54031).o,e},enumerable:!0,configurable:!0}),e.exports=a.CloudWatchEvents},60867:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cloudwatchlogs={},a.CloudWatchLogs=n.defineService("cloudwatchlogs",["2014-03-28"]),Object.defineProperty(i.services.cloudwatchlogs,"2014-03-28",{get:function(){var e=r(73044);return e.paginators=r(15472).o,e},enumerable:!0,configurable:!0}),e.exports=a.CloudWatchLogs},61668:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.codebuild={},a.CodeBuild=n.defineService("codebuild",["2016-10-06"]),Object.defineProperty(i.services.codebuild,"2016-10-06",{get:function(){var e=r(40893);return e.paginators=r(23010).o,e},enumerable:!0,configurable:!0}),e.exports=a.CodeBuild},68101:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.codecommit={},a.CodeCommit=n.defineService("codecommit",["2015-04-13"]),Object.defineProperty(i.services.codecommit,"2015-04-13",{get:function(){var e=r(57144);return e.paginators=r(62599).o,e},enumerable:!0,configurable:!0}),e.exports=a.CodeCommit},39529:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.codedeploy={},a.CodeDeploy=n.defineService("codedeploy",["2014-10-06"]),Object.defineProperty(i.services.codedeploy,"2014-10-06",{get:function(){var e=r(10967);return e.paginators=r(1917).o,e.waiters=r(52416).V,e},enumerable:!0,configurable:!0}),e.exports=a.CodeDeploy},339:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.codepipeline={},a.CodePipeline=n.defineService("codepipeline",["2015-07-09"]),Object.defineProperty(i.services.codepipeline,"2015-07-09",{get:function(){var e=r(4039);return e.paginators=r(78953).o,e},enumerable:!0,configurable:!0}),e.exports=a.CodePipeline},96105:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cognitoidentity={},a.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(i.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(57377);return e.paginators=r(85010).o,e},enumerable:!0,configurable:!0}),e.exports=a.CognitoIdentity},1071:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cognitoidentityserviceprovider={},a.CognitoIdentityServiceProvider=n.defineService("cognitoidentityserviceprovider",["2016-04-18"]),Object.defineProperty(i.services.cognitoidentityserviceprovider,"2016-04-18",{get:function(){var e=r(53166);return e.paginators=r(17149).o,e},enumerable:!0,configurable:!0}),e.exports=a.CognitoIdentityServiceProvider},97478:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cognitosync={},a.CognitoSync=n.defineService("cognitosync",["2014-06-30"]),Object.defineProperty(i.services.cognitosync,"2014-06-30",{get:function(){var e=r(29128);return e.paginators=r(5865).o,e},enumerable:!0,configurable:!0}),e.exports=a.CognitoSync},42054:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.comprehend={},a.Comprehend=n.defineService("comprehend",["2017-11-27"]),Object.defineProperty(i.services.comprehend,"2017-11-27",{get:function(){var e=r(24433);return e.paginators=r(82518).o,e},enumerable:!0,configurable:!0}),e.exports=a.Comprehend},98525:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.comprehendmedical={},a.ComprehendMedical=n.defineService("comprehendmedical",["2018-10-30"]),Object.defineProperty(i.services.comprehendmedical,"2018-10-30",{get:function(){var e=r(96649);return e.paginators=r(43172).o,e},enumerable:!0,configurable:!0}),e.exports=a.ComprehendMedical},6269:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.configservice={},a.ConfigService=n.defineService("configservice",["2014-11-12"]),Object.defineProperty(i.services.configservice,"2014-11-12",{get:function(){var e=r(47124);return e.paginators=r(85980).o,e},enumerable:!0,configurable:!0}),e.exports=a.ConfigService},65261:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.connect={},a.Connect=n.defineService("connect",["2017-08-08"]),Object.defineProperty(i.services.connect,"2017-08-08",{get:function(){var e=r(54511);return e.paginators=r(19742).o,e},enumerable:!0,configurable:!0}),e.exports=a.Connect},59310:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.costexplorer={},a.CostExplorer=n.defineService("costexplorer",["2017-10-25"]),Object.defineProperty(i.services.costexplorer,"2017-10-25",{get:function(){var e=r(4060);return e.paginators=r(75642).o,e},enumerable:!0,configurable:!0}),e.exports=a.CostExplorer},75453:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.cur={},a.CUR=n.defineService("cur",["2017-01-06"]),Object.defineProperty(i.services.cur,"2017-01-06",{get:function(){var e=r(46858);return e.paginators=r(40528).o,e},enumerable:!0,configurable:!0}),e.exports=a.CUR},79162:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.devicefarm={},a.DeviceFarm=n.defineService("devicefarm",["2015-06-23"]),Object.defineProperty(i.services.devicefarm,"2015-06-23",{get:function(){var e=r(34023);return e.paginators=r(37161).o,e},enumerable:!0,configurable:!0}),e.exports=a.DeviceFarm},15147:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.directconnect={},a.DirectConnect=n.defineService("directconnect",["2012-10-25"]),Object.defineProperty(i.services.directconnect,"2012-10-25",{get:function(){var e=r(45125);return e.paginators=r(26404).o,e},enumerable:!0,configurable:!0}),e.exports=a.DirectConnect},76254:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.dynamodb={},a.DynamoDB=n.defineService("dynamodb",["2011-12-05","2012-08-10"]),r(98637),Object.defineProperty(i.services.dynamodb,"2011-12-05",{get:function(){var e=r(46148);return e.paginators=r(86884).o,e.waiters=r(24864).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.dynamodb,"2012-08-10",{get:function(){var e=r(54047);return e.paginators=r(30482).o,e.waiters=r(48411).V,e},enumerable:!0,configurable:!0}),e.exports=a.DynamoDB},40341:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.dynamodbstreams={},a.DynamoDBStreams=n.defineService("dynamodbstreams",["2012-08-10"]),Object.defineProperty(i.services.dynamodbstreams,"2012-08-10",{get:function(){var e=r(26098);return e.paginators=r(40549).o,e},enumerable:!0,configurable:!0}),e.exports=a.DynamoDBStreams},67163:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.ec2={},a.EC2=n.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"]),r(56914),Object.defineProperty(i.services.ec2,"2016-11-15",{get:function(){var e=r(2658);return e.paginators=r(82477).o,e.waiters=r(19153).V,e},enumerable:!0,configurable:!0}),e.exports=a.EC2},650:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.ecr={},a.ECR=n.defineService("ecr",["2015-09-21"]),Object.defineProperty(i.services.ecr,"2015-09-21",{get:function(){var e=r(92405);return e.paginators=r(25504).o,e.waiters=r(78925).V,e},enumerable:!0,configurable:!0}),e.exports=a.ECR},72169:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.ecs={},a.ECS=n.defineService("ecs",["2014-11-13"]),Object.defineProperty(i.services.ecs,"2014-11-13",{get:function(){var e=r(44208);return e.paginators=r(15738).o,e.waiters=r(1299).V,e},enumerable:!0,configurable:!0}),e.exports=a.ECS},43556:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.efs={},a.EFS=n.defineService("efs",["2015-02-01"]),Object.defineProperty(i.services.efs,"2015-02-01",{get:function(){var e=r(54784);return e.paginators=r(40174).o,e},enumerable:!0,configurable:!0}),e.exports=a.EFS},11775:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.elasticache={},a.ElastiCache=n.defineService("elasticache",["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*","2015-02-02"]),Object.defineProperty(i.services.elasticache,"2015-02-02",{get:function(){var e=r(58426);return e.paginators=r(79559).o,e.waiters=r(29787).V,e},enumerable:!0,configurable:!0}),e.exports=a.ElastiCache},20061:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.elasticbeanstalk={},a.ElasticBeanstalk=n.defineService("elasticbeanstalk",["2010-12-01"]),Object.defineProperty(i.services.elasticbeanstalk,"2010-12-01",{get:function(){var e=r(72508);return e.paginators=r(72305).o,e.waiters=r(62534).V,e},enumerable:!0,configurable:!0}),e.exports=a.ElasticBeanstalk},71621:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.elastictranscoder={},a.ElasticTranscoder=n.defineService("elastictranscoder",["2012-09-25"]),Object.defineProperty(i.services.elastictranscoder,"2012-09-25",{get:function(){var e=r(23463);return e.paginators=r(36121).o,e.waiters=r(59345).V,e},enumerable:!0,configurable:!0}),e.exports=a.ElasticTranscoder},25838:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.elb={},a.ELB=n.defineService("elb",["2012-06-01"]),Object.defineProperty(i.services.elb,"2012-06-01",{get:function(){var e=r(66258);return e.paginators=r(77372).o,e.waiters=r(56717).V,e},enumerable:!0,configurable:!0}),e.exports=a.ELB},24359:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.elbv2={},a.ELBv2=n.defineService("elbv2",["2015-12-01"]),Object.defineProperty(i.services.elbv2,"2015-12-01",{get:function(){var e=r(42628);return e.paginators=r(12274).o,e.waiters=r(56106).V,e},enumerable:!0,configurable:!0}),e.exports=a.ELBv2},35351:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.emr={},a.EMR=n.defineService("emr",["2009-03-31"]),Object.defineProperty(i.services.emr,"2009-03-31",{get:function(){var e=r(91298);return e.paginators=r(62965).o,e.waiters=r(86792).V,e},enumerable:!0,configurable:!0}),e.exports=a.EMR},98405:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.firehose={},a.Firehose=n.defineService("firehose",["2015-08-04"]),Object.defineProperty(i.services.firehose,"2015-08-04",{get:function(){var e=r(48886);return e.paginators=r(47400).o,e},enumerable:!0,configurable:!0}),e.exports=a.Firehose},20862:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.forecastqueryservice={},a.ForecastQueryService=n.defineService("forecastqueryservice",["2018-06-26"]),Object.defineProperty(i.services.forecastqueryservice,"2018-06-26",{get:function(){var e=r(23865);return e.paginators=r(98135).o,e},enumerable:!0,configurable:!0}),e.exports=a.ForecastQueryService},16349:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.forecastservice={},a.ForecastService=n.defineService("forecastservice",["2018-06-26"]),Object.defineProperty(i.services.forecastservice,"2018-06-26",{get:function(){var e=r(6468);return e.paginators=r(45338).o,e},enumerable:!0,configurable:!0}),e.exports=a.ForecastService},3940:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.gamelift={},a.GameLift=n.defineService("gamelift",["2015-10-01"]),Object.defineProperty(i.services.gamelift,"2015-10-01",{get:function(){var e=r(69257);return e.paginators=r(88381).o,e},enumerable:!0,configurable:!0}),e.exports=a.GameLift},96559:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.iam={},a.IAM=n.defineService("iam",["2010-05-08"]),Object.defineProperty(i.services.iam,"2010-05-08",{get:function(){var e=r(27041);return e.paginators=r(97583).o,e.waiters=r(37757).V,e},enumerable:!0,configurable:!0}),e.exports=a.IAM},32456:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.inspector={},a.Inspector=n.defineService("inspector",["2015-08-18*","2016-02-16"]),Object.defineProperty(i.services.inspector,"2016-02-16",{get:function(){var e=r(71649);return e.paginators=r(69242).o,e},enumerable:!0,configurable:!0}),e.exports=a.Inspector},999:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.iot={},a.Iot=n.defineService("iot",["2015-05-28"]),Object.defineProperty(i.services.iot,"2015-05-28",{get:function(){var e=r(40063);return e.paginators=r(43999).o,e},enumerable:!0,configurable:!0}),e.exports=a.Iot},38276:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.iotanalytics={},a.IoTAnalytics=n.defineService("iotanalytics",["2017-11-27"]),Object.defineProperty(i.services.iotanalytics,"2017-11-27",{get:function(){var e=r(84609);return e.paginators=r(45498).o,e},enumerable:!0,configurable:!0}),e.exports=a.IoTAnalytics},44030:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.iotdata={},a.IotData=n.defineService("iotdata",["2015-05-28"]),r(16184),Object.defineProperty(i.services.iotdata,"2015-05-28",{get:function(){var e=r(21717);return e.paginators=r(31896).o,e},enumerable:!0,configurable:!0}),e.exports=a.IotData},96814:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.kinesis={},a.Kinesis=n.defineService("kinesis",["2013-12-02"]),Object.defineProperty(i.services.kinesis,"2013-12-02",{get:function(){var e=r(648);return e.paginators=r(10424).o,e.waiters=r(54059).V,e},enumerable:!0,configurable:!0}),e.exports=a.Kinesis},69670:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.kinesisvideo={},a.KinesisVideo=n.defineService("kinesisvideo",["2017-09-30"]),Object.defineProperty(i.services.kinesisvideo,"2017-09-30",{get:function(){var e=r(96305);return e.paginators=r(50061).o,e},enumerable:!0,configurable:!0}),e.exports=a.KinesisVideo},27629:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.kinesisvideoarchivedmedia={},a.KinesisVideoArchivedMedia=n.defineService("kinesisvideoarchivedmedia",["2017-09-30"]),Object.defineProperty(i.services.kinesisvideoarchivedmedia,"2017-09-30",{get:function(){var e=r(78868);return e.paginators=r(27352).o,e},enumerable:!0,configurable:!0}),e.exports=a.KinesisVideoArchivedMedia},40545:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.kinesisvideomedia={},a.KinesisVideoMedia=n.defineService("kinesisvideomedia",["2017-09-30"]),Object.defineProperty(i.services.kinesisvideomedia,"2017-09-30",{get:function(){var e=r(18898);return e.paginators=r(85061).o,e},enumerable:!0,configurable:!0}),e.exports=a.KinesisVideoMedia},618:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.kinesisvideosignalingchannels={},a.KinesisVideoSignalingChannels=n.defineService("kinesisvideosignalingchannels",["2019-12-04"]),Object.defineProperty(i.services.kinesisvideosignalingchannels,"2019-12-04",{get:function(){var e=r(89769);return e.paginators=r(41939).o,e},enumerable:!0,configurable:!0}),e.exports=a.KinesisVideoSignalingChannels},78:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.kms={},a.KMS=n.defineService("kms",["2014-11-01"]),Object.defineProperty(i.services.kms,"2014-11-01",{get:function(){var e=r(1219);return e.paginators=r(71402).o,e},enumerable:!0,configurable:!0}),e.exports=a.KMS},44655:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.lambda={},a.Lambda=n.defineService("lambda",["2014-11-11","2015-03-31"]),r(29510),Object.defineProperty(i.services.lambda,"2014-11-11",{get:function(){var e=r(91251);return e.paginators=r(79210).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.lambda,"2015-03-31",{get:function(){var e=r(29103);return e.paginators=r(32057).o,e.waiters=r(40626).V,e},enumerable:!0,configurable:!0}),e.exports=a.Lambda},3018:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.lexmodelbuildingservice={},a.LexModelBuildingService=n.defineService("lexmodelbuildingservice",["2017-04-19"]),Object.defineProperty(i.services.lexmodelbuildingservice,"2017-04-19",{get:function(){var e=r(96327);return e.paginators=r(12348).o,e},enumerable:!0,configurable:!0}),e.exports=a.LexModelBuildingService},25718:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.lexruntime={},a.LexRuntime=n.defineService("lexruntime",["2016-11-28"]),Object.defineProperty(i.services.lexruntime,"2016-11-28",{get:function(){var e=r(11059);return e.paginators=r(97715).o,e},enumerable:!0,configurable:!0}),e.exports=a.LexRuntime},79739:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.lexruntimev2={},a.LexRuntimeV2=n.defineService("lexruntimev2",["2020-08-07"]),Object.defineProperty(i.services.lexruntimev2,"2020-08-07",{get:function(){var e=r(17908);return e.paginators=r(469).o,e},enumerable:!0,configurable:!0}),e.exports=a.LexRuntimeV2},39111:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.location={},a.Location=n.defineService("location",["2020-11-19"]),Object.defineProperty(i.services.location,"2020-11-19",{get:function(){var e=r(79257);return e.paginators=r(53350).o,e},enumerable:!0,configurable:!0}),e.exports=a.Location},61744:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.machinelearning={},a.MachineLearning=n.defineService("machinelearning",["2014-12-12"]),r(73865),Object.defineProperty(i.services.machinelearning,"2014-12-12",{get:function(){var e=r(4069);return e.paginators=r(95535).o,e.waiters=r(23194).V,e},enumerable:!0,configurable:!0}),e.exports=a.MachineLearning},64910:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.marketplacecommerceanalytics={},a.MarketplaceCommerceAnalytics=n.defineService("marketplacecommerceanalytics",["2015-07-01"]),Object.defineProperty(i.services.marketplacecommerceanalytics,"2015-07-01",{get:function(){var e=r(96696);return e.paginators=r(43265).o,e},enumerable:!0,configurable:!0}),e.exports=a.MarketplaceCommerceAnalytics},50641:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.mediastoredata={},a.MediaStoreData=n.defineService("mediastoredata",["2017-09-01"]),Object.defineProperty(i.services.mediastoredata,"2017-09-01",{get:function(){var e=r(55081);return e.paginators=r(97948).o,e},enumerable:!0,configurable:!0}),e.exports=a.MediaStoreData},9382:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.mobileanalytics={},a.MobileAnalytics=n.defineService("mobileanalytics",["2014-06-05"]),Object.defineProperty(i.services.mobileanalytics,"2014-06-05",{get:function(){return r(90338)},enumerable:!0,configurable:!0}),e.exports=a.MobileAnalytics},93978:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.mturk={},a.MTurk=n.defineService("mturk",["2017-01-17"]),Object.defineProperty(i.services.mturk,"2017-01-17",{get:function(){var e=r(73064);return e.paginators=r(42409).o,e},enumerable:!0,configurable:!0}),e.exports=a.MTurk},16974:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.opsworks={},a.OpsWorks=n.defineService("opsworks",["2013-02-18"]),Object.defineProperty(i.services.opsworks,"2013-02-18",{get:function(){var e=r(22805);return e.paginators=r(24750).o,e.waiters=r(74961).V,e},enumerable:!0,configurable:!0}),e.exports=a.OpsWorks},59004:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.personalize={},a.Personalize=n.defineService("personalize",["2018-05-22"]),Object.defineProperty(i.services.personalize,"2018-05-22",{get:function(){var e=r(70169);return e.paginators=r(64441).o,e},enumerable:!0,configurable:!0}),e.exports=a.Personalize},65120:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.personalizeevents={},a.PersonalizeEvents=n.defineService("personalizeevents",["2018-03-22"]),Object.defineProperty(i.services.personalizeevents,"2018-03-22",{get:function(){var e=r(3606);return e.paginators=r(94507).o,e},enumerable:!0,configurable:!0}),e.exports=a.PersonalizeEvents},49574:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.personalizeruntime={},a.PersonalizeRuntime=n.defineService("personalizeruntime",["2018-05-22"]),Object.defineProperty(i.services.personalizeruntime,"2018-05-22",{get:function(){var e=r(18824);return e.paginators=r(8069).o,e},enumerable:!0,configurable:!0}),e.exports=a.PersonalizeRuntime},49756:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.polly={},a.Polly=n.defineService("polly",["2016-06-10"]),r(96661),Object.defineProperty(i.services.polly,"2016-06-10",{get:function(){var e=r(55078);return e.paginators=r(77060).o,e},enumerable:!0,configurable:!0}),e.exports=a.Polly},75661:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.pricing={},a.Pricing=n.defineService("pricing",["2017-10-15"]),Object.defineProperty(i.services.pricing,"2017-10-15",{get:function(){var e=r(22484);return e.paginators=r(60369).o,e},enumerable:!0,configurable:!0}),e.exports=a.Pricing},83189:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.rds={},a.RDS=n.defineService("rds",["2013-01-10","2013-02-12","2013-09-09","2014-09-01","2014-09-01*","2014-10-31"]),r(43550),Object.defineProperty(i.services.rds,"2013-01-10",{get:function(){var e=r(59989);return e.paginators=r(978).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.rds,"2013-02-12",{get:function(){var e=r(55061);return e.paginators=r(39581).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.rds,"2013-09-09",{get:function(){var e=r(36331);return e.paginators=r(14485).o,e.waiters=r(36851).V,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.rds,"2014-09-01",{get:function(){var e=r(19226);return e.paginators=r(49863).o,e},enumerable:!0,configurable:!0}),Object.defineProperty(i.services.rds,"2014-10-31",{get:function(){var e=r(91916);return e.paginators=r(85082).o,e.waiters=r(20371).V,e},enumerable:!0,configurable:!0}),e.exports=a.RDS},21615:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.redshift={},a.Redshift=n.defineService("redshift",["2012-12-01"]),Object.defineProperty(i.services.redshift,"2012-12-01",{get:function(){var e=r(24827);return e.paginators=r(88012).o,e.waiters=r(79011).V,e},enumerable:!0,configurable:!0}),e.exports=a.Redshift},93487:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.rekognition={},a.Rekognition=n.defineService("rekognition",["2016-06-27"]),Object.defineProperty(i.services.rekognition,"2016-06-27",{get:function(){var e=r(66442);return e.paginators=r(37753).o,e.waiters=r(78910).V,e},enumerable:!0,configurable:!0}),e.exports=a.Rekognition},26139:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.resourcegroups={},a.ResourceGroups=n.defineService("resourcegroups",["2017-11-27"]),Object.defineProperty(i.services.resourcegroups,"2017-11-27",{get:function(){var e=r(73621);return e.paginators=r(24085).o,e},enumerable:!0,configurable:!0}),e.exports=a.ResourceGroups},95730:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.route53={},a.Route53=n.defineService("route53",["2013-04-01"]),r(56182),Object.defineProperty(i.services.route53,"2013-04-01",{get:function(){var e=r(20959);return e.paginators=r(46456).o,e.waiters=r(28347).V,e},enumerable:!0,configurable:!0}),e.exports=a.Route53},58100:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.route53domains={},a.Route53Domains=n.defineService("route53domains",["2014-05-15"]),Object.defineProperty(i.services.route53domains,"2014-05-15",{get:function(){var e=r(57598);return e.paginators=r(52189).o,e},enumerable:!0,configurable:!0}),e.exports=a.Route53Domains},34766:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.s3={},a.S3=n.defineService("s3",["2006-03-01"]),r(3906),Object.defineProperty(i.services.s3,"2006-03-01",{get:function(){var e=r(1129);return e.paginators=r(7265).o,e.waiters=r(74048).V,e},enumerable:!0,configurable:!0}),e.exports=a.S3},29639:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.secretsmanager={},a.SecretsManager=n.defineService("secretsmanager",["2017-10-17"]),Object.defineProperty(i.services.secretsmanager,"2017-10-17",{get:function(){var e=r(89470);return e.paginators=r(25613).o,e},enumerable:!0,configurable:!0}),e.exports=a.SecretsManager},68641:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.servicecatalog={},a.ServiceCatalog=n.defineService("servicecatalog",["2015-12-10"]),Object.defineProperty(i.services.servicecatalog,"2015-12-10",{get:function(){var e=r(95500);return e.paginators=r(21687).o,e},enumerable:!0,configurable:!0}),e.exports=a.ServiceCatalog},16410:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.ses={},a.SES=n.defineService("ses",["2010-12-01"]),Object.defineProperty(i.services.ses,"2010-12-01",{get:function(){var e=r(56693);return e.paginators=r(9399).o,e.waiters=r(98229).V,e},enumerable:!0,configurable:!0}),e.exports=a.SES},33561:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.sns={},a.SNS=n.defineService("sns",["2010-03-31"]),Object.defineProperty(i.services.sns,"2010-03-31",{get:function(){var e=r(64387);return e.paginators=r(58054).o,e},enumerable:!0,configurable:!0}),e.exports=a.SNS},81314:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.sqs={},a.SQS=n.defineService("sqs",["2012-11-05"]),r(22666),Object.defineProperty(i.services.sqs,"2012-11-05",{get:function(){var e=r(53974);return e.paginators=r(17249).o,e},enumerable:!0,configurable:!0}),e.exports=a.SQS},61170:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.ssm={},a.SSM=n.defineService("ssm",["2014-11-06"]),Object.defineProperty(i.services.ssm,"2014-11-06",{get:function(){var e=r(44596);return e.paginators=r(5135).o,e.waiters=r(98523).V,e},enumerable:!0,configurable:!0}),e.exports=a.SSM},94060:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.storagegateway={},a.StorageGateway=n.defineService("storagegateway",["2013-06-30"]),Object.defineProperty(i.services.storagegateway,"2013-06-30",{get:function(){var e=r(11069);return e.paginators=r(33999).o,e},enumerable:!0,configurable:!0}),e.exports=a.StorageGateway},93568:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.sts={},a.STS=n.defineService("sts",["2011-06-15"]),r(44456),Object.defineProperty(i.services.sts,"2011-06-15",{get:function(){var e=r(80753);return e.paginators=r(93639).o,e},enumerable:!0,configurable:!0}),e.exports=a.STS},89678:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.translate={},a.Translate=n.defineService("translate",["2017-07-01"]),Object.defineProperty(i.services.translate,"2017-07-01",{get:function(){var e=r(61084);return e.paginators=r(40304).o,e},enumerable:!0,configurable:!0}),e.exports=a.Translate},95474:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.waf={},a.WAF=n.defineService("waf",["2015-08-24"]),Object.defineProperty(i.services.waf,"2015-08-24",{get:function(){var e=r(37925);return e.paginators=r(65794).o,e},enumerable:!0,configurable:!0}),e.exports=a.WAF},93143:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.workdocs={},a.WorkDocs=n.defineService("workdocs",["2016-05-01"]),Object.defineProperty(i.services.workdocs,"2016-05-01",{get:function(){var e=r(41052);return e.paginators=r(94768).o,e},enumerable:!0,configurable:!0}),e.exports=a.WorkDocs},44501:(e,t,r)=>{r(17321);var a=r(79614),n=a.Service,i=a.apiLoader;i.services.xray={},a.XRay=n.defineService("xray",["2016-04-12"]),Object.defineProperty(i.services.xray,"2016-04-12",{get:function(){var e=r(97355);return e.paginators=r(97949).o,e},enumerable:!0,configurable:!0}),e.exports=a.XRay},16862:e=>{function t(e,r){if(!t.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return t.services[e][r]}t.services={},e.exports=t},98690:(e,t,r)=>{r(17321);var a=r(79614);"undefined"!=typeof window&&(window.AWS=a),e.exports=a,"undefined"!=typeof self&&(self.AWS=a),r(84047)},47821:(e,t,r)=>{var a=r(9790),n=r(15610),i=r(14314),o=r(11365);e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new n;if("sha256"===e)return new o;if("sha1"===e)return new i;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new a(n,t);if("sha256"===e)return new a(o,t);if("sha1"===e)return new a(i,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},66323:(e,t,r)=>{var a=r(48764).lW;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return n.indexOf(Object.prototype.toString.call(e))>-1});var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new a(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},9790:(e,t,r)=>{var a=r(66323);function n(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=a.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var n=new e;n.update(r),r=n.digest()}var i=new Uint8Array(e.BLOCK_SIZE);return i.set(r),i}(e,t),n=new Uint8Array(e.BLOCK_SIZE);n.set(r);for(var i=0;i{var a=r(66323),n=r(48764).lW;function i(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function o(e,t,r,a,n,i){return((t=(t+e&4294967295)+(a+i&4294967295)&4294967295)<>>32-n)+r&4294967295}function s(e,t,r,a,n,i,s){return o(t&r|~t&a,e,t,n,i,s)}function u(e,t,r,a,n,i,s){return o(t&a|r&~a,e,t,n,i,s)}function p(e,t,r,a,n,i,s){return o(t^r^a,e,t,n,i,s)}function c(e,t,r,a,n,i,s){return o(r^(t|~a),e,t,n,i,s)}e.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(a.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=a.convertToBuffer(e),r=0,n=t.byteLength;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,a=t.bufferLength,i=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),a%64>=56){for(var o=this.bufferLength;o<64;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)r.setUint8(o,0);r.setUint32(56,i>>>0,!0),r.setUint32(60,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}var s=new DataView(new ArrayBuffer(16));for(o=0;o<4;o++)s.setUint32(4*o,this.state[o],!0);var u=new n(s.buffer,s.byteOffset,s.byteLength);return e?u.toString(e):u},i.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],a=t[1],n=t[2],i=t[3];r=s(r,a,n,i,e.getUint32(0,!0),7,3614090360),i=s(i,r,a,n,e.getUint32(4,!0),12,3905402710),n=s(n,i,r,a,e.getUint32(8,!0),17,606105819),a=s(a,n,i,r,e.getUint32(12,!0),22,3250441966),r=s(r,a,n,i,e.getUint32(16,!0),7,4118548399),i=s(i,r,a,n,e.getUint32(20,!0),12,1200080426),n=s(n,i,r,a,e.getUint32(24,!0),17,2821735955),a=s(a,n,i,r,e.getUint32(28,!0),22,4249261313),r=s(r,a,n,i,e.getUint32(32,!0),7,1770035416),i=s(i,r,a,n,e.getUint32(36,!0),12,2336552879),n=s(n,i,r,a,e.getUint32(40,!0),17,4294925233),a=s(a,n,i,r,e.getUint32(44,!0),22,2304563134),r=s(r,a,n,i,e.getUint32(48,!0),7,1804603682),i=s(i,r,a,n,e.getUint32(52,!0),12,4254626195),n=s(n,i,r,a,e.getUint32(56,!0),17,2792965006),r=u(r,a=s(a,n,i,r,e.getUint32(60,!0),22,1236535329),n,i,e.getUint32(4,!0),5,4129170786),i=u(i,r,a,n,e.getUint32(24,!0),9,3225465664),n=u(n,i,r,a,e.getUint32(44,!0),14,643717713),a=u(a,n,i,r,e.getUint32(0,!0),20,3921069994),r=u(r,a,n,i,e.getUint32(20,!0),5,3593408605),i=u(i,r,a,n,e.getUint32(40,!0),9,38016083),n=u(n,i,r,a,e.getUint32(60,!0),14,3634488961),a=u(a,n,i,r,e.getUint32(16,!0),20,3889429448),r=u(r,a,n,i,e.getUint32(36,!0),5,568446438),i=u(i,r,a,n,e.getUint32(56,!0),9,3275163606),n=u(n,i,r,a,e.getUint32(12,!0),14,4107603335),a=u(a,n,i,r,e.getUint32(32,!0),20,1163531501),r=u(r,a,n,i,e.getUint32(52,!0),5,2850285829),i=u(i,r,a,n,e.getUint32(8,!0),9,4243563512),n=u(n,i,r,a,e.getUint32(28,!0),14,1735328473),r=p(r,a=u(a,n,i,r,e.getUint32(48,!0),20,2368359562),n,i,e.getUint32(20,!0),4,4294588738),i=p(i,r,a,n,e.getUint32(32,!0),11,2272392833),n=p(n,i,r,a,e.getUint32(44,!0),16,1839030562),a=p(a,n,i,r,e.getUint32(56,!0),23,4259657740),r=p(r,a,n,i,e.getUint32(4,!0),4,2763975236),i=p(i,r,a,n,e.getUint32(16,!0),11,1272893353),n=p(n,i,r,a,e.getUint32(28,!0),16,4139469664),a=p(a,n,i,r,e.getUint32(40,!0),23,3200236656),r=p(r,a,n,i,e.getUint32(52,!0),4,681279174),i=p(i,r,a,n,e.getUint32(0,!0),11,3936430074),n=p(n,i,r,a,e.getUint32(12,!0),16,3572445317),a=p(a,n,i,r,e.getUint32(24,!0),23,76029189),r=p(r,a,n,i,e.getUint32(36,!0),4,3654602809),i=p(i,r,a,n,e.getUint32(48,!0),11,3873151461),n=p(n,i,r,a,e.getUint32(60,!0),16,530742520),r=c(r,a=p(a,n,i,r,e.getUint32(8,!0),23,3299628645),n,i,e.getUint32(0,!0),6,4096336452),i=c(i,r,a,n,e.getUint32(28,!0),10,1126891415),n=c(n,i,r,a,e.getUint32(56,!0),15,2878612391),a=c(a,n,i,r,e.getUint32(20,!0),21,4237533241),r=c(r,a,n,i,e.getUint32(48,!0),6,1700485571),i=c(i,r,a,n,e.getUint32(12,!0),10,2399980690),n=c(n,i,r,a,e.getUint32(40,!0),15,4293915773),a=c(a,n,i,r,e.getUint32(4,!0),21,2240044497),r=c(r,a,n,i,e.getUint32(32,!0),6,1873313359),i=c(i,r,a,n,e.getUint32(60,!0),10,4264355552),n=c(n,i,r,a,e.getUint32(24,!0),15,2734768916),a=c(a,n,i,r,e.getUint32(52,!0),21,1309151649),r=c(r,a,n,i,e.getUint32(16,!0),6,4149444226),i=c(i,r,a,n,e.getUint32(44,!0),10,3174756917),n=c(n,i,r,a,e.getUint32(8,!0),15,718787259),a=c(a,n,i,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=a+t[1]&4294967295,t[2]=n+t[2]&4294967295,t[3]=i+t[3]&4294967295}},14314:(e,t,r)=>{var a=r(48764).lW,n=r(66323);function i(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),e.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(n.isEmptyData(e))return this;var t=(e=n.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new a(20),n=new DataView(r.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?r.toString(e):r},i.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,a,n=this.h0,i=this.h1,o=this.h2,s=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=s^i&(o^s),a=1518500249):e<40?(r=i^o^s,a=1859775393):e<60?(r=i&o|s&(i|o),a=2400959708):(r=i^o^s,a=3395469782);var p=(n<<5|n>>>27)+r+u+a+(0|this.block[e]);u=s,s=o,o=i<<30|i>>>2,i=n,n=p}for(this.h0=this.h0+n|0,this.h1=this.h1+i|0,this.h2=this.h2+o|0,this.h3=this.h3+s|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},11365:(e,t,r)=>{var a=r(48764).lW,n=r(66323),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=Math.pow(2,53)-1;function s(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=s,s.BLOCK_SIZE=64,s.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(n.isEmptyData(e))return this;var t=0,r=(e=n.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>o)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(r.setUint8(this.bufferLength++,128),n%64>=56){for(var i=this.bufferLength;i<64;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<56;i++)r.setUint8(i,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var o=new a(32);for(i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return e?o.toString(e):o},s.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],a=t[1],n=t[2],o=t[3],s=t[4],u=t[5],p=t[6],c=t[7],m=0;m<64;m++){if(m<16)this.temp[m]=(255&e[4*m])<<24|(255&e[4*m+1])<<16|(255&e[4*m+2])<<8|255&e[4*m+3];else{var l=this.temp[m-2],d=(l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10,y=((l=this.temp[m-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3;this.temp[m]=(d+this.temp[m-7]|0)+(y+this.temp[m-16]|0)}var b=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&p)|0)+(c+(i[m]+this.temp[m]|0)|0)|0,h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&a^r&n^a&n)|0;c=p,p=u,u=s,s=o+b|0,o=n,n=a,a=r,r=b+h|0}t[0]+=r,t[1]+=a,t[2]+=n,t[3]+=o,t[4]+=s,t[5]+=u,t[6]+=p,t[7]+=c}},17321:(e,t,r)=>{var a=r(62662);a.crypto.lib=r(47821),a.Buffer=r(48764).lW,a.url=r(8575),a.querystring=r(17673),a.realClock=r(31414),a.environment="js",a.createEventStream=r(2403).createEventStream,a.isBrowser=function(){return!0},a.isNode=function(){return!1};var n=r(79614);if(e.exports=n,r(84465),r(83227),r(46662),r(91),r(97719),r(67372),r(16986),n.XML.Parser=r(35106),r(2631),void 0===i)var i={browser:!0}},13372:(e,t,r)=>{var a=r(79614),n=a.util.url,i=a.util.crypto.lib,o=a.util.base64.encode,s=a.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,(function(e){return t[e]}))},p=function(e,t){var r=i.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},c=function(e,t,r,a){var n=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:p(n.toString(),a)}},m=function(e,t,r){return e=e.replace(/\s/gm,""),{Policy:u(o(e)),"Key-Pair-Id":t,Signature:p(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=n.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")},y=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},b=function(e,t){if(!t||"function"!=typeof t)return e;t(null,e)};a.CloudFront.Signer=s({constructor:function(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?m(e.policy,this.keyPairId,this.privateKey):c(e.url,e.expires,this.keyPairId,this.privateKey),a={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(a["CloudFront-"+n]=r[n]);return b(a,t)},getSignedUrl:function(e,t){try{var r=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}}(e.url)}catch(e){return y(e,t)}var a=n.parse(e.url,!0),i=Object.prototype.hasOwnProperty.call(e,"policy")?m(e.policy,this.keyPairId,this.privateKey):c(r,e.expires,this.keyPairId,this.privateKey);for(var o in a.search=null,i)Object.prototype.hasOwnProperty.call(i,o)&&(a.query[o]=i[o]);try{var s="rtmp"===l(e.url)?d(n.format(a)):n.format(a)}catch(e){return y(e,t)}return b(s,t)}}),e.exports=a.CloudFront.Signer},22709:(e,t,r)=>{var a,n=r(79614);r(84465),r(83227),n.Config=n.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),n.util.each.call(this,this.keys,(function(t,r){this.set(t,e[t],r)}))},getCredentials:function(e){var t,r=this;function a(t){e(t,t?null:r.credentials)}function i(e,t){return new n.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?r.credentials.get((function(e){e&&(e=i("Could not load credentials from "+r.credentials.constructor.name,e)),a(e)})):(t=null,r.credentials.accessKeyId&&r.credentials.secretAccessKey||(t=i("Missing credentials")),a(t)):r.credentialProvider?r.credentialProvider.resolve((function(e,t){e&&(e=i("Could not load credentials from any providers",e)),r.credentials=t,a(e)})):a(i("No credentials to load"))},getToken:function(e){var t,r=this;function a(t){e(t,t?null:r.token)}function i(e,t){return new n.util.error(t||new Error,{code:"TokenError",message:e,name:"TokenError"})}r.token?"function"==typeof r.token.get?r.token.get((function(e){e&&(e=i("Could not load token from "+r.token.constructor.name,e)),a(e)})):(t=null,r.token.token||(t=i("Missing token")),a(t)):r.tokenProvider?r.tokenProvider.resolve((function(e,t){e&&(e=i("Could not load token from any providers",e)),r.token=t,a(e)})):a(i("No token to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),n.util.each.call(this,e,(function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||n.Service.hasService(e))&&this.set(e,r)}))},loadFromPath:function(e){this.clear();var t=JSON.parse(n.util.readFileSync(e)),r=new n.FileSystemCredentials(e),a=new n.CredentialProviderChain;return a.providers.unshift(r),a.resolve((function(e,r){if(e)throw e;t.credentials=r})),this.constructor(t),this},clear:function(){n.util.each.call(this,this.keys,(function(e){delete this[e]})),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):"httpOptions"===e&&this[e]?this[e]=n.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1,token:null},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=n.util.copy(e)).credentials=new n.Credentials(e)),e},setPromisesDependency:function(e){a=e,null===e&&"function"==typeof Promise&&(a=Promise);var t=[n.Request,n.Credentials,n.CredentialProviderChain];n.S3&&(t.push(n.S3),n.S3.ManagedUpload&&t.push(n.S3.ManagedUpload)),n.util.addPromises(t,a)},getPromisesDependency:function(){return a}}),n.config=new n.Config},65456:(e,t,r)=>{var a=r(79614);function n(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw a.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=n(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!a.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=n(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return r;var i={};try{i=a.util.getProfilesFromSharedConfig(a.util.iniLoader)[process.env.AWS_PROFILE||a.util.defaultProfile]}catch(e){}return i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)&&(r=n(i[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+i[t.sharedConfig]+'".'})),r}},79614:(e,t,r)=>{var a={util:r(62662)};({}).toString(),e.exports=a,a.util.update(a,{VERSION:"2.1223.0",Signers:{},Protocol:{Json:r(76933),Query:r(70293),Rest:r(96225),RestJson:r(53699),RestXml:r(11674)},XML:{Builder:r(52369),Parser:null},JSON:{Builder:r(43658),Parser:r(62622)},Model:{Api:r(85863),Operation:r(66797),Shape:r(68136),Paginator:r(47937),ResourceWaiter:r(90306)},apiLoader:r(16862),EndpointCache:r(85101).$}),r(96380),r(20173),r(22709),r(26344),r(72274),r(73682),r(93975),r(82413),r(92604),r(25479),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",(function(){return new a.EndpointCache(a.config.endpointCacheSize)}),!0)},84465:(e,t,r)=>{var a=r(79614);a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){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(){var e=a.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(e){var t=this;this.needsRefresh()?this.refresh((function(r){r||(t.expired=!1),e&&e(r)})):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load((function(e){a.util.arrayEach(r.refreshCallbacks,(function(r){t?r(e):a.util.defer((function(){r(e)}))})),r.refreshCallbacks.length=0}))},load:function(e){e()}}),a.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=a.util.promisifyMethod("get",e),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",e)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},91:(e,t,r)=>{var a=r(79614),n=r(93568);a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=a.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=a.util.merge({params:t,credentials:e.masterCredentials||a.config.credentials},e.stsConfig||{});this.service=new n(r)},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(a,n){var i={};a?e(a):(n&&(i.TokenCode=n),t.service[r](i,(function(r,a){r||t.service.credentialsFrom(a,t),e(r)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(r,n){if(r){var i=r;return r instanceof Error&&(i=r.message),void e(a.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}))}e(null,n)})):e(null)}})},67372:(e,t,r)=>{var a=r(79614),n=r(96105),i=r(93568);a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId((function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)}))},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId((function(r,a){!r&&a.IdentityId?(t.params.IdentityId=a.IdentityId,e(null,a.IdentityId)):e(r)}))},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity((function(r,a){r?t.clearIdOnNotAuthorized(r):(t.cacheId(a),t.data=a,t.loadCredentials(t.data,t)),e(r)}))},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken((function(r,a){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(a),t.params.WebIdentityToken=a.Token,t.webIdentityCredentials.refresh((function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)})))}))},loadCachedId:function(){var e=this;if(a.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter((function(e){return-1!==r.indexOf(e)})).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,e),!this.cognito){var t=a.util.merge({},e);t.params=this.params,this.cognito=new n(t)}this.sts=this.sts||new i(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},83227:(e,t,r)=>{var a=r(79614);a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(e){this.providers=e||a.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var r=0,n=t.providers.slice(0);!function e(i,o){if(!i&&o||r===n.length)return a.util.arrayEach(t.resolveCallbacks,(function(e){e(i,o)})),void(t.resolveCallbacks.length=0);var s=n[r++];(o="function"==typeof s?s.call():s).get?o.get((function(t){e(t,t?null:o)})):e(null,o)}()}return t}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",e)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},16986:(e,t,r)=>{var a=r(79614),n=r(93568);a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(e){a.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML((function(r,a){r||t.service.credentialsFrom(a,t),e(r)}))},createClients:function(){this.service=this.service||new n({params:this.params})}})},46662:(e,t,r)=>{var a=r(79614),n=r(93568);a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get((function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,(function(r,a){r||t.service.credentialsFrom(a,t),e(r)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new a.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new n({params:this.params})}})},97719:(e,t,r)=>{var a=r(79614),n=r(93568);a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(e,t){a.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||a.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity((function(r,a){t.data=null,r||(t.data=a,t.service.credentialsFrom(a,t)),e(r)}))},createClients:function(){if(!this.service){var e=a.util.merge({},this._clientConfig);e.params=this.params,this.service=new n(e)}}})},33320:(e,t,r)=>{var a=r(79614),n=r(62662),i=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function o(e){var t=e.service,r=t.api||{},a=(r.operations,{});return t.config.region&&(a.region=t.config.region),r.serviceId&&(a.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(a.accessKeyId=t.config.credentials.accessKeyId),a}function s(e,t,r){r&&null!=t&&"structure"===r.type&&r.required&&r.required.length>0&&n.arrayEach(r.required,(function(a){var n=r.members[a];if(!0===n.endpointDiscoveryId){var i=n.isLocationName?n.name:a;e[i]=String(t[a])}else s(e,t[a],n)}))}function u(e,t){var r={};return s(r,e.params,t),r}function p(e){var t=e.service,r=t.api,i=r.operations?r.operations[e.operation]:void 0,s=u(e,i?i.input:void 0),p=o(e);Object.keys(s).length>0&&(p=n.update(p,s),i&&(p.operation=i.name));var c=a.endpointCache.get(p);if(!c||1!==c.length||""!==c[0].Address)if(c&&c.length>0)e.httpRequest.updateEndpoint(c[0].Address);else{var m=t.makeRequest(r.endpointOperation,{Operation:i.name,Identifiers:s});l(m),m.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),m.removeListener("retry",a.EventListeners.Core.RETRY_CHECK),a.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}]),m.send((function(e,t){t&&t.Endpoints?a.endpointCache.put(p,t.Endpoints):e&&a.endpointCache.put(p,[{Address:"",CachePeriodInMinutes:1}])}))}}var c={};function m(e,t){var r=e.service,i=r.api,s=i.operations?i.operations[e.operation]:void 0,p=s?s.input:void 0,m=u(e,p),d=o(e);Object.keys(m).length>0&&(d=n.update(d,m),s&&(d.operation=s.name));var y=a.EndpointCache.getKeyString(d),b=a.endpointCache.get(y);if(b&&1===b.length&&""===b[0].Address)return c[y]||(c[y]=[]),void c[y].push({request:e,callback:t});if(b&&b.length>0)e.httpRequest.updateEndpoint(b[0].Address),t();else{var h=r.makeRequest(i.endpointOperation,{Operation:s.name,Identifiers:m});h.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),l(h),a.endpointCache.put(y,[{Address:"",CachePeriodInMinutes:60}]),h.send((function(r,i){if(r){if(e.response.error=n.error(r,{retryable:!1}),a.endpointCache.remove(d),c[y]){var o=c[y];n.arrayEach(o,(function(e){e.request.response.error=n.error(r,{retryable:!1}),e.callback()})),delete c[y]}}else i&&(a.endpointCache.put(y,i.Endpoints),e.httpRequest.updateEndpoint(i.Endpoints[0].Address),c[y])&&(o=c[y],n.arrayEach(o,(function(e){e.request.httpRequest.updateEndpoint(i.Endpoints[0].Address),e.callback()})),delete c[y]);t()}))}}function l(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function d(e){var t=e.error,r=e.httpResponse;if(t&&("InvalidEndpointException"===t.code||421===r.statusCode)){var i=e.request,s=i.service.api.operations||{},p=u(i,s[i.operation]?s[i.operation].input:void 0),c=o(i);Object.keys(p).length>0&&(c=n.update(c,p),s[i.operation]&&(c.operation=s[i.operation].name)),a.endpointCache.remove(c)}}function y(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});var t=a.config[e.serviceIdentifier]||{};return Boolean(a.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var o=(r.api.operations||{})[e.operation],s=o?o.endpointDiscoveryRequired:"NULL",u=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!n.isBrowser()){for(var r=0;r{var a=r(79614),n=a.util,i=r(79123).typeOf,o=r(44604),s=r(35883);function u(e,t){return t?new s(e):Number(e)}function p(e,t){var r={M:{}};for(var n in e){var i=a.DynamoDB.Converter.input(e[n],t);void 0!==i&&(r.M[n]=i)}return r}a.DynamoDB.Converter={input:function e(t,r){r=r||{};var n=i(t);return"Object"===n?p(t,r):"Array"===n?function(e,t){for(var r={L:[]},n=0;n{var a=r(79614),n=r(51939),i=r(44604);a.DynamoDB.DocumentClient=a.util.inherit({constructor:function(e){var t=this;t.options=e||{},t.configure(t.options)},configure:function(e){var t=this;t.service=e.service,t.bindServiceObject(e),t.attrValue=e.attrValue=t.service.api.operations.putItem.input.members.Item.value.shape},bindServiceObject:function(e){var t=this;if(e=e||{},t.service){var r=a.util.copy(t.service.config);t.service=new t.service.constructor.__super__(r),t.service.config.params=a.util.merge(t.service.config.params||{},e.params)}else t.service=new a.DynamoDB(e)},makeServiceRequest:function(e,t,r){var a=this,n=a.service[e](t);return a.setupRequest(n),a.setupResponse(n),"function"==typeof r&&n.send(r),n},serviceClientOperationsMap:{batchGet:"batchGetItem",batchWrite:"batchWriteItem",delete:"deleteItem",get:"getItem",put:"putItem",query:"query",scan:"scan",update:"updateItem",transactGet:"transactGetItems",transactWrite:"transactWriteItems"},batchGet:function(e,t){var r=this.serviceClientOperationsMap.batchGet;return this.makeServiceRequest(r,e,t)},batchWrite:function(e,t){var r=this.serviceClientOperationsMap.batchWrite;return this.makeServiceRequest(r,e,t)},delete:function(e,t){var r=this.serviceClientOperationsMap.delete;return this.makeServiceRequest(r,e,t)},get:function(e,t){var r=this.serviceClientOperationsMap.get;return this.makeServiceRequest(r,e,t)},put:function(e,t){var r=this.serviceClientOperationsMap.put;return this.makeServiceRequest(r,e,t)},update:function(e,t){var r=this.serviceClientOperationsMap.update;return this.makeServiceRequest(r,e,t)},scan:function(e,t){var r=this.serviceClientOperationsMap.scan;return this.makeServiceRequest(r,e,t)},query:function(e,t){var r=this.serviceClientOperationsMap.query;return this.makeServiceRequest(r,e,t)},transactWrite:function(e,t){var r=this.serviceClientOperationsMap.transactWrite;return this.makeServiceRequest(r,e,t)},transactGet:function(e,t){var r=this.serviceClientOperationsMap.transactGet;return this.makeServiceRequest(r,e,t)},createSet:function(e,t){return new i(e,t=t||{})},getTranslator:function(){return new n(this.options)},setupRequest:function(e){var t=this.getTranslator(),r=e.operation,n=e.service.api.operations[r].input;e._events.validate.unshift((function(e){e.rawParams=a.util.copy(e.params),e.params=t.translateInput(e.rawParams,n)}))},setupResponse:function(e){var t=this,r=t.getTranslator(),n=t.service.api.operations[e.operation].output;e.on("extractData",(function(e){e.data=r.translateOutput(e.data,n)})),e.response.nextPage=function(e){var r,n=this,i=n.request,o=i.service,s=i.operation;try{r=o.paginationConfig(s,!0)}catch(e){n.error=e}if(!n.hasNextPage()){if(e)e(n.error,null);else if(n.error)throw n.error;return null}var u=a.util.copy(i.rawParams);if(n.nextPageTokens){var p=r.inputToken;"string"==typeof p&&(p=[p]);for(var c=0;c{var a=r(79614).util.inherit({constructor:function(e){this.wrapperName="NumberValue",this.value=e.toString()},toJSON:function(){return this.toNumber()},toNumber:function(){return Number(this.value)},toString:function(){return this.value}});e.exports=a},44604:(e,t,r)=>{var a=r(79614).util,n=r(79123).typeOf,i={String:"String",Number:"Number",NumberValue:"Number",Binary:"Binary"},o=a.inherit({constructor:function(e,t){t=t||{},this.wrapperName="Set",this.initialize(e,t.validate)},initialize:function(e,t){var r=this;r.values=[].concat(e),r.detectType(),t&&r.validate()},detectType:function(){if(this.type=i[n(this.values[0])],!this.type)throw a.error(new Error,{code:"InvalidSetType",message:"Sets can contain string, number, or binary values"})},validate:function(){for(var e=this,t=e.values.length,r=e.values,o=0;o{var a=r(79614).util,n=r(68235),i=function(e){e=e||{},this.attrValue=e.attrValue,this.convertEmptyValues=Boolean(e.convertEmptyValues),this.wrapNumbers=Boolean(e.wrapNumbers)};i.prototype.translateInput=function(e,t){return this.mode="input",this.translate(e,t)},i.prototype.translateOutput=function(e,t){return this.mode="output",this.translate(e,t)},i.prototype.translate=function(e,t){var r=this;if(t&&void 0!==e){if(t.shape===r.attrValue)return n[r.mode](e,{convertEmptyValues:r.convertEmptyValues,wrapNumbers:r.wrapNumbers});switch(t.type){case"structure":return r.translateStructure(e,t);case"map":return r.translateMap(e,t);case"list":return r.translateList(e,t);default:return r.translateScalar(e,t)}}},i.prototype.translateStructure=function(e,t){var r=this;if(null!=e){var n={};return a.each(e,(function(e,a){var i=t.members[e];if(i){var o=r.translate(a,i);void 0!==o&&(n[e]=o)}})),n}},i.prototype.translateList=function(e,t){var r=this;if(null!=e){var n=[];return a.arrayEach(e,(function(e){var a=r.translate(e,t.member);void 0===a?n.push(null):n.push(a)})),n}},i.prototype.translateMap=function(e,t){var r=this;if(null!=e){var n={};return a.each(e,(function(e,a){var i=r.translate(a,t.value);n[e]=void 0===i?null:i})),n}},i.prototype.translateScalar=function(e,t){return t.toType(e)},e.exports=i},79123:(e,t,r)=>{var a=r(79614).util;function n(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(a.isNode()){var r=a.stream.Stream;if(a.Buffer.isBuffer(e)||e instanceof r)return!0}for(var n=0;n{var a=r(97550).eventMessageChunker,n=r(83851).parseEvent;e.exports={createEventStream:function(e,t,r){for(var i=a(e),o=[],s=0;s{e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r{var a=r(79614).util,n=a.buffer.toBuffer;function i(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");a.Buffer.isBuffer(e)||(e=n(e)),this.bytes=e}function o(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}i.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");for(var t=new Uint8Array(8),r=7,a=Math.abs(Math.round(e));r>-1&&a>0;r--,a/=256)t[r]=a;return e<0&&o(t),new i(t)},i.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&o(e),parseInt(e.toString("hex"),16)*(t?-1:1)},i.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:i}},83851:(e,t,r)=>{var a=r(89524).parseMessage;e.exports={parseEvent:function(e,t,r){var n=a(t),i=n.headers[":message-type"];if(i){if("error"===i.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],a=new Error(r.value||r);return a.code=a.name=t.value||t,a}(n);if("event"!==i.value)return}var o=n.headers[":event-type"],s=r.members[o.value];if(s){var u={},p=s.eventPayloadMemberName;if(p){var c=s.members[p];"binary"===c.type?u[p]=n.body:u[p]=e.parse(n.body.toString(),c)}for(var m=s.eventHeaderMemberNames,l=0;l{var a=r(31231).Int64,n=r(4441).splitMessage,i="boolean";function o(e){for(var t={},r=0;r{var a=r(79614).util,n=a.buffer.toBuffer;e.exports={splitMessage:function(e){if(a.Buffer.isBuffer(e)||(e=n(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==a.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==a.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var i=12+e.readUInt32BE(4);return{headers:e.slice(12,i),body:e.slice(i,e.length-4)}}}},72274:(e,t,r)=>{var a=r(79614),n=r(96380),i=r(33320).discoverEndpoint;a.EventListeners={Core:{}},a.EventListeners={Core:(new n).addNamedListeners((function(e,t){t("VALIDATE_CREDENTIALS","validate",(function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials((function(r){r&&(e.response.error=a.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()}))})),e("VALIDATE_REGION","validate",(function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=a.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}})),e("BUILD_IDEMPOTENCY_TOKENS","validate",(function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var n=a.util.copy(e.params),i=0,o=r.length;i=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();a.util.computeSha256(i,(function(r,a){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=a,t())}))}else t()}})),e("SET_CONTENT_LENGTH","afterBuild",(function(e){var t=function(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}(e),r=a.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var n=a.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(a){if(r&&r.isStreaming){if(r.requiresLength)throw a;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw a}throw a}})),e("SET_HTTP_HOST","afterBuild",(function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host})),e("SET_TRACE_ID","afterBuild",(function(e){var t="X-Amzn-Trace-Id";if(a.util.isNode()&&!Object.hasOwnProperty.call(e.httpRequest.headers,t)){var r=process.env.AWS_LAMBDA_FUNCTION_NAME,n=process.env._X_AMZN_TRACE_ID;"string"==typeof r&&r.length>0&&"string"==typeof n&&n.length>0&&(e.httpRequest.headers[t]=n)}})),e("RESTART","restart",(function(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount=600?this.emit("sign",[this],(function(e){e?t(e):i()})):i()})),e("HTTP_HEADERS","httpHeaders",(function(e,t,r,n){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=n,r.httpResponse.headers=t,r.httpResponse.body=a.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var i=t.date||t.Date,o=r.request.service;if(i){var s=Date.parse(i);o.config.correctClockSkew&&o.isClockSkewed(s)&&o.applyClockOffset(s)}})),e("HTTP_DATA","httpData",(function(e,t){if(e){if(a.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],n={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(a.util.buffer.toBuffer(e))}})),e("HTTP_DONE","httpDone",(function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=a.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers})),e("FINALIZE_ERROR","retry",(function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))})),e("INVALIDATE_CREDENTIALS","retry",(function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}})),e("EXPIRED_SIGNATURE","retry",(function(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)})),e("CLOCK_SKEWED","retry",(function(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)})),e("REDIRECT","retry",(function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new a.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)})),e("RETRY_CHECK","retry",(function(e){e.error&&(e.error.redirect&&e.redirectCount=0?(e.error=null,setTimeout(t,r)):t()}))})),CorePost:(new n).addNamedListeners((function(e){e("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",(function(e){if("NetworkingError"===e.code&&function(e){return"ENOTFOUND"===e.errno||"number"==typeof e.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(e.errno)>=0)}(e)){var t="Inaccessible host: `"+e.hostname+"' at port `"+e.port+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=a.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}}))})),Logger:(new n).addNamedListeners((function(e){e("LOG_REQUEST","complete",(function(e){var t=e.request,n=t.service.config.logger;if(n){var i=function(){var i=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,s=!!n.isTTY,u=e.httpResponse.statusCode,p=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(p=o(t.service.api.operations[t.operation].input,t.params));var c=r(89539).inspect(p,!0,null),m="";return s&&(m+=""),m+="[AWS "+t.service.serviceIdentifier+" "+u,m+=" "+i.toString()+"s "+e.retryCount+" retries]",s&&(m+=""),m+=" "+a.util.string.lowerFirst(t.operation),m+="("+c+")",s&&(m+=""),m}();"function"==typeof n.log?n.log(i):"function"==typeof n.write&&n.write(i+"\n")}function o(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return a.util.each(t,(function(t,a){Object.prototype.hasOwnProperty.call(e.members,t)?r[t]=o(e.members[t],a):r[t]=a})),r;case"list":var n=[];return a.util.arrayEach(t,(function(t,r){n.push(o(e.member,t))})),n;case"map":var i={};return a.util.each(t,(function(t,r){i[t]=o(e.value,r)})),i;default:return t}}}))})),Json:(new n).addNamedListeners((function(e){var t=r(76933);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Rest:(new n).addNamedListeners((function(e){var t=r(96225);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestJson:(new n).addNamedListeners((function(e){var t=r(53699);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),RestXml:(new n).addNamedListeners((function(e){var t=r(11674);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})),Query:(new n).addNamedListeners((function(e){var t=r(70293);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}))}},26344:(e,t,r)=>{var a=r(79614),n=a.util.inherit;a.Endpoint=n({constructor:function(e,t){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return a.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:a.config.sslEnabled)?"https":"http")+"://"+e),a.util.update(this,a.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),a.HttpRequest=n({constructor:function(e,t){e=new a.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(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=a.util.userAgent()},getUserAgentHeaderName:function(){return(a.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=a.util.queryStringParse(e),a.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new a.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),a.HttpResponse=n({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),a.HttpClient=n({}),a.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},2631:(e,t,r)=>{var a=r(79614),n=r(33498).EventEmitter;r(26344),a.XHRClient=a.util.inherit({handleRequest:function(e,t,r,i){var o=this,s=e.endpoint,u=new n,p=s.protocol+"//"+s.hostname;80!==s.port&&443!==s.port&&(p+=":"+s.port),p+=e.path;var c=new XMLHttpRequest,m=!1;e.stream=c,c.addEventListener("readystatechange",(function(){try{if(0===c.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!m&&(u.statusCode=c.status,u.headers=o.parseHeaders(c.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,c.statusText),m=!0),this.readyState===this.DONE&&o.finishRequest(c,u)}),!1),c.upload.addEventListener("progress",(function(e){u.emit("sendProgress",e)})),c.addEventListener("progress",(function(e){u.emit("receiveProgress",e)}),!1),c.addEventListener("timeout",(function(){i(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),c.addEventListener("error",(function(){i(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),c.addEventListener("abort",(function(){i(a.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),r(u),c.open(e.method,p,!1!==t.xhrAsync),a.util.each(e.headers,(function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&c.setRequestHeader(e,t)})),t.timeout&&!1!==t.xhrAsync&&(c.timeout=t.timeout),t.xhrWithCredentials&&(c.withCredentials=!0);try{c.responseType="arraybuffer"}catch(e){}try{e.body?c.send(e.body):c.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;c.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return a.util.arrayEach(e.split(/\r?\n/),(function(e){var r=e.split(":",1)[0],a=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=a)})),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var n=e.response;r=new a.util.Buffer(n.byteLength);for(var i=new Uint8Array(n),o=0;o{var a=r(62662);function n(){}function i(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){if(t.isDocument)return e;var r={};return a.each(e,(function(e,a){var n=t.members[e];if(n){if("body"!==n.location)return;var o=n.isLocationName?n.name:e,s=i(a,n);void 0!==s&&(r[o]=s)}})),r}(e,t);case"map":return function(e,t){var r={};return a.each(e,(function(e,a){var n=i(a,t.value);void 0!==n&&(r[e]=n)})),r}(e,t);case"list":return function(e,t){var r=[];return a.arrayEach(e,(function(e){var a=i(e,t.member);void 0!==a&&r.push(a)})),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}n.prototype.build=function(e,t){return JSON.stringify(i(e,t))},e.exports=n},62622:(e,t,r)=>{var a=r(62662);function n(){}function i(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null!=e){if(t.isDocument)return e;var r={},n=t.members;return a.each(n,(function(t,a){var n=a.isLocationName?a.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=i(e[n],a);void 0!==o&&(r[t]=o)}})),r}}(e,t);case"map":return function(e,t){if(null!=e){var r={};return a.each(e,(function(e,a){var n=i(a,t.value);r[e]=void 0===n?null:n})),r}}(e,t);case"list":return function(e,t){if(null!=e){var r=[];return a.arrayEach(e,(function(e){var a=i(e,t.member);void 0===a?r.push(null):r.push(a)})),r}}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}n.prototype.parse=function(e,t){return i(JSON.parse(e),t)},e.exports=n},85863:(e,t,r)=>{var a=r(84351),n=r(66797),i=r(68136),o=r(47937),s=r(90306),u=r(17752),p=r(62662),c=p.property,m=p.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var l=t.serviceIdentifier;delete t.serviceIdentifier,c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),c(this,"serviceId",e.metadata.serviceId),l&&u[l]&&c(this,"xmlNoDefaultLists",u[l].xmlNoDefaultLists,!1),m(this,"className",(function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null})),c(this,"operations",new a(e.operations,t,(function(e,r){return new n(e,r,t)}),p.string.lowerFirst,(function(e,t){!0===t.endpointoperation&&c(r,"endpointOperation",p.string.lowerFirst(e)),t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&c(r,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)}))),c(this,"shapes",new a(e.shapes,t,(function(e,r){return i.create(r,t)}))),c(this,"paginators",new a(e.paginators,t,(function(e,r){return new o(e,r,t)}))),c(this,"waiters",new a(e.waiters,t,(function(e,r){return new s(e,r,t)}),p.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl)),c(this,"errorCodeMapping",e.awsQueryCompatible)}},84351:(e,t,r)=>{var a=r(62662).memoizedProperty;function n(e,t,r,n){a(this,n(e),(function(){return r(e,t)}))}e.exports=function(e,t,r,a,i){for(var o in a=a||String,e)Object.prototype.hasOwnProperty.call(e,o)&&(n.call(this,o,e[o],r,a),i&&i(o,e[o]))}},66797:(e,t,r)=>{var a=r(68136),n=r(62662),i=n.property,o=n.memoizedProperty;e.exports=function(e,t,r){var n=this;r=r||{},i(this,"name",t.name||e),i(this,"api",r.api,!1),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");var s=t.httpChecksumRequired||t.httpChecksum&&t.httpChecksum.requestChecksumRequired;i(this,"httpChecksumRequired",s,!1),o(this,"input",(function(){return t.input?a.create(t.input,r):new a.create({type:"structure"},r)})),o(this,"output",(function(){return t.output?a.create(t.output,r):new a.create({type:"structure"},r)})),o(this,"errors",(function(){var e=[];if(!t.errors)return null;for(var n=0;n{var a=r(62662).property;e.exports=function(e,t){a(this,"inputToken",t.input_token),a(this,"limitKey",t.limit_key),a(this,"moreResults",t.more_results),a(this,"outputToken",t.output_token),a(this,"resultKey",t.result_key)}},90306:(e,t,r)=>{var a=r(62662),n=a.property;e.exports=function(e,t,r){r=r||{},n(this,"name",e),n(this,"api",r.api,!1),t.operation&&n(this,"operation",a.string.lowerFirst(t.operation));var i=this;["type","description","delay","maxAttempts","acceptors"].forEach((function(e){var r=t[e];r&&n(i,e,r)}))}},68136:(e,t,r)=>{var a=r(84351),n=r(62662);function i(e,t,r){null!=r&&n.property.apply(this,arguments)}function o(e,t){e.constructor.prototype[t]||n.memoizedProperty.apply(this,arguments)}function s(e,t,r){t=t||{},i(this,"shape",e.shape),i(this,"api",t.api,!1),i(this,"type",e.type),i(this,"enum",e.enum),i(this,"min",e.min),i(this,"max",e.max),i(this,"pattern",e.pattern),i(this,"location",e.location||this.location||"body"),i(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),i(this,"isStreaming",e.streaming||this.isStreaming||!1),i(this,"requiresLength",e.requiresLength,!1),i(this,"isComposite",e.isComposite||!1),i(this,"isShape",!0,!1),i(this,"isQueryName",Boolean(e.queryName),!1),i(this,"isLocationName",Boolean(e.locationName),!1),i(this,"isIdempotent",!0===e.idempotencyToken),i(this,"isJsonValue",!0===e.jsonvalue),i(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),i(this,"isEventStream",Boolean(e.eventstream),!1),i(this,"isEvent",Boolean(e.event),!1),i(this,"isEventPayload",Boolean(e.eventpayload),!1),i(this,"isEventHeader",Boolean(e.eventheader),!1),i(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),i(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),i(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(i(this,"documentation",e.documentation),i(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&i(this,"isXmlAttribute",e.xmlAttribute||!1),i(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),i(this,"isComposite",!0),e.flattened&&i(this,"flattened",e.flattened||!1)}function p(e,t){var r=this,n=null,p=!this.isShape;u.apply(this,arguments),p&&(i(this,"defaultValue",(function(){return{}})),i(this,"members",{}),i(this,"memberNames",[]),i(this,"required",[]),i(this,"isRequired",(function(){return!1})),i(this,"isDocument",Boolean(e.document))),e.members&&(i(this,"members",new a(e.members,t,(function(e,r){return s.create(r,t,e)}))),o(this,"memberNames",(function(){return e.xmlOrder||Object.keys(e.members)})),e.event&&(o(this,"eventPayloadMemberName",(function(){for(var e=r.members,t=r.memberNames,a=0,n=t.length;a-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function d(){s.apply(this,arguments),this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&"function"==typeof n.Buffer.alloc){var r=n.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=n.base64.encode}function y(){d.apply(this,arguments)}function b(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:p,list:c,map:m,boolean:b,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)i(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)i(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)i(this,"timestampFormat","rfc822");else if("querystring"===this.location)i(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":i(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":i(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?n.date.parseTimestamp(e):null},this.toWireFormat=function(e){return n.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:l,base64:y,binary:d},s.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},s.create=function(e,t,r){if(e.isShape)return e;var a=s.resolve(e,t);if(a){var n=Object.keys(e);t.documentation||(n=n.filter((function(e){return!e.match(/documentation/)})));var i=function(){a.constructor.call(this,e,t,r)};return i.prototype=a,new i}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var o=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+o)},s.shapes={StructureShape:p,ListShape:c,MapShape:m,StringShape:l,BooleanShape:b,Base64Shape:y},e.exports=s},25479:(e,t,r)=>{var a=r(79614);a.ParamValidator=a.util.inherit({constructor:function(e){!0!==e&&void 0!==e||(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var n=this.errors.join("\n* ");throw n="There were "+this.errors.length+" validation errors:\n* "+n,a.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(a.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){if(e.isDocument)return!0;var a;this.validateType(t,r,["object"],"structure");for(var n=0;e.required&&n= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,a){this.validation.min&&void 0!==e.min&&t= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+a+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,n){if(null==e)return!1;for(var i=!1,o=0;o{var a=r(79614),n=a.Protocol.Rest;a.Polly.Presigner=a.util.inherit({constructor:function(e){e=e||{},this.options=e,this.service=e.service,this.bindServiceObject(e),this._operations={}},bindServiceObject:function(e){if(e=e||{},this.service){var t=a.util.copy(this.service.config);this.service=new this.service.constructor.__super__(t),this.service.config.params=a.util.merge(this.service.config.params||{},e.params)}else this.service=new a.Polly(e)},modifyInputMembers:function(e){var t=a.util.copy(e);return t.members=a.util.copy(e.members),a.util.each(e.members,(function(e,r){t.members[e]=a.util.copy(r),r.location&&"body"!==r.location||(t.members[e].location="querystring",t.members[e].locationName=e)})),t},convertPostToGet:function(e){e.httpRequest.method="GET";var t=e.service.api.operations[e.operation],r=this._operations[e.operation];r||(this._operations[e.operation]=r=this.modifyInputMembers(t.input));var a=n.generateURI(e.httpRequest.endpoint.path,t.httpPath,r,e.params);e.httpRequest.path=a,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},getSynthesizeSpeechUrl:function(e,t,r){var a=this,n=this.service.makeRequest("synthesizeSpeech",e);return n.removeAllListeners("build"),n.on("build",(function(e){a.convertPostToGet(e)})),n.presign(t,r)}})},80987:(e,t,r)=>{var a=r(62662),n=r(79614);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,r,i,o,s,u,p,c=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],n=t.endpointOperation&&t.endpointOperation===a.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===n}(e))return e;if(c.endpoint&&c.endpoint.hostPrefix){var m=(s=c.endpoint.hostPrefix,u=e.params,p=c.input,a.each(p.members,(function(e,t){if(!0===t.hostLabel){if("string"!=typeof u[e]||""===u[e])throw a.error(new Error,{message:"Parameter "+e+" should be a non-empty string.",code:"InvalidParameter"});var r=new RegExp("\\{"+e+"\\}","g");s=s.replace(r,u[e])}})),s);i=e.httpRequest.endpoint,o=m,i.host&&(i.host=o+i.host),i.hostname&&(i.hostname=o+i.hostname),t=e.httpRequest.endpoint.hostname.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,a.arrayEach(t,(function(e){if(!e.length||e.length<1||e.length>63)throw a.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}))}return e}}},76933:(e,t,r)=>{var a=r(62662),n=r(43658),i=r(62622),o=r(80987).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,a=r.targetPrefix+"."+r.operations[e.operation].name,i=r.jsonVersion||"1.0",s=r.operations[e.operation].input,u=new n;1===i&&(i="1.0"),t.body=u.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+i,t.headers["X-Amz-Target"]=a,o(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var n=JSON.parse(r.body.toString()),i=n.__type||n.code||n.Code;i&&(t.code=i.split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=n.message||n.Message||null}catch(n){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=a.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},a=new i;e.data=a.parse(t,r)}}}},70293:(e,t,r)=>{var a=r(79614),n=r(62662),i=r(30864),o=r(68136),s=r(80987).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new i).serialize(e.params,t.input,(function(e,t){r.params[e]=t})),r.body=n.queryParamsToString(r.params),s(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("{var a=r(62662),n=r(80987).populateHostPrefix;function i(e,t,r,n){var i=[e,t].join("/");i=i.replace(/\/+/g,"/");var o={},s=!1;if(a.each(r.members,(function(e,t){var r=n[e];if(null!=r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");i=i.replace(u,(function(e,t){return(t?a.uriEscapePath:a.uriEscape)(String(r))}))}else"querystring"===t.location&&(s=!0,"list"===t.type?o[t.name]=r.map((function(e){return a.uriEscape(t.member.toWireFormat(e).toString())})):"map"===t.type?a.each(r,(function(e,t){Array.isArray(t)?o[e]=t.map((function(e){return a.uriEscape(String(e))})):o[e]=a.uriEscape(String(t))})):o[t.name]=a.uriEscape(t.toWireFormat(r).toString()))})),s){i+=i.indexOf("?")>=0?"&":"?";var u=[];a.arrayEach(Object.keys(o).sort(),(function(e){Array.isArray(o[e])||(o[e]=[o[e]]);for(var t=0;t{var a=r(62662),n=r(96225),i=r(76933),o=r(43658),s=r(62622);function u(e,t){if(!e.httpRequest.headers["Content-Type"]){var r=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=r}}e.exports={buildRequest:function(e){n.buildRequest(e),["GET","HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&function(e){var t=new o,r=e.service.api.operations[e.operation].input;if(r.payload){var a,n=r.members[r.payload];a=e.params[r.payload],"structure"===n.type?(e.httpRequest.body=t.build(a||{},n),u(e)):void 0!==a&&(e.httpRequest.body=a,("binary"===n.type||n.isStreaming)&&u(e,!0))}else e.httpRequest.body=t.build(e.params,r),u(e)}(e)},extractError:function(e){i.extractError(e)},extractData:function(e){n.extractData(e);var t=e.request,r=t.service.api.operations[t.operation],o=t.service.api.operations[t.operation].output||{};if(r.hasEventOutput,o.payload){var u=o.members[o.payload],p=e.httpResponse.body;if(u.isEventStream)c=new s,e.data[payload]=a.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:p,c,u);else if("structure"===u.type||"list"===u.type){var c=new s;e.data[o.payload]=c.parse(p,u)}else"binary"===u.type||u.isStreaming?e.data[o.payload]=p:e.data[o.payload]=u.toType(p)}else{var m=e.data;i.extractData(e),e.data=a.merge(m,e.data)}}}},11674:(e,t,r)=>{var a=r(79614),n=r(62662),i=r(96225);e.exports={buildRequest:function(e){i.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new a.XML.Builder,i=e.params,o=t.payload;if(o){var s=t.members[o];if(void 0===(i=i[o]))return;if("structure"===s.type){var u=s.name;e.httpRequest.body=r.toXML(i,s,u,!0)}else e.httpRequest.body=i}else e.httpRequest.body=r.toXML(i,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;i.extractError(e);try{t=(new a.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=n.error(new Error,{code:t.Code,message:t.Message}):e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t;i.extractData(e);var r=e.request,o=e.httpResponse.body,s=r.service.api.operations[r.operation],u=s.output,p=(s.hasEventOutput,u.payload);if(p){var c=u.members[p];c.isEventStream?(t=new a.XML.Parser,e.data[p]=n.createEventStream(2===a.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,c)):"structure"===c.type?(t=new a.XML.Parser,e.data[p]=t.parse(o.toString(),c)):"binary"===c.type||c.isStreaming?e.data[p]=o:e.data[p]=c.toType(o)}else if(o.length>0){var m=(t=new a.XML.Parser).parse(o.toString(),u);n.update(e.data,m)}}}},30864:(e,t,r)=>{var a=r(62662);function n(){}function i(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function o(e,t,r,n){a.each(r.members,(function(r,a){var o=t[r];if(null!=o){var u=i(a);s(u=e?e+"."+u:u,o,a,n)}}))}function s(e,t,r,n){null!=t&&("structure"===r.type?o(e,t,r,n):"list"===r.type?function(e,t,r,n){var o=r.member||{};0!==t.length?a.arrayEach(t,(function(t,a){var u="."+(a+1);if("ec2"===r.api.protocol)u+="";else if(r.flattened){if(o.name){var p=e.split(".");p.pop(),p.push(i(o)),e=p.join(".")}}else u="."+(o.name?o.name:"member")+u;s(e+u,t,o,n)})):n.call(this,e,null)}(e,t,r,n):"map"===r.type?function(e,t,r,n){var i=1;a.each(t,(function(t,a){var o=(r.flattened?".":".entry.")+i+++".",u=o+(r.key.name||"key"),p=o+(r.value.name||"value");s(e+u,t,r.key,n),s(e+p,a,r.value,n)}))}(e,t,r,n):n(e,r.toWireFormat(t).toString()))}n.prototype.serialize=function(e,t,r){o("",e,t,r)},e.exports=n},50903:(e,t,r)=>{var a=r(79614),n=null,i={signatureVersion:"v4",signingName:"rds-db",operations:{}},o={region:"string",hostname:"string",port:"number",username:"string"};a.RDS.Signer=a.util.inherit({constructor:function(e){this.options=e||{}},convertUrlToAuthToken:function(e){var t="https://";if(0===e.indexOf(t))return e.substring(t.length)},getAuthToken:function(e,t){"function"==typeof e&&void 0===t&&(t=e,e={});var r=this,o="function"==typeof t;e=a.util.merge(this.options,e);var s=this.validateAuthTokenOptions(e);if(!0!==s){if(o)return t(s,null);throw s}var u={region:e.region,endpoint:new a.Endpoint(e.hostname+":"+e.port),paramValidation:!1,signatureVersion:"v4"};e.credentials&&(u.credentials=e.credentials),(n=new a.Service(u)).api=i;var p=n.makeRequest();if(this.modifyRequestForAuthToken(p,e),!o){var c=p.presign(900);return this.convertUrlToAuthToken(c)}p.presign(900,(function(e,a){a&&(a=r.convertUrlToAuthToken(a)),t(e,a)}))},modifyRequestForAuthToken:function(e,t){e.on("build",e.buildAsGet),e.httpRequest.body=a.util.queryParamsToString({Action:"connect",DBUser:t.username})},validateAuthTokenOptions:function(e){var t="";for(var r in e=e||{},o)Object.prototype.hasOwnProperty.call(o,r)&&typeof e[r]!==o[r]&&(t+="option '"+r+"' should have been type '"+o[r]+"', was '"+typeof e[r]+"'.\n");return!t.length||a.util.error(new Error,{code:"InvalidParameter",message:t})}})},31414:e=>{e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},44040:e=>{e.exports={isFipsRegion:function(e){return"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},isGlobalRegion:function(e){return"string"==typeof e&&["aws-global","aws-us-gov-global"].includes(e)},getRealRegion:function(e){return["fips-aws-global","aws-fips","aws-global"].includes(e)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(e)?"us-gov-west-1":e.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},41404:(e,t,r)=>{var a=r(62662),n=r(80738);function i(e,t){a.each(t,(function(t,r){"globalEndpoint"!==t&&(void 0!==e.config[t]&&null!==e.config[t]||(e.config[t]=r))}))}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),a=e.api.endpointPrefix;return[[t,a],[r,a],[t,"*"],[r,"*"],["*",a],["*","*"]].map((function(e){return e[0]&&e[1]?e.join("/"):null}))}(e),r=e.config.useFipsEndpoint,a=e.config.useDualstackEndpoint,o=0;o{var a=r(79614),n=r(91793),i=a.util.inherit,o=a.util.domain,s=r(44509),u={success:1,error:1,complete:1},p=new n;p.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=!1,r.emit(r._asm.currentState,(function(e){if(e)if(a=r,Object.prototype.hasOwnProperty.call(u,a._asm.currentState)){if(!(o&&r.domain instanceof o.Domain))throw e;e.domainEmitter=r,e.domain=r.domain,e.domainThrown=!1,r.domain.emit("error",e)}else r.response.error=e,t(e);else t(r.response.error);var a}))};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)},p.setupStates(),a.Request=i({constructor:function(e,t,r){var i=e.endpoint,s=e.config.region,u=e.config.customUserAgent;e.signingRegion?s=e.signingRegion:e.isGlobalEndpoint&&(s="us-east-1"),this.domain=o&&o.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new a.HttpRequest(i,s),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new a.Response(this),this._asm=new n(p.states,"validate"),this._haltHandlersOnError=!1,a.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",(function(t){e.call(t,t.error,t.data)}))),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",(function(e){e.error=a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})})),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(e){e=a.util.fn.makeAsync(e,3),this.on("complete",(function t(r){e.call(r,r.error,r.data,(function(n){!1!==n&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,a.util.fn.noop))}))})).send()},eachItem:function(e){var t=this;this.eachPage((function(r,n){if(r)return e(r,null);if(null===n)return e(null,null);var i=t.service.paginationConfig(t.operation).resultKey;Array.isArray(i)&&(i=i[0]);var o=s.search(n,i),u=!0;return a.util.arrayEach(o,(function(t){if(!1===(u=e(null,t)))return a.util.abort})),u}))},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=a.util.stream,t=this,r=null;return 2===a.HttpClient.streamsApiVersion?(r=new e.PassThrough,process.nextTick((function(){t.send()}))):((r=new e.Stream).readable=!0,r.sent=!1,r.on("newListener",(function(e){r.sent||"data"!==e||(r.sent=!0,process.nextTick((function(){t.send()})))}))),this.on("error",(function(e){r.emit("error",e)})),this.on("httpHeaders",(function(n,i,o){if(n<300){t.removeListener("httpData",a.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",a.EventListeners.Core.HTTP_ERROR),t.on("httpError",(function(e){o.error=e,o.error.retryable=!1}));var s,u=!1;if("HEAD"!==t.httpRequest.method&&(s=parseInt(i["content-length"],10)),void 0!==s&&!isNaN(s)&&s>=0){u=!0;var p=0}var c=function(){u&&p!==s?r.emit("error",a.util.error(new Error("Stream content length mismatch. Received "+p+" of "+s+" bytes."),{code:"StreamContentLengthMismatch"})):2===a.HttpClient.streamsApiVersion?r.end():r.emit("end")},m=o.httpResponse.createUnbufferedStream();if(2===a.HttpClient.streamsApiVersion)if(u){var l=new e.PassThrough;l._write=function(t){return t&&t.length&&(p+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},l.on("end",c),r.on("error",(function(e){u=!1,m.unpipe(l),l.emit("end"),l.end()})),m.pipe(l).pipe(r,{end:!1})}else m.pipe(r);else u&&m.on("data",(function(e){e&&e.length&&(p+=e.length)})),m.on("data",(function(e){r.emit("data",e)})),m.on("end",c);m.on("error",(function(e){u=!1,r.emit("error",e)}))}})),r},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),a.SequentialExecutor.prototype.emit.call(this,e,t,(function(e){e&&(this.response.error=e),r.call(this,e)}))},eventParameters:function(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(e,t){return t||"function"!=typeof e||(t=e,e=null),(new a.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",a.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",a.EventListeners.Core.SIGN),this},toGet:function(){return"query"!==this.service.api.protocol&&"ec2"!==this.service.api.protocol||(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(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(){this._haltHandlersOnError=!0}}),a.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e((function(e,r){t.on("complete",(function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))})),t.runTo()}))}},a.Request.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.Request),a.util.mixin(a.Request,a.SequentialExecutor)},82413:(e,t,r)=>{var a=r(79614),n=a.util.inherit,i=r(44509);function o(e){var t=e.request._waiter,r=t.config.acceptors,a=!1,n="retry";r.forEach((function(r){if(!a){var i=t.matchers[r.matcher];i&&i(e,r.expected,r.argument)&&(a=!0,n=r.state)}})),!a&&e.error&&(n="failure"),"success"===n?t.setSuccess(e):t.setError(e,"retry"===n)}a.ResourceWaiter=n({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var a=i.search(e.data,r)}catch(e){return!1}return i.strictDeepEqual(a,t)},pathAll:function(e,t,r){try{var a=i.search(e.data,r)}catch(e){return!1}Array.isArray(a)||(a=[a]);var n=a.length;if(!n)return!1;for(var o=0;o{var a=r(79614),n=a.util.inherit,i=r(44509);a.Response=n({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new a.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,n=this.request.operation;try{t=r.paginationConfig(n,!0)}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=a.util.copy(this.request.params);if(this.nextPageTokens){var o=t.inputToken;"string"==typeof o&&(o=[o]);for(var s=0;s{var a=r(79614),n=a.util.string.byteLength,i=a.util.Buffer;a.S3.ManagedUpload=a.util.inherit({constructor:function(e){var t=this;a.SequentialExecutor.call(t),t.body=null,t.sliceFn=null,t.callback=null,t.parts={},t.completeInfo=[],t.fillQueue=function(){t.callback(new Error("Unsupported body payload "+typeof t.body))},t.configure(e)},configure:function(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),e.tags){if(!Array.isArray(e.tags))throw new Error("Tags must be specified as an array; "+typeof e.tags+" provided.");this.tags=e.tags}if(this.partSize=1&&t.doneParts===t.numParts&&t.finishMultiPart()})))}r&&t.fillQueue.call(t)},abort:function(){var e=this;!0===e.isDoneChunking&&1===e.totalPartNumbers&&e.singlePart?e.singlePart.abort():e.cleanup(a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function(){var e=this;if(e.body=e.service.config.params.Body,"string"==typeof e.body)e.body=a.util.buffer.toBuffer(e.body);else if(!e.body)throw new Error("params.Body is required");e.sliceFn=a.util.arraySliceFn(e.body)},bindServiceObject:function(e){e=e||{};var t=this;if(t.service){var r=t.service,n=a.util.copy(r.config);n.signatureVersion=r.getSignatureVersion(),t.service=new r.constructor.__super__(n),t.service.config.params=a.util.merge(t.service.config.params||{},e),Object.defineProperty(t.service,"_originalConfig",{get:function(){return r._originalConfig},enumerable:!1,configurable:!0})}else t.service=new a.S3({params:e})},adjustTotalBytes:function(){var e=this;try{e.totalBytes=n(e.body)}catch(e){}if(e.totalBytes){var t=Math.ceil(e.totalBytes/e.maxTotalParts);t>e.partSize&&(e.partSize=t)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function(){var e=this,t=n(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var r=1===e.partBuffers.length?e.partBuffers[0]:i.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,r.length>e.partSize){var a=r.slice(e.partSize);e.partBuffers.push(a),e.partBufferLength+=a.length,r=r.slice(0,e.partSize)}e.nextChunk(r)}e.isDoneChunking&&!e.isDoneSending&&(r=1===e.partBuffers.length?e.partBuffers[0]:i.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||r.length>0)&&(e.numParts++,e.nextChunk(r))),e.body.read(0)}},nextChunk:function(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var n={Body:e};this.tags&&(n.Tagging=this.getTaggingHeader());var i=t.service.putObject(n);return i._managedUpload=t,i.on("httpUploadProgress",t.progress).send(t.finishSinglePart),t.singlePart=i,null}if(t.service.config.params.ContentMD5){var o=a.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(o),null}if(t.completeInfo[r]&&null!==t.completeInfo[r].ETag)return null;t.activeParts++,t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",(function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null})),t.queueChunks(e,r),t.multipartReq.on("error",(function(e){t.cleanup(e)})),t.multipartReq.send())},getTaggingHeader:function(){for(var e=[],t=0;t{var a=r(79614);a.SequentialExecutor=a.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var a=r.length,n=-1,i=0;i-1&&r.splice(n,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var a=this.listeners(e),n=a.length;return this.callListeners(a,t,r),n>0},callListeners:function(e,t,r,n){var i=this,o=n||null;function s(n){if(n&&(o=a.util.error(o||new Error,n),i._haltHandlersOnError))return r.call(i,o);i.callListeners(e,t,r,o)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(i,t.concat([s]));try{u.apply(i,t)}catch(e){o=a.util.error(o||new Error,e)}if(o&&i._haltHandlersOnError)return void r.call(i,o)}r.call(i,o)},addListeners:function(e){var t=this;return e._events&&(e=e._events),a.util.each(e,(function(e,r){"function"==typeof r&&(r=[r]),a.util.arrayEach(r,(function(r){t.on(e,r)}))})),t},addNamedListener:function(e,t,r,a){return this[e]=r,this.addListener(t,r,a),this},addNamedAsyncListener:function(e,t,r,a){return r._isAsync=!0,this.addNamedListener(e,t,r,a)},addNamedListeners:function(e){var t=this;return e((function(){t.addNamedListener.apply(t,arguments)}),(function(){t.addNamedAsyncListener.apply(t,arguments)})),this}}),a.SequentialExecutor.prototype.addListener=a.SequentialExecutor.prototype.on,e.exports=a.SequentialExecutor},20173:(e,t,r)=>{var a=r(79614),n=r(85863),i=r(41404),o=a.util.inherit,s=0,u=r(44040);a.Service=o({constructor:function(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var t=e.region;u.isFipsRegion(t)&&(e.region=u.getRealRegion(t),e.useFipsEndpoint=!0),u.isGlobalRegion(t)&&(e.region=u.getRealRegion(t))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var r=this.loadServiceClass(e||{});if(r){var n=a.util.copy(e),i=new r(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return n},enumerable:!1,configurable:!0}),i._clientId=++s,i}this.initialize(e)},initialize:function(e){var t=a.config[this.serviceIdentifier];if(this.config=new a.Config(a.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||i.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),a.SequentialExecutor.call(this),a.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||a.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",(function(e){process.nextTick((function(){r.eventHandler(e)}))})),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",(function(e){process.nextTick((function(){r.eventHandler(e)}))}))}},validateService:function(){},loadServiceClass:function(e){var t=e;if(a.util.isEmpty(this.api)){if(t.apiConfig)return a.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new a.Config(a.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&a.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?a.util.isType(e,Date)&&(e=a.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,n=t.length-1;n>=0;n--)if("*"!==t[n][t[n].length-1]&&(r=t[n]),t[n].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var n=this.api.operations[e];n&&(t=a.util.copy(t),a.util.each(this.config.params,(function(e,r){n.input.members[e]&&(void 0!==t[e]&&null!==t[e]||(t[e]=r))})))}var i=new a.Request(this,e,t);return this.addAllRequestListeners(i),this.attachMonitoringEmitter(i),r&&i.send(r),i},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var a=this.makeRequest(e,t).toUnauthenticated();return r?a.send(r):a},waitFor:function(e,t,r){return new a.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[a.events,a.EventListeners.Core,this.serviceInterface(),a.EventListeners.CorePost],r=0;r299?(n.code&&(r.FinalAwsException=n.code),n.message&&(r.FinalAwsExceptionMessage=n.message)):((n.code||n.name)&&(r.FinalSdkException=n.code||n.name),n.message&&(r.FinalSdkExceptionMessage=n.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={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()},a=e.response;return a.httpResponse.statusCode&&(r.HttpStatusCode=a.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),a.httpResponse.headers?(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),a.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=a.httpResponse.headers["x-amzn-requestid"]),a.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=a.httpResponse.headers["x-amz-request-id"]),a.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=a.httpResponse.headers["x-amz-id-2"]),r):r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,a=r.error;return r.httpResponse.statusCode>299?(a.code&&(t.AwsException=a.code),a.message&&(t.AwsExceptionMessage=a.message)):((a.code||a.name)&&(t.SdkException=a.code||a.name),a.message&&(t.SdkExceptionMessage=a.message)),t},attachMonitoringEmitter:function(e){var t,r,n,i,o,s,u=0,p=this;e.on("validate",(function(){i=a.util.realClock.now(),s=Date.now()}),!0),e.on("sign",(function(){r=a.util.realClock.now(),t=Date.now(),o=e.httpRequest.region,u++}),!0),e.on("validateResponse",(function(){n=Math.round(a.util.realClock.now()-r)})),e.addNamedListener("API_CALL_ATTEMPT","success",(function(){var r=p.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=n>=0?n:0,r.Region=o,p.emit("apiCallAttempt",[r])})),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",(function(){var i=p.attemptFailEvent(e);i.Timestamp=t,n=n||Math.round(a.util.realClock.now()-r),i.AttemptLatency=n>=0?n:0,i.Region=o,p.emit("apiCallAttempt",[i])})),e.addNamedListener("API_CALL","complete",(function(){var t=p.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=s;var r=Math.round(a.util.realClock.now()-i);t.Latency=r>=0?r:0;var n=e.response;n.error&&n.error.retryable&&"number"==typeof n.retryCount&&"number"==typeof n.maxRetries&&n.retryCount>=n.maxRetries&&(t.MaxRetriesExceeded=1),p.emit("apiCall",[t])}}))},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t,r=null,n="";return e&&(n=(r=(e.service.api.operations||{})[e.operation]||null)?r.authtype:""),t=this.config.signatureVersion?this.config.signatureVersion:"v4"===n||"v4-unsigned-body"===n?"v4":"bearer"===n?"bearer":this.api.signatureVersion,a.Signers.RequestSigner.getVersion(t)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return a.EventListeners.Query;case"json":return a.EventListeners.Json;case"rest-json":return a.EventListeners.RestJson;case"rest-xml":return a.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!this.timeoutError(e)||!!this.networkingError(e)||!!this.expiredCredentialsError(e)||!!this.throttledError(e)||e.statusCode>=500},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new a.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var n=new Error;throw a.util.error(n,"No pagination configuration for "+e)}return null}return r}}),a.util.update(a.Service,{defineMethods:function(e){a.util.each(e.prototype.api.operations,(function(t){e.prototype[t]||("none"===e.prototype.api.operations[t].authtype?e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)})}))},defineService:function(e,t,r){a.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var n=o(a.Service,r||{});if("string"==typeof e){a.Service.addVersions(n,t);var i=n.serviceIdentifier||e;n.serviceIdentifier=i}else n.prototype.api=e,a.Service.defineMethods(n);if(a.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&a.util.clientSideMonitoring){var s=a.util.clientSideMonitoring.Publisher,u=(0,a.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new s(u),u.enabled&&(a.Service._clientSideMonitoring=!0)}return a.SequentialExecutor.call(n.prototype),a.Service.addDefaultMonitoringListeners(n.prototype),n},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r{var a=r(79614);a.util.update(a.APIGateway.prototype,{setAcceptHeader:function(e){var t=e.httpRequest;t.headers.Accept||(t.headers.Accept="application/json")},setupRequestListeners:function(e){e.addListener("build",this.setAcceptHeader),"getExport"===e.operation&&"swagger"===(e.params||{}).exportType&&e.addListener("extractData",a.util.convertPayloadToString)}})},67781:(e,t,r)=>{var a=r(79614);r(13372),a.util.update(a.CloudFront.prototype,{setupRequestListeners:function(e){e.addListener("extractData",a.util.hoistPayloadMember)}})},98637:(e,t,r)=>{var a=r(79614);r(8714),a.util.update(a.DynamoDB.prototype,{setupRequestListeners:function(e){e.service.config.dynamoDbCrc32&&(e.removeListener("extractData",a.EventListeners.Json.EXTRACT_DATA),e.addListener("extractData",this.checkCrc32),e.addListener("extractData",a.EventListeners.Json.EXTRACT_DATA))},checkCrc32:function(e){if(!e.httpResponse.streaming&&!e.request.service.crc32IsValid(e))throw e.data=null,e.error=a.util.error(new Error,{code:"CRC32CheckFailed",message:"CRC32 integrity check failed",retryable:!0}),e.request.haltHandlersOnError(),e.error},crc32IsValid:function(e){var t=e.httpResponse.headers["x-amz-crc32"];return!t||parseInt(t,10)===a.util.crypto.crc32(e.httpResponse.body)},defaultRetryCount:10,retryDelays:function(e,t){var r=a.util.copy(this.config.retryDelayOptions);return"number"!=typeof r.base&&(r.base=50),a.util.calculateRetryDelay(e,r,t)}})},56914:(e,t,r)=>{var a=r(79614);a.util.update(a.EC2.prototype,{setupRequestListeners:function(e){e.removeListener("extractError",a.EventListeners.Query.EXTRACT_ERROR),e.addListener("extractError",this.extractError),"copySnapshot"===e.operation&&e.onAsync("validate",this.buildCopySnapshotPresignedUrl)},buildCopySnapshotPresignedUrl:function(e,t){if(e.params.PresignedUrl||e._subRequest)return t();e.params=a.util.copy(e.params),e.params.DestinationRegion=e.service.config.region;var r=a.util.copy(e.service.config);delete r.endpoint,r.region=e.params.SourceRegion;var n=new e.service.constructor(r)[e.operation](e.params);n._subRequest=!0,n.presign((function(r,a){r?t(r):(e.params.PresignedUrl=a,t())}))},extractError:function(e){var t=e.httpResponse,r=(new a.XML.Parser).parse(t.body.toString()||"");r.Errors?e.error=a.util.error(new Error,{code:r.Errors.Error.Code,message:r.Errors.Error.Message}):e.error=a.util.error(new Error,{code:t.statusCode,message:null}),e.error.requestId=r.RequestID||null}})},16184:(e,t,r)=>{var a=r(79614),n=["deleteThingShadow","getThingShadow","updateThingShadow"];a.util.update(a.IotData.prototype,{validateService:function(){if(!this.config.endpoint||this.config.endpoint.indexOf("{")>=0)throw a.util.error(new Error,{name:"InvalidEndpoint",message:"AWS.IotData requires an explicit `endpoint' configuration option."})},setupRequestListeners:function(e){e.addListener("validateResponse",this.validateResponseBody),n.indexOf(e.operation)>-1&&e.addListener("extractData",a.util.convertPayloadToString)},validateResponseBody:function(e){var t=(e.httpResponse.body.toString()||"{}").trim();t&&"{"===t.charAt(0)||(e.httpResponse.body="")}})},29510:(e,t,r)=>{var a=r(79614);a.util.update(a.Lambda.prototype,{setupRequestListeners:function(e){"invoke"===e.operation&&e.addListener("extractData",a.util.convertPayloadToString)}})},73865:(e,t,r)=>{var a=r(79614);a.util.update(a.MachineLearning.prototype,{setupRequestListeners:function(e){"predict"===e.operation&&e.addListener("build",this.buildEndpoint)},buildEndpoint:function(e){var t=e.params.PredictEndpoint;t&&(e.httpRequest.endpoint=new a.Endpoint(t))}})},96661:(e,t,r)=>{r(35409)},43550:(e,t,r)=>{var a=r(79614),n=r(56938);r(50903);var i=["copyDBSnapshot","createDBInstanceReadReplica","createDBCluster","copyDBClusterSnapshot","startDBInstanceAutomatedBackupsReplication"];a.util.update(a.RDS.prototype,{setupRequestListeners:function(e){n.setupRequestListeners(this,e,i)}})},56938:(e,t,r)=>{var a=r(79614),n={setupRequestListeners:function(e,t,r){if(-1!==r.indexOf(t.operation)&&t.params.SourceRegion)if(t.params=a.util.copy(t.params),t.params.PreSignedUrl||t.params.SourceRegion===e.config.region)delete t.params.SourceRegion;else{var i=!!e.config.paramValidation;i&&t.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),t.onAsync("validate",n.buildCrossRegionPresignedUrl),i&&t.addListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS)}},buildCrossRegionPresignedUrl:function(e,t){var r=a.util.copy(e.service.config);r.region=e.params.SourceRegion,delete e.params.SourceRegion,delete r.endpoint,delete r.params,r.signatureVersion="v4";var n=e.service.config.region,i=new e.service.constructor(r)[e.operation](a.util.copy(e.params));i.on("build",(function(e){var t=e.httpRequest;t.params.DestinationRegion=n,t.body=a.util.queryParamsToString(t.params)})),i.presign((function(r,a){r?t(r):(e.params.PreSignedUrl=a,t())}))}};e.exports=n},56182:(e,t,r)=>{var a=r(79614);a.util.update(a.Route53.prototype,{setupRequestListeners:function(e){e.on("build",this.sanitizeUrl)},sanitizeUrl:function(e){var t=e.httpRequest.path;e.httpRequest.path=t.replace(/\/%2F\w+%2F/,"/")},retryableError:function(e){return"PriorRequestNotComplete"===e.code&&400===e.statusCode||a.Service.prototype.retryableError.call(this,e)}})},3906:(e,t,r)=>{var a=r(79614),n=r(16914),i=r(65456),o=r(85133),s=r(41404);r(92149);var u={completeMultipartUpload:!0,copyObject:!0,uploadPartCopy:!0},p=["AuthorizationHeaderMalformed","BadRequest","PermanentRedirect",301];a.util.update(a.S3.prototype,{getSignatureVersion:function(e){var t=this.api.signatureVersion,r=this._originalConfig?this._originalConfig.signatureVersion:null,a=this.config.signatureVersion,n=!!e&&e.isPresigned();return r?r="v2"===r?"s3":r:(!0!==n?t="v4":a&&(t=a),t)},getSigningName:function(e){if(e&&"writeGetObjectResponse"===e.operation)return"s3-object-lambda";var t=a.Service.prototype.getSigningName;return e&&e._parsedArn&&e._parsedArn.service?e._parsedArn.service:t.call(this)},getSignerClass:function(e){var t=this.getSignatureVersion(e);return a.Signers.RequestSigner.getVersion(t)},validateService:function(){var e,t=[];if(this.config.region||(this.config.region="us-east-1"),!this.config.endpoint&&this.config.s3BucketEndpoint&&t.push("An endpoint must be provided when configuring `s3BucketEndpoint` to true."),1===t.length?e=t[0]:t.length>1&&(e="Multiple configuration errors:\n"+t.join("\n")),e)throw a.util.error(new Error,{name:"InvalidEndpoint",message:e})},shouldDisableBodySigning:function(e){var t=this.getSignerClass();return!0===this.config.s3DisableBodySigning&&t===a.Signers.V4&&"https:"===e.httpRequest.endpoint.protocol},setupRequestListeners:function(e){if(e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketName,!0),e.addListener("validate",this.optInUsEast1RegionalEndpoint,!0),e.removeListener("validate",a.EventListeners.Core.VALIDATE_REGION),e.addListener("build",this.addContentType),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("build",this.populateURI),e.addListener("afterBuild",this.addExpect100Continue),e.addListener("extractError",this.extractError),e.addListener("extractData",a.util.hoistPayloadMember),e.addListener("extractData",this.extractData),e.addListener("extractData",this.extractErrorFrom200Response),e.addListener("beforePresign",this.prepareSignedUrl),this.shouldDisableBodySigning(e)&&(e.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),e.addListener("afterBuild",this.disableBodySigning)),"createBucket"!==e.operation&&o.isArnInParam(e,"Bucket"))return e._parsedArn=a.util.ARN.parse(e.params.Bucket),e.removeListener("validate",this.validateBucketName),e.removeListener("build",this.populateURI),"s3"===e._parsedArn.service?(e.addListener("validate",o.validateS3AccessPointArn),e.addListener("validate",this.validateArnResourceType),e.addListener("validate",this.validateArnRegion)):"s3-outposts"===e._parsedArn.service&&(e.addListener("validate",o.validateOutpostsAccessPointArn),e.addListener("validate",o.validateOutpostsArn),e.addListener("validate",o.validateArnRegion)),e.addListener("validate",o.validateArnAccount),e.addListener("validate",o.validateArnService),e.addListener("build",this.populateUriFromAccessPointArn),void e.addListener("build",o.validatePopulateUriFromArn);e.addListener("validate",this.validateBucketEndpoint),e.addListener("validate",this.correctBucketRegionFromCache),e.onAsync("extractError",this.requestBucketRegion),a.util.isBrowser()&&e.onAsync("retry",this.reqRegionForNetworkingError)},validateScheme:function(e){var t=e.params,r=e.httpRequest.endpoint.protocol;if((t.SSECustomerKey||t.CopySourceSSECustomerKey)&&"https:"!==r)throw a.util.error(new Error,{code:"ConfigError",message:"Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration"})},validateBucketEndpoint:function(e){if(!e.params.Bucket&&e.service.config.s3BucketEndpoint)throw a.util.error(new Error,{code:"ConfigError",message:"Cannot send requests to root API with `s3BucketEndpoint` set."})},validateArnRegion:function(e){o.validateArnRegion(e,{allowFipsEndpoint:!0})},validateArnResourceType:function(e){var t=e._parsedArn.resource;if(0!==t.indexOf("accesspoint:")&&0!==t.indexOf("accesspoint/"))throw a.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'accesspoint/'"})},validateBucketName:function(e){var t=e.service.getSignatureVersion(e),r=e.params&&e.params.Bucket,n=e.params&&e.params.Key,i=r&&r.indexOf("/");if(r&&i>=0)if("string"==typeof n&&i>0){e.params=a.util.copy(e.params);var o=r.substr(i+1)||"";e.params.Key=o+"/"+n,e.params.Bucket=r.substr(0,i)}else if("v4"===t){var s="Bucket names cannot contain forward slashes. Bucket: "+r;throw a.util.error(new Error,{code:"InvalidBucket",message:s})}},isValidAccelerateOperation:function(e){return-1===["createBucket","deleteBucket","listBuckets"].indexOf(e)},optInUsEast1RegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.s3UsEast1RegionalEndpoint=i(t._originalConfig,{env:"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT",sharedConfig:"s3_us_east_1_regional_endpoint",clientConfig:"s3UsEast1RegionalEndpoint"}),!(t._originalConfig||{}).endpoint&&"us-east-1"===e.httpRequest.region&&"regional"===r.s3UsEast1RegionalEndpoint&&e.httpRequest.endpoint.hostname.indexOf("s3.amazonaws.com")>=0){var a=r.endpoint.indexOf(".amazonaws.com");regionalEndpoint=r.endpoint.substring(0,a)+".us-east-1"+r.endpoint.substring(a),e.httpRequest.updateEndpoint(regionalEndpoint)}},populateURI:function(e){var t=e.httpRequest,r=e.params.Bucket,a=e.service,n=t.endpoint;if(r&&!a.pathStyleBucketName(r)){a.config.useAccelerateEndpoint&&a.isValidAccelerateOperation(e.operation)?a.config.useDualstackEndpoint?n.hostname=r+".s3-accelerate.dualstack.amazonaws.com":n.hostname=r+".s3-accelerate.amazonaws.com":a.config.s3BucketEndpoint||(n.hostname=r+"."+n.hostname);var i=n.port;n.host=80!==i&&443!==i?n.hostname+":"+n.port:n.hostname,t.virtualHostedBucket=r,a.removeVirtualHostedBucketFromPath(e)}},removeVirtualHostedBucketFromPath:function(e){var t=e.httpRequest,r=t.virtualHostedBucket;if(r&&t.path){if(e.params&&e.params.Key){var n="/"+a.util.uriEscapePath(e.params.Key);if(0===t.path.indexOf(n)&&(t.path.length===n.length||"?"===t.path[n.length]))return}t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},populateUriFromAccessPointArn:function(e){var t=e._parsedArn,r="s3-outposts"===t.service,n="s3-object-lambda"===t.service,i=r?"."+t.outpostId:"",o=r?"s3-outposts":"s3-accesspoint",u=!r&&e.service.config.useFipsEndpoint?"-fips":"",p=!r&&e.service.config.useDualstackEndpoint?".dualstack":"",c=e.httpRequest.endpoint,m=s.getEndpointSuffix(t.region),l=e.service.config.s3UseArnRegion;if(c.hostname=[t.accessPoint+"-"+t.accountId+i,o+u+p,l?t.region:e.service.config.region,m].join("."),n){o="s3-object-lambda";var d=t.resource.split("/")[1];u=e.service.config.useFipsEndpoint?"-fips":"",c.hostname=[d+"-"+t.accountId,o+u,l?t.region:e.service.config.region,m].join(".")}c.host=c.hostname;var y=a.util.uriEscape(e.params.Bucket),b=e.httpRequest.path;e.httpRequest.path=b.replace(new RegExp("/"+y),""),"/"!==e.httpRequest.path[0]&&(e.httpRequest.path="/"+e.httpRequest.path),e.httpRequest.region=t.region},addExpect100Continue:function(e){var t=e.httpRequest.headers["Content-Length"];a.util.isNode()&&(t>=1048576||e.params.Body instanceof a.util.stream.Stream)&&(e.httpRequest.headers.Expect="100-continue")},addContentType:function(e){var t=e.httpRequest;if("GET"!==t.method&&"HEAD"!==t.method){t.headers["Content-Type"]||(t.headers["Content-Type"]="application/octet-stream");var r=t.headers["Content-Type"];a.util.isBrowser()&&("string"!=typeof t.body||r.match(/;\s*charset=/)?t.headers["Content-Type"]=r.replace(/(;\s*charset=)(.+)$/,(function(e,t,r){return t+r.toUpperCase()})):t.headers["Content-Type"]+="; charset=UTF-8")}else delete t.headers["Content-Type"]},willComputeChecksums:function(e){var t=e.service.api.operations[e.operation].input.members,r=e.httpRequest.body,n=e.service.config.computeChecksums&&t.ContentMD5&&!e.params.ContentMD5&&r&&(a.util.Buffer.isBuffer(e.httpRequest.body)||"string"==typeof e.httpRequest.body);return!(!n||!e.service.shouldDisableBodySigning(e)||e.isPresigned())||!(!n||"s3"!==this.getSignatureVersion(e)||!e.isPresigned())},computeContentMd5:function(e){if(e.service.willComputeChecksums(e)){var t=a.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function(e){a.util.each({SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},(function(t,r){if(e.params[t]){var n=a.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[r]=n}}))},pathStyleBucketName:function(e){return!(!this.config.s3ForcePathStyle&&(this.config.s3BucketEndpoint||o.dnsCompatibleBucketName(e)&&(!this.config.sslEnabled||!e.match(/\./))))},extractErrorFrom200Response:function(e){if(u[e.request.operation]){var t=e.httpResponse;if(t.body&&t.body.toString().match(""))throw e.data=null,(this.service?this.service:this).extractError(e),e.error;if(!t.body||!t.body.toString().match(/<[\w_]/))throw e.data=null,a.util.error(new Error,{code:"InternalError",message:"S3 aborted request"})}},retryableError:function(e,t){return!(!u[t.operation]||200!==e.statusCode)||(!t._requestRegionForBucket||!t.service.bucketRegionCache[t._requestRegionForBucket])&&(!(!e||"RequestTimeout"!==e.code)||(e&&-1!=p.indexOf(e.code)&&e.region&&e.region!=t.httpRequest.region?(t.httpRequest.region=e.region,301===e.statusCode&&t.service.updateReqBucketRegion(t),!0):a.Service.prototype.retryableError.call(this,e,t)))},updateReqBucketRegion:function(e,t){var r=e.httpRequest;if("string"==typeof t&&t.length&&(r.region=t),r.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)){var n=e.service,i=n.config,o=i.s3BucketEndpoint;o&&delete i.s3BucketEndpoint;var s=a.util.copy(i);delete s.endpoint,s.region=r.region,r.endpoint=new a.S3(s).endpoint,n.populateURI(e),i.s3BucketEndpoint=o,r.headers.Host=r.endpoint.host,"validate"===e._asm.currentState&&(e.removeListener("build",n.populateURI),e.addListener("build",n.removeVirtualHostedBucketFromPath))}},extractData:function(e){var t=e.request;if("getBucketLocation"===t.operation){var r=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,e.data.LocationConstraint=r?r[1]:""}var a=t.params.Bucket||null;if("deleteBucket"!==t.operation||"string"!=typeof a||e.error){var n=(e.httpResponse.headers||{})["x-amz-bucket-region"]||null;if(!n&&"createBucket"===t.operation&&!e.error){var i=t.params.CreateBucketConfiguration;n=i?"EU"===i.LocationConstraint?"eu-west-1":i.LocationConstraint:"us-east-1"}n&&a&&n!==t.service.bucketRegionCache[a]&&(t.service.bucketRegionCache[a]=n)}else t.service.clearBucketRegionCache(a);t.service.extractRequestIds(e)},extractError:function(e){var t,r={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},n=e.request,i=e.httpResponse.statusCode,o=e.httpResponse.body||"",s=(e.httpResponse.headers||{})["x-amz-bucket-region"]||null,u=n.params.Bucket||null,p=n.service.bucketRegionCache;if(s&&u&&s!==p[u]&&(p[u]=s),r[i]&&0===o.length)u&&!s&&(t=p[u]||null)!==n.httpRequest.region&&(s=t),e.error=a.util.error(new Error,{code:r[i],message:null,region:s});else{var c=(new a.XML.Parser).parse(o.toString());c.Region&&!s?(s=c.Region,u&&s!==p[u]&&(p[u]=s)):!u||s||c.Region||(t=p[u]||null)!==n.httpRequest.region&&(s=t),e.error=a.util.error(new Error,{code:c.Code||i,message:c.Message||null,region:s})}n.service.extractRequestIds(e)},requestBucketRegion:function(e,t){var r=e.error,n=e.request,i=n.params.Bucket||null;if(!r||!i||r.region||"listObjects"===n.operation||a.util.isNode()&&"headBucket"===n.operation||400===r.statusCode&&"headObject"!==n.operation||-1===p.indexOf(r.code))return t();var o=a.util.isNode()?"headBucket":"listObjects",s={Bucket:i};"listObjects"===o&&(s.MaxKeys=0);var u=n.service[o](s);u._requestRegionForBucket=i,u.send((function(){var e=n.service.bucketRegionCache[i]||null;r.region=e,t()}))},reqRegionForNetworkingError:function(e,t){if(!a.util.isBrowser())return t();var r=e.error,n=e.request,i=n.params.Bucket;if(!r||"NetworkingError"!==r.code||!i||"us-east-1"===n.httpRequest.region)return t();var s=n.service,u=s.bucketRegionCache,p=u[i]||null;if(p&&p!==n.httpRequest.region)s.updateReqBucketRegion(n,p),t();else if(o.dnsCompatibleBucketName(i))if(n.httpRequest.virtualHostedBucket){var c=s.listObjects({Bucket:i,MaxKeys:0});s.updateReqBucketRegion(c,"us-east-1"),c._requestRegionForBucket=i,c.send((function(){var e=s.bucketRegionCache[i]||null;e&&e!==n.httpRequest.region&&s.updateReqBucketRegion(n,e),t()}))}else t();else s.updateReqBucketRegion(n,"us-east-1"),"us-east-1"!==u[i]&&(u[i]="us-east-1"),t()},bucketRegionCache:{},clearBucketRegionCache:function(e){var t=this.bucketRegionCache;e?"string"==typeof e&&(e=[e]):e=Object.keys(t);for(var r=0;r{var a=r(79614),n=r(41404),i={isArnInParam:function(e,t){var r=((e.service.api.operations[e.operation]||{}).input||{}).members||{};return!(!e.params[t]||!r[t])&&a.util.ARN.validate(e.params[t])},validateArnService:function(e){var t=e._parsedArn;if("s3"!==t.service&&"s3-outposts"!==t.service&&"s3-object-lambda"!==t.service)throw a.util.error(new Error,{code:"InvalidARN",message:"expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component"})},validateArnAccount:function(e){var t=e._parsedArn;if(!/[0-9]{12}/.exec(t.accountId))throw a.util.error(new Error,{code:"InvalidARN",message:'ARN accountID does not match regex "[0-9]{12}"'})},validateS3AccessPointArn:function(e){var t=e._parsedArn,r=t.resource["accesspoint".length];if(2!==t.resource.split(r).length)throw a.util.error(new Error,{code:"InvalidARN",message:"Access Point ARN should have one resource accesspoint/{accesspointName}"});var n=t.resource.split(r)[1],o=n+"-"+t.accountId;if(!i.dnsCompatibleBucketName(o)||o.match(/\./))throw a.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+n});e._parsedArn.accessPoint=n},validateOutpostsArn:function(e){var t=e._parsedArn;if(0!==t.resource.indexOf("outpost:")&&0!==t.resource.indexOf("outpost/"))throw a.util.error(new Error,{code:"InvalidARN",message:"ARN resource should begin with 'outpost/'"});var r=t.resource["outpost".length],n=t.resource.split(r)[1];if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw a.util.error(new Error,{code:"InvalidARN",message:"Outpost resource in ARN is not DNS compatible. Got "+n});e._parsedArn.outpostId=n},validateOutpostsAccessPointArn:function(e){var t=e._parsedArn,r=t.resource["outpost".length];if(4!==t.resource.split(r).length)throw a.util.error(new Error,{code:"InvalidARN",message:"Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}"});var n=t.resource.split(r)[3],o=n+"-"+t.accountId;if(!i.dnsCompatibleBucketName(o)||o.match(/\./))throw a.util.error(new Error,{code:"InvalidARN",message:"Access point resource in ARN is not DNS compatible. Got "+n});e._parsedArn.accessPoint=n},validateArnRegion:function(e,t){void 0===t&&(t={});var r=i.loadUseArnRegionConfig(e),o=e._parsedArn.region,s=e.service.config.region,u=e.service.config.useFipsEndpoint,p=t.allowFipsEndpoint||!1;if(!o){var c="ARN region is empty";throw"s3"===e._parsedArn.service&&(c+="\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3)."),a.util.error(new Error,{code:"InvalidARN",message:c})}if(u&&!p)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"ARN endpoint is not compatible with FIPS region"});if(o.indexOf("fips")>=0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"FIPS region not allowed in ARN"});if(!r&&o!==s)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region conflicts with access point region"});if(r&&n.getEndpointSuffix(o)!==n.getEndpointSuffix(s))throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Configured region and access point region not in same partition"});if(e.service.config.useAccelerateEndpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"useAccelerateEndpoint config is not supported with access point ARN"});if("s3-outposts"===e._parsedArn.service&&e.service.config.useDualstackEndpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Dualstack is not supported with outposts access point ARN"})},loadUseArnRegionConfig:function(e){var t="AWS_S3_USE_ARN_REGION",r="s3_use_arn_region",n=!0,i=e.service._originalConfig||{};if(void 0!==e.service.config.s3UseArnRegion)return e.service.config.s3UseArnRegion;if(void 0!==i.s3UseArnRegion)n=!0===i.s3UseArnRegion;else if(a.util.isNode())if(process.env[t]){var o=process.env[t].trim().toLowerCase();if(["false","true"].indexOf(o)<0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:t+" only accepts true or false. Got "+process.env[t],retryable:!1});n="true"===o}else{var s={};try{s=a.util.getProfilesFromSharedConfig(a.util.iniLoader)[process.env.AWS_PROFILE||a.util.defaultProfile]}catch(e){}if(s[r]){if(["false","true"].indexOf(s[r].trim().toLowerCase())<0)throw a.util.error(new Error,{code:"InvalidConfiguration",message:r+" only accepts true or false. Got "+s[r],retryable:!1});n="true"===s[r].trim().toLowerCase()}}return e.service.config.s3UseArnRegion=n,n},validatePopulateUriFromArn:function(e){if(e.service._originalConfig&&e.service._originalConfig.endpoint)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Custom endpoint is not compatible with access point ARN"});if(e.service.config.s3ForcePathStyle)throw a.util.error(new Error,{code:"InvalidConfiguration",message:"Cannot construct path-style endpoint with access point"})},dnsCompatibleBucketName:function(e){var t=e,r=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),a=new RegExp(/(\d+\.){3}\d+/),n=new RegExp(/\.\./);return!(!t.match(r)||t.match(a)||t.match(n))}};e.exports=i},22666:(e,t,r)=>{var a=r(79614);a.util.update(a.SQS.prototype,{setupRequestListeners:function(e){e.addListener("build",this.buildEndpoint),e.service.config.computeChecksums&&("sendMessage"===e.operation?e.addListener("extractData",this.verifySendMessageChecksum):"sendMessageBatch"===e.operation?e.addListener("extractData",this.verifySendMessageBatchChecksum):"receiveMessage"===e.operation&&e.addListener("extractData",this.verifyReceiveMessageChecksum))},verifySendMessageChecksum:function(e){if(e.data){var t=e.data.MD5OfMessageBody,r=this.params.MessageBody,a=this.service.calculateChecksum(r);if(a!==t){var n='Got "'+e.data.MD5OfMessageBody+'", expecting "'+a+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],n)}}},verifySendMessageBatchChecksum:function(e){if(e.data){var t=this.service,r={},n=[],i=[];a.util.arrayEach(e.data.Successful,(function(e){r[e.Id]=e})),a.util.arrayEach(this.params.Entries,(function(e){if(r[e.Id]){var a=r[e.Id].MD5OfMessageBody,o=e.MessageBody;t.isChecksumValid(a,o)||(n.push(e.Id),i.push(r[e.Id].MessageId))}})),n.length>0&&t.throwInvalidChecksumError(e,i,"Invalid messages: "+n.join(", "))}},verifyReceiveMessageChecksum:function(e){if(e.data){var t=this.service,r=[];a.util.arrayEach(e.data.Messages,(function(e){var a=e.MD5OfBody,n=e.Body;t.isChecksumValid(a,n)||r.push(e.MessageId)})),r.length>0&&t.throwInvalidChecksumError(e,r,"Invalid messages: "+r.join(", "))}},throwInvalidChecksumError:function(e,t,r){e.error=a.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+r})},isChecksumValid:function(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function(e){return a.util.crypto.md5(e,"hex")},buildEndpoint:function(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new a.Endpoint(t);var r=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);r&&(e.httpRequest.region=r[1])}}})},44456:(e,t,r)=>{var a=r(79614),n=r(65456);a.util.update(a.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new a.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=n(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=r.endpoint.indexOf(".amazonaws.com"),o=r.endpoint.substring(0,i)+"."+r.region+r.endpoint.substring(i);e.httpRequest.updateEndpoint(o),e.httpRequest.region=r.region}}})},64114:(e,t,r)=>{var a=r(79614);a.Signers.Bearer=a.util.inherit(a.Signers.RequestSigner,{constructor:function(e){a.Signers.RequestSigner.call(this,e)},addAuthorization:function(e){this.request.httpRequest.headers.Authorization="Bearer "+e.token}})},79688:(e,t,r)=>{var a=r(79614),n=a.util.inherit,i="presigned-expires";function o(e){var t=e.httpRequest.headers[i],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===a.Signers.V4){if(t>604800)throw a.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});e.httpRequest.headers[i]=t}else{if(r!==a.Signers.S3)throw a.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var n=e.service?e.service.getSkewCorrectedDate():a.util.date.getDate();e.httpRequest.headers[i]=parseInt(a.util.date.unixTimestamp(n)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=a.util.urlParse(e.httpRequest.path),n={};r.search&&(n=a.util.queryStringParse(r.search.substr(1)));var o=e.httpRequest.headers.Authorization.split(" ");if("AWS"===o[0])o=o[1].split(":"),n.Signature=o.pop(),n.AWSAccessKeyId=o.join(":"),a.util.each(e.httpRequest.headers,(function(e,t){e===i&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete n[e],e=e.toLowerCase()),n[e]=t})),delete e.httpRequest.headers[i],delete n.Authorization,delete n.Host;else if("AWS4-HMAC-SHA256"===o[0]){o.shift();var s=o.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=s,delete n.Expires}t.pathname=r.pathname,t.search=a.util.queryParamsToString(n)}a.Signers.Presign=n({sign:function(e,t,r){if(e.httpRequest.headers[i]=t||3600,e.on("build",o),e.on("sign",s),e.removeListener("afterBuild",a.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return a.util.urlFormat(e.httpRequest.endpoint)}e.build((function(){this.response.error?r(this.response.error):r(null,a.util.urlFormat(e.httpRequest.endpoint))}))}}),e.exports=a.Signers.Presign},92604:(e,t,r)=>{var a=r(79614),n=a.util.inherit;a.Signers.RequestSigner=n({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),a.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return a.Signers.V2;case"v3":return a.Signers.V3;case"s3v4":case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https;case"bearer":return a.Signers.Bearer}throw new Error("Unknown signing version "+e)},r(97194),r(56342),r(50416),r(77203),r(51190),r(79688),r(64114)},51190:(e,t,r)=>{var a=r(79614),n=a.util.inherit;a.Signers.S3=n(a.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(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=a.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),n="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=n},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];a.util.each(this.request.headers,(function(t){t.match(/^x-amz-/i)&&e.push(t)})),e.sort((function(e,t){return e.toLowerCase(){var a=r(79614),n=a.util.inherit;a.Signers.V2=n(a.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=a.util.date.getDate());var r=this.request;r.params.Timestamp=a.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=a.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function(e){return a.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(a.util.queryParamsToString(this.request.params)),e.join("\n")}}),e.exports=a.Signers.V2},56342:(e,t,r)=>{var a=r(79614),n=a.util.inherit;a.Signers.V3=n(a.Signers.RequestSigner,{addAuthorization:function(e,t){var r=a.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return a.util.arrayEach(this.headersToSign(),(function(t){e.push(t.toLowerCase())})),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return a.util.arrayEach(this.headersToSign(),(function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())})),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return a.util.each(this.request.headers,(function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)})),e},signature:function(e){return a.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),a.util.crypto.sha256(e.join("\n"))}}),e.exports=a.Signers.V3},50416:(e,t,r)=>{var a=r(79614),n=a.util.inherit;r(56342),a.Signers.V3Https=n(a.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),e.exports=a.Signers.V3Https},77203:(e,t,r)=>{var a=r(79614),n=r(16914),i=a.util.inherit,o="presigned-expires";a.Signers.V4=i(a.Signers.RequestSigner,{constructor:function(e,t,r){a.Signers.RequestSigner.call(this,e),this.serviceName=t,r=r||{},this.signatureCache="boolean"!=typeof r.signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=a.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),n={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[o],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(n["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(n["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(n["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(n["Cache-Control"]=this.request.headers["Cache-Control"]),a.util.each.call(this,this.request.headers,(function(e,t){if(e!==o&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?n[r]=t:0===r.indexOf("x-amz-")&&(n[e]=t)}}));var i=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=i+a.util.queryParamsToString(n)},authorization:function(e,t){var r=[],a=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+a),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return a.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=a.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()),e.join("\n")},canonicalHeaders:function(){var e=[];a.util.each.call(this,this.request.headers,(function(t,r){e.push([t,r])})),e.sort((function(e,t){return e[0].toLowerCase()-1&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",o,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[o]}}),e.exports=a.Signers.V4},16914:(e,t,r)=>{var a=r(79614),n={},i=[],o="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,o].join("/")},getSigningKey:function(e,t,r,s,u){var p=[a.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,s].join("_");if((u=!1!==u)&&p in n)return n[p];var c=a.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),m=a.util.crypto.hmac(c,r,"buffer"),l=a.util.crypto.hmac(m,s,"buffer"),d=a.util.crypto.hmac(l,o,"buffer");return u&&(n[p]=d,i.push(p),i.length>50&&delete n[i.shift()]),d},emptyCache:function(){n={},i=[]}}},91793:e=>{function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,r,a){"function"==typeof e&&(a=r,r=t,t=e,e=null);var n=this,i=n.states[n.currentState];i.fn.call(r||n,a,(function(a){if(a){if(!i.fail)return t?t.call(r,a):null;n.currentState=i.fail}else{if(!i.accept)return t?t.call(r):null;n.currentState=i.accept}if(n.currentState===e)return t?t.call(r,a):null;n.runTo(e,t,r,a)}))},t.prototype.addState=function(e,t,r,a){return"function"==typeof t?(a=t,t=null,r=null):"function"==typeof r&&(a=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:a},this},e.exports=t},62662:(e,t,r)=>{var a,n={environment:"nodejs",engine:function(){if(n.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=n.environment,t="aws-sdk-"+e+"/"+r(79614).VERSION;return"nodejs"===e&&(t+=" "+n.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return n.arrayEach(e.split("/"),(function(e){t.push(n.uriEscape(e))})),t.join("/")},urlParse:function(e){return n.url.parse(e)},urlFormat:function(e){return n.url.format(e)},queryStringParse:function(e){return n.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=n.uriEscape,a=Object.keys(e).sort();return n.arrayEach(a,(function(a){var i=e[a],o=r(a),s=o+"=";if(Array.isArray(i)){var u=[];n.arrayEach(i,(function(e){u.push(r(e))})),s=o+"="+u.sort().join("&"+o+"=")}else null!=i&&(s=o+"="+r(i));t.push(s)})),t.join("&")},readFileSync:function(e){return n.isBrowser()?null:r(28022).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw n.error(new Error("Cannot base64 encode number "+e));return null==e?e:n.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw n.error(new Error("Cannot base64 decode number "+e));return null==e?e:n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof n.Buffer.from&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof n.Buffer.alloc)return n.Buffer.alloc(e,t,r);var a=new n.Buffer(e);return void 0!==t&&"function"==typeof a.fill&&a.fill(t,void 0,void 0,r),a},toStream:function(e){n.Buffer.isBuffer(e)||(e=n.buffer.toBuffer(e));var t=new n.stream.Readable,r=0;return t._read=function(a){if(r>=e.length)return t.push(null);var n=r+a;n>e.length&&(n=e.length),t.push(e.slice(r,n)),r=n},t},concat:function(e){var t,r,a=0,i=0;for(r=0;r>>8^t[255&(r^e.readUInt8(a))];return(-1^r)>>>0},hmac:function(e,t,r,a){return r||(r="binary"),"buffer"===r&&(r=void 0),a||(a="sha256"),"string"==typeof t&&(t=n.buffer.toBuffer(t)),n.crypto.lib.createHmac(a,e).update(t).digest(r)},md5:function(e,t,r){return n.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return n.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,a){var i=n.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=n.buffer.toBuffer(t));var o=n.arraySliceFn(t),s=n.Buffer.isBuffer(t);if(n.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),a&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",(function(e){i.update(e)})),t.on("error",(function(e){a(e)})),t.on("end",(function(){a(null,i.digest(r))}));else{if(!a||!o||s||"undefined"==typeof FileReader){n.isBrowser()&&"object"==typeof t&&!s&&(t=new n.Buffer(new Uint8Array(t)));var u=i.update(t).digest(r);return a&&a(null,u),u}var p=0,c=new FileReader;c.onerror=function(){a(new Error("Failed to read data."))},c.onload=function(){var e=new n.Buffer(new Uint8Array(c.result));i.update(e),p+=e.length,c._continueReading()},c._continueReading=function(){if(p>=t.size)a(null,i.digest(r));else{var e=p+524288;e>t.size&&(e=t.size),c.readAsArrayBuffer(o.call(t,p,e))}},c._continueReading()}},toHex:function(e){for(var t=[],r=0;r=3e5,!1),a.config.isClockSkewed},applyClockOffset:function(e){e&&(a.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var r=!1;void 0===t&&a&&a.config&&(t=a.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var n=0;n=0)return s++,void setTimeout(p,i+(e.retryAfter||0))}r(e)},p=function(){var t="";i.handleRequest(e,o,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var a=e.statusCode;if(a<300)r(null,t);else{var i=1e3*parseInt(e.headers["retry-after"],10)||0,o=n.error(new Error,{statusCode:a,retryable:a>=500||429===a});i&&o.retryable&&(o.retryAfter=i),u(o)}}))}),u)};a.util.defer(p)},uuid:{v4:function(){return r(17593).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.operation,a=t.service.api.operations[r].output||{};a.payload&&e.data[a.payload]&&(e.data[a.payload]=e.data[a.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},a={};process.env[n.configOptInEnv]&&(a=e.loadFrom({isConfig:!0,filename:process.env[n.sharedConfigFileEnv]}));var i={};try{i=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]})}catch(e){if(!process.env[n.configOptInEnv])throw e}for(var o=0,s=Object.keys(a);o=6},parse:function(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(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw n.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=n},35106:(e,t,r)=>{var a=r(62662),n=r(68136);function i(){}function o(e,t){for(var r=e.getElementsByTagName(t),a=0,n=r.length;a{var a=r(62662),n=r(8700).XmlNode,i=r(25009).XmlText;function o(){}function s(e,t,r){switch(r.type){case"structure":return function(e,t,r){a.arrayEach(r.memberNames,(function(a){var i=r.members[a];if("body"===i.location){var o=t[a],p=i.name;if(null!=o)if(i.isXmlAttribute)e.addAttribute(p,o);else if(i.flattened)s(e,o,i);else{var c=new n(p);e.addChildNode(c),u(c,i),s(c,o,i)}}}))}(e,t,r);case"map":return function(e,t,r){var i=r.key.name||"key",o=r.value.name||"value";a.each(t,(function(t,a){var u=new n(r.flattened?r.name:"entry");e.addChildNode(u);var p=new n(i),c=new n(o);u.addChildNode(p),u.addChildNode(c),s(p,t,r.key),s(c,a,r.value)}))}(e,t,r);case"list":return function(e,t,r){r.flattened?a.arrayEach(t,(function(t){var a=r.member.name||r.name,i=new n(a);e.addChildNode(i),s(i,t,r.member)})):a.arrayEach(t,(function(t){var a=r.member.name||"member",i=new n(a);e.addChildNode(i),s(i,t,r.member)}))}(e,t,r);default:return function(e,t,r){e.addChildNode(new i(r.toWireFormat(t)))}(e,t,r)}}function u(e,t,r){var a,n="xmlns";t.xmlNamespaceUri?(a=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(n+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(a=t.api.xmlNamespaceUri),a&&e.addAttribute(n,a)}o.prototype.toXML=function(e,t,r,a){var i=new n(r);return u(i,t,!0),s(i,e,t),i.children.length>0||a?i.toString():""},e.exports=o},95373:e=>{e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}}},55077:e=>{e.exports={escapeElement:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\r/g," ").replace(/\n/g," ").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},8700:(e,t,r)=>{var a=r(95373).escapeAttribute;function n(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}n.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},n.prototype.addChildNode=function(e){return this.children.push(e),this},n.prototype.removeAttribute=function(e){return delete this.attributes[e],this},n.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,n=0,i=Object.keys(r);n"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e.exports={XmlNode:n}},25009:(e,t,r)=>{var a=r(55077).escapeElement;function n(e){this.value=e}n.prototype.toString=function(){return a(""+this.value)},e.exports={XmlText:n}},33498:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}function n(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,o,s,u,p;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(n(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(a(i))for(s=Array.prototype.slice.call(arguments,1),o=(p=i.slice()).length,u=0;u0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var a=!1;function n(){this.removeListener(e,n),a||(a=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},t.prototype.removeListener=function(e,t){var n,i,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(a=this._events[e]))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},85101:(e,t,r)=>{"use strict";var a=r(29697),n=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new a.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var a="string"!=typeof t?e.getKeyString(t):t,n=this.populateValue(r);this.cache.put(a,n)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,a=Date.now(),n=this.cache.get(r);if(n){for(var i=n.length-1;i>=0;i--)n[i].Expire{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.key=e,this.value=t},a=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t),delete this.nodeMap[e]}},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var a=this.removeFromTail().key;delete this.nodeMap[a]}var n=new r(e,t);this.nodeMap[e]=n,this.prependToList(n)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t{e.exports={default:r(47185),__esModule:!0}},52945:(e,t,r)=>{e.exports={default:r(56981),__esModule:!0}},85861:(e,t,r)=>{e.exports={default:r(45627),__esModule:!0}},74664:(e,t,r)=>{e.exports={default:r(27965),__esModule:!0}},85345:(e,t,r)=>{e.exports={default:r(70433),__esModule:!0}},47518:(e,t,r)=>{e.exports={default:r(48056),__esModule:!0}},93516:(e,t,r)=>{e.exports={default:r(80025),__esModule:!0}},64275:(e,t,r)=>{e.exports={default:r(52392),__esModule:!0}},99663:(e,t)=>{"use strict";t.Z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},88239:(e,t,r)=>{"use strict";var a,n=(a=r(52945))&&a.__esModule?a:{default:a};t.Z=n.default||function(e){for(var t=1;t{"use strict";var a=o(r(85345)),n=o(r(85861)),i=o(r(72444));function o(e){return e&&e.__esModule?e:{default:e}}t.Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,n.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(a.default?(0,a.default)(e,t):e.__proto__=t)}},42723:(e,t)=>{"use strict";t.Z=function(e,t){var r={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r}},49135:(e,t,r)=>{"use strict";var a,n=(a=r(72444))&&a.__esModule?a:{default:a};t.Z=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,n.default)(t))&&"function"!=typeof t?e:t}},72444:(e,t,r)=>{"use strict";t.__esModule=!0;var a=o(r(64275)),n=o(r(93516)),i="function"==typeof n.default&&"symbol"==typeof a.default?function(e){return typeof e}:function(e){return e&&"function"==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof n.default&&"symbol"===i(a.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof n.default&&e.constructor===n.default&&e!==n.default.prototype?"symbol":void 0===e?"undefined":i(e)}},79742:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],a=t[1];return 3*(r+a)/4-a},t.toByteArray=function(e){var t,r,i=u(e),o=i[0],s=i[1],p=new n(function(e,t,r){return 3*(t+r)/4-r}(0,o,s)),c=0,m=s>0?o-4:o;for(r=0;r>16&255,p[c++]=t>>8&255,p[c++]=255&t;return 2===s&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,p[c++]=255&t),1===s&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,p[c++]=t>>8&255,p[c++]=255&t),p},t.fromByteArray=function(e){for(var t,a=e.length,n=a%3,i=[],o=16383,s=0,u=a-n;su?u:s+o));return 1===n?(t=e[a-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[a-2]<<8)+e[a-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],a=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function p(e,t,a){for(var n,i,o=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},48764:(e,t,r)=>{"use strict";var a=r(79742),n=r(80645),i=r(5826);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(a)return F(e).length;t=(""+t).toLowerCase(),a=!0}}function b(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return _(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function h(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function g(e,t,r,a,n){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=u.from(t,a)),u.isBuffer(t))return 0===t.length?-1:f(e,t,r,a,n);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):f(e,[t],r,a,n);throw new TypeError("val must be string, number or Buffer")}function f(e,t,r,a,n){var i,o=1,s=e.length,u=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function p(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var m=!0,l=0;ln&&(a=n):a=n;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;o>8,n=r%256,i.push(n),i.push(a);return i}(t,e.length-r),e,r,a)}function C(e,t,r){return 0===t&&r===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var a=[],n=t;n239?4:p>223?3:p>191?2:1;if(n+m<=r)switch(m){case 1:p<128&&(c=p);break;case 2:128==(192&(i=e[n+1]))&&(u=(31&p)<<6|63&i)>127&&(c=u);break;case 3:i=e[n+1],o=e[n+2],128==(192&i)&&128==(192&o)&&(u=(15&p)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[n+1],o=e[n+2],s=e[n+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(u=(15&p)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,m=1):c>65535&&(c-=65536,a.push(c>>>10&1023|55296),c=56320|1023&c),a.push(c),n+=m}return function(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);for(var r="",a=0;a0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,a,n){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(n>>>=0)-(a>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(i,o),p=this.slice(a,n),c=e.slice(t,r),m=0;mn)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return N(this,e,t,r);case"ascii":return I(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function A(e,t,r){var a="";r=Math.min(e.length,r);for(var n=t;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,r,a,n,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function E(e,t,r,a){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n>>8*(a?n:1-n)}function q(e,t,r,a){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n>>8*(a?n:3-n)&255}function L(e,t,r,a,n,i){if(r+a>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,a,i){return i||L(e,0,r,4),n.write(e,t,r,a,23,4),r+4}function G(e,t,r,a,i){return i||L(e,0,r,8),n.write(e,t,r,a,52,8),r+8}u.prototype.slice=function(e,t){var r,a=this.length;if((e=~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),(t=void 0===t?a:~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),t0&&(n*=256);)a+=this[e+--t]*n;return a},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var a=this[e],n=1,i=0;++i=(n*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var a=t,n=1,i=this[e+--a];a>0&&(n*=256);)i+=this[e+--a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),n.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),n.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),n.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),n.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,a){e=+e,t|=0,r|=0,a||w(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+n]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t|=0,!a){var n=Math.pow(2,8*r-1);w(this,e,t,r,n-1,-n)}var i=r-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return G(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return G(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,a){if(r||(r=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t=0;--n)e[n+t]=this[n+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===a){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function U(e){return a.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,a){for(var n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}},21924:(e,t,r)=>{"use strict";var a=r(40210),n=r(55559),i=n(a("String.prototype.indexOf"));e.exports=function(e,t){var r=a(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n(r):r}},55559:(e,t,r)=>{"use strict";var a=r(58612),n=r(40210),i=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||a.call(o,i),u=n("%Object.getOwnPropertyDescriptor%",!0),p=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){var t=s(a,o,arguments);if(u&&p){var r=u(t,"length");r.configurable&&p(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var m=function(){return s(a,i,arguments)};p?p(e.exports,"apply",{value:m}):e.exports.apply=m},94184:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t{r(91867),r(2586),e.exports=r(34579).Array.from},56981:(e,t,r)=>{r(72699),e.exports=r(34579).Object.assign},45627:(e,t,r)=>{r(86760);var a=r(34579).Object;e.exports=function(e,t){return a.create(e,t)}},27965:(e,t,r)=>{r(40520),e.exports=r(34579).Object.entries},70433:(e,t,r)=>{r(59349),e.exports=r(34579).Object.setPrototypeOf},48056:(e,t,r)=>{r(21013),e.exports=r(34579).Object.values},80025:(e,t,r)=>{r(46840),r(94058),r(8174),r(36461),e.exports=r(34579).Symbol},52392:(e,t,r)=>{r(91867),r(73871),e.exports=r(25103).f("iterator")},85663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},79003:e=>{e.exports=function(){}},12159:(e,t,r)=>{var a=r(36727);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},57428:(e,t,r)=>{var a=r(7932),n=r(78728),i=r(16531);e.exports=function(e){return function(t,r,o){var s,u=a(t),p=n(u.length),c=i(o,p);if(e&&r!=r){for(;p>c;)if((s=u[c++])!=s)return!0}else for(;p>c;c++)if((e||c in u)&&u[c]===r)return e||c||0;return!e&&-1}}},14677:(e,t,r)=>{var a=r(32894),n=r(22939)("toStringTag"),i="Arguments"==a(function(){return arguments}());e.exports=function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),n))?r:i?a(t):"Object"==(o=a(t))&&"function"==typeof t.callee?"Arguments":o}},32894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},34579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},52445:(e,t,r)=>{"use strict";var a=r(4743),n=r(83101);e.exports=function(e,t,r){t in e?a.f(e,t,n(0,r)):e[t]=r}},19216:(e,t,r)=>{var a=r(85663);e.exports=function(e,t,r){if(a(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,a){return e.call(t,r,a)};case 3:return function(r,a,n){return e.call(t,r,a,n)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},89666:(e,t,r)=>{e.exports=!r(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(e,t,r)=>{var a=r(36727),n=r(33938).document,i=a(n)&&a(n.createElement);e.exports=function(e){return i?n.createElement(e):{}}},73338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},70337:(e,t,r)=>{var a=r(46162),n=r(48195),i=r(86274);e.exports=function(e){var t=a(e),r=n.f;if(r)for(var o,s=r(e),u=i.f,p=0;s.length>p;)u.call(e,o=s[p++])&&t.push(o);return t}},83856:(e,t,r)=>{var a=r(33938),n=r(34579),i=r(19216),o=r(41818),s=r(27069),u=function(e,t,r){var p,c,m,l=e&u.F,d=e&u.G,y=e&u.S,b=e&u.P,h=e&u.B,g=e&u.W,f=d?n:n[t]||(n[t]={}),S=f.prototype,N=d?a:y?a[t]:(a[t]||{}).prototype;for(p in d&&(r=t),r)(c=!l&&N&&void 0!==N[p])&&s(f,p)||(m=c?N[p]:r[p],f[p]=d&&"function"!=typeof N[p]?r[p]:h&&c?i(m,a):g&&N[p]==m?function(e){var t=function(t,r,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,a)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(m):b&&"function"==typeof m?i(Function.call,m):m,b&&((f.virtual||(f.virtual={}))[p]=m,e&u.R&&S&&!S[p]&&o(S,p,m)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},33938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},27069:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},41818:(e,t,r)=>{var a=r(4743),n=r(83101);e.exports=r(89666)?function(e,t,r){return a.f(e,t,n(1,r))}:function(e,t,r){return e[t]=r,e}},54881:(e,t,r)=>{var a=r(33938).document;e.exports=a&&a.documentElement},33758:(e,t,r)=>{e.exports=!r(89666)&&!r(7929)((function(){return 7!=Object.defineProperty(r(97467)("div"),"a",{get:function(){return 7}}).a}))},50799:(e,t,r)=>{var a=r(32894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},45991:(e,t,r)=>{var a=r(15449),n=r(22939)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[n]===e)}},71421:(e,t,r)=>{var a=r(32894);e.exports=Array.isArray||function(e){return"Array"==a(e)}},36727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},95602:(e,t,r)=>{var a=r(12159);e.exports=function(e,t,r,n){try{return n?t(a(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&a(i.call(e)),t}}},33945:(e,t,r)=>{"use strict";var a=r(98989),n=r(83101),i=r(25378),o={};r(41818)(o,r(22939)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=a(o,{next:n(1,r)}),i(e,t+" Iterator")}},45700:(e,t,r)=>{"use strict";var a=r(16227),n=r(83856),i=r(57470),o=r(41818),s=r(15449),u=r(33945),p=r(25378),c=r(95089),m=r(22939)("iterator"),l=!([].keys&&"next"in[].keys()),d="keys",y="values",b=function(){return this};e.exports=function(e,t,r,h,g,f,S){u(r,t,h);var N,I,v,k=function(e){if(!l&&e in D)return D[e];switch(e){case d:case y:return function(){return new r(this,e)}}return function(){return new r(this,e)}},T=t+" Iterator",C=g==y,x=!1,D=e.prototype,A=D[m]||D["@@iterator"]||g&&D[g],R=A||k(g),_=g?C?k("entries"):R:void 0,M="Array"==t&&D.entries||A;if(M&&(v=c(M.call(new e)))!==Object.prototype&&v.next&&(p(v,T,!0),a||"function"==typeof v[m]||o(v,m,b)),C&&A&&A.name!==y&&(x=!0,R=function(){return A.call(this)}),a&&!S||!l&&!x&&D[m]||o(D,m,R),s[t]=R,s[T]=b,g)if(N={values:C?R:k(y),keys:f?R:k(d),entries:_},S)for(I in N)I in D||i(D,I,N[I]);else n(n.P+n.F*(l||x),t,N);return N}},96630:(e,t,r)=>{var a=r(22939)("iterator"),n=!1;try{var i=[7][a]();i.return=function(){n=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!n)return!1;var r=!1;try{var i=[7],o=i[a]();o.next=function(){return{done:r=!0}},i[a]=function(){return o},e(i)}catch(e){}return r}},85084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},15449:e=>{e.exports={}},16227:e=>{e.exports=!0},77177:(e,t,r)=>{var a=r(65730)("meta"),n=r(36727),i=r(27069),o=r(4743).f,s=0,u=Object.isExtensible||function(){return!0},p=!r(7929)((function(){return u(Object.preventExtensions({}))})),c=function(e){o(e,a,{value:{i:"O"+ ++s,w:{}}})},m=e.exports={KEY:a,NEED:!1,fastKey:function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,a)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[a].i},getWeak:function(e,t){if(!i(e,a)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[a].w},onFreeze:function(e){return p&&m.NEED&&u(e)&&!i(e,a)&&c(e),e}}},88082:(e,t,r)=>{"use strict";var a=r(89666),n=r(46162),i=r(48195),o=r(86274),s=r(66530),u=r(50799),p=Object.assign;e.exports=!p||r(7929)((function(){var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!=p({},e)[r]||Object.keys(p({},t)).join("")!=a}))?function(e,t){for(var r=s(e),p=arguments.length,c=1,m=i.f,l=o.f;p>c;)for(var d,y=u(arguments[c++]),b=m?n(y).concat(m(y)):n(y),h=b.length,g=0;h>g;)d=b[g++],a&&!l.call(y,d)||(r[d]=y[d]);return r}:p},98989:(e,t,r)=>{var a=r(12159),n=r(57856),i=r(73338),o=r(58989)("IE_PROTO"),s=function(){},u=function(){var e,t=r(97467)("iframe"),a=i.length;for(t.style.display="none",r(54881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("