|
|
var t;var o;var n;var r;var s;var i;var A;var a;var c;var u;var l;var d;var g;var E;var p;var C;var h;var f;var m;var I;var y;var Q;var B;(function(t){var o=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(o,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(o,createExporter(e.exports)))}else{t(createExporter(o))}function createExporter(e,t){if(e!==o){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(o,n){return e[o]=t?t(o,n):n}}})((function(e){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(t.hasOwnProperty(o))e[o]=t[o]};t=function(e,t){w(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};o=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};n=function(e,t){var o={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)o[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++){if(t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r]))o[n[r]]=e[n[r]]}return o};r=function(e,t,o,n){var r=arguments.length,s=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,o,n);else for(var A=e.length-1;A>=0;A--)if(i=e[A])s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s;return r>3&&s&&Object.defineProperty(t,o,s),s};s=function(e,t){return function(o,n){t(o,n,e)}};i=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};A=function(e,t,o,n){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};a=function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,r&&(s=i[0]&2?r["return"]:i[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;if(r=0,s)i=[i[0]&2,s.value];switch(i[0]){case 0:case 1:s=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;r=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){o.label=i[1];break}if(i[0]===6&&o.label<s[1]){o.label=s[1];s=i;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(i);break}if(s[2])o.ops.pop();o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e];r=0}finally{n=s=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};B=function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]};c=function(e,t){for(var o in e)if(o!=="default"&&!t.hasOwnProperty(o))t[o]=e[o]};u=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};l=function(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,s=[],i;try{while((t===void 0||t-- >0)&&!(r=n.next()).done)s.push(r.value)}catch(e){i={error:e}}finally{try{if(r&&!r.done&&(o=n["return"]))o.call(n)}finally{if(i)throw i.error}}return s};d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e};g=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<o;t++)for(var s=arguments[t],i=0,A=s.length;i<A;i++,r++)n[r]=s[i];return n};E=function(e){return this instanceof E?(this.v=e,this):new E(e)};p=function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o.apply(e,t||[]),r,s=[];return r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r;function verb(e){if(n[e])r[e]=function(t){return new Promise((function(o,n){s.push([e,t,o,n])>1||resume(e,t)}))}}function resume(e,t){try{step(n[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof E?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};C=function(e){var t,o;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,r){t[n]=e[n]?function(t){return(o=!o)?{value:E(e[n](t)),done:n==="return"}:r?r(t):t}:r}};h=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof u==="function"?u(e):e[Symbol.iterator](),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(t){o[t]=e[t]&&function(o){return new Promise((function(n,r){o=e[t](o),settle(n,r,o.done,o.value)}))}}function settle(e,t,o,n){Promise.resolve(n).then((function(t){e({value:t,done:o})}),t)}};f=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};m=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(Object.hasOwnProperty.call(e,o))t[o]=e[o];t["default"]=e;return t};I=function(e){return e&&e.__esModule?e:{default:e}};y=function(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)};Q=function(e,t,o){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,o);return o};e("__extends",t);e("__assign",o);e("__rest",n);e("__decorate",r);e("__param",s);e("__metadata",i);e("__awaiter",A);e("__generator",a);e("__exportStar",c);e("__createBinding",B);e("__values",u);e("__read",l);e("__spread",d);e("__spreadArrays",g);e("__await",E);e("__asyncGenerator",p);e("__asyncDelegator",C);e("__asyncValues",h);e("__makeTemplateObject",f);e("__importStar",m);e("__importDefault",I);e("__classPrivateFieldGet",y);e("__classPrivateFieldSet",Q)}))},43228:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertToBuffer=void 0;var n=o(28172);var r=typeof Buffer!=="undefined"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:n.fromUtf8;function convertToBuffer(e){if(e instanceof Uint8Array)return e;if(typeof e==="string"){return r(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)}t.convertToBuffer=convertToBuffer},41236:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=o(43228);Object.defineProperty(t,"convertToBuffer",{enumerable:true,get:function(){return n.convertToBuffer}});var r=o(18275);Object.defineProperty(t,"isEmptyData",{enumerable:true,get:function(){return r.isEmptyData}});var s=o(93775);Object.defineProperty(t,"numToUint8",{enumerable:true,get:function(){return s.numToUint8}});var i=o(39404);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:true,get:function(){return i.uint32ArrayFrom}})},18275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyData=void 0;function isEmptyData(e){if(typeof e==="string"){return e.length===0}return e.byteLength===0}t.isEmptyData=isEmptyData},93775:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.numToUint8=void 0;function numToUint8(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}t.numToUint8=numToUint8},39404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint32ArrayFrom=void 0;function uint32ArrayFrom(e){if(!Uint32Array.from){var t=new Uint32Array(e.length);var o=0;while(o<e.length){t[o]=e[o];o+=1}return t}return Uint32Array.from(e)}t.uint32ArrayFrom=uint32ArrayFrom},86087:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLIC=void 0;const n=o(63570);const r=o(25356);const s=o(56517);const i=o(55490);const A=o(39633);const a=o(60467);const c=o(62528);const u=o(22776);const l=o(47670);const d=o(78696);const g=o(82218);const E=o(92674);const p=o(26518);const C=o(53189);const h=o(8562);const f=o(83675);const m=o(80575);const I=o(86486);const y=o(46805);const Q=o(83753);const B=o(79838);const w=o(39869);const S=o(66689);const b=o(97429);const R=o(30608);const v={BatchCheckLayerAvailabilityCommand:r.BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:s.BatchDeleteImageCommand,CompleteLayerUploadCommand:i.CompleteLayerUploadCommand,CreateRepositoryCommand:A.CreateRepositoryCommand,DeleteRepositoryCommand:a.DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:c.DeleteRepositoryPolicyCommand,DescribeImagesCommand:u.DescribeImagesCommand,DescribeImageTagsCommand:l.DescribeImageTagsCommand,DescribeRegistriesCommand:d.DescribeRegistriesCommand,DescribeRepositoriesCommand:g.DescribeRepositoriesCommand,GetAuthorizationTokenCommand:E.GetAuthorizationTokenCommand,GetRegistryCatalogDataCommand:p.GetRegistryCatalogDataCommand,GetRepositoryCatalogDataCommand:C.GetRepositoryCatalogDataCommand,GetRepositoryPolicyCommand:h.GetRepositoryPolicyCommand,InitiateLayerUploadCommand:f.InitiateLayerUploadCommand,ListTagsForResourceCommand:m.ListTagsForResourceCommand,PutImageCommand:I.PutImageCommand,PutRegistryCatalogDataCommand:y.PutRegistryCatalogDataCommand,PutRepositoryCatalogDataCommand:Q.PutRepositoryCatalogDataCommand,SetRepositoryPolicyCommand:B.SetRepositoryPolicyCommand,TagResourceCommand:w.TagResourceCommand,UntagResourceCommand:S.UntagResourceCommand,UploadLayerPartCommand:b.UploadLayerPartCommand};class ECRPUBLIC extends R.ECRPUBLICClient{}t.ECRPUBLIC=ECRPUBLIC;(0,n.createAggregatedClient)(v,ECRPUBLIC)},30608:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICClient=t.__Client=void 0;const n=o(22545);const r=o(20014);const s=o(85525);const i=o(14935);const A=o(64688);const a=o(53098);const c=o(82800);const u=o(82918);const l=o(96039);const d=o(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return d.Client}});const g=o(78258);const E=o(49324);const p=o(22754);class ECRPUBLICClient extends d.Client{constructor(...[e]){const t=(0,E.getRuntimeConfig)(e||{});const o=(0,g.resolveClientEndpointParameters)(t);const d=(0,a.resolveRegionConfig)(o);const C=(0,u.resolveEndpointConfig)(d);const h=(0,l.resolveRetryConfig)(C);const f=(0,n.resolveHostHeaderConfig)(h);const m=(0,i.resolveAwsAuthConfig)(f);const I=(0,A.resolveUserAgentConfig)(m);const y=(0,p.resolveRuntimeExtensions)(I,e?.extensions||[]);super(y);this.config=y;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,c.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,A.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRPUBLICClient=ECRPUBLICClient},25356:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class BatchCheckLayerAvailabilityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,BatchCheckLayerAvailabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="BatchCheckLayerAvailabilityCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},56517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class BatchDeleteImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,BatchDeleteImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="BatchDeleteImageCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},55490:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class CompleteLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,CompleteLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="CompleteLayerUploadCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},39633:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class CreateRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,CreateRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="CreateRepositoryCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},60467:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class DeleteRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeleteRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="DeleteRepositoryCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},62528:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class DeleteRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeleteRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="DeleteRepositoryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},47670:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageTagsCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class DescribeImageTagsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeImageTagsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="DescribeImageTagsCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeImageTagsCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImageTagsCommand)(e,t)}}t.DescribeImageTagsCommand=DescribeImageTagsCommand},22776:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class DescribeImagesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="DescribeImagesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},78696:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistriesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class DescribeRegistriesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeRegistriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="DescribeRegistriesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeRegistriesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRegistriesCommand)(e,t)}}t.DescribeRegistriesCommand=DescribeRegistriesCommand},82218:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class DescribeRepositoriesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeRepositoriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="DescribeRepositoriesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},92674:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class GetAuthorizationTokenCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetAuthorizationTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="GetAuthorizationTokenCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,i.de_GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},26518:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class GetRegistryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRegistryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="GetRegistryCatalogDataCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRegistryCatalogDataCommand)(e,t)}}t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand},53189:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryCatalogDataCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class GetRepositoryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRepositoryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="GetRepositoryCatalogDataCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRepositoryCatalogDataCommand)(e,t)}}t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand},8562:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class GetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="GetRepositoryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},83675:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class InitiateLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,InitiateLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="InitiateLayerUploadCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},80575:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class ListTagsForResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,ListTagsForResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="ListTagsForResourceCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},86486:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class PutImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="PutImageCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutImageCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},46805:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryCatalogDataCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class PutRegistryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutRegistryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="PutRegistryCatalogDataCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutRegistryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRegistryCatalogDataCommand)(e,t)}}t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand},83753:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRepositoryCatalogDataCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class PutRepositoryCatalogDataCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutRepositoryCatalogDataCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="PutRepositoryCatalogDataCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutRepositoryCatalogDataCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRepositoryCatalogDataCommand)(e,t)}}t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand},79838:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class SetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,SetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="SetRepositoryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},39869:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class TagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,TagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="TagResourceCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_TagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},66689:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class UntagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,UntagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="UntagResourceCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_UntagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},97429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(64170);class UploadLayerPartCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,UploadLayerPartCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRPUBLICClient";const a="UploadLayerPartCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,i.de_UploadLayerPartCommand)(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},65442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(25356),t);n.__exportStar(o(56517),t);n.__exportStar(o(55490),t);n.__exportStar(o(39633),t);n.__exportStar(o(60467),t);n.__exportStar(o(62528),t);n.__exportStar(o(47670),t);n.__exportStar(o(22776),t);n.__exportStar(o(78696),t);n.__exportStar(o(82218),t);n.__exportStar(o(92674),t);n.__exportStar(o(26518),t);n.__exportStar(o(53189),t);n.__exportStar(o(8562),t);n.__exportStar(o(83675),t);n.__exportStar(o(80575),t);n.__exportStar(o(86486),t);n.__exportStar(o(46805),t);n.__exportStar(o(83753),t);n.__exportStar(o(79838),t);n.__exportStar(o(39869),t);n.__exportStar(o(66689),t);n.__exportStar(o(97429),t)},78258:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr-public"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},87377:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const n=o(13350);const r=o(888);const defaultEndpointResolver=(e,t={})=>(0,n.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const o="required",n="fn",r="argv",s="ref";const i="isSet",A="tree",a="error",c="endpoint",u="PartitionResult",l={[o]:false,type:"String"},d={[o]:true,default:false,type:"Boolean"},g={[s]:"Endpoint"},E={[n]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},p={[n]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},C={},h={[n]:"booleanEquals",[r]:[true,{[n]:"getAttr",[r]:[{[s]:u},"supportsFIPS"]}]},f={[n]:"booleanEquals",[r]:[true,{[n]:"getAttr",[r]:[{[s]:u},"supportsDualStack"]}]},m=[E],I=[p],y=[{[s]:"Region"}];const Q={version:"1.0",parameters:{Region:l,UseDualStack:d,UseFIPS:d,Endpoint:l},rules:[{conditions:[{[n]:i,[r]:[g]}],type:A,rules:[{conditions:m,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:a},{conditions:I,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:a},{endpoint:{url:g,properties:C,headers:C},type:c}]},{conditions:[{[n]:i,[r]:y}],type:A,rules:[{conditions:[{[n]:"aws.partition",[r]:y,assign:u}],type:A,rules:[{conditions:[E,p],type:A,rules:[{conditions:[h,f],type:A,rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C,headers:C},type:c}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:a}]},{conditions:m,type:A,rules:[{conditions:[h],type:A,rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:C,headers:C},type:c}]},{error:"FIPS is enabled but this partition does not support FIPS",type:a}]},{conditions:I,type:A,rules:[{conditions:[f],type:A,rules:[{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C,headers:C},type:c}]},{error:"DualStack is enabled but this partition does not support DualStack",type:a}]},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:C,headers:C},type:c}]}]},{error:"Invalid Configuration: Missing Region",type:a}]};t.ruleSet=Q},42308:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=void 0;const n=o(4351);n.__exportStar(o(30608),t);n.__exportStar(o(86087),t);n.__exportStar(o(65442),t);n.__exportStar(o(75945),t);n.__exportStar(o(30183),t);var r=o(48278);Object.defineProperty(t,"ECRPUBLICServiceException",{enumerable:true,get:function(){return r.ECRPUBLICServiceException}})},48278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=t.__ServiceException=void 0;const n=o(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return n.ServiceException}});class ECRPUBLICServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},30183:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(38818),t)},38818:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RepositoryCatalogDataNotFoundException=t.RegistryAliasStatus=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.ImageFailureCode=t.UnsupportedCommandException=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;const n=o(48278);t.LayerFailureCode={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};t.LayerAvailability={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};class InvalidParameterException extends n.ECRPUBLICServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});this.name="InvalidParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RegistryNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});this.name="RegistryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}t.RegistryNotFoundException=RegistryNotFoundException;class RepositoryNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});this.name="RepositoryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends n.ECRPUBLICServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class UnsupportedCommandException extends n.ECRPUBLICServiceException{constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});this.name="UnsupportedCommandException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}t.UnsupportedCommandException=UnsupportedCommandException;t.ImageFailureCode={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};class EmptyUploadException extends n.ECRPUBLICServiceException{constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});this.name="EmptyUploadException";this.$fault="client";Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends n.ECRPUBLICServiceException{constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});this.name="InvalidLayerException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class LayerAlreadyExistsException extends n.ECRPUBLICServiceException{constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});this.name="LayerAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends n.ECRPUBLICServiceException{constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});this.name="LayerPartTooSmallException";this.$fault="client";Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class InvalidTagParameterException extends n.ECRPUBLICServiceException{constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});this.name="InvalidTagParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class LimitExceededException extends n.ECRPUBLICServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e});this.name="LimitExceededException";this.$fault="client";Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class RepositoryAlreadyExistsException extends n.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});this.name="RepositoryAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends n.ECRPUBLICServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class RepositoryNotEmptyException extends n.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class ImageNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;t.RegistryAliasStatus={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};class RepositoryCatalogDataNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e});this.name="RepositoryCatalogDataNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryCatalogDataNotFoundException.prototype)}}t.RepositoryCatalogDataNotFoundException=RepositoryCatalogDataNotFoundException;class ImageAlreadyExistsException extends n.ECRPUBLICServiceException{constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});this.name="ImageAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends n.ECRPUBLICServiceException{constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});this.name="ImageDigestDoesNotMatchException";this.$fault="client";Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends n.ECRPUBLICServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class InvalidLayerPartException extends n.ECRPUBLICServiceException{constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});this.name="InvalidLayerPartException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;class LayersNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class ReferencedImagesNotFoundException extends n.ECRPUBLICServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException},99634:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageTags=void 0;const n=o(47670);const r=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImageTagsCommand(t),...o);async function*paginateDescribeImageTags(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeImageTags=paginateDescribeImageTags},74128:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const n=o(22776);const r=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImagesCommand(t),...o);async function*paginateDescribeImages(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeImages=paginateDescribeImages},11720:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRegistries=void 0;const n=o(78696);const r=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeRegistriesCommand(t),...o);async function*paginateDescribeRegistries(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeRegistries=paginateDescribeRegistries},65474:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const n=o(82218);const r=o(30608);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeRepositoriesCommand(t),...o);async function*paginateDescribeRepositories(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRPUBLICClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECRPUBLIC | ECRPUBLICClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},93463:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},75945:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(99634),t);n.__exportStar(o(74128),t);n.__exportStar(o(11720),t);n.__exportStar(o(65474),t);n.__exportStar(o(93463),t)},64170:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_UploadLayerPartCommand=t.de_UntagResourceCommand=t.de_TagResourceCommand=t.de_SetRepositoryPolicyCommand=t.de_PutRepositoryCatalogDataCommand=t.de_PutRegistryCatalogDataCommand=t.de_PutImageCommand=t.de_ListTagsForResourceCommand=t.de_InitiateLayerUploadCommand=t.de_GetRepositoryPolicyCommand=t.de_GetRepositoryCatalogDataCommand=t.de_GetRegistryCatalogDataCommand=t.de_GetAuthorizationTokenCommand=t.de_DescribeRepositoriesCommand=t.de_DescribeRegistriesCommand=t.de_DescribeImageTagsCommand=t.de_DescribeImagesCommand=t.de_DeleteRepositoryPolicyCommand=t.de_DeleteRepositoryCommand=t.de_CreateRepositoryCommand=t.de_CompleteLayerUploadCommand=t.de_BatchDeleteImageCommand=t.de_BatchCheckLayerAvailabilityCommand=t.se_UploadLayerPartCommand=t.se_UntagResourceCommand=t.se_TagResourceCommand=t.se_SetRepositoryPolicyCommand=t.se_PutRepositoryCatalogDataCommand=t.se_PutRegistryCatalogDataCommand=t.se_PutImageCommand=t.se_ListTagsForResourceCommand=t.se_InitiateLayerUploadCommand=t.se_GetRepositoryPolicyCommand=t.se_GetRepositoryCatalogDataCommand=t.se_GetRegistryCatalogDataCommand=t.se_GetAuthorizationTokenCommand=t.se_DescribeRepositoriesCommand=t.se_DescribeRegistriesCommand=t.se_DescribeImageTagsCommand=t.se_DescribeImagesCommand=t.se_DeleteRepositoryPolicyCommand=t.se_DeleteRepositoryCommand=t.se_CreateRepositoryCommand=t.se_CompleteLayerUploadCommand=t.se_BatchDeleteImageCommand=t.se_BatchCheckLayerAvailabilityCommand=void 0;const n=o(64418);const r=o(63570);const s=o(48278);const i=o(38818);const se_BatchCheckLayerAvailabilityCommand=async(e,t)=>{const o=sharedHeaders("BatchCheckLayerAvailability");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_BatchCheckLayerAvailabilityCommand=se_BatchCheckLayerAvailabilityCommand;const se_BatchDeleteImageCommand=async(e,t)=>{const o=sharedHeaders("BatchDeleteImage");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_BatchDeleteImageCommand=se_BatchDeleteImageCommand;const se_CompleteLayerUploadCommand=async(e,t)=>{const o=sharedHeaders("CompleteLayerUpload");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_CompleteLayerUploadCommand=se_CompleteLayerUploadCommand;const se_CreateRepositoryCommand=async(e,t)=>{const o=sharedHeaders("CreateRepository");let n;n=JSON.stringify(se_CreateRepositoryRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_CreateRepositoryCommand=se_CreateRepositoryCommand;const se_DeleteRepositoryCommand=async(e,t)=>{const o=sharedHeaders("DeleteRepository");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeleteRepositoryCommand=se_DeleteRepositoryCommand;const se_DeleteRepositoryPolicyCommand=async(e,t)=>{const o=sharedHeaders("DeleteRepositoryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeleteRepositoryPolicyCommand=se_DeleteRepositoryPolicyCommand;const se_DescribeImagesCommand=async(e,t)=>{const o=sharedHeaders("DescribeImages");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeImagesCommand=se_DescribeImagesCommand;const se_DescribeImageTagsCommand=async(e,t)=>{const o=sharedHeaders("DescribeImageTags");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeImageTagsCommand=se_DescribeImageTagsCommand;const se_DescribeRegistriesCommand=async(e,t)=>{const o=sharedHeaders("DescribeRegistries");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeRegistriesCommand=se_DescribeRegistriesCommand;const se_DescribeRepositoriesCommand=async(e,t)=>{const o=sharedHeaders("DescribeRepositories");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeRepositoriesCommand=se_DescribeRepositoriesCommand;const se_GetAuthorizationTokenCommand=async(e,t)=>{const o=sharedHeaders("GetAuthorizationToken");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetAuthorizationTokenCommand=se_GetAuthorizationTokenCommand;const se_GetRegistryCatalogDataCommand=async(e,t)=>{const o=sharedHeaders("GetRegistryCatalogData");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetRegistryCatalogDataCommand=se_GetRegistryCatalogDataCommand;const se_GetRepositoryCatalogDataCommand=async(e,t)=>{const o=sharedHeaders("GetRepositoryCatalogData");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetRepositoryCatalogDataCommand=se_GetRepositoryCatalogDataCommand;const se_GetRepositoryPolicyCommand=async(e,t)=>{const o=sharedHeaders("GetRepositoryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetRepositoryPolicyCommand=se_GetRepositoryPolicyCommand;const se_InitiateLayerUploadCommand=async(e,t)=>{const o=sharedHeaders("InitiateLayerUpload");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_InitiateLayerUploadCommand=se_InitiateLayerUploadCommand;const se_ListTagsForResourceCommand=async(e,t)=>{const o=sharedHeaders("ListTagsForResource");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_ListTagsForResourceCommand=se_ListTagsForResourceCommand;const se_PutImageCommand=async(e,t)=>{const o=sharedHeaders("PutImage");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutImageCommand=se_PutImageCommand;const se_PutRegistryCatalogDataCommand=async(e,t)=>{const o=sharedHeaders("PutRegistryCatalogData");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutRegistryCatalogDataCommand=se_PutRegistryCatalogDataCommand;const se_PutRepositoryCatalogDataCommand=async(e,t)=>{const o=sharedHeaders("PutRepositoryCatalogData");let n;n=JSON.stringify(se_PutRepositoryCatalogDataRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutRepositoryCatalogDataCommand=se_PutRepositoryCatalogDataCommand;const se_SetRepositoryPolicyCommand=async(e,t)=>{const o=sharedHeaders("SetRepositoryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_SetRepositoryPolicyCommand=se_SetRepositoryPolicyCommand;const se_TagResourceCommand=async(e,t)=>{const o=sharedHeaders("TagResource");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_TagResourceCommand=se_TagResourceCommand;const se_UntagResourceCommand=async(e,t)=>{const o=sharedHeaders("UntagResource");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_UntagResourceCommand=se_UntagResourceCommand;const se_UploadLayerPartCommand=async(e,t)=>{const o=sharedHeaders("UploadLayerPart");let n;n=JSON.stringify(se_UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_UploadLayerPartCommand=se_UploadLayerPartCommand;const de_BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchCheckLayerAvailabilityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_BatchCheckLayerAvailabilityCommand=de_BatchCheckLayerAvailabilityCommand;const de_BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchDeleteImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_BatchDeleteImageCommand=de_BatchDeleteImageCommand;const de_BatchDeleteImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_CompleteLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_CompleteLayerUploadCommand=de_CompleteLayerUploadCommand;const de_CompleteLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"EmptyUploadException":case"com.amazonaws.ecrpublic#EmptyUploadException":throw await de_EmptyUploadExceptionRes(o,t);case"InvalidLayerException":case"com.amazonaws.ecrpublic#InvalidLayerException":throw await de_InvalidLayerExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecrpublic#LayerAlreadyExistsException":throw await de_LayerAlreadyExistsExceptionRes(o,t);case"LayerPartTooSmallException":case"com.amazonaws.ecrpublic#LayerPartTooSmallException":throw await de_LayerPartTooSmallExceptionRes(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_CreateRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_CreateRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_CreateRepositoryCommand=de_CreateRepositoryCommand;const de_CreateRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":throw await de_RepositoryAlreadyExistsExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await de_TooManyTagsExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DeleteRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DeleteRepositoryCommand=de_DeleteRepositoryCommand;const de_DeleteRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecrpublic#RepositoryNotEmptyException":throw await de_RepositoryNotEmptyExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_DeleteRepositoryPolicyCommand=de_DeleteRepositoryPolicyCommand;const de_DeleteRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImagesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribeImagesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribeImagesCommand=de_DescribeImagesCommand;const de_DescribeImagesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageNotFoundException":case"com.amazonaws.ecrpublic#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeImageTagsCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImageTagsCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribeImageTagsResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribeImageTagsCommand=de_DescribeImageTagsCommand;const de_DescribeImageTagsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeRegistriesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRegistriesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_DescribeRegistriesCommand=de_DescribeRegistriesCommand;const de_DescribeRegistriesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRepositoriesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribeRepositoriesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribeRepositoriesCommand=de_DescribeRepositoriesCommand;const de_DescribeRepositoriesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetAuthorizationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetAuthorizationTokenResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetAuthorizationTokenCommand=de_GetAuthorizationTokenCommand;const de_GetAuthorizationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRegistryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetRegistryCatalogDataCommand=de_GetRegistryCatalogDataCommand;const de_GetRegistryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRepositoryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetRepositoryCatalogDataCommand=de_GetRepositoryCatalogDataCommand;const de_GetRepositoryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryCatalogDataNotFoundException":case"com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":throw await de_RepositoryCatalogDataNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetRepositoryPolicyCommand=de_GetRepositoryPolicyCommand;const de_GetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_InitiateLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_InitiateLayerUploadCommand=de_InitiateLayerUploadCommand;const de_InitiateLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_ListTagsForResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_ListTagsForResourceCommand=de_ListTagsForResourceCommand;const de_ListTagsForResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutImageCommand=de_PutImageCommand;const de_PutImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageAlreadyExistsException":throw await de_ImageAlreadyExistsExceptionRes(o,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":throw await de_ImageDigestDoesNotMatchExceptionRes(o,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":throw await de_ImageTagAlreadyExistsExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LayersNotFoundException":case"com.amazonaws.ecrpublic#LayersNotFoundException":throw await de_LayersNotFoundExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":throw await de_ReferencedImagesNotFoundExceptionRes(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutRegistryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRegistryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutRegistryCatalogDataCommand=de_PutRegistryCatalogDataCommand;const de_PutRegistryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutRepositoryCatalogDataCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRepositoryCatalogDataCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutRepositoryCatalogDataCommand=de_PutRepositoryCatalogDataCommand;const de_PutRepositoryCatalogDataCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_SetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_SetRepositoryPolicyCommand=de_SetRepositoryPolicyCommand;const de_SetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_TagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_TagResourceCommand=de_TagResourceCommand;const de_TagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await de_TooManyTagsExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_UntagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_UntagResourceCommand=de_UntagResourceCommand;const de_UntagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecrpublic#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"TooManyTagsException":case"com.amazonaws.ecrpublic#TooManyTagsException":throw await de_TooManyTagsExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return de_UploadLayerPartCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_UploadLayerPartCommand=de_UploadLayerPartCommand;const de_UploadLayerPartCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidLayerPartException":case"com.amazonaws.ecrpublic#InvalidLayerPartException":throw await de_InvalidLayerPartExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecrpublic#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecrpublic#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"RegistryNotFoundException":case"com.amazonaws.ecrpublic#RegistryNotFoundException":throw await de_RegistryNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecrpublic#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecrpublic#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedCommandException":case"com.amazonaws.ecrpublic#UnsupportedCommandException":throw await de_UnsupportedCommandExceptionRes(o,t);case"UploadNotFoundException":case"com.amazonaws.ecrpublic#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_EmptyUploadExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.EmptyUploadException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageDigestDoesNotMatchExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageTagAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidLayerExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidLayerException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidLayerPartExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidLayerPartException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidParameterExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidParameterException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidTagParameterExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidTagParameterException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayerAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayerPartTooSmallExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayersNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayersNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LimitExceededExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LimitExceededException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ReferencedImagesNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RegistryNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RegistryNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryCatalogDataNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryCatalogDataNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryNotEmptyExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryPolicyNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ServerExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ServerException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_TooManyTagsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.TooManyTagsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_UnsupportedCommandExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.UnsupportedCommandException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_UploadNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.UploadNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const se_CreateRepositoryRequest=(e,t)=>(0,r.take)(e,{catalogData:e=>se_RepositoryCatalogDataInput(e,t),repositoryName:[],tags:r._json});const se_PutRepositoryCatalogDataRequest=(e,t)=>(0,r.take)(e,{catalogData:e=>se_RepositoryCatalogDataInput(e,t),registryId:[],repositoryName:[]});const se_RepositoryCatalogDataInput=(e,t)=>(0,r.take)(e,{aboutText:[],architectures:r._json,description:[],logoImageBlob:t.base64Encoder,operatingSystems:r._json,usageText:[]});const se_UploadLayerPartRequest=(e,t)=>(0,r.take)(e,{layerPartBlob:t.base64Encoder,partFirstByte:[],partLastByte:[],registryId:[],repositoryName:[],uploadId:[]});const de_AuthorizationData=(e,t)=>(0,r.take)(e,{authorizationToken:r.expectString,expiresAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_CreateRepositoryResponse=(e,t)=>(0,r.take)(e,{catalogData:r._json,repository:e=>de_Repository(e,t)});const de_DeleteRepositoryResponse=(e,t)=>(0,r.take)(e,{repository:e=>de_Repository(e,t)});const de_DescribeImagesResponse=(e,t)=>(0,r.take)(e,{imageDetails:e=>de_ImageDetailList(e,t),nextToken:r.expectString});const de_DescribeImageTagsResponse=(e,t)=>(0,r.take)(e,{imageTagDetails:e=>de_ImageTagDetailList(e,t),nextToken:r.expectString});const de_DescribeRepositoriesResponse=(e,t)=>(0,r.take)(e,{nextToken:r.expectString,repositories:e=>de_RepositoryList(e,t)});const de_GetAuthorizationTokenResponse=(e,t)=>(0,r.take)(e,{authorizationData:e=>de_AuthorizationData(e,t)});const de_ImageDetail=(e,t)=>(0,r.take)(e,{artifactMediaType:r.expectString,imageDigest:r.expectString,imageManifestMediaType:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageSizeInBytes:r.expectLong,imageTags:r._json,registryId:r.expectString,repositoryName:r.expectString});const de_ImageDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_ImageDetail(e,t)));return o};const de_ImageTagDetail=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageDetail:e=>de_ReferencedImageDetail(e,t),imageTag:r.expectString});const de_ImageTagDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_ImageTagDetail(e,t)));return o};const de_ReferencedImageDetail=(e,t)=>(0,r.take)(e,{artifactMediaType:r.expectString,imageDigest:r.expectString,imageManifestMediaType:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageSizeInBytes:r.expectLong});const de_Repository=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),registryId:r.expectString,repositoryArn:r.expectString,repositoryName:r.expectString,repositoryUri:r.expectString});const de_RepositoryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_Repository(e,t)));return o};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const A=(0,r.withBaseException)(s.ECRPUBLICServiceException);const buildHttpRpcRequest=async(e,t,o,r,s)=>{const{hostname:i,protocol:A="https",port:a,path:c}=await e.endpoint();const u={protocol:A,hostname:i,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+o:c+o,headers:t};if(r!==undefined){u.hostname=r}if(s!==undefined){u.body=s}return new n.HttpRequest(u)};function sharedHeaders(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`SpencerFrontendService.${e}`}}const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);o.message=o.message??o.Message;return o};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},49324:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(4351);const r=n.__importDefault(o(25929));const s=o(52209);const i=o(75531);const A=o(98095);const a=o(53098);const c=o(3081);const u=o(96039);const l=o(33461);const d=o(20258);const g=o(68075);const E=o(84902);const p=o(76746);const C=o(63570);const h=o(72429);const f=o(63570);const getRuntimeConfig=e=>{(0,f.emitWarningIfUnsupportedVersion)(process.version);const t=(0,h.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(C.loadConfigsForDefaultMode);const o=(0,p.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??g.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(i.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,A.defaultUserAgent)({serviceId:o.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,l.loadConfig)(u.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,l.loadConfig)(a.NODE_REGION_CONFIG_OPTIONS,a.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,l.loadConfig)({...u.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||E.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,l.loadConfig)(a.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,l.loadConfig)(a.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},76746:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(63570);const r=o(14681);const s=o(75600);const i=o(41895);const A=o(87377);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??A.defaultEndpointResolver,extensions:e?.extensions??[],logger:e?.logger??new n.NoOpLogger,serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},22754:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRuntimeExtensions=void 0;const n=o(64418);const r=o(63570);const asPartial=e=>e;const resolveRuntimeExtensions=(e,t)=>{const o={...asPartial((0,r.getDefaultExtensionConfiguration)(e)),...asPartial((0,n.getHttpHandlerExtensionConfiguration)(e))};t.forEach((e=>e.configure(o)));return{...e,...(0,r.resolveDefaultRuntimeConfig)(o),...(0,n.resolveHttpHandlerRuntimeConfig)(o)}};t.resolveRuntimeExtensions=resolveRuntimeExtensions},59167:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECR=void 0;const n=o(63570);const r=o(63804);const s=o(15511);const i=o(78859);const A=o(79728);const a=o(49003);const c=o(71454);const u=o(5074);const l=o(48981);const d=o(83793);const g=o(31424);const E=o(88651);const p=o(36828);const C=o(39694);const h=o(72987);const f=o(95353);const m=o(31484);const I=o(26166);const y=o(21200);const Q=o(35828);const B=o(51401);const w=o(48469);const S=o(17006);const b=o(33685);const R=o(82741);const v=o(46330);const D=o(6936);const _=o(3854);const P=o(97403);const x=o(66844);const N=o(87935);const k=o(66495);const F=o(33854);const T=o(97928);const M=o(29529);const U=o(14030);const L=o(78300);const O=o(47984);const H=o(35905);const G=o(82665);const j=o(37225);const Y=o(55825);const V=o(83391);const J={BatchCheckLayerAvailabilityCommand:r.BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:s.BatchDeleteImageCommand,BatchGetImageCommand:i.BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:A.BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:a.CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:c.CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:u.CreateRepositoryCommand,DeleteLifecyclePolicyCommand:l.DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:d.DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:g.DeleteRegistryPolicyCommand,DeleteRepositoryCommand:E.DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:p.DeleteRepositoryPolicyCommand,DescribeImageReplicationStatusCommand:C.DescribeImageReplicationStatusCommand,DescribeImagesCommand:f.DescribeImagesCommand,DescribeImageScanFindingsCommand:h.DescribeImageScanFindingsCommand,DescribePullThroughCacheRulesCommand:m.DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:I.DescribeRegistryCommand,DescribeRepositoriesCommand:y.DescribeRepositoriesCommand,GetAuthorizationTokenCommand:Q.GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:B.GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:w.GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:S.GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:b.GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:R.GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:v.GetRepositoryPolicyCommand,InitiateLayerUploadCommand:D.InitiateLayerUploadCommand,ListImagesCommand:_.ListImagesCommand,ListTagsForResourceCommand:P.ListTagsForResourceCommand,PutImageCommand:x.PutImageCommand,PutImageScanningConfigurationCommand:N.PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:k.PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:F.PutLifecyclePolicyCommand,PutRegistryPolicyCommand:T.PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:M.PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:U.PutReplicationConfigurationCommand,SetRepositoryPolicyCommand:L.SetRepositoryPolicyCommand,StartImageScanCommand:O.StartImageScanCommand,StartLifecyclePolicyPreviewCommand:H.StartLifecyclePolicyPreviewCommand,TagResourceCommand:G.TagResourceCommand,UntagResourceCommand:j.UntagResourceCommand,UploadLayerPartCommand:Y.UploadLayerPartCommand};class ECR extends V.ECRClient{}t.ECR=ECR;(0,n.createAggregatedClient)(J,ECR)},83391:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRClient=t.__Client=void 0;const n=o(22545);const r=o(20014);const s=o(85525);const i=o(14935);const A=o(64688);const a=o(53098);const c=o(82800);const u=o(82918);const l=o(96039);const d=o(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return d.Client}});const g=o(49729);const E=o(869);const p=o(86506);class ECRClient extends d.Client{constructor(...[e]){const t=(0,E.getRuntimeConfig)(e||{});const o=(0,g.resolveClientEndpointParameters)(t);const d=(0,a.resolveRegionConfig)(o);const C=(0,u.resolveEndpointConfig)(d);const h=(0,l.resolveRetryConfig)(C);const f=(0,n.resolveHostHeaderConfig)(h);const m=(0,i.resolveAwsAuthConfig)(f);const I=(0,A.resolveUserAgentConfig)(m);const y=(0,p.resolveRuntimeExtensions)(I,e?.extensions||[]);super(y);this.config=y;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,c.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getAwsAuthPlugin)(this.config));this.middlewareStack.use((0,A.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.ECRClient=ECRClient},63804:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchCheckLayerAvailabilityCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class BatchCheckLayerAvailabilityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,BatchCheckLayerAvailabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="BatchCheckLayerAvailabilityCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_BatchCheckLayerAvailabilityCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchCheckLayerAvailabilityCommand)(e,t)}}t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand},15511:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchDeleteImageCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class BatchDeleteImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,BatchDeleteImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="BatchDeleteImageCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_BatchDeleteImageCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchDeleteImageCommand)(e,t)}}t.BatchDeleteImageCommand=BatchDeleteImageCommand},78859:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetImageCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class BatchGetImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,BatchGetImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="BatchGetImageCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_BatchGetImageCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchGetImageCommand)(e,t)}}t.BatchGetImageCommand=BatchGetImageCommand},79728:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchGetRepositoryScanningConfigurationCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class BatchGetRepositoryScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,BatchGetRepositoryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="BatchGetRepositoryScanningConfigurationCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_BatchGetRepositoryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_BatchGetRepositoryScanningConfigurationCommand)(e,t)}}t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand},49003:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CompleteLayerUploadCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class CompleteLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,CompleteLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="CompleteLayerUploadCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_CompleteLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_CompleteLayerUploadCommand)(e,t)}}t.CompleteLayerUploadCommand=CompleteLayerUploadCommand},71454:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreatePullThroughCacheRuleCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class CreatePullThroughCacheRuleCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,CreatePullThroughCacheRuleCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="CreatePullThroughCacheRuleCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_CreatePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,i.de_CreatePullThroughCacheRuleCommand)(e,t)}}t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand},5074:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CreateRepositoryCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class CreateRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,CreateRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="CreateRepositoryCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_CreateRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_CreateRepositoryCommand)(e,t)}}t.CreateRepositoryCommand=CreateRepositoryCommand},48981:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteLifecyclePolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DeleteLifecyclePolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeleteLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DeleteLifecyclePolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeleteLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteLifecyclePolicyCommand)(e,t)}}t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand},83793:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeletePullThroughCacheRuleCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DeletePullThroughCacheRuleCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeletePullThroughCacheRuleCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DeletePullThroughCacheRuleCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeletePullThroughCacheRuleCommand)(e,t)}deserialize(e,t){return(0,i.de_DeletePullThroughCacheRuleCommand)(e,t)}}t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand},31424:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRegistryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DeleteRegistryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeleteRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DeleteRegistryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeleteRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRegistryPolicyCommand)(e,t)}}t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand},88651:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DeleteRepositoryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeleteRepositoryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DeleteRepositoryCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeleteRepositoryCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryCommand)(e,t)}}t.DeleteRepositoryCommand=DeleteRepositoryCommand},36828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DeleteRepositoryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DeleteRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DeleteRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DeleteRepositoryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DeleteRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_DeleteRepositoryPolicyCommand)(e,t)}}t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand},39694:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageReplicationStatusCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DescribeImageReplicationStatusCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeImageReplicationStatusCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DescribeImageReplicationStatusCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeImageReplicationStatusCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImageReplicationStatusCommand)(e,t)}}t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand},72987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImageScanFindingsCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DescribeImageScanFindingsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeImageScanFindingsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DescribeImageScanFindingsCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeImageScanFindingsCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImageScanFindingsCommand)(e,t)}}t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand},95353:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeImagesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DescribeImagesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DescribeImagesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeImagesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeImagesCommand)(e,t)}}t.DescribeImagesCommand=DescribeImagesCommand},31484:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribePullThroughCacheRulesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DescribePullThroughCacheRulesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribePullThroughCacheRulesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DescribePullThroughCacheRulesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribePullThroughCacheRulesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribePullThroughCacheRulesCommand)(e,t)}}t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand},26166:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRegistryCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DescribeRegistryCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeRegistryCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DescribeRegistryCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeRegistryCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRegistryCommand)(e,t)}}t.DescribeRegistryCommand=DescribeRegistryCommand},21200:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DescribeRepositoriesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class DescribeRepositoriesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,DescribeRepositoriesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="DescribeRepositoriesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_DescribeRepositoriesCommand)(e,t)}deserialize(e,t){return(0,i.de_DescribeRepositoriesCommand)(e,t)}}t.DescribeRepositoriesCommand=DescribeRepositoriesCommand},35828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAuthorizationTokenCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetAuthorizationTokenCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetAuthorizationTokenCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetAuthorizationTokenCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetAuthorizationTokenCommand)(e,t)}deserialize(e,t){return(0,i.de_GetAuthorizationTokenCommand)(e,t)}}t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand},51401:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetDownloadUrlForLayerCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetDownloadUrlForLayerCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetDownloadUrlForLayerCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetDownloadUrlForLayerCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetDownloadUrlForLayerCommand)(e,t)}deserialize(e,t){return(0,i.de_GetDownloadUrlForLayerCommand)(e,t)}}t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand},48469:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetLifecyclePolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetLifecyclePolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetLifecyclePolicyCommand)(e,t)}}t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand},17006:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetLifecyclePolicyPreviewCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetLifecyclePolicyPreviewCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetLifecyclePolicyPreviewCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,i.de_GetLifecyclePolicyPreviewCommand)(e,t)}}t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand},33685:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetRegistryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetRegistryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRegistryPolicyCommand)(e,t)}}t.GetRegistryPolicyCommand=GetRegistryPolicyCommand},82741:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryScanningConfigurationCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetRegistryScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRegistryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetRegistryScanningConfigurationCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRegistryScanningConfigurationCommand)(e,t)}}t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand},46330:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRepositoryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class GetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="GetRepositoryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_GetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_GetRepositoryPolicyCommand)(e,t)}}t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand},6936:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InitiateLayerUploadCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class InitiateLayerUploadCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,InitiateLayerUploadCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="InitiateLayerUploadCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_InitiateLayerUploadCommand)(e,t)}deserialize(e,t){return(0,i.de_InitiateLayerUploadCommand)(e,t)}}t.InitiateLayerUploadCommand=InitiateLayerUploadCommand},3854:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListImagesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class ListImagesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,ListImagesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="ListImagesCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_ListImagesCommand)(e,t)}deserialize(e,t){return(0,i.de_ListImagesCommand)(e,t)}}t.ListImagesCommand=ListImagesCommand},97403:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListTagsForResourceCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class ListTagsForResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,ListTagsForResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="ListTagsForResourceCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_ListTagsForResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_ListTagsForResourceCommand)(e,t)}}t.ListTagsForResourceCommand=ListTagsForResourceCommand},66844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutImageCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutImageCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutImageCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutImageCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageCommand)(e,t)}}t.PutImageCommand=PutImageCommand},87935:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageScanningConfigurationCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutImageScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutImageScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutImageScanningConfigurationCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutImageScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageScanningConfigurationCommand)(e,t)}}t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand},66495:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutImageTagMutabilityCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutImageTagMutabilityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutImageTagMutabilityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutImageTagMutabilityCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutImageTagMutabilityCommand)(e,t)}deserialize(e,t){return(0,i.de_PutImageTagMutabilityCommand)(e,t)}}t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand},33854:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutLifecyclePolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutLifecyclePolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutLifecyclePolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutLifecyclePolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutLifecyclePolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_PutLifecyclePolicyCommand)(e,t)}}t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand},97928:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutRegistryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutRegistryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutRegistryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutRegistryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRegistryPolicyCommand)(e,t)}}t.PutRegistryPolicyCommand=PutRegistryPolicyCommand},29529:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutRegistryScanningConfigurationCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutRegistryScanningConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutRegistryScanningConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutRegistryScanningConfigurationCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutRegistryScanningConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_PutRegistryScanningConfigurationCommand)(e,t)}}t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand},14030:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PutReplicationConfigurationCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class PutReplicationConfigurationCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,PutReplicationConfigurationCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="PutReplicationConfigurationCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_PutReplicationConfigurationCommand)(e,t)}deserialize(e,t){return(0,i.de_PutReplicationConfigurationCommand)(e,t)}}t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand},78300:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SetRepositoryPolicyCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class SetRepositoryPolicyCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,SetRepositoryPolicyCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="SetRepositoryPolicyCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_SetRepositoryPolicyCommand)(e,t)}deserialize(e,t){return(0,i.de_SetRepositoryPolicyCommand)(e,t)}}t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand},47984:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartImageScanCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class StartImageScanCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,StartImageScanCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="StartImageScanCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_StartImageScanCommand)(e,t)}deserialize(e,t){return(0,i.de_StartImageScanCommand)(e,t)}}t.StartImageScanCommand=StartImageScanCommand},35905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StartLifecyclePolicyPreviewCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class StartLifecyclePolicyPreviewCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,StartLifecyclePolicyPreviewCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="StartLifecyclePolicyPreviewCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_StartLifecyclePolicyPreviewCommand)(e,t)}deserialize(e,t){return(0,i.de_StartLifecyclePolicyPreviewCommand)(e,t)}}t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand},82665:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TagResourceCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class TagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,TagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="TagResourceCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_TagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_TagResourceCommand)(e,t)}}t.TagResourceCommand=TagResourceCommand},37225:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UntagResourceCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class UntagResourceCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,UntagResourceCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="UntagResourceCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_UntagResourceCommand)(e,t)}deserialize(e,t){return(0,i.de_UntagResourceCommand)(e,t)}}t.UntagResourceCommand=UntagResourceCommand},55825:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UploadLayerPartCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(56704);class UploadLayerPartCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,UploadLayerPartCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:i}=t;const A="ECRClient";const a="UploadLayerPartCommand";const c={logger:i,clientName:A,commandName:a,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:u}=t;return s.resolve((e=>u.handle(e.request,o||{})),c)}serialize(e,t){return(0,i.se_UploadLayerPartCommand)(e,t)}deserialize(e,t){return(0,i.de_UploadLayerPartCommand)(e,t)}}t.UploadLayerPartCommand=UploadLayerPartCommand},67407:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(63804),t);n.__exportStar(o(15511),t);n.__exportStar(o(78859),t);n.__exportStar(o(79728),t);n.__exportStar(o(49003),t);n.__exportStar(o(71454),t);n.__exportStar(o(5074),t);n.__exportStar(o(48981),t);n.__exportStar(o(83793),t);n.__exportStar(o(31424),t);n.__exportStar(o(88651),t);n.__exportStar(o(36828),t);n.__exportStar(o(39694),t);n.__exportStar(o(72987),t);n.__exportStar(o(95353),t);n.__exportStar(o(31484),t);n.__exportStar(o(26166),t);n.__exportStar(o(21200),t);n.__exportStar(o(35828),t);n.__exportStar(o(51401),t);n.__exportStar(o(48469),t);n.__exportStar(o(17006),t);n.__exportStar(o(33685),t);n.__exportStar(o(82741),t);n.__exportStar(o(46330),t);n.__exportStar(o(6936),t);n.__exportStar(o(3854),t);n.__exportStar(o(97403),t);n.__exportStar(o(66844),t);n.__exportStar(o(87935),t);n.__exportStar(o(66495),t);n.__exportStar(o(33854),t);n.__exportStar(o(97928),t);n.__exportStar(o(29529),t);n.__exportStar(o(14030),t);n.__exportStar(o(78300),t);n.__exportStar(o(47984),t);n.__exportStar(o(35905),t);n.__exportStar(o(82665),t);n.__exportStar(o(37225),t);n.__exportStar(o(55825),t)},49729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},61610:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const n=o(13350);const r=o(64053);const defaultEndpointResolver=(e,t={})=>(0,n.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},64053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const o="required",n="fn",r="argv",s="ref";const i="isSet",A="tree",a="error",c="endpoint",u="PartitionResult",l="stringEquals",d={[o]:false,type:"String"},g={[o]:true,default:false,type:"Boolean"},E={[s]:"Endpoint"},p={[n]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},C={[n]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},h={},f={[n]:"booleanEquals",[r]:[true,{[n]:"getAttr",[r]:[{[s]:u},"supportsFIPS"]}]},m={[n]:"booleanEquals",[r]:[true,{[n]:"getAttr",[r]:[{[s]:u},"supportsDualStack"]}]},I={[n]:"getAttr",[r]:[{[s]:u},"name"]},y={url:"https://ecr-fips.{Region}.amazonaws.com",properties:{},headers:{}},Q=[p],B=[C],w=[{[s]:"Region"}];const S={version:"1.0",parameters:{Region:d,UseDualStack:g,UseFIPS:g,Endpoint:d},rules:[{conditions:[{[n]:i,[r]:[E]}],type:A,rules:[{conditions:Q,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:a},{conditions:B,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:a},{endpoint:{url:E,properties:h,headers:h},type:c}]},{conditions:[{[n]:i,[r]:w}],type:A,rules:[{conditions:[{[n]:"aws.partition",[r]:w,assign:u}],type:A,rules:[{conditions:[p,C],type:A,rules:[{conditions:[f,m],type:A,rules:[{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:h,headers:h},type:c}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:a}]},{conditions:Q,type:A,rules:[{conditions:[f],type:A,rules:[{conditions:[{[n]:l,[r]:["aws",I]}],endpoint:y,type:c},{conditions:[{[n]:l,[r]:["aws-us-gov",I]}],endpoint:y,type:c},{endpoint:{url:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",properties:h,headers:h},type:c}]},{error:"FIPS is enabled but this partition does not support FIPS",type:a}]},{conditions:B,type:A,rules:[{conditions:[m],type:A,rules:[{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:h,headers:h},type:c}]},{error:"DualStack is enabled but this partition does not support DualStack",type:a}]},{endpoint:{url:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",properties:h,headers:h},type:c}]}]},{error:"Invalid Configuration: Missing Region",type:a}]};t.ruleSet=S},8923:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=void 0;const n=o(4351);n.__exportStar(o(83391),t);n.__exportStar(o(59167),t);n.__exportStar(o(67407),t);n.__exportStar(o(97074),t);n.__exportStar(o(28406),t);n.__exportStar(o(57451),t);var r=o(11610);Object.defineProperty(t,"ECRServiceException",{enumerable:true,get:function(){return r.ECRServiceException}})},11610:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=t.__ServiceException=void 0;const n=o(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return n.ServiceException}});class ECRServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},57451:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(79088),t)},79088:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.InvalidLayerPartException=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.ReferencedImagesNotFoundException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.ScanType=t.LifecyclePolicyPreviewNotFoundException=t.LifecyclePolicyPreviewStatus=t.ImageActionType=t.LayersNotFoundException=t.LayerInaccessibleException=t.RepositoryFilterType=t.ScanNotFoundException=t.ScanStatus=t.FindingSeverity=t.TagStatus=t.ImageNotFoundException=t.ReplicationStatus=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.RegistryPolicyNotFoundException=t.PullThroughCacheRuleNotFoundException=t.LifecyclePolicyNotFoundException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.ImageTagMutability=t.EncryptionType=t.UnsupportedUpstreamRegistryException=t.PullThroughCacheRuleAlreadyExistsException=t.LimitExceededException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.ValidationException=t.ScanFrequency=t.ScanningRepositoryFilterType=t.ScanningConfigurationFailureCode=t.ImageFailureCode=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=t.LayerAvailability=t.LayerFailureCode=void 0;const n=o(11610);t.LayerFailureCode={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};t.LayerAvailability={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};class InvalidParameterException extends n.ECRServiceException{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});this.name="InvalidParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RepositoryNotFoundException extends n.ECRServiceException{constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});this.name="RepositoryNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends n.ECRServiceException{constructor(e){super({name:"ServerException",$fault:"server",...e});this.name="ServerException";this.$fault="server";Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;t.ImageFailureCode={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};t.ScanningConfigurationFailureCode={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};t.ScanningRepositoryFilterType={WILDCARD:"WILDCARD"};t.ScanFrequency={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};class ValidationException extends n.ECRServiceException{constructor(e){super({name:"ValidationException",$fault:"client",...e});this.name="ValidationException";this.$fault="client";Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;class EmptyUploadException extends n.ECRServiceException{constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});this.name="EmptyUploadException";this.$fault="client";Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends n.ECRServiceException{constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});this.name="InvalidLayerException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class KmsException extends n.ECRServiceException{constructor(e){super({name:"KmsException",$fault:"client",...e});this.name="KmsException";this.$fault="client";Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}t.KmsException=KmsException;class LayerAlreadyExistsException extends n.ECRServiceException{constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});this.name="LayerAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends n.ECRServiceException{constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});this.name="LayerPartTooSmallException";this.$fault="client";Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends n.ECRServiceException{constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});this.name="UploadNotFoundException";this.$fault="client";Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class LimitExceededException extends n.ECRServiceException{constructor(e){super({name:"LimitExceededException",$fault:"client",...e});this.name="LimitExceededException";this.$fault="client";Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class PullThroughCacheRuleAlreadyExistsException extends n.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});this.name="PullThroughCacheRuleAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}t.PullThroughCacheRuleAlreadyExistsException=PullThroughCacheRuleAlreadyExistsException;class UnsupportedUpstreamRegistryException extends n.ECRServiceException{constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});this.name="UnsupportedUpstreamRegistryException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;t.EncryptionType={AES256:"AES256",KMS:"KMS"};t.ImageTagMutability={IMMUTABLE:"IMMUTABLE",MUTABLE:"MUTABLE"};class InvalidTagParameterException extends n.ECRServiceException{constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});this.name="InvalidTagParameterException";this.$fault="client";Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class RepositoryAlreadyExistsException extends n.ECRServiceException{constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});this.name="RepositoryAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends n.ECRServiceException{constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});this.name="TooManyTagsException";this.$fault="client";Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class LifecyclePolicyNotFoundException extends n.ECRServiceException{constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;class PullThroughCacheRuleNotFoundException extends n.ECRServiceException{constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});this.name="PullThroughCacheRuleNotFoundException";this.$fault="client";Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;class RegistryPolicyNotFoundException extends n.ECRServiceException{constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});this.name="RegistryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;class RepositoryNotEmptyException extends n.ECRServiceException{constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});this.name="RepositoryNotEmptyException";this.$fault="client";Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends n.ECRServiceException{constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});this.name="RepositoryPolicyNotFoundException";this.$fault="client";Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;t.ReplicationStatus={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};class ImageNotFoundException extends n.ECRServiceException{constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});this.name="ImageNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;t.TagStatus={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};t.FindingSeverity={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};t.ScanStatus={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IN_PROGRESS:"IN_PROGRESS",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};class ScanNotFoundException extends n.ECRServiceException{constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});this.name="ScanNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;t.RepositoryFilterType={PREFIX_MATCH:"PREFIX_MATCH"};class LayerInaccessibleException extends n.ECRServiceException{constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});this.name="LayerInaccessibleException";this.$fault="client";Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}t.LayerInaccessibleException=LayerInaccessibleException;class LayersNotFoundException extends n.ECRServiceException{constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});this.name="LayersNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;t.ImageActionType={EXPIRE:"EXPIRE"};t.LifecyclePolicyPreviewStatus={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};class LifecyclePolicyPreviewNotFoundException extends n.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});this.name="LifecyclePolicyPreviewNotFoundException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;t.ScanType={BASIC:"BASIC",ENHANCED:"ENHANCED"};class ImageAlreadyExistsException extends n.ECRServiceException{constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});this.name="ImageAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends n.ECRServiceException{constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});this.name="ImageDigestDoesNotMatchException";this.$fault="client";Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends n.ECRServiceException{constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});this.name="ImageTagAlreadyExistsException";this.$fault="client";Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class ReferencedImagesNotFoundException extends n.ECRServiceException{constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});this.name="ReferencedImagesNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;class UnsupportedImageTypeException extends n.ECRServiceException{constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});this.name="UnsupportedImageTypeException";this.$fault="client";Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}t.UnsupportedImageTypeException=UnsupportedImageTypeException;class LifecyclePolicyPreviewInProgressException extends n.ECRServiceException{constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});this.name="LifecyclePolicyPreviewInProgressException";this.$fault="client";Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;class InvalidLayerPartException extends n.ECRServiceException{constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});this.name="InvalidLayerPartException";this.$fault="client";Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException},30862:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImageScanFindings=void 0;const n=o(72987);const r=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImageScanFindingsCommand(t),...o);async function*paginateDescribeImageScanFindings(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeImageScanFindings=paginateDescribeImageScanFindings},51351:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeImages=void 0;const n=o(95353);const r=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeImagesCommand(t),...o);async function*paginateDescribeImages(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeImages=paginateDescribeImages},59589:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribePullThroughCacheRules=void 0;const n=o(31484);const r=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribePullThroughCacheRulesCommand(t),...o);async function*paginateDescribePullThroughCacheRules(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribePullThroughCacheRules=paginateDescribePullThroughCacheRules},16404:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateDescribeRepositories=void 0;const n=o(21200);const r=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.DescribeRepositoriesCommand(t),...o);async function*paginateDescribeRepositories(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateDescribeRepositories=paginateDescribeRepositories},50987:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateGetLifecyclePolicyPreview=void 0;const n=o(17006);const r=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.GetLifecyclePolicyPreviewCommand(t),...o);async function*paginateGetLifecyclePolicyPreview(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateGetLifecyclePolicyPreview=paginateGetLifecyclePolicyPreview},9010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1066:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListImages=void 0;const n=o(3854);const r=o(83391);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.ListImagesCommand(t),...o);async function*paginateListImages(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.ECRClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected ECR | ECRClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateListImages=paginateListImages},97074:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(30862),t);n.__exportStar(o(51351),t);n.__exportStar(o(59589),t);n.__exportStar(o(16404),t);n.__exportStar(o(50987),t);n.__exportStar(o(9010),t);n.__exportStar(o(1066),t)},56704:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_DeletePullThroughCacheRuleCommand=t.de_DeleteLifecyclePolicyCommand=t.de_CreateRepositoryCommand=t.de_CreatePullThroughCacheRuleCommand=t.de_CompleteLayerUploadCommand=t.de_BatchGetRepositoryScanningConfigurationCommand=t.de_BatchGetImageCommand=t.de_BatchDeleteImageCommand=t.de_BatchCheckLayerAvailabilityCommand=t.se_UploadLayerPartCommand=t.se_UntagResourceCommand=t.se_TagResourceCommand=t.se_StartLifecyclePolicyPreviewCommand=t.se_StartImageScanCommand=t.se_SetRepositoryPolicyCommand=t.se_PutReplicationConfigurationCommand=t.se_PutRegistryScanningConfigurationCommand=t.se_PutRegistryPolicyCommand=t.se_PutLifecyclePolicyCommand=t.se_PutImageTagMutabilityCommand=t.se_PutImageScanningConfigurationCommand=t.se_PutImageCommand=t.se_ListTagsForResourceCommand=t.se_ListImagesCommand=t.se_InitiateLayerUploadCommand=t.se_GetRepositoryPolicyCommand=t.se_GetRegistryScanningConfigurationCommand=t.se_GetRegistryPolicyCommand=t.se_GetLifecyclePolicyPreviewCommand=t.se_GetLifecyclePolicyCommand=t.se_GetDownloadUrlForLayerCommand=t.se_GetAuthorizationTokenCommand=t.se_DescribeRepositoriesCommand=t.se_DescribeRegistryCommand=t.se_DescribePullThroughCacheRulesCommand=t.se_DescribeImageScanFindingsCommand=t.se_DescribeImagesCommand=t.se_DescribeImageReplicationStatusCommand=t.se_DeleteRepositoryPolicyCommand=t.se_DeleteRepositoryCommand=t.se_DeleteRegistryPolicyCommand=t.se_DeletePullThroughCacheRuleCommand=t.se_DeleteLifecyclePolicyCommand=t.se_CreateRepositoryCommand=t.se_CreatePullThroughCacheRuleCommand=t.se_CompleteLayerUploadCommand=t.se_BatchGetRepositoryScanningConfigurationCommand=t.se_BatchGetImageCommand=t.se_BatchDeleteImageCommand=t.se_BatchCheckLayerAvailabilityCommand=void 0;t.de_UploadLayerPartCommand=t.de_UntagResourceCommand=t.de_TagResourceCommand=t.de_StartLifecyclePolicyPreviewCommand=t.de_StartImageScanCommand=t.de_SetRepositoryPolicyCommand=t.de_PutReplicationConfigurationCommand=t.de_PutRegistryScanningConfigurationCommand=t.de_PutRegistryPolicyCommand=t.de_PutLifecyclePolicyCommand=t.de_PutImageTagMutabilityCommand=t.de_PutImageScanningConfigurationCommand=t.de_PutImageCommand=t.de_ListTagsForResourceCommand=t.de_ListImagesCommand=t.de_InitiateLayerUploadCommand=t.de_GetRepositoryPolicyCommand=t.de_GetRegistryScanningConfigurationCommand=t.de_GetRegistryPolicyCommand=t.de_GetLifecyclePolicyPreviewCommand=t.de_GetLifecyclePolicyCommand=t.de_GetDownloadUrlForLayerCommand=t.de_GetAuthorizationTokenCommand=t.de_DescribeRepositoriesCommand=t.de_DescribeRegistryCommand=t.de_DescribePullThroughCacheRulesCommand=t.de_DescribeImageScanFindingsCommand=t.de_DescribeImagesCommand=t.de_DescribeImageReplicationStatusCommand=t.de_DeleteRepositoryPolicyCommand=t.de_DeleteRepositoryCommand=t.de_DeleteRegistryPolicyCommand=void 0;const n=o(64418);const r=o(63570);const s=o(11610);const i=o(79088);const se_BatchCheckLayerAvailabilityCommand=async(e,t)=>{const o=sharedHeaders("BatchCheckLayerAvailability");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_BatchCheckLayerAvailabilityCommand=se_BatchCheckLayerAvailabilityCommand;const se_BatchDeleteImageCommand=async(e,t)=>{const o=sharedHeaders("BatchDeleteImage");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_BatchDeleteImageCommand=se_BatchDeleteImageCommand;const se_BatchGetImageCommand=async(e,t)=>{const o=sharedHeaders("BatchGetImage");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_BatchGetImageCommand=se_BatchGetImageCommand;const se_BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{const o=sharedHeaders("BatchGetRepositoryScanningConfiguration");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_BatchGetRepositoryScanningConfigurationCommand=se_BatchGetRepositoryScanningConfigurationCommand;const se_CompleteLayerUploadCommand=async(e,t)=>{const o=sharedHeaders("CompleteLayerUpload");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_CompleteLayerUploadCommand=se_CompleteLayerUploadCommand;const se_CreatePullThroughCacheRuleCommand=async(e,t)=>{const o=sharedHeaders("CreatePullThroughCacheRule");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_CreatePullThroughCacheRuleCommand=se_CreatePullThroughCacheRuleCommand;const se_CreateRepositoryCommand=async(e,t)=>{const o=sharedHeaders("CreateRepository");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_CreateRepositoryCommand=se_CreateRepositoryCommand;const se_DeleteLifecyclePolicyCommand=async(e,t)=>{const o=sharedHeaders("DeleteLifecyclePolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeleteLifecyclePolicyCommand=se_DeleteLifecyclePolicyCommand;const se_DeletePullThroughCacheRuleCommand=async(e,t)=>{const o=sharedHeaders("DeletePullThroughCacheRule");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeletePullThroughCacheRuleCommand=se_DeletePullThroughCacheRuleCommand;const se_DeleteRegistryPolicyCommand=async(e,t)=>{const o=sharedHeaders("DeleteRegistryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeleteRegistryPolicyCommand=se_DeleteRegistryPolicyCommand;const se_DeleteRepositoryCommand=async(e,t)=>{const o=sharedHeaders("DeleteRepository");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeleteRepositoryCommand=se_DeleteRepositoryCommand;const se_DeleteRepositoryPolicyCommand=async(e,t)=>{const o=sharedHeaders("DeleteRepositoryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DeleteRepositoryPolicyCommand=se_DeleteRepositoryPolicyCommand;const se_DescribeImageReplicationStatusCommand=async(e,t)=>{const o=sharedHeaders("DescribeImageReplicationStatus");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeImageReplicationStatusCommand=se_DescribeImageReplicationStatusCommand;const se_DescribeImagesCommand=async(e,t)=>{const o=sharedHeaders("DescribeImages");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeImagesCommand=se_DescribeImagesCommand;const se_DescribeImageScanFindingsCommand=async(e,t)=>{const o=sharedHeaders("DescribeImageScanFindings");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeImageScanFindingsCommand=se_DescribeImageScanFindingsCommand;const se_DescribePullThroughCacheRulesCommand=async(e,t)=>{const o=sharedHeaders("DescribePullThroughCacheRules");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribePullThroughCacheRulesCommand=se_DescribePullThroughCacheRulesCommand;const se_DescribeRegistryCommand=async(e,t)=>{const o=sharedHeaders("DescribeRegistry");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeRegistryCommand=se_DescribeRegistryCommand;const se_DescribeRepositoriesCommand=async(e,t)=>{const o=sharedHeaders("DescribeRepositories");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DescribeRepositoriesCommand=se_DescribeRepositoriesCommand;const se_GetAuthorizationTokenCommand=async(e,t)=>{const o=sharedHeaders("GetAuthorizationToken");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetAuthorizationTokenCommand=se_GetAuthorizationTokenCommand;const se_GetDownloadUrlForLayerCommand=async(e,t)=>{const o=sharedHeaders("GetDownloadUrlForLayer");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetDownloadUrlForLayerCommand=se_GetDownloadUrlForLayerCommand;const se_GetLifecyclePolicyCommand=async(e,t)=>{const o=sharedHeaders("GetLifecyclePolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetLifecyclePolicyCommand=se_GetLifecyclePolicyCommand;const se_GetLifecyclePolicyPreviewCommand=async(e,t)=>{const o=sharedHeaders("GetLifecyclePolicyPreview");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetLifecyclePolicyPreviewCommand=se_GetLifecyclePolicyPreviewCommand;const se_GetRegistryPolicyCommand=async(e,t)=>{const o=sharedHeaders("GetRegistryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetRegistryPolicyCommand=se_GetRegistryPolicyCommand;const se_GetRegistryScanningConfigurationCommand=async(e,t)=>{const o=sharedHeaders("GetRegistryScanningConfiguration");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetRegistryScanningConfigurationCommand=se_GetRegistryScanningConfigurationCommand;const se_GetRepositoryPolicyCommand=async(e,t)=>{const o=sharedHeaders("GetRepositoryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetRepositoryPolicyCommand=se_GetRepositoryPolicyCommand;const se_InitiateLayerUploadCommand=async(e,t)=>{const o=sharedHeaders("InitiateLayerUpload");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_InitiateLayerUploadCommand=se_InitiateLayerUploadCommand;const se_ListImagesCommand=async(e,t)=>{const o=sharedHeaders("ListImages");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_ListImagesCommand=se_ListImagesCommand;const se_ListTagsForResourceCommand=async(e,t)=>{const o=sharedHeaders("ListTagsForResource");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_ListTagsForResourceCommand=se_ListTagsForResourceCommand;const se_PutImageCommand=async(e,t)=>{const o=sharedHeaders("PutImage");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutImageCommand=se_PutImageCommand;const se_PutImageScanningConfigurationCommand=async(e,t)=>{const o=sharedHeaders("PutImageScanningConfiguration");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutImageScanningConfigurationCommand=se_PutImageScanningConfigurationCommand;const se_PutImageTagMutabilityCommand=async(e,t)=>{const o=sharedHeaders("PutImageTagMutability");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutImageTagMutabilityCommand=se_PutImageTagMutabilityCommand;const se_PutLifecyclePolicyCommand=async(e,t)=>{const o=sharedHeaders("PutLifecyclePolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutLifecyclePolicyCommand=se_PutLifecyclePolicyCommand;const se_PutRegistryPolicyCommand=async(e,t)=>{const o=sharedHeaders("PutRegistryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutRegistryPolicyCommand=se_PutRegistryPolicyCommand;const se_PutRegistryScanningConfigurationCommand=async(e,t)=>{const o=sharedHeaders("PutRegistryScanningConfiguration");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutRegistryScanningConfigurationCommand=se_PutRegistryScanningConfigurationCommand;const se_PutReplicationConfigurationCommand=async(e,t)=>{const o=sharedHeaders("PutReplicationConfiguration");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_PutReplicationConfigurationCommand=se_PutReplicationConfigurationCommand;const se_SetRepositoryPolicyCommand=async(e,t)=>{const o=sharedHeaders("SetRepositoryPolicy");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_SetRepositoryPolicyCommand=se_SetRepositoryPolicyCommand;const se_StartImageScanCommand=async(e,t)=>{const o=sharedHeaders("StartImageScan");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_StartImageScanCommand=se_StartImageScanCommand;const se_StartLifecyclePolicyPreviewCommand=async(e,t)=>{const o=sharedHeaders("StartLifecyclePolicyPreview");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_StartLifecyclePolicyPreviewCommand=se_StartLifecyclePolicyPreviewCommand;const se_TagResourceCommand=async(e,t)=>{const o=sharedHeaders("TagResource");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_TagResourceCommand=se_TagResourceCommand;const se_UntagResourceCommand=async(e,t)=>{const o=sharedHeaders("UntagResource");let n;n=JSON.stringify((0,r._json)(e));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_UntagResourceCommand=se_UntagResourceCommand;const se_UploadLayerPartCommand=async(e,t)=>{const o=sharedHeaders("UploadLayerPart");let n;n=JSON.stringify(se_UploadLayerPartRequest(e,t));return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_UploadLayerPartCommand=se_UploadLayerPartCommand;const de_BatchCheckLayerAvailabilityCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchCheckLayerAvailabilityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_BatchCheckLayerAvailabilityCommand=de_BatchCheckLayerAvailabilityCommand;const de_BatchCheckLayerAvailabilityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_BatchDeleteImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchDeleteImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_BatchDeleteImageCommand=de_BatchDeleteImageCommand;const de_BatchDeleteImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_BatchGetImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchGetImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_BatchGetImageCommand=de_BatchGetImageCommand;const de_BatchGetImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_BatchGetRepositoryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_BatchGetRepositoryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_BatchGetRepositoryScanningConfigurationCommand=de_BatchGetRepositoryScanningConfigurationCommand;const de_BatchGetRepositoryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_CompleteLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_CompleteLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_CompleteLayerUploadCommand=de_CompleteLayerUploadCommand;const de_CompleteLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"EmptyUploadException":case"com.amazonaws.ecr#EmptyUploadException":throw await de_EmptyUploadExceptionRes(o,t);case"InvalidLayerException":case"com.amazonaws.ecr#InvalidLayerException":throw await de_InvalidLayerExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(o,t);case"LayerAlreadyExistsException":case"com.amazonaws.ecr#LayerAlreadyExistsException":throw await de_LayerAlreadyExistsExceptionRes(o,t);case"LayerPartTooSmallException":case"com.amazonaws.ecr#LayerPartTooSmallException":throw await de_LayerPartTooSmallExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_CreatePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return de_CreatePullThroughCacheRuleCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_CreatePullThroughCacheRuleResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_CreatePullThroughCacheRuleCommand=de_CreatePullThroughCacheRuleCommand;const de_CreatePullThroughCacheRuleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"PullThroughCacheRuleAlreadyExistsException":case"com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":throw await de_PullThroughCacheRuleAlreadyExistsExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedUpstreamRegistryException":case"com.amazonaws.ecr#UnsupportedUpstreamRegistryException":throw await de_UnsupportedUpstreamRegistryExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_CreateRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_CreateRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_CreateRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_CreateRepositoryCommand=de_CreateRepositoryCommand;const de_CreateRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"RepositoryAlreadyExistsException":case"com.amazonaws.ecr#RepositoryAlreadyExistsException":throw await de_RepositoryAlreadyExistsExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await de_TooManyTagsExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeleteLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DeleteLifecyclePolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DeleteLifecyclePolicyCommand=de_DeleteLifecyclePolicyCommand;const de_DeleteLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await de_LifecyclePolicyNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeletePullThroughCacheRuleCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeletePullThroughCacheRuleCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DeletePullThroughCacheRuleResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DeletePullThroughCacheRuleCommand=de_DeletePullThroughCacheRuleCommand;const de_DeletePullThroughCacheRuleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await de_PullThroughCacheRuleNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeleteRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_DeleteRegistryPolicyCommand=de_DeleteRegistryPolicyCommand;const de_DeleteRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await de_RegistryPolicyNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeleteRepositoryCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DeleteRepositoryResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DeleteRepositoryCommand=de_DeleteRepositoryCommand;const de_DeleteRepositoryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(o,t);case"RepositoryNotEmptyException":case"com.amazonaws.ecr#RepositoryNotEmptyException":throw await de_RepositoryNotEmptyExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DeleteRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_DeleteRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_DeleteRepositoryPolicyCommand=de_DeleteRepositoryPolicyCommand;const de_DeleteRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeImageReplicationStatusCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImageReplicationStatusCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_DescribeImageReplicationStatusCommand=de_DescribeImageReplicationStatusCommand;const de_DescribeImageReplicationStatusCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeImagesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImagesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribeImagesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribeImagesCommand=de_DescribeImagesCommand;const de_DescribeImagesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeImageScanFindingsCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeImageScanFindingsCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribeImageScanFindingsResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribeImageScanFindingsCommand=de_DescribeImageScanFindingsCommand;const de_DescribeImageScanFindingsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ScanNotFoundException":case"com.amazonaws.ecr#ScanNotFoundException":throw await de_ScanNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribePullThroughCacheRulesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribePullThroughCacheRulesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribePullThroughCacheRulesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribePullThroughCacheRulesCommand=de_DescribePullThroughCacheRulesCommand;const de_DescribePullThroughCacheRulesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"PullThroughCacheRuleNotFoundException":case"com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":throw await de_PullThroughCacheRuleNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeRegistryCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRegistryCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_DescribeRegistryCommand=de_DescribeRegistryCommand;const de_DescribeRegistryCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_DescribeRepositoriesCommand=async(e,t)=>{if(e.statusCode>=300){return de_DescribeRepositoriesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DescribeRepositoriesResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DescribeRepositoriesCommand=de_DescribeRepositoriesCommand;const de_DescribeRepositoriesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetAuthorizationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetAuthorizationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetAuthorizationTokenResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetAuthorizationTokenCommand=de_GetAuthorizationTokenCommand;const de_GetAuthorizationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetDownloadUrlForLayerCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetDownloadUrlForLayerCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetDownloadUrlForLayerCommand=de_GetDownloadUrlForLayerCommand;const de_GetDownloadUrlForLayerCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LayerInaccessibleException":case"com.amazonaws.ecr#LayerInaccessibleException":throw await de_LayerInaccessibleExceptionRes(o,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await de_LayersNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetLifecyclePolicyResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetLifecyclePolicyCommand=de_GetLifecyclePolicyCommand;const de_GetLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await de_LifecyclePolicyNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetLifecyclePolicyPreviewCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetLifecyclePolicyPreviewResponse(o,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetLifecyclePolicyPreviewCommand=de_GetLifecyclePolicyPreviewCommand;const de_GetLifecyclePolicyPreviewCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LifecyclePolicyPreviewNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":throw await de_LifecyclePolicyPreviewNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetRegistryPolicyCommand=de_GetRegistryPolicyCommand;const de_GetRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RegistryPolicyNotFoundException":case"com.amazonaws.ecr#RegistryPolicyNotFoundException":throw await de_RegistryPolicyNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRegistryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetRegistryScanningConfigurationCommand=de_GetRegistryScanningConfigurationCommand;const de_GetRegistryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_GetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_GetRepositoryPolicyCommand=de_GetRepositoryPolicyCommand;const de_GetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"RepositoryPolicyNotFoundException":case"com.amazonaws.ecr#RepositoryPolicyNotFoundException":throw await de_RepositoryPolicyNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_InitiateLayerUploadCommand=async(e,t)=>{if(e.statusCode>=300){return de_InitiateLayerUploadCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_InitiateLayerUploadCommand=de_InitiateLayerUploadCommand;const de_InitiateLayerUploadCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_ListImagesCommand=async(e,t)=>{if(e.statusCode>=300){return de_ListImagesCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_ListImagesCommand=de_ListImagesCommand;const de_ListImagesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_ListTagsForResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_ListTagsForResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_ListTagsForResourceCommand=de_ListTagsForResourceCommand;const de_ListTagsForResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutImageCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutImageCommand=de_PutImageCommand;const de_PutImageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageAlreadyExistsException":case"com.amazonaws.ecr#ImageAlreadyExistsException":throw await de_ImageAlreadyExistsExceptionRes(o,t);case"ImageDigestDoesNotMatchException":case"com.amazonaws.ecr#ImageDigestDoesNotMatchException":throw await de_ImageDigestDoesNotMatchExceptionRes(o,t);case"ImageTagAlreadyExistsException":case"com.amazonaws.ecr#ImageTagAlreadyExistsException":throw await de_ImageTagAlreadyExistsExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(o,t);case"LayersNotFoundException":case"com.amazonaws.ecr#LayersNotFoundException":throw await de_LayersNotFoundExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"ReferencedImagesNotFoundException":case"com.amazonaws.ecr#ReferencedImagesNotFoundException":throw await de_ReferencedImagesNotFoundExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutImageScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutImageScanningConfigurationCommand=de_PutImageScanningConfigurationCommand;const de_PutImageScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutImageTagMutabilityCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutImageTagMutabilityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutImageTagMutabilityCommand=de_PutImageTagMutabilityCommand;const de_PutImageTagMutabilityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutLifecyclePolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutLifecyclePolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutLifecyclePolicyCommand=de_PutLifecyclePolicyCommand;const de_PutLifecyclePolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutRegistryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRegistryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutRegistryPolicyCommand=de_PutRegistryPolicyCommand;const de_PutRegistryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutRegistryScanningConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutRegistryScanningConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutRegistryScanningConfigurationCommand=de_PutRegistryScanningConfigurationCommand;const de_PutRegistryScanningConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_PutReplicationConfigurationCommand=async(e,t)=>{if(e.statusCode>=300){return de_PutReplicationConfigurationCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_PutReplicationConfigurationCommand=de_PutReplicationConfigurationCommand;const de_PutReplicationConfigurationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_SetRepositoryPolicyCommand=async(e,t)=>{if(e.statusCode>=300){return de_SetRepositoryPolicyCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_SetRepositoryPolicyCommand=de_SetRepositoryPolicyCommand;const de_SetRepositoryPolicyCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_StartImageScanCommand=async(e,t)=>{if(e.statusCode>=300){return de_StartImageScanCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_StartImageScanCommand=de_StartImageScanCommand;const de_StartImageScanCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"ImageNotFoundException":case"com.amazonaws.ecr#ImageNotFoundException":throw await de_ImageNotFoundExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"UnsupportedImageTypeException":case"com.amazonaws.ecr#UnsupportedImageTypeException":throw await de_UnsupportedImageTypeExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_StartLifecyclePolicyPreviewCommand=async(e,t)=>{if(e.statusCode>=300){return de_StartLifecyclePolicyPreviewCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_StartLifecyclePolicyPreviewCommand=de_StartLifecyclePolicyPreviewCommand;const de_StartLifecyclePolicyPreviewCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"LifecyclePolicyNotFoundException":case"com.amazonaws.ecr#LifecyclePolicyNotFoundException":throw await de_LifecyclePolicyNotFoundExceptionRes(o,t);case"LifecyclePolicyPreviewInProgressException":case"com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":throw await de_LifecyclePolicyPreviewInProgressExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"ValidationException":case"com.amazonaws.ecr#ValidationException":throw await de_ValidationExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_TagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_TagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_TagResourceCommand=de_TagResourceCommand;const de_TagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await de_TooManyTagsExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_UntagResourceCommand=async(e,t)=>{if(e.statusCode>=300){return de_UntagResourceCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_UntagResourceCommand=de_UntagResourceCommand;const de_UntagResourceCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"InvalidTagParameterException":case"com.amazonaws.ecr#InvalidTagParameterException":throw await de_InvalidTagParameterExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"TooManyTagsException":case"com.amazonaws.ecr#TooManyTagsException":throw await de_TooManyTagsExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_UploadLayerPartCommand=async(e,t)=>{if(e.statusCode>=300){return de_UploadLayerPartCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=(0,r._json)(o);const s={$metadata:deserializeMetadata(e),...n};return s};t.de_UploadLayerPartCommand=de_UploadLayerPartCommand;const de_UploadLayerPartCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidLayerPartException":case"com.amazonaws.ecr#InvalidLayerPartException":throw await de_InvalidLayerPartExceptionRes(o,t);case"InvalidParameterException":case"com.amazonaws.ecr#InvalidParameterException":throw await de_InvalidParameterExceptionRes(o,t);case"KmsException":case"com.amazonaws.ecr#KmsException":throw await de_KmsExceptionRes(o,t);case"LimitExceededException":case"com.amazonaws.ecr#LimitExceededException":throw await de_LimitExceededExceptionRes(o,t);case"RepositoryNotFoundException":case"com.amazonaws.ecr#RepositoryNotFoundException":throw await de_RepositoryNotFoundExceptionRes(o,t);case"ServerException":case"com.amazonaws.ecr#ServerException":throw await de_ServerExceptionRes(o,t);case"UploadNotFoundException":case"com.amazonaws.ecr#UploadNotFoundException":throw await de_UploadNotFoundExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_EmptyUploadExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.EmptyUploadException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageDigestDoesNotMatchExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageDigestDoesNotMatchException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ImageTagAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ImageTagAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidLayerExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidLayerException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidLayerPartExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidLayerPartException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidParameterExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidParameterException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidTagParameterExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.InvalidTagParameterException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_KmsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.KmsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayerAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayerAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayerInaccessibleExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayerInaccessibleException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayerPartTooSmallExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayerPartTooSmallException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LayersNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LayersNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LifecyclePolicyNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LifecyclePolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LifecyclePolicyPreviewInProgressExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LifecyclePolicyPreviewInProgressException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LifecyclePolicyPreviewNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LifecyclePolicyPreviewNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_LimitExceededExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.LimitExceededException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_PullThroughCacheRuleAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.PullThroughCacheRuleAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_PullThroughCacheRuleNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.PullThroughCacheRuleNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ReferencedImagesNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ReferencedImagesNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RegistryPolicyNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RegistryPolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryAlreadyExistsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryAlreadyExistsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryNotEmptyExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryNotEmptyException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RepositoryPolicyNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.RepositoryPolicyNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ScanNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ScanNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ServerExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ServerException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_TooManyTagsExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.TooManyTagsException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_UnsupportedImageTypeExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.UnsupportedImageTypeException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_UnsupportedUpstreamRegistryExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.UnsupportedUpstreamRegistryException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_UploadNotFoundExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.UploadNotFoundException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_ValidationExceptionRes=async(e,t)=>{const o=e.body;const n=(0,r._json)(o);const s=new i.ValidationException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const se_UploadLayerPartRequest=(e,t)=>(0,r.take)(e,{layerPartBlob:t.base64Encoder,partFirstByte:[],partLastByte:[],registryId:[],repositoryName:[],uploadId:[]});const de_AuthorizationData=(e,t)=>(0,r.take)(e,{authorizationToken:r.expectString,expiresAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),proxyEndpoint:r.expectString});const de_AuthorizationDataList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_AuthorizationData(e,t)));return o};const de_AwsEcrContainerImageDetails=(e,t)=>(0,r.take)(e,{architecture:r.expectString,author:r.expectString,imageHash:r.expectString,imageTags:r._json,platform:r.expectString,pushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),registry:r.expectString,repositoryName:r.expectString});const de_CreatePullThroughCacheRuleResponse=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),ecrRepositoryPrefix:r.expectString,registryId:r.expectString,upstreamRegistryUrl:r.expectString});const de_CreateRepositoryResponse=(e,t)=>(0,r.take)(e,{repository:e=>de_Repository(e,t)});const de_CvssScore=(e,t)=>(0,r.take)(e,{baseScore:r.limitedParseDouble,scoringVector:r.expectString,source:r.expectString,version:r.expectString});const de_CvssScoreDetails=(e,t)=>(0,r.take)(e,{adjustments:r._json,score:r.limitedParseDouble,scoreSource:r.expectString,scoringVector:r.expectString,version:r.expectString});const de_CvssScoreList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_CvssScore(e,t)));return o};const de_DeleteLifecyclePolicyResponse=(e,t)=>(0,r.take)(e,{lastEvaluatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),lifecyclePolicyText:r.expectString,registryId:r.expectString,repositoryName:r.expectString});const de_DeletePullThroughCacheRuleResponse=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),ecrRepositoryPrefix:r.expectString,registryId:r.expectString,upstreamRegistryUrl:r.expectString});const de_DeleteRepositoryResponse=(e,t)=>(0,r.take)(e,{repository:e=>de_Repository(e,t)});const de_DescribeImageScanFindingsResponse=(e,t)=>(0,r.take)(e,{imageId:r._json,imageScanFindings:e=>de_ImageScanFindings(e,t),imageScanStatus:r._json,nextToken:r.expectString,registryId:r.expectString,repositoryName:r.expectString});const de_DescribeImagesResponse=(e,t)=>(0,r.take)(e,{imageDetails:e=>de_ImageDetailList(e,t),nextToken:r.expectString});const de_DescribePullThroughCacheRulesResponse=(e,t)=>(0,r.take)(e,{nextToken:r.expectString,pullThroughCacheRules:e=>de_PullThroughCacheRuleList(e,t)});const de_DescribeRepositoriesResponse=(e,t)=>(0,r.take)(e,{nextToken:r.expectString,repositories:e=>de_RepositoryList(e,t)});const de_EnhancedImageScanFinding=(e,t)=>(0,r.take)(e,{awsAccountId:r.expectString,description:r.expectString,findingArn:r.expectString,firstObservedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),lastObservedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),packageVulnerabilityDetails:e=>de_PackageVulnerabilityDetails(e,t),remediation:r._json,resources:e=>de_ResourceList(e,t),score:r.limitedParseDouble,scoreDetails:e=>de_ScoreDetails(e,t),severity:r.expectString,status:r.expectString,title:r.expectString,type:r.expectString,updatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_EnhancedImageScanFindingList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_EnhancedImageScanFinding(e,t)));return o};const de_GetAuthorizationTokenResponse=(e,t)=>(0,r.take)(e,{authorizationData:e=>de_AuthorizationDataList(e,t)});const de_GetLifecyclePolicyPreviewResponse=(e,t)=>(0,r.take)(e,{lifecyclePolicyText:r.expectString,nextToken:r.expectString,previewResults:e=>de_LifecyclePolicyPreviewResultList(e,t),registryId:r.expectString,repositoryName:r.expectString,status:r.expectString,summary:r._json});const de_GetLifecyclePolicyResponse=(e,t)=>(0,r.take)(e,{lastEvaluatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),lifecyclePolicyText:r.expectString,registryId:r.expectString,repositoryName:r.expectString});const de_ImageDetail=(e,t)=>(0,r.take)(e,{artifactMediaType:r.expectString,imageDigest:r.expectString,imageManifestMediaType:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageScanFindingsSummary:e=>de_ImageScanFindingsSummary(e,t),imageScanStatus:r._json,imageSizeInBytes:r.expectLong,imageTags:r._json,lastRecordedPullTime:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),registryId:r.expectString,repositoryName:r.expectString});const de_ImageDetailList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_ImageDetail(e,t)));return o};const de_ImageScanFindings=(e,t)=>(0,r.take)(e,{enhancedFindings:e=>de_EnhancedImageScanFindingList(e,t),findingSeverityCounts:r._json,findings:r._json,imageScanCompletedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vulnerabilitySourceUpdatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_ImageScanFindingsSummary=(e,t)=>(0,r.take)(e,{findingSeverityCounts:r._json,imageScanCompletedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vulnerabilitySourceUpdatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e)))});const de_LifecyclePolicyPreviewResult=(e,t)=>(0,r.take)(e,{action:r._json,appliedRulePriority:r.expectInt32,imageDigest:r.expectString,imagePushedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),imageTags:r._json});const de_LifecyclePolicyPreviewResultList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_LifecyclePolicyPreviewResult(e,t)));return o};const de_PackageVulnerabilityDetails=(e,t)=>(0,r.take)(e,{cvss:e=>de_CvssScoreList(e,t),referenceUrls:r._json,relatedVulnerabilities:r._json,source:r.expectString,sourceUrl:r.expectString,vendorCreatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vendorSeverity:r.expectString,vendorUpdatedAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),vulnerabilityId:r.expectString,vulnerablePackages:r._json});const de_PullThroughCacheRule=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),ecrRepositoryPrefix:r.expectString,registryId:r.expectString,upstreamRegistryUrl:r.expectString});const de_PullThroughCacheRuleList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_PullThroughCacheRule(e,t)));return o};const de_Repository=(e,t)=>(0,r.take)(e,{createdAt:e=>(0,r.expectNonNull)((0,r.parseEpochTimestamp)((0,r.expectNumber)(e))),encryptionConfiguration:r._json,imageScanningConfiguration:r._json,imageTagMutability:r.expectString,registryId:r.expectString,repositoryArn:r.expectString,repositoryName:r.expectString,repositoryUri:r.expectString});const de_RepositoryList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_Repository(e,t)));return o};const de_Resource=(e,t)=>(0,r.take)(e,{details:e=>de_ResourceDetails(e,t),id:r.expectString,tags:r._json,type:r.expectString});const de_ResourceDetails=(e,t)=>(0,r.take)(e,{awsEcrContainerImage:e=>de_AwsEcrContainerImageDetails(e,t)});const de_ResourceList=(e,t)=>{const o=(e||[]).filter((e=>e!=null)).map((e=>de_Resource(e,t)));return o};const de_ScoreDetails=(e,t)=>(0,r.take)(e,{cvss:e=>de_CvssScoreDetails(e,t)});const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const A=(0,r.withBaseException)(s.ECRServiceException);const buildHttpRpcRequest=async(e,t,o,r,s)=>{const{hostname:i,protocol:A="https",port:a,path:c}=await e.endpoint();const u={protocol:A,hostname:i,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+o:c+o,headers:t};if(r!==undefined){u.hostname=r}if(s!==undefined){u.body=s}return new n.HttpRequest(u)};function sharedHeaders(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AmazonEC2ContainerRegistry_V20150921.${e}`}}const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);o.message=o.message??o.Message;return o};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},869:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(4351);const r=n.__importDefault(o(4289));const s=o(52209);const i=o(75531);const A=o(98095);const a=o(53098);const c=o(3081);const u=o(96039);const l=o(33461);const d=o(20258);const g=o(68075);const E=o(84902);const p=o(70542);const C=o(63570);const h=o(72429);const f=o(63570);const getRuntimeConfig=e=>{(0,f.emitWarningIfUnsupportedVersion)(process.version);const t=(0,h.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(C.loadConfigsForDefaultMode);const o=(0,p.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??g.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(i.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,A.defaultUserAgent)({serviceId:o.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,l.loadConfig)(u.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,l.loadConfig)(a.NODE_REGION_CONFIG_OPTIONS,a.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,l.loadConfig)({...u.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||E.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,l.loadConfig)(a.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,l.loadConfig)(a.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},70542:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(63570);const r=o(14681);const s=o(75600);const i=o(41895);const A=o(61610);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??A.defaultEndpointResolver,extensions:e?.extensions??[],logger:e?.logger??new n.NoOpLogger,serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},86506:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRuntimeExtensions=void 0;const n=o(64418);const r=o(63570);const asPartial=e=>e;const resolveRuntimeExtensions=(e,t)=>{const o={...asPartial((0,r.getDefaultExtensionConfiguration)(e)),...asPartial((0,n.getHttpHandlerExtensionConfiguration)(e))};t.forEach((e=>e.configure(o)));return{...e,...(0,r.resolveDefaultRuntimeConfig)(o),...(0,n.resolveHttpHandlerRuntimeConfig)(o)}};t.resolveRuntimeExtensions=resolveRuntimeExtensions},28406:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(78547),t);n.__exportStar(o(45723),t)},78547:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilImageScanComplete=t.waitForImageScanComplete=void 0;const n=o(78011);const r=o(72987);const checkState=async(e,t)=>{let o;try{const s=await e.send(new r.DescribeImageScanFindingsCommand(t));o=s;try{const returnComparator=()=>s.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:n.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>s.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:n.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:n.WaiterState.RETRY,reason:o}};const waitForImageScanComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};return(0,n.createWaiter)({...o,...e},t,checkState)};t.waitForImageScanComplete=waitForImageScanComplete;const waitUntilImageScanComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};const r=await(0,n.createWaiter)({...o,...e},t,checkState);return(0,n.checkExceptions)(r)};t.waitUntilImageScanComplete=waitUntilImageScanComplete},45723:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.waitUntilLifecyclePolicyPreviewComplete=t.waitForLifecyclePolicyPreviewComplete=void 0;const n=o(78011);const r=o(17006);const checkState=async(e,t)=>{let o;try{const s=await e.send(new r.GetLifecyclePolicyPreviewCommand(t));o=s;try{const returnComparator=()=>s.status;if(returnComparator()==="COMPLETE"){return{state:n.WaiterState.SUCCESS,reason:o}}}catch(e){}try{const returnComparator=()=>s.status;if(returnComparator()==="FAILED"){return{state:n.WaiterState.FAILURE,reason:o}}}catch(e){}}catch(e){o=e}return{state:n.WaiterState.RETRY,reason:o}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};return(0,n.createWaiter)({...o,...e},t,checkState)};t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const o={minDelay:5,maxDelay:120};const r=await(0,n.createWaiter)({...o,...e},t,checkState);return(0,n.checkExceptions)(r)};t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete},69838:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSO=void 0;const n=o(63570);const r=o(18972);const s=o(1513);const i=o(64296);const A=o(12586);const a=o(71057);const c={GetRoleCredentialsCommand:r.GetRoleCredentialsCommand,ListAccountRolesCommand:s.ListAccountRolesCommand,ListAccountsCommand:i.ListAccountsCommand,LogoutCommand:A.LogoutCommand};class SSO extends a.SSOClient{}t.SSO=SSO;(0,n.createAggregatedClient)(c,SSO)},71057:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOClient=t.__Client=void 0;const n=o(22545);const r=o(20014);const s=o(85525);const i=o(64688);const A=o(53098);const a=o(82800);const c=o(82918);const u=o(96039);const l=o(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return l.Client}});const d=o(34214);const g=o(19756);const E=o(63398);class SSOClient extends l.Client{constructor(...[e]){const t=(0,g.getRuntimeConfig)(e||{});const o=(0,d.resolveClientEndpointParameters)(t);const l=(0,A.resolveRegionConfig)(o);const p=(0,c.resolveEndpointConfig)(l);const C=(0,u.resolveRetryConfig)(p);const h=(0,n.resolveHostHeaderConfig)(C);const f=(0,i.resolveUserAgentConfig)(h);const m=(0,E.resolveRuntimeExtensions)(f,e?.extensions||[]);super(m);this.config=m;this.middlewareStack.use((0,u.getRetryPlugin)(this.config));this.middlewareStack.use((0,a.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.SSOClient=SSOClient},18972:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetRoleCredentialsCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(66390);const A=o(98507);class GetRoleCredentialsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,GetRoleCredentialsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:A}=t;const a="SSOClient";const c="GetRoleCredentialsCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:i.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:i.GetRoleCredentialsResponseFilterSensitiveLog};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_GetRoleCredentialsCommand)(e,t)}deserialize(e,t){return(0,A.de_GetRoleCredentialsCommand)(e,t)}}t.GetRoleCredentialsCommand=GetRoleCredentialsCommand},1513:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountRolesCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(66390);const A=o(98507);class ListAccountRolesCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,ListAccountRolesCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:A}=t;const a="SSOClient";const c="ListAccountRolesCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_ListAccountRolesCommand)(e,t)}deserialize(e,t){return(0,A.de_ListAccountRolesCommand)(e,t)}}t.ListAccountRolesCommand=ListAccountRolesCommand},64296:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ListAccountsCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(66390);const A=o(98507);class ListAccountsCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,ListAccountsCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:A}=t;const a="SSOClient";const c="ListAccountsCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:i.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_ListAccountsCommand)(e,t)}deserialize(e,t){return(0,A.de_ListAccountsCommand)(e,t)}}t.ListAccountsCommand=ListAccountsCommand},12586:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(66390);const A=o(98507);class LogoutCommand extends s.Command{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,LogoutCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:A}=t;const a="SSOClient";const c="LogoutCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:i.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_LogoutCommand)(e,t)}deserialize(e,t){return(0,A.de_LogoutCommand)(e,t)}}t.LogoutCommand=LogoutCommand},65706:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(18972),t);n.__exportStar(o(1513),t);n.__exportStar(o(64296),t);n.__exportStar(o(12586),t)},34214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"awsssoportal"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},30898:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const n=o(13350);const r=o(13341);const defaultEndpointResolver=(e,t={})=>(0,n.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},13341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const o="required",n="fn",r="argv",s="ref";const i="isSet",A="tree",a="error",c="endpoint",u="PartitionResult",l={[o]:false,type:"String"},d={[o]:true,default:false,type:"Boolean"},g={[s]:"Endpoint"},E={[n]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},p={[n]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},C={},h={[n]:"booleanEquals",[r]:[true,{[n]:"getAttr",[r]:[{[s]:u},"supportsFIPS"]}]},f={[n]:"booleanEquals",[r]:[true,{[n]:"getAttr",[r]:[{[s]:u},"supportsDualStack"]}]},m=[E],I=[p],y=[{[s]:"Region"}];const Q={version:"1.0",parameters:{Region:l,UseDualStack:d,UseFIPS:d,Endpoint:l},rules:[{conditions:[{[n]:i,[r]:[g]}],type:A,rules:[{conditions:m,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:a},{conditions:I,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:a},{endpoint:{url:g,properties:C,headers:C},type:c}]},{conditions:[{[n]:i,[r]:y}],type:A,rules:[{conditions:[{[n]:"aws.partition",[r]:y,assign:u}],type:A,rules:[{conditions:[E,p],type:A,rules:[{conditions:[h,f],type:A,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C,headers:C},type:c}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:a}]},{conditions:m,type:A,rules:[{conditions:[h],type:A,rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:C,headers:C},type:c}]},{error:"FIPS is enabled but this partition does not support FIPS",type:a}]},{conditions:I,type:A,rules:[{conditions:[f],type:A,rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:C,headers:C},type:c}]},{error:"DualStack is enabled but this partition does not support DualStack",type:a}]},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:C,headers:C},type:c}]}]},{error:"Invalid Configuration: Missing Region",type:a}]};t.ruleSet=Q},82666:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=void 0;const n=o(4351);n.__exportStar(o(71057),t);n.__exportStar(o(69838),t);n.__exportStar(o(65706),t);n.__exportStar(o(36773),t);n.__exportStar(o(14952),t);var r=o(81517);Object.defineProperty(t,"SSOServiceException",{enumerable:true,get:function(){return r.SSOServiceException}})},81517:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SSOServiceException=t.__ServiceException=void 0;const n=o(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return n.ServiceException}});class SSOServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,SSOServiceException.prototype)}}t.SSOServiceException=SSOServiceException},14952:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(66390),t)},66390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogoutRequestFilterSensitiveLog=t.ListAccountsRequestFilterSensitiveLog=t.ListAccountRolesRequestFilterSensitiveLog=t.GetRoleCredentialsResponseFilterSensitiveLog=t.RoleCredentialsFilterSensitiveLog=t.GetRoleCredentialsRequestFilterSensitiveLog=t.UnauthorizedException=t.TooManyRequestsException=t.ResourceNotFoundException=t.InvalidRequestException=void 0;const n=o(63570);const r=o(81517);class InvalidRequestException extends r.SSOServiceException{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,InvalidRequestException.prototype)}}t.InvalidRequestException=InvalidRequestException;class ResourceNotFoundException extends r.SSOServiceException{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException";this.$fault="client";Object.setPrototypeOf(this,ResourceNotFoundException.prototype)}}t.ResourceNotFoundException=ResourceNotFoundException;class TooManyRequestsException extends r.SSOServiceException{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException";this.$fault="client";Object.setPrototypeOf(this,TooManyRequestsException.prototype)}}t.TooManyRequestsException=TooManyRequestsException;class UnauthorizedException extends r.SSOServiceException{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException";this.$fault="client";Object.setPrototypeOf(this,UnauthorizedException.prototype)}}t.UnauthorizedException=UnauthorizedException;const GetRoleCredentialsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}});t.GetRoleCredentialsRequestFilterSensitiveLog=GetRoleCredentialsRequestFilterSensitiveLog;const RoleCredentialsFilterSensitiveLog=e=>({...e,...e.secretAccessKey&&{secretAccessKey:n.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:n.SENSITIVE_STRING}});t.RoleCredentialsFilterSensitiveLog=RoleCredentialsFilterSensitiveLog;const GetRoleCredentialsResponseFilterSensitiveLog=e=>({...e,...e.roleCredentials&&{roleCredentials:(0,t.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}});t.GetRoleCredentialsResponseFilterSensitiveLog=GetRoleCredentialsResponseFilterSensitiveLog;const ListAccountRolesRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}});t.ListAccountRolesRequestFilterSensitiveLog=ListAccountRolesRequestFilterSensitiveLog;const ListAccountsRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}});t.ListAccountsRequestFilterSensitiveLog=ListAccountsRequestFilterSensitiveLog;const LogoutRequestFilterSensitiveLog=e=>({...e,...e.accessToken&&{accessToken:n.SENSITIVE_STRING}});t.LogoutRequestFilterSensitiveLog=LogoutRequestFilterSensitiveLog},80849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},88460:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccountRoles=void 0;const n=o(1513);const r=o(71057);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.ListAccountRolesCommand(t),...o);async function*paginateListAccountRoles(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSOClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateListAccountRoles=paginateListAccountRoles},50938:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.paginateListAccounts=void 0;const n=o(64296);const r=o(71057);const makePagedClientRequest=async(e,t,...o)=>await e.send(new n.ListAccountsCommand(t),...o);async function*paginateListAccounts(e,t,...o){let n=e.startingToken||undefined;let s=true;let i;while(s){t.nextToken=n;t["maxResults"]=e.pageSize;if(e.client instanceof r.SSOClient){i=await makePagedClientRequest(e.client,t,...o)}else{throw new Error("Invalid client, expected SSO | SSOClient")}yield i;const A=n;n=i.nextToken;s=!!(n&&(!e.stopOnSameToken||n!==A))}return undefined}t.paginateListAccounts=paginateListAccounts},36773:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(80849),t);n.__exportStar(o(88460),t);n.__exportStar(o(50938),t)},98507:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_LogoutCommand=t.de_ListAccountsCommand=t.de_ListAccountRolesCommand=t.de_GetRoleCredentialsCommand=t.se_LogoutCommand=t.se_ListAccountsCommand=t.se_ListAccountRolesCommand=t.se_GetRoleCredentialsCommand=void 0;const n=o(64418);const r=o(63570);const s=o(66390);const i=o(81517);const se_GetRoleCredentialsCommand=async(e,t)=>{const{hostname:o,protocol:s="https",port:i,path:A}=await t.endpoint();const a=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const c=`${A?.endsWith("/")?A.slice(0,-1):A||""}`+"/federation/credentials";const u=(0,r.map)({role_name:[,(0,r.expectNonNull)(e.roleName,`roleName`)],account_id:[,(0,r.expectNonNull)(e.accountId,`accountId`)]});let l;return new n.HttpRequest({protocol:s,hostname:o,port:i,method:"GET",headers:a,path:c,query:u,body:l})};t.se_GetRoleCredentialsCommand=se_GetRoleCredentialsCommand;const se_ListAccountRolesCommand=async(e,t)=>{const{hostname:o,protocol:s="https",port:i,path:A}=await t.endpoint();const a=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const c=`${A?.endsWith("/")?A.slice(0,-1):A||""}`+"/assignment/roles";const u=(0,r.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,(0,r.expectNonNull)(e.accountId,`accountId`)]});let l;return new n.HttpRequest({protocol:s,hostname:o,port:i,method:"GET",headers:a,path:c,query:u,body:l})};t.se_ListAccountRolesCommand=se_ListAccountRolesCommand;const se_ListAccountsCommand=async(e,t)=>{const{hostname:o,protocol:s="https",port:i,path:A}=await t.endpoint();const a=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const c=`${A?.endsWith("/")?A.slice(0,-1):A||""}`+"/assignment/accounts";const u=(0,r.map)({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]});let l;return new n.HttpRequest({protocol:s,hostname:o,port:i,method:"GET",headers:a,path:c,query:u,body:l})};t.se_ListAccountsCommand=se_ListAccountsCommand;const se_LogoutCommand=async(e,t)=>{const{hostname:o,protocol:s="https",port:i,path:A}=await t.endpoint();const a=(0,r.map)({},isSerializableHeaderValue,{"x-amz-sso_bearer_token":e.accessToken});const c=`${A?.endsWith("/")?A.slice(0,-1):A||""}`+"/logout";let u;return new n.HttpRequest({protocol:s,hostname:o,port:i,method:"POST",headers:a,path:c,body:u})};t.se_LogoutCommand=se_LogoutCommand;const de_GetRoleCredentialsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_GetRoleCredentialsCommandError(e,t)}const o=(0,r.map)({$metadata:deserializeMetadata(e)});const n=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(n,{roleCredentials:r._json});Object.assign(o,s);return o};t.de_GetRoleCredentialsCommand=de_GetRoleCredentialsCommand;const de_GetRoleCredentialsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_ListAccountRolesCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_ListAccountRolesCommandError(e,t)}const o=(0,r.map)({$metadata:deserializeMetadata(e)});const n=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(n,{nextToken:r.expectString,roleList:r._json});Object.assign(o,s);return o};t.de_ListAccountRolesCommand=de_ListAccountRolesCommand;const de_ListAccountRolesCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_ListAccountsCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_ListAccountsCommandError(e,t)}const o=(0,r.map)({$metadata:deserializeMetadata(e)});const n=(0,r.expectNonNull)((0,r.expectObject)(await parseBody(e.body,t)),"body");const s=(0,r.take)(n,{accountList:r._json,nextToken:r.expectString});Object.assign(o,s);return o};t.de_ListAccountsCommand=de_ListAccountsCommand;const de_ListAccountsCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await de_ResourceNotFoundExceptionRes(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const de_LogoutCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_LogoutCommandError(e,t)}const o=(0,r.map)({$metadata:deserializeMetadata(e)});await(0,r.collectBody)(e.body,t);return o};t.de_LogoutCommand=de_LogoutCommand;const de_LogoutCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await de_TooManyRequestsExceptionRes(o,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await de_UnauthorizedExceptionRes(o,t);default:const r=o.body;return A({output:e,parsedBody:r,errorCode:n})}};const A=(0,r.withBaseException)(i.SSOServiceException);const de_InvalidRequestExceptionRes=async(e,t)=>{const o=(0,r.map)({});const n=e.body;const i=(0,r.take)(n,{message:r.expectString});Object.assign(o,i);const A=new s.InvalidRequestException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(A,e.body)};const de_ResourceNotFoundExceptionRes=async(e,t)=>{const o=(0,r.map)({});const n=e.body;const i=(0,r.take)(n,{message:r.expectString});Object.assign(o,i);const A=new s.ResourceNotFoundException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(A,e.body)};const de_TooManyRequestsExceptionRes=async(e,t)=>{const o=(0,r.map)({});const n=e.body;const i=(0,r.take)(n,{message:r.expectString});Object.assign(o,i);const A=new s.TooManyRequestsException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(A,e.body)};const de_UnauthorizedExceptionRes=async(e,t)=>{const o=(0,r.map)({});const n=e.body;const i=(0,r.take)(n,{message:r.expectString});Object.assign(o,i);const A=new s.UnauthorizedException({$metadata:deserializeMetadata(e),...o});return(0,r.decorateServiceException)(A,e.body)};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const isSerializableHeaderValue=e=>e!==undefined&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0);const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);o.message=o.message??o.Message;return o};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==undefined){return sanitizeErrorCode(e.headers[o])}if(t.code!==undefined){return sanitizeErrorCode(t.code)}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}},19756:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(4351);const r=n.__importDefault(o(91092));const s=o(98095);const i=o(53098);const A=o(3081);const a=o(96039);const c=o(33461);const u=o(20258);const l=o(68075);const d=o(84902);const g=o(44809);const E=o(63570);const p=o(72429);const C=o(63570);const getRuntimeConfig=e=>{(0,C.emitWarningIfUnsupportedVersion)(process.version);const t=(0,p.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(E.loadConfigsForDefaultMode);const o=(0,g.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??l.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,s.defaultUserAgent)({serviceId:o.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,c.loadConfig)(a.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,c.loadConfig)(i.NODE_REGION_CONFIG_OPTIONS,i.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new u.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,c.loadConfig)({...a.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||d.DEFAULT_RETRY_MODE}),sha256:e?.sha256??A.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??u.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,c.loadConfig)(i.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,c.loadConfig)(i.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},44809:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(63570);const r=o(14681);const s=o(75600);const i=o(41895);const A=o(30898);const getRuntimeConfig=e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??A.defaultEndpointResolver,extensions:e?.extensions??[],logger:e?.logger??new n.NoOpLogger,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},63398:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRuntimeExtensions=void 0;const n=o(64418);const r=o(63570);const asPartial=e=>e;const resolveRuntimeExtensions=(e,t)=>{const o={...asPartial((0,r.getDefaultExtensionConfiguration)(e)),...asPartial((0,n.getHttpHandlerExtensionConfiguration)(e))};t.forEach((e=>e.configure(o)));return{...e,...(0,r.resolveDefaultRuntimeConfig)(o),...(0,n.resolveHttpHandlerRuntimeConfig)(o)}};t.resolveRuntimeExtensions=resolveRuntimeExtensions},32605:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STS=void 0;const n=o(63570);const r=o(59802);const s=o(72865);const i=o(37451);const A=o(74150);const a=o(49804);const c=o(24278);const u=o(57552);const l=o(43285);const d=o(64195);const g={AssumeRoleCommand:r.AssumeRoleCommand,AssumeRoleWithSAMLCommand:s.AssumeRoleWithSAMLCommand,AssumeRoleWithWebIdentityCommand:i.AssumeRoleWithWebIdentityCommand,DecodeAuthorizationMessageCommand:A.DecodeAuthorizationMessageCommand,GetAccessKeyInfoCommand:a.GetAccessKeyInfoCommand,GetCallerIdentityCommand:c.GetCallerIdentityCommand,GetFederationTokenCommand:u.GetFederationTokenCommand,GetSessionTokenCommand:l.GetSessionTokenCommand};class STS extends d.STSClient{}t.STS=STS;(0,n.createAggregatedClient)(g,STS)},64195:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSClient=t.__Client=void 0;const n=o(22545);const r=o(20014);const s=o(85525);const i=o(55959);const A=o(64688);const a=o(53098);const c=o(82800);const u=o(82918);const l=o(96039);const d=o(63570);Object.defineProperty(t,"__Client",{enumerable:true,get:function(){return d.Client}});const g=o(20510);const E=o(83405);const p=o(32053);class STSClient extends d.Client{constructor(...[e]){const t=(0,E.getRuntimeConfig)(e||{});const o=(0,g.resolveClientEndpointParameters)(t);const d=(0,a.resolveRegionConfig)(o);const C=(0,u.resolveEndpointConfig)(d);const h=(0,l.resolveRetryConfig)(C);const f=(0,n.resolveHostHeaderConfig)(h);const m=(0,i.resolveStsAuthConfig)(f,{stsClientCtor:STSClient});const I=(0,A.resolveUserAgentConfig)(m);const y=(0,p.resolveRuntimeExtensions)(I,e?.extensions||[]);super(y);this.config=y;this.middlewareStack.use((0,l.getRetryPlugin)(this.config));this.middlewareStack.use((0,c.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,A.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}}t.STSClient=STSClient},59802:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleCommand=t.$Command=void 0;const n=o(14935);const r=o(82918);const s=o(81238);const i=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const A=o(21780);const a=o(10740);class AssumeRoleCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,AssumeRoleCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const u="AssumeRoleCommand";const l={logger:a,clientName:c,commandName:u,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:A.AssumeRoleResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),l)}serialize(e,t){return(0,a.se_AssumeRoleCommand)(e,t)}deserialize(e,t){return(0,a.de_AssumeRoleCommand)(e,t)}}t.AssumeRoleCommand=AssumeRoleCommand},72865:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithSAMLCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(21780);const A=o(10740);class AssumeRoleWithSAMLCommand extends s.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,AssumeRoleWithSAMLCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:A}=t;const a="STSClient";const c="AssumeRoleWithSAMLCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:i.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithSAMLResponseFilterSensitiveLog};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_AssumeRoleWithSAMLCommand)(e,t)}deserialize(e,t){return(0,A.de_AssumeRoleWithSAMLCommand)(e,t)}}t.AssumeRoleWithSAMLCommand=AssumeRoleWithSAMLCommand},37451:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssumeRoleWithWebIdentityCommand=t.$Command=void 0;const n=o(82918);const r=o(81238);const s=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return s.Command}});const i=o(21780);const A=o(10740);class AssumeRoleWithWebIdentityCommand extends s.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,r.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,n.getEndpointPlugin)(t,AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions()));const s=e.concat(this.middlewareStack);const{logger:A}=t;const a="STSClient";const c="AssumeRoleWithWebIdentityCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:i.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:i.AssumeRoleWithWebIdentityResponseFilterSensitiveLog};const{requestHandler:l}=t;return s.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_AssumeRoleWithWebIdentityCommand)(e,t)}deserialize(e,t){return(0,A.de_AssumeRoleWithWebIdentityCommand)(e,t)}}t.AssumeRoleWithWebIdentityCommand=AssumeRoleWithWebIdentityCommand},74150:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DecodeAuthorizationMessageCommand=t.$Command=void 0;const n=o(14935);const r=o(82918);const s=o(81238);const i=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const A=o(10740);class DecodeAuthorizationMessageCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,DecodeAuthorizationMessageCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:A}=t;const a="STSClient";const c="DecodeAuthorizationMessageCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return i.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_DecodeAuthorizationMessageCommand)(e,t)}deserialize(e,t){return(0,A.de_DecodeAuthorizationMessageCommand)(e,t)}}t.DecodeAuthorizationMessageCommand=DecodeAuthorizationMessageCommand},49804:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetAccessKeyInfoCommand=t.$Command=void 0;const n=o(14935);const r=o(82918);const s=o(81238);const i=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const A=o(10740);class GetAccessKeyInfoCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetAccessKeyInfoCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:A}=t;const a="STSClient";const c="GetAccessKeyInfoCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return i.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_GetAccessKeyInfoCommand)(e,t)}deserialize(e,t){return(0,A.de_GetAccessKeyInfoCommand)(e,t)}}t.GetAccessKeyInfoCommand=GetAccessKeyInfoCommand},24278:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetCallerIdentityCommand=t.$Command=void 0;const n=o(14935);const r=o(82918);const s=o(81238);const i=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const A=o(10740);class GetCallerIdentityCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetCallerIdentityCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:A}=t;const a="STSClient";const c="GetCallerIdentityCommand";const u={logger:A,clientName:a,commandName:c,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:l}=t;return i.resolve((e=>l.handle(e.request,o||{})),u)}serialize(e,t){return(0,A.se_GetCallerIdentityCommand)(e,t)}deserialize(e,t){return(0,A.de_GetCallerIdentityCommand)(e,t)}}t.GetCallerIdentityCommand=GetCallerIdentityCommand},57552:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetFederationTokenCommand=t.$Command=void 0;const n=o(14935);const r=o(82918);const s=o(81238);const i=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const A=o(21780);const a=o(10740);class GetFederationTokenCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetFederationTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const u="GetFederationTokenCommand";const l={logger:a,clientName:c,commandName:u,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:A.GetFederationTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),l)}serialize(e,t){return(0,a.se_GetFederationTokenCommand)(e,t)}deserialize(e,t){return(0,a.de_GetFederationTokenCommand)(e,t)}}t.GetFederationTokenCommand=GetFederationTokenCommand},43285:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenCommand=t.$Command=void 0;const n=o(14935);const r=o(82918);const s=o(81238);const i=o(63570);Object.defineProperty(t,"$Command",{enumerable:true,get:function(){return i.Command}});const A=o(21780);const a=o(10740);class GetSessionTokenCommand extends i.Command{static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super();this.input=e}resolveMiddleware(e,t,o){this.middlewareStack.use((0,s.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,r.getEndpointPlugin)(t,GetSessionTokenCommand.getEndpointParameterInstructions()));this.middlewareStack.use((0,n.getAwsAuthPlugin)(t));const i=e.concat(this.middlewareStack);const{logger:a}=t;const c="STSClient";const u="GetSessionTokenCommand";const l={logger:a,clientName:c,commandName:u,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:A.GetSessionTokenResponseFilterSensitiveLog};const{requestHandler:d}=t;return i.resolve((e=>d.handle(e.request,o||{})),l)}serialize(e,t){return(0,a.se_GetSessionTokenCommand)(e,t)}deserialize(e,t){return(0,a.de_GetSessionTokenCommand)(e,t)}}t.GetSessionTokenCommand=GetSessionTokenCommand},55716:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(59802),t);n.__exportStar(o(72865),t);n.__exportStar(o(37451),t);n.__exportStar(o(74150),t);n.__exportStar(o(49804),t);n.__exportStar(o(24278),t);n.__exportStar(o(57552),t);n.__exportStar(o(43285),t)},88028:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const n=o(90048);const r=o(64195);const getCustomizableStsClientCtor=(e,t)=>{if(!t)return e;else return class CustomizableSTSClient extends e{constructor(e){super(e);for(const e of t){this.middlewareStack.use(e)}}}};const getDefaultRoleAssumer=(e={},t)=>(0,n.getDefaultRoleAssumer)(e,getCustomizableStsClientCtor(r.STSClient,t));t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e={},t)=>(0,n.getDefaultRoleAssumerWithWebIdentity)(e,getCustomizableStsClientCtor(r.STSClient,t));t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(o),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(o),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},90048:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateDefaultCredentialProvider=t.getDefaultRoleAssumerWithWebIdentity=t.getDefaultRoleAssumer=void 0;const n=o(59802);const r=o(37451);const s="us-east-1";const decorateDefaultRegion=e=>{if(typeof e!=="function"){return e===undefined?s:e}return async()=>{try{return await e()}catch(e){return s}}};const getDefaultRoleAssumer=(e,t)=>{let o;let r;return async(s,i)=>{r=s;if(!o){const{logger:n,region:s,requestHandler:i}=e;o=new t({logger:n,credentialDefaultProvider:()=>async()=>r,region:decorateDefaultRegion(s||e.region),...i?{requestHandler:i}:{}})}const{Credentials:A}=await o.send(new n.AssumeRoleCommand(i));if(!A||!A.AccessKeyId||!A.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`)}return{accessKeyId:A.AccessKeyId,secretAccessKey:A.SecretAccessKey,sessionToken:A.SessionToken,expiration:A.Expiration}}};t.getDefaultRoleAssumer=getDefaultRoleAssumer;const getDefaultRoleAssumerWithWebIdentity=(e,t)=>{let o;return async n=>{if(!o){const{logger:n,region:r,requestHandler:s}=e;o=new t({logger:n,region:decorateDefaultRegion(r||e.region),...s?{requestHandler:s}:{}})}const{Credentials:s}=await o.send(new r.AssumeRoleWithWebIdentityCommand(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey){throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`)}return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};t.getDefaultRoleAssumerWithWebIdentity=getDefaultRoleAssumerWithWebIdentity;const decorateDefaultCredentialProvider=e=>o=>e({roleAssumer:(0,t.getDefaultRoleAssumer)(o,o.stsClientCtor),roleAssumerWithWebIdentity:(0,t.getDefaultRoleAssumerWithWebIdentity)(o,o.stsClientCtor),...o});t.decorateDefaultCredentialProvider=decorateDefaultCredentialProvider},20510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveClientEndpointParameters=void 0;const resolveClientEndpointParameters=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,useGlobalEndpoint:e.useGlobalEndpoint??false,defaultSigningName:"sts"});t.resolveClientEndpointParameters=resolveClientEndpointParameters},41203:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const n=o(13350);const r=o(86882);const defaultEndpointResolver=(e,t={})=>(0,n.resolveEndpoint)(r.ruleSet,{endpointParams:e,logger:t.logger});t.defaultEndpointResolver=defaultEndpointResolver},86882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const o="required",n="type",r="fn",s="argv",i="ref";const A=false,a=true,c="booleanEquals",u="tree",l="stringEquals",d="sigv4",g="sts",E="us-east-1",p="endpoint",C="https://sts.{Region}.{PartitionResult#dnsSuffix}",h="error",f="getAttr",m={[o]:false,[n]:"String"},I={[o]:true,default:false,[n]:"Boolean"},y={[i]:"Endpoint"},Q={[r]:"isSet",[s]:[{[i]:"Region"}]},B={[i]:"Region"},w={[r]:"aws.partition",[s]:[B],assign:"PartitionResult"},S={[i]:"UseFIPS"},b={[i]:"UseDualStack"},R={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:d,signingName:g,signingRegion:E}]},headers:{}},v={},D={conditions:[{[r]:l,[s]:[B,"aws-global"]}],[p]:R,[n]:p},_={[r]:c,[s]:[S,true]},P={[r]:c,[s]:[b,true]},x={[r]:c,[s]:[true,{[r]:f,[s]:[{[i]:"PartitionResult"},"supportsFIPS"]}]},N={[i]:"PartitionResult"},k={[r]:c,[s]:[true,{[r]:f,[s]:[N,"supportsDualStack"]}]},F=[{[r]:"isSet",[s]:[y]}],T=[_],M=[P];const U={version:"1.0",parameters:{Region:m,UseDualStack:I,UseFIPS:I,Endpoint:m,UseGlobalEndpoint:I},rules:[{conditions:[{[r]:c,[s]:[{[i]:"UseGlobalEndpoint"},a]},{[r]:"not",[s]:F},Q,w,{[r]:c,[s]:[S,A]},{[r]:c,[s]:[b,A]}],[n]:u,rules:[{conditions:[{[r]:l,[s]:[B,"ap-northeast-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"ap-south-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"ap-southeast-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"ap-southeast-2"]}],endpoint:R,[n]:p},D,{conditions:[{[r]:l,[s]:[B,"ca-central-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"eu-central-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"eu-north-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"eu-west-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"eu-west-2"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"eu-west-3"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"sa-east-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,E]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"us-east-2"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"us-west-1"]}],endpoint:R,[n]:p},{conditions:[{[r]:l,[s]:[B,"us-west-2"]}],endpoint:R,[n]:p},{endpoint:{url:C,properties:{authSchemes:[{name:d,signingName:g,signingRegion:"{Region}"}]},headers:v},[n]:p}]},{conditions:F,[n]:u,rules:[{conditions:T,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[n]:h},{conditions:M,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[n]:h},{endpoint:{url:y,properties:v,headers:v},[n]:p}]},{conditions:[Q],[n]:u,rules:[{conditions:[w],[n]:u,rules:[{conditions:[_,P],[n]:u,rules:[{conditions:[x,k],[n]:u,rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},[n]:p}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[n]:h}]},{conditions:T,[n]:u,rules:[{conditions:[x],[n]:u,rules:[{conditions:[{[r]:l,[s]:["aws-us-gov",{[r]:f,[s]:[N,"name"]}]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:v,headers:v},[n]:p},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:v,headers:v},[n]:p}]},{error:"FIPS is enabled but this partition does not support FIPS",[n]:h}]},{conditions:M,[n]:u,rules:[{conditions:[k],[n]:u,rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:v,headers:v},[n]:p}]},{error:"DualStack is enabled but this partition does not support DualStack",[n]:h}]},D,{endpoint:{url:C,properties:v,headers:v},[n]:p}]}]},{error:"Invalid Configuration: Missing Region",[n]:h}]};t.ruleSet=U},52209:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=void 0;const n=o(4351);n.__exportStar(o(64195),t);n.__exportStar(o(32605),t);n.__exportStar(o(55716),t);n.__exportStar(o(20106),t);n.__exportStar(o(88028),t);var r=o(26450);Object.defineProperty(t,"STSServiceException",{enumerable:true,get:function(){return r.STSServiceException}})},26450:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.STSServiceException=t.__ServiceException=void 0;const n=o(63570);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return n.ServiceException}});class STSServiceException extends n.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,STSServiceException.prototype)}}t.STSServiceException=STSServiceException},20106:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(21780),t)},21780:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GetSessionTokenResponseFilterSensitiveLog=t.GetFederationTokenResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=t.AssumeRoleWithSAMLResponseFilterSensitiveLog=t.AssumeRoleWithSAMLRequestFilterSensitiveLog=t.AssumeRoleResponseFilterSensitiveLog=t.CredentialsFilterSensitiveLog=t.InvalidAuthorizationMessageException=t.IDPCommunicationErrorException=t.InvalidIdentityTokenException=t.IDPRejectedClaimException=t.RegionDisabledException=t.PackedPolicyTooLargeException=t.MalformedPolicyDocumentException=t.ExpiredTokenException=void 0;const n=o(63570);const r=o(26450);class ExpiredTokenException extends r.STSServiceException{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,ExpiredTokenException.prototype)}}t.ExpiredTokenException=ExpiredTokenException;class MalformedPolicyDocumentException extends r.STSServiceException{constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});this.name="MalformedPolicyDocumentException";this.$fault="client";Object.setPrototypeOf(this,MalformedPolicyDocumentException.prototype)}}t.MalformedPolicyDocumentException=MalformedPolicyDocumentException;class PackedPolicyTooLargeException extends r.STSServiceException{constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});this.name="PackedPolicyTooLargeException";this.$fault="client";Object.setPrototypeOf(this,PackedPolicyTooLargeException.prototype)}}t.PackedPolicyTooLargeException=PackedPolicyTooLargeException;class RegionDisabledException extends r.STSServiceException{constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});this.name="RegionDisabledException";this.$fault="client";Object.setPrototypeOf(this,RegionDisabledException.prototype)}}t.RegionDisabledException=RegionDisabledException;class IDPRejectedClaimException extends r.STSServiceException{constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});this.name="IDPRejectedClaimException";this.$fault="client";Object.setPrototypeOf(this,IDPRejectedClaimException.prototype)}}t.IDPRejectedClaimException=IDPRejectedClaimException;class InvalidIdentityTokenException extends r.STSServiceException{constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});this.name="InvalidIdentityTokenException";this.$fault="client";Object.setPrototypeOf(this,InvalidIdentityTokenException.prototype)}}t.InvalidIdentityTokenException=InvalidIdentityTokenException;class IDPCommunicationErrorException extends r.STSServiceException{constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});this.name="IDPCommunicationErrorException";this.$fault="client";Object.setPrototypeOf(this,IDPCommunicationErrorException.prototype)}}t.IDPCommunicationErrorException=IDPCommunicationErrorException;class InvalidAuthorizationMessageException extends r.STSServiceException{constructor(e){super({name:"InvalidAuthorizationMessageException",$fault:"client",...e});this.name="InvalidAuthorizationMessageException";this.$fault="client";Object.setPrototypeOf(this,InvalidAuthorizationMessageException.prototype)}}t.InvalidAuthorizationMessageException=InvalidAuthorizationMessageException;const CredentialsFilterSensitiveLog=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:n.SENSITIVE_STRING}});t.CredentialsFilterSensitiveLog=CredentialsFilterSensitiveLog;const AssumeRoleResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.AssumeRoleResponseFilterSensitiveLog=AssumeRoleResponseFilterSensitiveLog;const AssumeRoleWithSAMLRequestFilterSensitiveLog=e=>({...e,...e.SAMLAssertion&&{SAMLAssertion:n.SENSITIVE_STRING}});t.AssumeRoleWithSAMLRequestFilterSensitiveLog=AssumeRoleWithSAMLRequestFilterSensitiveLog;const AssumeRoleWithSAMLResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.AssumeRoleWithSAMLResponseFilterSensitiveLog=AssumeRoleWithSAMLResponseFilterSensitiveLog;const AssumeRoleWithWebIdentityRequestFilterSensitiveLog=e=>({...e,...e.WebIdentityToken&&{WebIdentityToken:n.SENSITIVE_STRING}});t.AssumeRoleWithWebIdentityRequestFilterSensitiveLog=AssumeRoleWithWebIdentityRequestFilterSensitiveLog;const AssumeRoleWithWebIdentityResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.AssumeRoleWithWebIdentityResponseFilterSensitiveLog=AssumeRoleWithWebIdentityResponseFilterSensitiveLog;const GetFederationTokenResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.GetFederationTokenResponseFilterSensitiveLog=GetFederationTokenResponseFilterSensitiveLog;const GetSessionTokenResponseFilterSensitiveLog=e=>({...e,...e.Credentials&&{Credentials:(0,t.CredentialsFilterSensitiveLog)(e.Credentials)}});t.GetSessionTokenResponseFilterSensitiveLog=GetSessionTokenResponseFilterSensitiveLog},10740:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.de_GetSessionTokenCommand=t.de_GetFederationTokenCommand=t.de_GetCallerIdentityCommand=t.de_GetAccessKeyInfoCommand=t.de_DecodeAuthorizationMessageCommand=t.de_AssumeRoleWithWebIdentityCommand=t.de_AssumeRoleWithSAMLCommand=t.de_AssumeRoleCommand=t.se_GetSessionTokenCommand=t.se_GetFederationTokenCommand=t.se_GetCallerIdentityCommand=t.se_GetAccessKeyInfoCommand=t.se_DecodeAuthorizationMessageCommand=t.se_AssumeRoleWithWebIdentityCommand=t.se_AssumeRoleWithSAMLCommand=t.se_AssumeRoleCommand=void 0;const n=o(64418);const r=o(63570);const s=o(12603);const i=o(21780);const A=o(26450);const se_AssumeRoleCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_AssumeRoleRequest(e,t),Action:"AssumeRole",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_AssumeRoleCommand=se_AssumeRoleCommand;const se_AssumeRoleWithSAMLCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_AssumeRoleWithSAMLRequest(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_AssumeRoleWithSAMLCommand=se_AssumeRoleWithSAMLCommand;const se_AssumeRoleWithWebIdentityCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_AssumeRoleWithWebIdentityRequest(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_AssumeRoleWithWebIdentityCommand=se_AssumeRoleWithWebIdentityCommand;const se_DecodeAuthorizationMessageCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_DecodeAuthorizationMessageRequest(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_DecodeAuthorizationMessageCommand=se_DecodeAuthorizationMessageCommand;const se_GetAccessKeyInfoCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_GetAccessKeyInfoRequest(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetAccessKeyInfoCommand=se_GetAccessKeyInfoCommand;const se_GetCallerIdentityCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_GetCallerIdentityRequest(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetCallerIdentityCommand=se_GetCallerIdentityCommand;const se_GetFederationTokenCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_GetFederationTokenRequest(e,t),Action:"GetFederationToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetFederationTokenCommand=se_GetFederationTokenCommand;const se_GetSessionTokenCommand=async(e,t)=>{const o=c;let n;n=buildFormUrlencodedString({...se_GetSessionTokenRequest(e,t),Action:"GetSessionToken",Version:"2011-06-15"});return buildHttpRpcRequest(t,o,"/",undefined,n)};t.se_GetSessionTokenCommand=se_GetSessionTokenCommand;const de_AssumeRoleCommand=async(e,t)=>{if(e.statusCode>=300){return de_AssumeRoleCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_AssumeRoleResponse(o.AssumeRoleResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_AssumeRoleCommand=de_AssumeRoleCommand;const de_AssumeRoleCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(o,t);default:const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})}};const de_AssumeRoleWithSAMLCommand=async(e,t)=>{if(e.statusCode>=300){return de_AssumeRoleWithSAMLCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_AssumeRoleWithSAMLResponse(o.AssumeRoleWithSAMLResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_AssumeRoleWithSAMLCommand=de_AssumeRoleWithSAMLCommand;const de_AssumeRoleWithSAMLCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(o,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await de_IDPRejectedClaimExceptionRes(o,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await de_InvalidIdentityTokenExceptionRes(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(o,t);default:const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})}};const de_AssumeRoleWithWebIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return de_AssumeRoleWithWebIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_AssumeRoleWithWebIdentityResponse(o.AssumeRoleWithWebIdentityResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_AssumeRoleWithWebIdentityCommand=de_AssumeRoleWithWebIdentityCommand;const de_AssumeRoleWithWebIdentityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);switch(n){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(o,t);case"IDPCommunicationError":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await de_IDPCommunicationErrorExceptionRes(o,t);case"IDPRejectedClaim":case"com.amazonaws.sts#IDPRejectedClaimException":throw await de_IDPRejectedClaimExceptionRes(o,t);case"InvalidIdentityToken":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await de_InvalidIdentityTokenExceptionRes(o,t);case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(o,t);default:const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})}};const de_DecodeAuthorizationMessageCommand=async(e,t)=>{if(e.statusCode>=300){return de_DecodeAuthorizationMessageCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_DecodeAuthorizationMessageResponse(o.DecodeAuthorizationMessageResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_DecodeAuthorizationMessageCommand=de_DecodeAuthorizationMessageCommand;const de_DecodeAuthorizationMessageCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);switch(n){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await de_InvalidAuthorizationMessageExceptionRes(o,t);default:const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})}};const de_GetAccessKeyInfoCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetAccessKeyInfoCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetAccessKeyInfoResponse(o.GetAccessKeyInfoResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetAccessKeyInfoCommand=de_GetAccessKeyInfoCommand;const de_GetAccessKeyInfoCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})};const de_GetCallerIdentityCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetCallerIdentityCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetCallerIdentityResponse(o.GetCallerIdentityResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetCallerIdentityCommand=de_GetCallerIdentityCommand;const de_GetCallerIdentityCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})};const de_GetFederationTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetFederationTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetFederationTokenResponse(o.GetFederationTokenResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetFederationTokenCommand=de_GetFederationTokenCommand;const de_GetFederationTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);switch(n){case"MalformedPolicyDocument":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await de_MalformedPolicyDocumentExceptionRes(o,t);case"PackedPolicyTooLarge":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await de_PackedPolicyTooLargeExceptionRes(o,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(o,t);default:const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})}};const de_GetSessionTokenCommand=async(e,t)=>{if(e.statusCode>=300){return de_GetSessionTokenCommandError(e,t)}const o=await parseBody(e.body,t);let n={};n=de_GetSessionTokenResponse(o.GetSessionTokenResult,t);const r={$metadata:deserializeMetadata(e),...n};return r};t.de_GetSessionTokenCommand=de_GetSessionTokenCommand;const de_GetSessionTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadQueryErrorCode(e,o.body);switch(n){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await de_RegionDisabledExceptionRes(o,t);default:const r=o.body;return a({output:e,parsedBody:r.Error,errorCode:n})}};const de_ExpiredTokenExceptionRes=async(e,t)=>{const o=e.body;const n=de_ExpiredTokenException(o.Error,t);const s=new i.ExpiredTokenException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_IDPCommunicationErrorExceptionRes=async(e,t)=>{const o=e.body;const n=de_IDPCommunicationErrorException(o.Error,t);const s=new i.IDPCommunicationErrorException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_IDPRejectedClaimExceptionRes=async(e,t)=>{const o=e.body;const n=de_IDPRejectedClaimException(o.Error,t);const s=new i.IDPRejectedClaimException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidAuthorizationMessageExceptionRes=async(e,t)=>{const o=e.body;const n=de_InvalidAuthorizationMessageException(o.Error,t);const s=new i.InvalidAuthorizationMessageException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_InvalidIdentityTokenExceptionRes=async(e,t)=>{const o=e.body;const n=de_InvalidIdentityTokenException(o.Error,t);const s=new i.InvalidIdentityTokenException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_MalformedPolicyDocumentExceptionRes=async(e,t)=>{const o=e.body;const n=de_MalformedPolicyDocumentException(o.Error,t);const s=new i.MalformedPolicyDocumentException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_PackedPolicyTooLargeExceptionRes=async(e,t)=>{const o=e.body;const n=de_PackedPolicyTooLargeException(o.Error,t);const s=new i.PackedPolicyTooLargeException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const de_RegionDisabledExceptionRes=async(e,t)=>{const o=e.body;const n=de_RegionDisabledException(o.Error,t);const s=new i.RegionDisabledException({$metadata:deserializeMetadata(e),...n});return(0,r.decorateServiceException)(s,o)};const se_AssumeRoleRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){o["RoleSessionName"]=e.RoleSessionName}if(e.PolicyArns!=null){const n=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const n=se_tagListType(e.Tags,t);if(e.Tags?.length===0){o.Tags=[]}Object.entries(n).forEach((([e,t])=>{const n=`Tags.${e}`;o[n]=t}))}if(e.TransitiveTagKeys!=null){const n=se_tagKeyListType(e.TransitiveTagKeys,t);if(e.TransitiveTagKeys?.length===0){o.TransitiveTagKeys=[]}Object.entries(n).forEach((([e,t])=>{const n=`TransitiveTagKeys.${e}`;o[n]=t}))}if(e.ExternalId!=null){o["ExternalId"]=e.ExternalId}if(e.SerialNumber!=null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){o["TokenCode"]=e.TokenCode}if(e.SourceIdentity!=null){o["SourceIdentity"]=e.SourceIdentity}if(e.ProvidedContexts!=null){const n=se_ProvidedContextsListType(e.ProvidedContexts,t);if(e.ProvidedContexts?.length===0){o.ProvidedContexts=[]}Object.entries(n).forEach((([e,t])=>{const n=`ProvidedContexts.${e}`;o[n]=t}))}return o};const se_AssumeRoleWithSAMLRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.PrincipalArn!=null){o["PrincipalArn"]=e.PrincipalArn}if(e.SAMLAssertion!=null){o["SAMLAssertion"]=e.SAMLAssertion}if(e.PolicyArns!=null){const n=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}return o};const se_AssumeRoleWithWebIdentityRequest=(e,t)=>{const o={};if(e.RoleArn!=null){o["RoleArn"]=e.RoleArn}if(e.RoleSessionName!=null){o["RoleSessionName"]=e.RoleSessionName}if(e.WebIdentityToken!=null){o["WebIdentityToken"]=e.WebIdentityToken}if(e.ProviderId!=null){o["ProviderId"]=e.ProviderId}if(e.PolicyArns!=null){const n=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}return o};const se_DecodeAuthorizationMessageRequest=(e,t)=>{const o={};if(e.EncodedMessage!=null){o["EncodedMessage"]=e.EncodedMessage}return o};const se_GetAccessKeyInfoRequest=(e,t)=>{const o={};if(e.AccessKeyId!=null){o["AccessKeyId"]=e.AccessKeyId}return o};const se_GetCallerIdentityRequest=(e,t)=>{const o={};return o};const se_GetFederationTokenRequest=(e,t)=>{const o={};if(e.Name!=null){o["Name"]=e.Name}if(e.Policy!=null){o["Policy"]=e.Policy}if(e.PolicyArns!=null){const n=se_policyDescriptorListType(e.PolicyArns,t);if(e.PolicyArns?.length===0){o.PolicyArns=[]}Object.entries(n).forEach((([e,t])=>{const n=`PolicyArns.${e}`;o[n]=t}))}if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.Tags!=null){const n=se_tagListType(e.Tags,t);if(e.Tags?.length===0){o.Tags=[]}Object.entries(n).forEach((([e,t])=>{const n=`Tags.${e}`;o[n]=t}))}return o};const se_GetSessionTokenRequest=(e,t)=>{const o={};if(e.DurationSeconds!=null){o["DurationSeconds"]=e.DurationSeconds}if(e.SerialNumber!=null){o["SerialNumber"]=e.SerialNumber}if(e.TokenCode!=null){o["TokenCode"]=e.TokenCode}return o};const se_policyDescriptorListType=(e,t)=>{const o={};let n=1;for(const r of e){if(r===null){continue}const e=se_PolicyDescriptorType(r,t);Object.entries(e).forEach((([e,t])=>{o[`member.${n}.${e}`]=t}));n++}return o};const se_PolicyDescriptorType=(e,t)=>{const o={};if(e.arn!=null){o["arn"]=e.arn}return o};const se_ProvidedContext=(e,t)=>{const o={};if(e.ProviderArn!=null){o["ProviderArn"]=e.ProviderArn}if(e.ContextAssertion!=null){o["ContextAssertion"]=e.ContextAssertion}return o};const se_ProvidedContextsListType=(e,t)=>{const o={};let n=1;for(const r of e){if(r===null){continue}const e=se_ProvidedContext(r,t);Object.entries(e).forEach((([e,t])=>{o[`member.${n}.${e}`]=t}));n++}return o};const se_Tag=(e,t)=>{const o={};if(e.Key!=null){o["Key"]=e.Key}if(e.Value!=null){o["Value"]=e.Value}return o};const se_tagKeyListType=(e,t)=>{const o={};let n=1;for(const t of e){if(t===null){continue}o[`member.${n}`]=t;n++}return o};const se_tagListType=(e,t)=>{const o={};let n=1;for(const r of e){if(r===null){continue}const e=se_Tag(r,t);Object.entries(e).forEach((([e,t])=>{o[`member.${n}.${e}`]=t}));n++}return o};const de_AssumedRoleUser=(e,t)=>{const o={};if(e["AssumedRoleId"]!==undefined){o.AssumedRoleId=(0,r.expectString)(e["AssumedRoleId"])}if(e["Arn"]!==undefined){o.Arn=(0,r.expectString)(e["Arn"])}return o};const de_AssumeRoleResponse=(e,t)=>{const o={};if(e["Credentials"]!==undefined){o.Credentials=de_Credentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=de_AssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,r.expectString)(e["SourceIdentity"])}return o};const de_AssumeRoleWithSAMLResponse=(e,t)=>{const o={};if(e["Credentials"]!==undefined){o.Credentials=de_Credentials(e["Credentials"],t)}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=de_AssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}if(e["Subject"]!==undefined){o.Subject=(0,r.expectString)(e["Subject"])}if(e["SubjectType"]!==undefined){o.SubjectType=(0,r.expectString)(e["SubjectType"])}if(e["Issuer"]!==undefined){o.Issuer=(0,r.expectString)(e["Issuer"])}if(e["Audience"]!==undefined){o.Audience=(0,r.expectString)(e["Audience"])}if(e["NameQualifier"]!==undefined){o.NameQualifier=(0,r.expectString)(e["NameQualifier"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,r.expectString)(e["SourceIdentity"])}return o};const de_AssumeRoleWithWebIdentityResponse=(e,t)=>{const o={};if(e["Credentials"]!==undefined){o.Credentials=de_Credentials(e["Credentials"],t)}if(e["SubjectFromWebIdentityToken"]!==undefined){o.SubjectFromWebIdentityToken=(0,r.expectString)(e["SubjectFromWebIdentityToken"])}if(e["AssumedRoleUser"]!==undefined){o.AssumedRoleUser=de_AssumedRoleUser(e["AssumedRoleUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}if(e["Provider"]!==undefined){o.Provider=(0,r.expectString)(e["Provider"])}if(e["Audience"]!==undefined){o.Audience=(0,r.expectString)(e["Audience"])}if(e["SourceIdentity"]!==undefined){o.SourceIdentity=(0,r.expectString)(e["SourceIdentity"])}return o};const de_Credentials=(e,t)=>{const o={};if(e["AccessKeyId"]!==undefined){o.AccessKeyId=(0,r.expectString)(e["AccessKeyId"])}if(e["SecretAccessKey"]!==undefined){o.SecretAccessKey=(0,r.expectString)(e["SecretAccessKey"])}if(e["SessionToken"]!==undefined){o.SessionToken=(0,r.expectString)(e["SessionToken"])}if(e["Expiration"]!==undefined){o.Expiration=(0,r.expectNonNull)((0,r.parseRfc3339DateTimeWithOffset)(e["Expiration"]))}return o};const de_DecodeAuthorizationMessageResponse=(e,t)=>{const o={};if(e["DecodedMessage"]!==undefined){o.DecodedMessage=(0,r.expectString)(e["DecodedMessage"])}return o};const de_ExpiredTokenException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_FederatedUser=(e,t)=>{const o={};if(e["FederatedUserId"]!==undefined){o.FederatedUserId=(0,r.expectString)(e["FederatedUserId"])}if(e["Arn"]!==undefined){o.Arn=(0,r.expectString)(e["Arn"])}return o};const de_GetAccessKeyInfoResponse=(e,t)=>{const o={};if(e["Account"]!==undefined){o.Account=(0,r.expectString)(e["Account"])}return o};const de_GetCallerIdentityResponse=(e,t)=>{const o={};if(e["UserId"]!==undefined){o.UserId=(0,r.expectString)(e["UserId"])}if(e["Account"]!==undefined){o.Account=(0,r.expectString)(e["Account"])}if(e["Arn"]!==undefined){o.Arn=(0,r.expectString)(e["Arn"])}return o};const de_GetFederationTokenResponse=(e,t)=>{const o={};if(e["Credentials"]!==undefined){o.Credentials=de_Credentials(e["Credentials"],t)}if(e["FederatedUser"]!==undefined){o.FederatedUser=de_FederatedUser(e["FederatedUser"],t)}if(e["PackedPolicySize"]!==undefined){o.PackedPolicySize=(0,r.strictParseInt32)(e["PackedPolicySize"])}return o};const de_GetSessionTokenResponse=(e,t)=>{const o={};if(e["Credentials"]!==undefined){o.Credentials=de_Credentials(e["Credentials"],t)}return o};const de_IDPCommunicationErrorException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_IDPRejectedClaimException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_InvalidAuthorizationMessageException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_InvalidIdentityTokenException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_MalformedPolicyDocumentException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_PackedPolicyTooLargeException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const de_RegionDisabledException=(e,t)=>{const o={};if(e["message"]!==undefined){o.message=(0,r.expectString)(e["message"])}return o};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const collectBodyString=(e,t)=>(0,r.collectBody)(e,t).then((e=>t.utf8Encoder(e)));const a=(0,r.withBaseException)(A.STSServiceException);const buildHttpRpcRequest=async(e,t,o,r,s)=>{const{hostname:i,protocol:A="https",port:a,path:c}=await e.endpoint();const u={protocol:A,hostname:i,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+o:c+o,headers:t};if(r!==undefined){u.hostname=r}if(s!==undefined){u.body=s}return new n.HttpRequest(u)};const c={"content-type":"application/x-www-form-urlencoded"};const parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){const t=new s.XMLParser({attributeNamePrefix:"",htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined});t.addEntity("#xD","\r");t.addEntity("#10","\n");const o=t.parse(e);const n="#text";const i=Object.keys(o)[0];const A=o[i];if(A[n]){A[i]=A[n];delete A[n]}return(0,r.getValueFromTextNode)(A)}return{}}));const parseErrorBody=async(e,t)=>{const o=await parseBody(e,t);if(o.Error){o.Error.message=o.Error.message??o.Error.Message}return o};const buildFormUrlencodedString=e=>Object.entries(e).map((([e,t])=>(0,r.extendedEncodeURIComponent)(e)+"="+(0,r.extendedEncodeURIComponent)(t))).join("&");const loadQueryErrorCode=(e,t)=>{if(t.Error?.Code!==undefined){return t.Error.Code}if(e.statusCode==404){return"NotFound"}}},83405:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(4351);const r=n.__importDefault(o(7947));const s=o(90048);const i=o(75531);const A=o(98095);const a=o(53098);const c=o(3081);const u=o(96039);const l=o(33461);const d=o(20258);const g=o(68075);const E=o(84902);const p=o(52642);const C=o(63570);const h=o(72429);const f=o(63570);const getRuntimeConfig=e=>{(0,f.emitWarningIfUnsupportedVersion)(process.version);const t=(0,h.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(C.loadConfigsForDefaultMode);const o=(0,p.getRuntimeConfig)(e);return{...o,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??g.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,s.decorateDefaultCredentialProvider)(i.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,A.defaultUserAgent)({serviceId:o.serviceId,clientVersion:r.default.version}),maxAttempts:e?.maxAttempts??(0,l.loadConfig)(u.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,l.loadConfig)(a.NODE_REGION_CONFIG_OPTIONS,a.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new d.NodeHttpHandler(defaultConfigProvider),retryMode:e?.retryMode??(0,l.loadConfig)({...u.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||E.DEFAULT_RETRY_MODE}),sha256:e?.sha256??c.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??d.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,l.loadConfig)(a.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,l.loadConfig)(a.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};t.getRuntimeConfig=getRuntimeConfig},52642:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const n=o(63570);const r=o(14681);const s=o(75600);const i=o(41895);const A=o(41203);const getRuntimeConfig=e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??s.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??A.defaultEndpointResolver,extensions:e?.extensions??[],logger:e?.logger??new n.NoOpLogger,serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??r.parseUrl,utf8Decoder:e?.utf8Decoder??i.fromUtf8,utf8Encoder:e?.utf8Encoder??i.toUtf8});t.getRuntimeConfig=getRuntimeConfig},32053:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRuntimeExtensions=void 0;const n=o(64418);const r=o(63570);const asPartial=e=>e;const resolveRuntimeExtensions=(e,t)=>{const o={...asPartial((0,r.getDefaultExtensionConfiguration)(e)),...asPartial((0,n.getHttpHandlerExtensionConfiguration)(e))};t.forEach((e=>e.configure(o)));return{...e,...(0,r.resolveDefaultRuntimeConfig)(o),...(0,n.resolveHttpHandlerRuntimeConfig)(o)}};t.resolveRuntimeExtensions=resolveRuntimeExtensions},80255:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=t.ENV_EXPIRATION=t.ENV_SESSION=t.ENV_SECRET=t.ENV_KEY=void 0;const n=o(79721);t.ENV_KEY="AWS_ACCESS_KEY_ID";t.ENV_SECRET="AWS_SECRET_ACCESS_KEY";t.ENV_SESSION="AWS_SESSION_TOKEN";t.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";const fromEnv=()=>async()=>{const e=process.env[t.ENV_KEY];const o=process.env[t.ENV_SECRET];const r=process.env[t.ENV_SESSION];const s=process.env[t.ENV_EXPIRATION];if(e&&o){return{accessKeyId:e,secretAccessKey:o,...r&&{sessionToken:r},...s&&{expiration:new Date(s)}}}throw new n.CredentialsProviderError("Unable to find environment variable credentials.")};t.fromEnv=fromEnv},15972:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(80255),t)},55442:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromIni=void 0;const n=o(43507);const r=o(95653);const fromIni=(e={})=>async()=>{const t=await(0,n.parseKnownFiles)(e);return(0,r.resolveProfileData)((0,n.getProfileName)(e),t,e)};t.fromIni=fromIni},74203:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(55442),t)},60853:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveAssumeRoleCredentials=t.isAssumeRoleProfile=void 0;const n=o(79721);const r=o(43507);const s=o(82458);const i=o(95653);const isAssumeRoleProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(isAssumeRoleWithSourceProfile(e)||isAssumeRoleWithProviderProfile(e));t.isAssumeRoleProfile=isAssumeRoleProfile;const isAssumeRoleWithSourceProfile=e=>typeof e.source_profile==="string"&&typeof e.credential_source==="undefined";const isAssumeRoleWithProviderProfile=e=>typeof e.credential_source==="string"&&typeof e.source_profile==="undefined";const resolveAssumeRoleCredentials=async(e,t,o,A={})=>{const a=t[e];if(!o.roleAssumer){throw new n.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,false)}const{source_profile:c}=a;if(c&&c in A){throw new n.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile`+` ${(0,r.getProfileName)(o)}. Profiles visited: `+Object.keys(A).join(", "),false)}const u=c?(0,i.resolveProfileData)(c,t,o,{...A,[c]:true}):(0,s.resolveCredentialSource)(a.credential_source,e)();const l={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id};const{mfa_serial:d}=a;if(d){if(!o.mfaCodeProvider){throw new n.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,false)}l.SerialNumber=d;l.TokenCode=await o.mfaCodeProvider(d)}const g=await u;return o.roleAssumer(g,l)};t.resolveAssumeRoleCredentials=resolveAssumeRoleCredentials},82458:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCredentialSource=void 0;const n=o(15972);const r=o(7477);const s=o(79721);const resolveCredentialSource=(e,t)=>{const o={EcsContainer:r.fromContainerMetadata,Ec2InstanceMetadata:r.fromInstanceMetadata,Environment:n.fromEnv};if(e in o){return o[e]()}else{throw new s.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, `+`expected EcsContainer or Ec2InstanceMetadata or Environment.`)}};t.resolveCredentialSource=resolveCredentialSource},69993:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=t.isProcessProfile=void 0;const n=o(89969);const isProcessProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string";t.isProcessProfile=isProcessProfile;const resolveProcessCredentials=async(e,t)=>(0,n.fromProcess)({...e,profile:t})();t.resolveProcessCredentials=resolveProcessCredentials},95653:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProfileData=void 0;const n=o(79721);const r=o(60853);const s=o(69993);const i=o(59867);const A=o(33071);const a=o(58342);const resolveProfileData=async(e,t,o,c={})=>{const u=t[e];if(Object.keys(c).length>0&&(0,A.isStaticCredsProfile)(u)){return(0,A.resolveStaticCredentials)(u)}if((0,r.isAssumeRoleProfile)(u)){return(0,r.resolveAssumeRoleCredentials)(e,t,o,c)}if((0,A.isStaticCredsProfile)(u)){return(0,A.resolveStaticCredentials)(u)}if((0,a.isWebIdentityProfile)(u)){return(0,a.resolveWebIdentityCredentials)(u,o)}if((0,s.isProcessProfile)(u)){return(0,s.resolveProcessCredentials)(o,e)}if((0,i.isSsoProfile)(u)){return(0,i.resolveSsoCredentials)(u)}throw new n.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};t.resolveProfileData=resolveProfileData},59867:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSsoCredentials=t.isSsoProfile=void 0;const n=o(26414);var r=o(26414);Object.defineProperty(t,"isSsoProfile",{enumerable:true,get:function(){return r.isSsoProfile}});const resolveSsoCredentials=e=>{const{sso_start_url:t,sso_account_id:o,sso_session:r,sso_region:s,sso_role_name:i}=(0,n.validateSsoProfile)(e);return(0,n.fromSSO)({ssoStartUrl:t,ssoAccountId:o,ssoSession:r,ssoRegion:s,ssoRoleName:i})()};t.resolveSsoCredentials=resolveSsoCredentials},33071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStaticCredentials=t.isStaticCredsProfile=void 0;const isStaticCredsProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1;t.isStaticCredsProfile=isStaticCredsProfile;const resolveStaticCredentials=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});t.resolveStaticCredentials=resolveStaticCredentials},58342:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWebIdentityCredentials=t.isWebIdentityProfile=void 0;const n=o(15646);const isWebIdentityProfile=e=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1;t.isWebIdentityProfile=isWebIdentityProfile;const resolveWebIdentityCredentials=async(e,t)=>(0,n.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();t.resolveWebIdentityCredentials=resolveWebIdentityCredentials},15560:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultProvider=void 0;const n=o(15972);const r=o(74203);const s=o(89969);const i=o(26414);const A=o(15646);const a=o(79721);const c=o(43507);const u=o(50626);const defaultProvider=(e={})=>(0,a.memoize)((0,a.chain)(...e.profile||process.env[c.ENV_PROFILE]?[]:[(0,n.fromEnv)()],(0,i.fromSSO)(e),(0,r.fromIni)(e),(0,s.fromProcess)(e),(0,A.fromTokenFile)(e),(0,u.remoteProvider)(e),(async()=>{throw new a.CredentialsProviderError("Could not load credentials from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.defaultProvider=defaultProvider},75531:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(15560),t)},50626:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteProvider=t.ENV_IMDS_DISABLED=void 0;const n=o(7477);const r=o(79721);t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";const remoteProvider=e=>{if(process.env[n.ENV_CMDS_RELATIVE_URI]||process.env[n.ENV_CMDS_FULL_URI]){return(0,n.fromContainerMetadata)(e)}if(process.env[t.ENV_IMDS_DISABLED]){return async()=>{throw new r.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}}return(0,n.fromInstanceMetadata)(e)};t.remoteProvider=remoteProvider},72650:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromProcess=void 0;const n=o(43507);const r=o(74926);const fromProcess=(e={})=>async()=>{const t=await(0,n.parseKnownFiles)(e);return(0,r.resolveProcessCredentials)((0,n.getProfileName)(e),t)};t.fromProcess=fromProcess},41104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValidatedProcessCredentials=void 0;const getValidatedProcessCredentials=(e,t)=>{if(t.Version!==1){throw Error(`Profile ${e} credential_process did not return Version 1.`)}if(t.AccessKeyId===undefined||t.SecretAccessKey===undefined){throw Error(`Profile ${e} credential_process returned invalid credentials.`)}if(t.Expiration){const o=new Date;const n=new Date(t.Expiration);if(n<o){throw Error(`Profile ${e} credential_process returned expired credentials.`)}}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};t.getValidatedProcessCredentials=getValidatedProcessCredentials},89969:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(72650),t)},74926:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveProcessCredentials=void 0;const n=o(79721);const r=o(32081);const s=o(73837);const i=o(41104);const resolveProcessCredentials=async(e,t)=>{const o=t[e];if(t[e]){const t=o["credential_process"];if(t!==undefined){const o=(0,s.promisify)(r.exec);try{const{stdout:n}=await o(t);let r;try{r=JSON.parse(n.trim())}catch(t){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,i.getValidatedProcessCredentials)(e,r)}catch(e){throw new n.CredentialsProviderError(e.message)}}else{throw new n.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}}else{throw new n.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)}};t.resolveProcessCredentials=resolveProcessCredentials},35959:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSSO=void 0;const n=o(79721);const r=o(43507);const s=o(32572);const i=o(94729);const A=o(48098);const fromSSO=(e={})=>async()=>{const{ssoStartUrl:t,ssoAccountId:o,ssoRegion:a,ssoRoleName:c,ssoClient:u,ssoSession:l}=e;const d=(0,r.getProfileName)(e);if(!t&&!o&&!a&&!c&&!l){const o=await(0,r.parseKnownFiles)(e);const c=o[d];if(!c){throw new n.CredentialsProviderError(`Profile ${d} was not found.`)}if(!(0,s.isSsoProfile)(c)){throw new n.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`)}if(c===null||c===void 0?void 0:c.sso_session){const o=await(0,r.loadSsoSessionData)(e);const s=o[c.sso_session];const i=` configurations in profile ${d} and sso-session ${c.sso_session}`;if(a&&a!==s.sso_region){throw new n.CredentialsProviderError(`Conflicting SSO region`+i,false)}if(t&&t!==s.sso_start_url){throw new n.CredentialsProviderError(`Conflicting SSO start_url`+i,false)}c.sso_region=s.sso_region;c.sso_start_url=s.sso_start_url}const{sso_start_url:l,sso_account_id:g,sso_region:E,sso_role_name:p,sso_session:C}=(0,A.validateSsoProfile)(c);return(0,i.resolveSSOCredentials)({ssoStartUrl:l,ssoSession:C,ssoAccountId:g,ssoRegion:E,ssoRoleName:p,ssoClient:u,profile:d})}else if(!t||!o||!a||!c){throw new n.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include "+'"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"')}else{return(0,i.resolveSSOCredentials)({ssoStartUrl:t,ssoSession:l,ssoAccountId:o,ssoRegion:a,ssoRoleName:c,ssoClient:u,profile:d})}};t.fromSSO=fromSSO},26414:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(35959),t);n.__exportStar(o(32572),t);n.__exportStar(o(86623),t);n.__exportStar(o(48098),t)},32572:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSsoProfile=void 0;const isSsoProfile=e=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");t.isSsoProfile=isSsoProfile},94729:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSSOCredentials=void 0;const n=o(82666);const r=o(52843);const s=o(79721);const i=o(43507);const A=false;const resolveSSOCredentials=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:o,ssoRegion:a,ssoRoleName:c,ssoClient:u,profile:l})=>{let d;const g=`To refresh this SSO session run aws sso login with the corresponding profile.`;if(t){try{const e=await(0,r.fromSso)({profile:l})();d={accessToken:e.token,expiresAt:new Date(e.expiration).toISOString()}}catch(e){throw new s.CredentialsProviderError(e.message,A)}}else{try{d=await(0,i.getSSOTokenFromFile)(e)}catch(e){throw new s.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${g}`,A)}}if(new Date(d.expiresAt).getTime()-Date.now()<=0){throw new s.CredentialsProviderError(`The SSO session associated with this profile has expired. ${g}`,A)}const{accessToken:E}=d;const p=u||new n.SSOClient({region:a});let C;try{C=await p.send(new n.GetRoleCredentialsCommand({accountId:o,roleName:c,accessToken:E}))}catch(e){throw s.CredentialsProviderError.from(e,A)}const{roleCredentials:{accessKeyId:h,secretAccessKey:f,sessionToken:m,expiration:I}={}}=C;if(!h||!f||!m||!I){throw new s.CredentialsProviderError("SSO returns an invalid temporary credential.",A)}return{accessKeyId:h,secretAccessKey:f,sessionToken:m,expiration:new Date(I)}};t.resolveSSOCredentials=resolveSSOCredentials},86623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48098:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSsoProfile=void 0;const n=o(79721);const validateSsoProfile=e=>{const{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:s}=e;if(!t||!o||!r||!s){throw new n.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", `+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,false)}return e};t.validateSsoProfile=validateSsoProfile},35614:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromTokenFile=void 0;const n=o(79721);const r=o(57147);const s=o(47905);const i="AWS_WEB_IDENTITY_TOKEN_FILE";const A="AWS_ROLE_ARN";const a="AWS_ROLE_SESSION_NAME";const fromTokenFile=(e={})=>async()=>{var t,o,c;const u=(t=e===null||e===void 0?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[i];const l=(o=e===null||e===void 0?void 0:e.roleArn)!==null&&o!==void 0?o:process.env[A];const d=(c=e===null||e===void 0?void 0:e.roleSessionName)!==null&&c!==void 0?c:process.env[a];if(!u||!l){throw new n.CredentialsProviderError("Web identity configuration not specified")}return(0,s.fromWebToken)({...e,webIdentityToken:(0,r.readFileSync)(u,{encoding:"ascii"}),roleArn:l,roleSessionName:d})()};t.fromTokenFile=fromTokenFile},47905:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromWebToken=void 0;const n=o(79721);const fromWebToken=e=>()=>{const{roleArn:t,roleSessionName:o,webIdentityToken:r,providerId:s,policyArns:i,policy:A,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c){throw new n.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity,`+` but no role assumption callback was provided.`,false)}return c({RoleArn:t,RoleSessionName:o!==null&&o!==void 0?o:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:A,DurationSeconds:a})};t.fromWebToken=fromWebToken},15646:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(35614),t);n.__exportStar(o(47905),t)},22545:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostHeaderPlugin=t.hostHeaderMiddlewareOptions=t.hostHeaderMiddleware=t.resolveHostHeaderConfig=void 0;const n=o(64418);function resolveHostHeaderConfig(e){return e}t.resolveHostHeaderConfig=resolveHostHeaderConfig;const hostHeaderMiddleware=e=>t=>async o=>{if(!n.HttpRequest.isInstance(o.request))return t(o);const{request:r}=o;const{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!r.headers[":authority"]){delete r.headers["host"];r.headers[":authority"]=""}else if(!r.headers["host"]){let e=r.hostname;if(r.port!=null)e+=`:${r.port}`;r.headers["host"]=e}return t(o)};t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:o=>{o.add((0,t.hostHeaderMiddleware)(e),t.hostHeaderMiddlewareOptions)}});t.getHostHeaderPlugin=getHostHeaderPlugin},20014:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(9754),t)},9754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoggerPlugin=t.loggerMiddlewareOptions=t.loggerMiddleware=void 0;const loggerMiddleware=()=>(e,t)=>async o=>{var n,r;try{const r=await e(o);const{clientName:s,commandName:i,logger:A,dynamoDbDocumentClientOptions:a={}}=t;const{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a;const l=c!==null&&c!==void 0?c:t.inputFilterSensitiveLog;const d=u!==null&&u!==void 0?u:t.outputFilterSensitiveLog;const{$metadata:g,...E}=r.output;(n=A===null||A===void 0?void 0:A.info)===null||n===void 0?void 0:n.call(A,{clientName:s,commandName:i,input:l(o.input),output:d(E),metadata:g});return r}catch(e){const{clientName:n,commandName:s,logger:i,dynamoDbDocumentClientOptions:A={}}=t;const{overrideInputFilterSensitiveLog:a}=A;const c=a!==null&&a!==void 0?a:t.inputFilterSensitiveLog;(r=i===null||i===void 0?void 0:i.error)===null||r===void 0?void 0:r.call(i,{clientName:n,commandName:s,input:c(o.input),error:e,metadata:e.$metadata});throw e}};t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add((0,t.loggerMiddleware)(),t.loggerMiddlewareOptions)}});t.getLoggerPlugin=getLoggerPlugin},85525:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRecursionDetectionPlugin=t.addRecursionDetectionMiddlewareOptions=t.recursionDetectionMiddleware=void 0;const n=o(64418);const r="X-Amzn-Trace-Id";const s="AWS_LAMBDA_FUNCTION_NAME";const i="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=e=>t=>async o=>{const{request:A}=o;if(!n.HttpRequest.isInstance(A)||e.runtime!=="node"||A.headers.hasOwnProperty(r)){return t(o)}const a=process.env[s];const c=process.env[i];const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(a)&&nonEmptyString(c)){A.headers[r]=c}return t({...o,request:A})};t.recursionDetectionMiddleware=recursionDetectionMiddleware;t.addRecursionDetectionMiddlewareOptions={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:o=>{o.add((0,t.recursionDetectionMiddleware)(e),t.addRecursionDetectionMiddlewareOptions)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin},55959:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveStsAuthConfig=void 0;const n=o(14935);const resolveStsAuthConfig=(e,{stsClientCtor:t})=>(0,n.resolveAwsAuthConfig)({...e,stsClientCtor:t});t.resolveStsAuthConfig=resolveStsAuthConfig},84193:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSigV4AuthConfig=t.resolveAwsAuthConfig=void 0;const n=o(79721);const r=o(11528);const s=o(2390);const i=3e5;const resolveAwsAuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:o=true,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e;let A;if(e.signer){A=(0,s.normalizeProvider)(e.signer)}else if(e.regionInfoProvider){A=()=>(0,s.normalizeProvider)(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,s])=>{const{signingRegion:A,signingService:a}=n;e.signingRegion=e.signingRegion||A||s;e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const u=e.signerConstructor||r.SignatureV4;return new u(c)}))}else{A=async n=>{n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,s.normalizeProvider)(e.region)(),properties:{}},n);const A=n.signingRegion;const a=n.signingName;e.signingRegion=e.signingRegion||A;e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:o};const u=e.signerConstructor||r.SignatureV4;return new u(c)}}return{...e,systemClockOffset:n,signingEscapePath:o,credentials:t,signer:A}};t.resolveAwsAuthConfig=resolveAwsAuthConfig;const resolveSigV4AuthConfig=e=>{const t=e.credentials?normalizeCredentialProvider(e.credentials):e.credentialDefaultProvider(e);const{signingEscapePath:o=true,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e;let A;if(e.signer){A=(0,s.normalizeProvider)(e.signer)}else{A=(0,s.normalizeProvider)(new r.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:o}))}return{...e,systemClockOffset:n,signingEscapePath:o,credentials:t,signer:A}};t.resolveSigV4AuthConfig=resolveSigV4AuthConfig;const normalizeCredentialProvider=e=>{if(typeof e==="function"){return(0,n.memoize)(e,(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<i),(e=>e.expiration!==undefined))}return(0,s.normalizeProvider)(e)}},88053:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSigV4AuthPlugin=t.getAwsAuthPlugin=t.awsAuthMiddlewareOptions=t.awsAuthMiddleware=void 0;const n=o(64418);const r=o(68253);const s=o(35863);const awsAuthMiddleware=e=>(t,o)=>async function(i){var A,a,c,u;if(!n.HttpRequest.isInstance(i.request))return t(i);const l=(c=(a=(A=o.endpointV2)===null||A===void 0?void 0:A.properties)===null||a===void 0?void 0:a.authSchemes)===null||c===void 0?void 0:c[0];const d=(l===null||l===void 0?void 0:l.name)==="sigv4a"?(u=l===null||l===void 0?void 0:l.signingRegionSet)===null||u===void 0?void 0:u.join(","):undefined;const g=await e.signer(l);const E=await t({...i,request:await g.sign(i.request,{signingDate:(0,r.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:d||o["signing_region"],signingService:o["signing_service"]})}).catch((t=>{var o;const n=(o=t.ServerTime)!==null&&o!==void 0?o:getDateHeader(t.$response);if(n){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(n,e.systemClockOffset)}throw t}));const p=getDateHeader(E.response);if(p){e.systemClockOffset=(0,s.getUpdatedSystemClockOffset)(p,e.systemClockOffset)}return E};t.awsAuthMiddleware=awsAuthMiddleware;const getDateHeader=e=>{var t,o,r;return n.HttpResponse.isInstance(e)?(o=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&o!==void 0?o:(r=e.headers)===null||r===void 0?void 0:r.Date:undefined};t.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:true};const getAwsAuthPlugin=e=>({applyToStack:o=>{o.addRelativeTo((0,t.awsAuthMiddleware)(e),t.awsAuthMiddlewareOptions)}});t.getAwsAuthPlugin=getAwsAuthPlugin;t.getSigV4AuthPlugin=t.getAwsAuthPlugin},14935:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(84193),t);n.__exportStar(o(88053),t)},68253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSkewCorrectedDate=void 0;const getSkewCorrectedDate=e=>new Date(Date.now()+e);t.getSkewCorrectedDate=getSkewCorrectedDate},35863:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUpdatedSystemClockOffset=void 0;const n=o(85301);const getUpdatedSystemClockOffset=(e,t)=>{const o=Date.parse(e);if((0,n.isClockSkewed)(o,t)){return o-Date.now()}return t};t.getUpdatedSystemClockOffset=getUpdatedSystemClockOffset},85301:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isClockSkewed=void 0;const n=o(68253);const isClockSkewed=(e,t)=>Math.abs((0,n.getSkewCorrectedDate)(t).getTime()-e)>=3e5;t.isClockSkewed=isClockSkewed},36546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveUserAgentConfig=void 0;function resolveUserAgentConfig(e){return{...e,customUserAgent:typeof e.customUserAgent==="string"?[[e.customUserAgent]]:e.customUserAgent}}t.resolveUserAgentConfig=resolveUserAgentConfig},28025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UA_ESCAPE_CHAR=t.UA_VALUE_ESCAPE_REGEX=t.UA_NAME_ESCAPE_REGEX=t.UA_NAME_SEPARATOR=t.SPACE=t.X_AMZ_USER_AGENT=t.USER_AGENT=void 0;t.USER_AGENT="user-agent";t.X_AMZ_USER_AGENT="x-amz-user-agent";t.SPACE=" ";t.UA_NAME_SEPARATOR="/";t.UA_NAME_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;t.UA_VALUE_ESCAPE_REGEX=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;t.UA_ESCAPE_CHAR="-"},64688:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(36546),t);n.__exportStar(o(76236),t)},76236:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPlugin=t.getUserAgentMiddlewareOptions=t.userAgentMiddleware=void 0;const n=o(13350);const r=o(64418);const s=o(28025);const userAgentMiddleware=e=>(t,o)=>async i=>{var A,a;const{request:c}=i;if(!r.HttpRequest.isInstance(c))return t(i);const{headers:u}=c;const l=((A=o===null||o===void 0?void 0:o.userAgent)===null||A===void 0?void 0:A.map(escapeUserAgent))||[];const d=(await e.defaultUserAgentProvider()).map(escapeUserAgent);const g=((a=e===null||e===void 0?void 0:e.customUserAgent)===null||a===void 0?void 0:a.map(escapeUserAgent))||[];const E=(0,n.getUserAgentPrefix)();const p=(E?[E]:[]).concat([...d,...l,...g]).join(s.SPACE);const C=[...d.filter((e=>e.startsWith("aws-sdk-"))),...g].join(s.SPACE);if(e.runtime!=="browser"){if(C){u[s.X_AMZ_USER_AGENT]=u[s.X_AMZ_USER_AGENT]?`${u[s.USER_AGENT]} ${C}`:C}u[s.USER_AGENT]=p}else{u[s.X_AMZ_USER_AGENT]=p}return t({...i,request:c})};t.userAgentMiddleware=userAgentMiddleware;const escapeUserAgent=e=>{var t;const o=e[0].split(s.UA_NAME_SEPARATOR).map((e=>e.replace(s.UA_NAME_ESCAPE_REGEX,s.UA_ESCAPE_CHAR))).join(s.UA_NAME_SEPARATOR);const n=(t=e[1])===null||t===void 0?void 0:t.replace(s.UA_VALUE_ESCAPE_REGEX,s.UA_ESCAPE_CHAR);const r=o.indexOf(s.UA_NAME_SEPARATOR);const i=o.substring(0,r);let A=o.substring(r+1);if(i==="api"){A=A.toLowerCase()}return[i,A,n].filter((e=>e&&e.length>0)).reduce(((e,t,o)=>{switch(o){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};t.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:o=>{o.add((0,t.userAgentMiddleware)(e),t.getUserAgentMiddlewareOptions)}});t.getUserAgentPlugin=getUserAgentPlugin},52664:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnsupportedGrantTypeException=t.UnauthorizedClientException=t.SlowDownException=t.SSOOIDCClient=t.InvalidScopeException=t.InvalidRequestException=t.InvalidClientException=t.InternalServerException=t.ExpiredTokenException=t.CreateTokenCommand=t.AuthorizationPendingException=t.AccessDeniedException=void 0;const n=o(22545);const r=o(20014);const s=o(85525);const i=o(64688);const A=o(53098);const a=o(82800);const c=o(82918);const u=o(96039);const l=o(63570);var resolveClientEndpointParameters=e=>{var t,o;return{...e,useDualstackEndpoint:(t=e.useDualstackEndpoint)!==null&&t!==void 0?t:false,useFipsEndpoint:(o=e.useFipsEndpoint)!==null&&o!==void 0?o:false,defaultSigningName:"awsssooidc"}};var d={version:"3.387.0"};const g=o(98095);const E=o(53098);const p=o(3081);const C=o(96039);const h=o(33461);const f=o(20258);const m=o(68075);const I=o(84902);const y=o(63570);const Q=o(14681);const B=o(75600);const w=o(41895);const S=o(13350);var b="required";var R="fn";var v="argv";var D="ref";var _="PartitionResult";var P="tree";var x="error";var N="endpoint";var k={[b]:false,type:"String"};var F={[b]:true,default:false,type:"Boolean"};var T={[D]:"Endpoint"};var M={[R]:"booleanEquals",[v]:[{[D]:"UseFIPS"},true]};var U={[R]:"booleanEquals",[v]:[{[D]:"UseDualStack"},true]};var L={};var O={[R]:"booleanEquals",[v]:[true,{[R]:"getAttr",[v]:[{[D]:_},"supportsFIPS"]}]};var H={[R]:"booleanEquals",[v]:[true,{[R]:"getAttr",[v]:[{[D]:_},"supportsDualStack"]}]};var G=[T];var j=[M];var Y=[U];var V={version:"1.0",parameters:{Region:k,UseDualStack:F,UseFIPS:F,Endpoint:k},rules:[{conditions:[{[R]:"aws.partition",[v]:[{[D]:"Region"}],assign:_}],type:P,rules:[{conditions:[{[R]:"isSet",[v]:G},{[R]:"parseURL",[v]:G,assign:"url"}],type:P,rules:[{conditions:j,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:x},{type:P,rules:[{conditions:Y,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:x},{endpoint:{url:T,properties:L,headers:L},type:N}]}]},{conditions:[M,U],type:P,rules:[{conditions:[O,H],type:P,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:L,headers:L},type:N}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:x}]},{conditions:j,type:P,rules:[{conditions:[O],type:P,rules:[{type:P,rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:L,headers:L},type:N}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:x}]},{conditions:Y,type:P,rules:[{conditions:[H],type:P,rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:L,headers:L},type:N}]},{error:"DualStack is enabled but this partition does not support DualStack",type:x}]},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:L,headers:L},type:N}]}]};var J=V;var defaultEndpointResolver=(e,t={})=>(0,S.resolveEndpoint)(J,{endpointParams:e,logger:t.logger});var getRuntimeConfig=e=>{var t,o,n,r,s,i,A,a,c;return{apiVersion:"2019-06-10",base64Decoder:(t=e===null||e===void 0?void 0:e.base64Decoder)!==null&&t!==void 0?t:B.fromBase64,base64Encoder:(o=e===null||e===void 0?void 0:e.base64Encoder)!==null&&o!==void 0?o:B.toBase64,disableHostPrefix:(n=e===null||e===void 0?void 0:e.disableHostPrefix)!==null&&n!==void 0?n:false,endpointProvider:(r=e===null||e===void 0?void 0:e.endpointProvider)!==null&&r!==void 0?r:defaultEndpointResolver,logger:(s=e===null||e===void 0?void 0:e.logger)!==null&&s!==void 0?s:new y.NoOpLogger,serviceId:(i=e===null||e===void 0?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO OIDC",urlParser:(A=e===null||e===void 0?void 0:e.urlParser)!==null&&A!==void 0?A:Q.parseUrl,utf8Decoder:(a=e===null||e===void 0?void 0:e.utf8Decoder)!==null&&a!==void 0?a:w.fromUtf8,utf8Encoder:(c=e===null||e===void 0?void 0:e.utf8Encoder)!==null&&c!==void 0?c:w.toUtf8}};const q=o(63570);const z=o(72429);const W=o(63570);var getRuntimeConfig2=e=>{var t,o,n,r,s,i,A,a,c,u;(0,W.emitWarningIfUnsupportedVersion)(process.version);const l=(0,z.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>l().then(q.loadConfigsForDefaultMode);const y=getRuntimeConfig(e);return{...y,...e,runtime:"node",defaultsMode:l,bodyLengthChecker:(t=e===null||e===void 0?void 0:e.bodyLengthChecker)!==null&&t!==void 0?t:m.calculateBodyLength,defaultUserAgentProvider:(o=e===null||e===void 0?void 0:e.defaultUserAgentProvider)!==null&&o!==void 0?o:(0,g.defaultUserAgent)({serviceId:y.serviceId,clientVersion:d.version}),maxAttempts:(n=e===null||e===void 0?void 0:e.maxAttempts)!==null&&n!==void 0?n:(0,h.loadConfig)(C.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(r=e===null||e===void 0?void 0:e.region)!==null&&r!==void 0?r:(0,h.loadConfig)(E.NODE_REGION_CONFIG_OPTIONS,E.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(s=e===null||e===void 0?void 0:e.requestHandler)!==null&&s!==void 0?s:new f.NodeHttpHandler(defaultConfigProvider),retryMode:(i=e===null||e===void 0?void 0:e.retryMode)!==null&&i!==void 0?i:(0,h.loadConfig)({...C.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||I.DEFAULT_RETRY_MODE}),sha256:(A=e===null||e===void 0?void 0:e.sha256)!==null&&A!==void 0?A:p.Hash.bind(null,"sha256"),streamCollector:(a=e===null||e===void 0?void 0:e.streamCollector)!==null&&a!==void 0?a:f.streamCollector,useDualstackEndpoint:(c=e===null||e===void 0?void 0:e.useDualstackEndpoint)!==null&&c!==void 0?c:(0,h.loadConfig)(E.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(u=e===null||e===void 0?void 0:e.useFipsEndpoint)!==null&&u!==void 0?u:(0,h.loadConfig)(E.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS)}};var $=class extends l.Client{constructor(...[e]){const t=getRuntimeConfig2(e||{});const o=resolveClientEndpointParameters(t);const l=(0,A.resolveRegionConfig)(o);const d=(0,c.resolveEndpointConfig)(l);const g=(0,u.resolveRetryConfig)(d);const E=(0,n.resolveHostHeaderConfig)(g);const p=(0,i.resolveUserAgentConfig)(E);super(p);this.config=p;this.middlewareStack.use((0,u.getRetryPlugin)(this.config));this.middlewareStack.use((0,a.getContentLengthPlugin)(this.config));this.middlewareStack.use((0,n.getHostHeaderPlugin)(this.config));this.middlewareStack.use((0,r.getLoggerPlugin)(this.config));this.middlewareStack.use((0,s.getRecursionDetectionPlugin)(this.config));this.middlewareStack.use((0,i.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};t.SSOOIDCClient=$;const K=o(63570);const X=o(82918);const Z=o(81238);const ee=o(63570);const te=o(64418);const oe=o(63570);const ne=o(63570);var re=class _SSOOIDCServiceException extends ne.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,_SSOOIDCServiceException.prototype)}};var se=class _AccessDeniedException extends re{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException";this.$fault="client";Object.setPrototypeOf(this,_AccessDeniedException.prototype);this.error=e.error;this.error_description=e.error_description}};t.AccessDeniedException=se;var ie=class _AuthorizationPendingException extends re{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException";this.$fault="client";Object.setPrototypeOf(this,_AuthorizationPendingException.prototype);this.error=e.error;this.error_description=e.error_description}};t.AuthorizationPendingException=ie;var Ae=class _ExpiredTokenException extends re{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException";this.$fault="client";Object.setPrototypeOf(this,_ExpiredTokenException.prototype);this.error=e.error;this.error_description=e.error_description}};t.ExpiredTokenException=Ae;var ae=class _InternalServerException extends re{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException";this.$fault="server";Object.setPrototypeOf(this,_InternalServerException.prototype);this.error=e.error;this.error_description=e.error_description}};t.InternalServerException=ae;var ce=class _InvalidClientException extends re{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException";this.$fault="client";Object.setPrototypeOf(this,_InvalidClientException.prototype);this.error=e.error;this.error_description=e.error_description}};t.InvalidClientException=ce;var ue=class _InvalidGrantException extends re{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException";this.$fault="client";Object.setPrototypeOf(this,_InvalidGrantException.prototype);this.error=e.error;this.error_description=e.error_description}};var le=class _InvalidRequestException extends re{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException";this.$fault="client";Object.setPrototypeOf(this,_InvalidRequestException.prototype);this.error=e.error;this.error_description=e.error_description}};t.InvalidRequestException=le;var de=class _InvalidScopeException extends re{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException";this.$fault="client";Object.setPrototypeOf(this,_InvalidScopeException.prototype);this.error=e.error;this.error_description=e.error_description}};t.InvalidScopeException=de;var ge=class _SlowDownException extends re{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException";this.$fault="client";Object.setPrototypeOf(this,_SlowDownException.prototype);this.error=e.error;this.error_description=e.error_description}};t.SlowDownException=ge;var Ee=class _UnauthorizedClientException extends re{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException";this.$fault="client";Object.setPrototypeOf(this,_UnauthorizedClientException.prototype);this.error=e.error;this.error_description=e.error_description}};t.UnauthorizedClientException=Ee;var pe=class _UnsupportedGrantTypeException extends re{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException";this.$fault="client";Object.setPrototypeOf(this,_UnsupportedGrantTypeException.prototype);this.error=e.error;this.error_description=e.error_description}};t.UnsupportedGrantTypeException=pe;var Ce=class _InvalidClientMetadataException extends re{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException";this.$fault="client";Object.setPrototypeOf(this,_InvalidClientMetadataException.prototype);this.error=e.error;this.error_description=e.error_description}};var se_CreateTokenCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:r,path:s}=await t.endpoint();const i={"content-type":"application/json"};const A=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/token`;let a;a=JSON.stringify((0,oe.take)(e,{clientId:[],clientSecret:[],code:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:e=>(0,oe._json)(e)}));return new te.HttpRequest({protocol:n,hostname:o,port:r,method:"POST",headers:i,path:A,body:a})};var se_RegisterClientCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:r,path:s}=await t.endpoint();const i={"content-type":"application/json"};const A=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/client/register`;let a;a=JSON.stringify((0,oe.take)(e,{clientName:[],clientType:[],scopes:e=>(0,oe._json)(e)}));return new te.HttpRequest({protocol:n,hostname:o,port:r,method:"POST",headers:i,path:A,body:a})};var se_StartDeviceAuthorizationCommand=async(e,t)=>{const{hostname:o,protocol:n="https",port:r,path:s}=await t.endpoint();const i={"content-type":"application/json"};const A=`${(s===null||s===void 0?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/device_authorization`;let a;a=JSON.stringify((0,oe.take)(e,{clientId:[],clientSecret:[],startUrl:[]}));return new te.HttpRequest({protocol:n,hostname:o,port:r,method:"POST",headers:i,path:A,body:a})};var de_CreateTokenCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_CreateTokenCommandError(e,t)}const o=(0,oe.map)({$metadata:deserializeMetadata(e)});const n=(0,oe.expectNonNull)((0,oe.expectObject)(await parseBody(e.body,t)),"body");const r=(0,oe.take)(n,{accessToken:oe.expectString,expiresIn:oe.expectInt32,idToken:oe.expectString,refreshToken:oe.expectString,tokenType:oe.expectString});Object.assign(o,r);return o};var de_CreateTokenCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await de_AccessDeniedExceptionRes(o,t);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await de_AuthorizationPendingExceptionRes(o,t);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await de_ExpiredTokenExceptionRes(o,t);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(o,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await de_InvalidClientExceptionRes(o,t);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await de_InvalidGrantExceptionRes(o,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await de_InvalidScopeExceptionRes(o,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await de_SlowDownExceptionRes(o,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await de_UnauthorizedClientExceptionRes(o,t);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await de_UnsupportedGrantTypeExceptionRes(o,t);default:const r=o.body;return he({output:e,parsedBody:r,errorCode:n})}};var de_RegisterClientCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_RegisterClientCommandError(e,t)}const o=(0,oe.map)({$metadata:deserializeMetadata(e)});const n=(0,oe.expectNonNull)((0,oe.expectObject)(await parseBody(e.body,t)),"body");const r=(0,oe.take)(n,{authorizationEndpoint:oe.expectString,clientId:oe.expectString,clientIdIssuedAt:oe.expectLong,clientSecret:oe.expectString,clientSecretExpiresAt:oe.expectLong,tokenEndpoint:oe.expectString});Object.assign(o,r);return o};var de_RegisterClientCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(o,t);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await de_InvalidClientMetadataExceptionRes(o,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await de_InvalidScopeExceptionRes(o,t);default:const r=o.body;return he({output:e,parsedBody:r,errorCode:n})}};var de_StartDeviceAuthorizationCommand=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300){return de_StartDeviceAuthorizationCommandError(e,t)}const o=(0,oe.map)({$metadata:deserializeMetadata(e)});const n=(0,oe.expectNonNull)((0,oe.expectObject)(await parseBody(e.body,t)),"body");const r=(0,oe.take)(n,{deviceCode:oe.expectString,expiresIn:oe.expectInt32,interval:oe.expectInt32,userCode:oe.expectString,verificationUri:oe.expectString,verificationUriComplete:oe.expectString});Object.assign(o,r);return o};var de_StartDeviceAuthorizationCommandError=async(e,t)=>{const o={...e,body:await parseErrorBody(e.body,t)};const n=loadRestJsonErrorCode(e,o.body);switch(n){case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await de_InternalServerExceptionRes(o,t);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await de_InvalidClientExceptionRes(o,t);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await de_InvalidRequestExceptionRes(o,t);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await de_SlowDownExceptionRes(o,t);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await de_UnauthorizedClientExceptionRes(o,t);default:const r=o.body;return he({output:e,parsedBody:r,errorCode:n})}};var he=(0,oe.withBaseException)(re);var de_AccessDeniedExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new se({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_AuthorizationPendingExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new ie({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_ExpiredTokenExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new Ae({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_InternalServerExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new ae({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_InvalidClientExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new ce({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_InvalidClientMetadataExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new Ce({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_InvalidGrantExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new ue({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_InvalidRequestExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new le({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_InvalidScopeExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new de({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_SlowDownExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new ge({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_UnauthorizedClientExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new Ee({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var de_UnsupportedGrantTypeExceptionRes=async(e,t)=>{const o=(0,oe.map)({});const n=e.body;const r=(0,oe.take)(n,{error:oe.expectString,error_description:oe.expectString});Object.assign(o,r);const s=new pe({$metadata:deserializeMetadata(e),...o});return(0,oe.decorateServiceException)(s,e.body)};var deserializeMetadata=e=>{var t,o;return{httpStatusCode:e.statusCode,requestId:(o=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&o!==void 0?o:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}};var collectBodyString=(e,t)=>(0,oe.collectBody)(e,t).then((e=>t.utf8Encoder(e)));var parseBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){return JSON.parse(e)}return{}}));var parseErrorBody=async(e,t)=>{var o;const n=await parseBody(e,t);n.message=(o=n.message)!==null&&o!==void 0?o:n.Message;return n};var loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const o=findKey(e.headers,"x-amzn-errortype");if(o!==void 0){return sanitizeErrorCode(e.headers[o])}if(t.code!==void 0){return sanitizeErrorCode(t.code)}if(t["__type"]!==void 0){return sanitizeErrorCode(t["__type"])}};var fe=class _CreateTokenCommand extends ee.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,Z.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,X.getEndpointPlugin)(t,_CreateTokenCommand.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack);const{logger:r}=t;const s="SSOOIDCClient";const i="CreateTokenCommand";const A={logger:r,clientName:s,commandName:i,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:a}=t;return n.resolve((e=>a.handle(e.request,o||{})),A)}serialize(e,t){return se_CreateTokenCommand(e,t)}deserialize(e,t){return de_CreateTokenCommand(e,t)}};t.CreateTokenCommand=fe;const me=o(82918);const Ie=o(81238);const ye=o(63570);var Qe=class _RegisterClientCommand extends ye.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,Ie.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,me.getEndpointPlugin)(t,_RegisterClientCommand.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack);const{logger:r}=t;const s="SSOOIDCClient";const i="RegisterClientCommand";const A={logger:r,clientName:s,commandName:i,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:a}=t;return n.resolve((e=>a.handle(e.request,o||{})),A)}serialize(e,t){return se_RegisterClientCommand(e,t)}deserialize(e,t){return de_RegisterClientCommand(e,t)}};const Be=o(82918);const we=o(81238);const Se=o(63570);var be=class _StartDeviceAuthorizationCommand extends Se.Command{constructor(e){super();this.input=e}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(e,t,o){this.middlewareStack.use((0,we.getSerdePlugin)(t,this.serialize,this.deserialize));this.middlewareStack.use((0,Be.getEndpointPlugin)(t,_StartDeviceAuthorizationCommand.getEndpointParameterInstructions()));const n=e.concat(this.middlewareStack);const{logger:r}=t;const s="SSOOIDCClient";const i="StartDeviceAuthorizationCommand";const A={logger:r,clientName:s,commandName:i,inputFilterSensitiveLog:e=>e,outputFilterSensitiveLog:e=>e};const{requestHandler:a}=t;return n.resolve((e=>a.handle(e.request,o||{})),A)}serialize(e,t){return se_StartDeviceAuthorizationCommand(e,t)}deserialize(e,t){return de_StartDeviceAuthorizationCommand(e,t)}};var Re={CreateTokenCommand:fe,RegisterClientCommand:Qe,StartDeviceAuthorizationCommand:be};var ve=class extends ${};(0,K.createAggregatedClient)(Re,ve)},92242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REFRESH_MESSAGE=t.EXPIRE_WINDOW_MS=void 0;t.EXPIRE_WINDOW_MS=5*60*1e3;t.REFRESH_MESSAGE=`To refresh this SSO session run 'aws sso login' with the corresponding profile.`},85125:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSso=void 0;const n=o(79721);const r=o(43507);const s=o(92242);const i=o(93601);const A=o(28418);const a=o(2488);const c=o(48552);const u=new Date(0);const fromSso=(e={})=>async()=>{const t=await(0,r.parseKnownFiles)(e);const o=(0,r.getProfileName)(e);const l=t[o];if(!l){throw new n.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,false)}else if(!l["sso_session"]){throw new n.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`)}const d=l["sso_session"];const g=await(0,r.loadSsoSessionData)(e);const E=g[d];if(!E){throw new n.TokenProviderError(`Sso session '${d}' could not be found in shared credentials file.`,false)}for(const e of["sso_start_url","sso_region"]){if(!E[e]){throw new n.TokenProviderError(`Sso session '${d}' is missing required property '${e}'.`,false)}}const p=E["sso_start_url"];const C=E["sso_region"];let h;try{h=await(0,r.getSSOTokenFromFile)(d)}catch(e){throw new n.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${s.REFRESH_MESSAGE}`,false)}(0,a.validateTokenKey)("accessToken",h.accessToken);(0,a.validateTokenKey)("expiresAt",h.expiresAt);const{accessToken:f,expiresAt:m}=h;const I={token:f,expiration:new Date(m)};if(I.expiration.getTime()-Date.now()>s.EXPIRE_WINDOW_MS){return I}if(Date.now()-u.getTime()<30*1e3){(0,A.validateTokenExpiry)(I);return I}(0,a.validateTokenKey)("clientId",h.clientId,true);(0,a.validateTokenKey)("clientSecret",h.clientSecret,true);(0,a.validateTokenKey)("refreshToken",h.refreshToken,true);try{u.setTime(Date.now());const e=await(0,i.getNewSsoOidcToken)(h,C);(0,a.validateTokenKey)("accessToken",e.accessToken);(0,a.validateTokenKey)("expiresIn",e.expiresIn);const t=new Date(Date.now()+e.expiresIn*1e3);try{await(0,c.writeSSOTokenToFile)(d,{...h,accessToken:e.accessToken,expiresAt:t.toISOString(),refreshToken:e.refreshToken})}catch(e){}return{token:e.accessToken,expiration:t}}catch(e){(0,A.validateTokenExpiry)(I);return I}};t.fromSso=fromSso},63258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const n=o(79721);const fromStatic=({token:e})=>async()=>{if(!e||!e.token){throw new n.TokenProviderError(`Please pass a valid token to fromStatic`,false)}return e};t.fromStatic=fromStatic},93601:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getNewSsoOidcToken=void 0;const n=o(52664);const r=o(99775);const getNewSsoOidcToken=(e,t)=>{const o=(0,r.getSsoOidcClient)(t);return o.send(new n.CreateTokenCommand({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};t.getNewSsoOidcToken=getNewSsoOidcToken},99775:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoOidcClient=void 0;const n=o(52664);const r={};const getSsoOidcClient=e=>{if(r[e]){return r[e]}const t=new n.SSOOIDCClient({region:e});r[e]=t;return t};t.getSsoOidcClient=getSsoOidcClient},52843:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(52664),t);n.__exportStar(o(85125),t);n.__exportStar(o(63258),t);n.__exportStar(o(70195),t)},70195:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodeProvider=void 0;const n=o(79721);const r=o(85125);const nodeProvider=(e={})=>(0,n.memoize)((0,n.chain)((0,r.fromSso)(e),(async()=>{throw new n.TokenProviderError("Could not load token from any providers",false)})),(e=>e.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5),(e=>e.expiration!==undefined));t.nodeProvider=nodeProvider},28418:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenExpiry=void 0;const n=o(79721);const r=o(92242);const validateTokenExpiry=e=>{if(e.expiration&&e.expiration.getTime()<Date.now()){throw new n.TokenProviderError(`Token is expired. ${r.REFRESH_MESSAGE}`,false)}};t.validateTokenExpiry=validateTokenExpiry},2488:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTokenKey=void 0;const n=o(79721);const r=o(92242);const validateTokenKey=(e,t,o=false)=>{if(typeof t==="undefined"){throw new n.TokenProviderError(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${r.REFRESH_MESSAGE}`,false)}};t.validateTokenKey=validateTokenKey},48552:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeSSOTokenToFile=void 0;const n=o(43507);const r=o(57147);const{writeFile:s}=r.promises;const writeSSOTokenToFile=(e,t)=>{const o=(0,n.getSSOTokenFilepath)(e);const r=JSON.stringify(t,null,2);return s(o,r)};t.writeSSOTokenToFile=writeSSOTokenToFile},52562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26913:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpAuthLocation=void 0;var n=o(55756);Object.defineProperty(t,"HttpAuthLocation",{enumerable:true,get:function(){return n.HttpAuthLocation}})},14994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},28045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},67736:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},13268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},90142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HostAddressType=void 0;var o;(function(e){e["AAAA"]="AAAA";e["A"]="A"})(o=t.HostAddressType||(t.HostAddressType={}))},62338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},99385:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointURLScheme=void 0;var n=o(55756);Object.defineProperty(t,"EndpointURLScheme",{enumerable:true,get:function(){return n.EndpointURLScheme}})},37521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},61393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7192:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},10640:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(51821),t);n.__exportStar(o(92635),t);n.__exportStar(o(71301),t);n.__exportStar(o(21268),t);n.__exportStar(o(7192),t)},89029:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(52562),t);n.__exportStar(o(26913),t);n.__exportStar(o(14994),t);n.__exportStar(o(65861),t);n.__exportStar(o(76527),t);n.__exportStar(o(48470),t);n.__exportStar(o(28045),t);n.__exportStar(o(67736),t);n.__exportStar(o(13268),t);n.__exportStar(o(90142),t);n.__exportStar(o(62338),t);n.__exportStar(o(99385),t);n.__exportStar(o(37521),t);n.__exportStar(o(76244),t);n.__exportStar(o(61393),t);n.__exportStar(o(10640),t);n.__exportStar(o(89910),t);n.__exportStar(o(36678),t);n.__exportStar(o(39931),t);n.__exportStar(o(42620),t);n.__exportStar(o(89062),t);n.__exportStar(o(89546),t);n.__exportStar(o(80316),t);n.__exportStar(o(57835),t);n.__exportStar(o(91678),t);n.__exportStar(o(93818),t);n.__exportStar(o(51991),t);n.__exportStar(o(24296),t);n.__exportStar(o(59416),t);n.__exportStar(o(92772),t);n.__exportStar(o(20134),t);n.__exportStar(o(34465),t)},89910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},42620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89062:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89546:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},91678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},93818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},24296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},59416:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RequestHandlerProtocol=void 0;var n=o(55756);Object.defineProperty(t,"RequestHandlerProtocol",{enumerable:true,get:function(){return n.RequestHandlerProtocol}})},92772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},20134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},34465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},81809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debugId=void 0;t.debugId="endpoints"},27617:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(81809),t);n.__exportStar(o(46833),t)},46833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDebugString=void 0;function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}t.toDebugString=toDebugString},13350:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(37482),t);n.__exportStar(o(73442),t);n.__exportStar(o(36563),t);n.__exportStar(o(57433),t)},46835:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(48079),t);n.__exportStar(o(34711),t);n.__exportStar(o(37482),t)},48079:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isVirtualHostableS3Bucket=void 0;const n=o(73442);const r=o(57373);const isVirtualHostableS3Bucket=(e,o=false)=>{if(o){for(const o of e.split(".")){if(!(0,t.isVirtualHostableS3Bucket)(o)){return false}}return true}if(!(0,r.isValidHostLabel)(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if((0,n.isIpAddress)(e)){return false}return true};t.isVirtualHostableS3Bucket=isVirtualHostableS3Bucket},34711:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseArn=void 0;const parseArn=e=>{const t=e.split(":");if(t.length<6)return null;const[o,n,r,s,i,...A]=t;if(o!=="arn"||n===""||r===""||A[0]==="")return null;return{partition:n,service:r,region:s,accountId:i,resourceId:A[0].includes("/")?A[0].split("/"):A}};t.parseArn=parseArn},37482:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentPrefix=t.useDefaultPartitionInfo=t.setPartitionInfo=t.partition=void 0;const n=o(4351);const r=n.__importDefault(o(95367));let s=r.default;let i="";const partition=e=>{const{partitions:t}=s;for(const o of t){const{regions:t,outputs:n}=o;for(const[o,r]of Object.entries(t)){if(o===e){return{...n,...r}}}}for(const o of t){const{regionRegex:t,outputs:n}=o;if(new RegExp(t).test(e)){return{...n}}}const o=t.find((e=>e.id==="aws"));if(!o){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...o.outputs}};t.partition=partition;const setPartitionInfo=(e,t="")=>{s=e;i=t};t.setPartitionInfo=setPartitionInfo;const useDefaultPartitionInfo=()=>{(0,t.setPartitionInfo)(r.default,"")};t.useDefaultPartitionInfo=useDefaultPartitionInfo;const getUserAgentPrefix=()=>i;t.getUserAgentPrefix=getUserAgentPrefix},55370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanEquals=void 0;const booleanEquals=(e,t)=>e===t;t.booleanEquals=booleanEquals},20767:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAttr=void 0;const n=o(57433);const r=o(81844);const getAttr=(e,t)=>(0,r.getAttrPathList)(t).reduce(((o,r)=>{if(typeof o!=="object"){throw new n.EndpointError(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(o)){return o[parseInt(r)]}return o[r]}),e);t.getAttr=getAttr},81844:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAttrPathList=void 0;const n=o(57433);const getAttrPathList=e=>{const t=e.split(".");const o=[];for(const r of t){const t=r.indexOf("[");if(t!==-1){if(r.indexOf("]")!==r.length-1){throw new n.EndpointError(`Path: '${e}' does not end with ']'`)}const s=r.slice(t+1,-1);if(Number.isNaN(parseInt(s))){throw new n.EndpointError(`Invalid array index: '${s}' in path: '${e}'`)}if(t!==0){o.push(r.slice(0,t))}o.push(s)}else{o.push(r)}}return o};t.getAttrPathList=getAttrPathList},83188:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.aws=void 0;const n=o(4351);t.aws=n.__importStar(o(46835));n.__exportStar(o(55370),t);n.__exportStar(o(20767),t);n.__exportStar(o(78816),t);n.__exportStar(o(57373),t);n.__exportStar(o(29692),t);n.__exportStar(o(22780),t);n.__exportStar(o(55182),t);n.__exportStar(o(48305),t);n.__exportStar(o(6535),t)},73442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIpAddress=void 0;const o=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>o.test(e)||e.startsWith("[")&&e.endsWith("]");t.isIpAddress=isIpAddress},78816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSet=void 0;const isSet=e=>e!=null;t.isSet=isSet},57373:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostLabel=void 0;const o=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,n=false)=>{if(!n){return o.test(e)}const r=e.split(".");for(const e of r){if(!(0,t.isValidHostLabel)(e)){return false}}return true};t.isValidHostLabel=isValidHostLabel},29692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.not=void 0;const not=e=>!e;t.not=not},22780:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseURL=void 0;const n=o(89029);const r=o(73442);const s={[n.EndpointURLScheme.HTTP]:80,[n.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:o,protocol:n="",path:r="",query:s={}}=e;const i=new URL(`${n}//${t}${o?`:${o}`:""}${r}`);i.search=Object.entries(s).map((([e,t])=>`${e}=${t}`)).join("&");return i}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const o=t.href;const{host:i,hostname:A,pathname:a,protocol:c,search:u}=t;if(u){return null}const l=c.slice(0,-1);if(!Object.values(n.EndpointURLScheme).includes(l)){return null}const d=(0,r.isIpAddress)(A);const g=o.includes(`${i}:${s[l]}`)||typeof e==="string"&&e.includes(`${i}:${s[l]}`);const E=`${i}${g?`:${s[l]}`:``}`;return{scheme:l,authority:E,path:a,normalizedPath:a.endsWith("/")?a:`${a}/`,isIp:d}};t.parseURL=parseURL},55182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringEquals=void 0;const stringEquals=(e,t)=>e===t;t.stringEquals=stringEquals},48305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.substring=void 0;const substring=(e,t,o,n)=>{if(t>=o||e.length<o){return null}if(!n){return e.substring(t,o)}return e.substring(e.length-o,e.length-t)};t.substring=substring},6535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uriEncode=void 0;const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));t.uriEncode=uriEncode},36563:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpoint=void 0;const n=o(27617);const r=o(57433);const s=o(81114);const resolveEndpoint=(e,t)=>{var o,i,A,a,c,u;const{endpointParams:l,logger:d}=t;const{parameters:g,rules:E}=e;(i=(o=t.logger)===null||o===void 0?void 0:o.debug)===null||i===void 0?void 0:i.call(o,`${n.debugId} Initial EndpointParams: ${(0,n.toDebugString)(l)}`);const p=Object.entries(g).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(p.length>0){for(const[e,t]of p){l[e]=(A=l[e])!==null&&A!==void 0?A:t}}const C=Object.entries(g).filter((([,e])=>e.required)).map((([e])=>e));for(const e of C){if(l[e]==null){throw new r.EndpointError(`Missing required parameter: '${e}'`)}}const h=(0,s.evaluateRules)(E,{endpointParams:l,logger:d,referenceRecord:{}});if((a=t.endpointParams)===null||a===void 0?void 0:a.Endpoint){try{const e=new URL(t.endpointParams.Endpoint);const{protocol:o,port:n}=e;h.url.protocol=o;h.url.port=n}catch(e){}}(u=(c=t.logger)===null||c===void 0?void 0:c.debug)===null||u===void 0?void 0:u.call(c,`${n.debugId} Resolved endpoint: ${(0,n.toDebugString)(h)}`);return h};t.resolveEndpoint=resolveEndpoint},82605:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointError=void 0;class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}t.EndpointError=EndpointError},21261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},20312:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},56083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57433:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(82605),t);n.__exportStar(o(21261),t);n.__exportStar(o(20312),t);n.__exportStar(o(56083),t);n.__exportStar(o(21767),t);n.__exportStar(o(41811),t)},41811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},65075:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callFunction=void 0;const n=o(4351);const r=n.__importStar(o(83188));const s=o(82980);const callFunction=({fn:e,argv:t},o)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:(0,s.evaluateExpression)(e,"arg",o)));return e.split(".").reduce(((e,t)=>e[t]),r)(...n)};t.callFunction=callFunction},77851:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateCondition=void 0;const n=o(27617);const r=o(57433);const s=o(65075);const evaluateCondition=({assign:e,...t},o)=>{var i,A;if(e&&e in o.referenceRecord){throw new r.EndpointError(`'${e}' is already defined in Reference Record.`)}const a=(0,s.callFunction)(t,o);(A=(i=o.logger)===null||i===void 0?void 0:i.debug)===null||A===void 0?void 0:A.call(i,n.debugId,`evaluateCondition: ${(0,n.toDebugString)(t)} = ${(0,n.toDebugString)(a)}`);return{result:a===""?true:!!a,...e!=null&&{toAssign:{name:e,value:a}}}};t.evaluateCondition=evaluateCondition},59169:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateConditions=void 0;const n=o(27617);const r=o(77851);const evaluateConditions=(e=[],t)=>{var o,s;const i={};for(const A of e){const{result:e,toAssign:a}=(0,r.evaluateCondition)(A,{...t,referenceRecord:{...t.referenceRecord,...i}});if(!e){return{result:e}}if(a){i[a.name]=a.value;(s=(o=t.logger)===null||o===void 0?void 0:o.debug)===null||s===void 0?void 0:s.call(o,n.debugId,`assign: ${a.name} := ${(0,n.toDebugString)(a.value)}`)}}return{result:true,referenceRecord:i}};t.evaluateConditions=evaluateConditions},35324:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateEndpointRule=void 0;const n=o(27617);const r=o(59169);const s=o(88268);const i=o(34973);const A=o(23602);const evaluateEndpointRule=(e,t)=>{var o,a;const{conditions:c,endpoint:u}=e;const{result:l,referenceRecord:d}=(0,r.evaluateConditions)(c,t);if(!l){return}const g={...t,referenceRecord:{...t.referenceRecord,...d}};const{url:E,properties:p,headers:C}=u;(a=(o=t.logger)===null||o===void 0?void 0:o.debug)===null||a===void 0?void 0:a.call(o,n.debugId,`Resolving endpoint from template: ${(0,n.toDebugString)(u)}`);return{...C!=undefined&&{headers:(0,s.getEndpointHeaders)(C,g)},...p!=undefined&&{properties:(0,i.getEndpointProperties)(p,g)},url:(0,A.getEndpointUrl)(E,g)}};t.evaluateEndpointRule=evaluateEndpointRule},12110:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateErrorRule=void 0;const n=o(57433);const r=o(59169);const s=o(82980);const evaluateErrorRule=(e,t)=>{const{conditions:o,error:i}=e;const{result:A,referenceRecord:a}=(0,r.evaluateConditions)(o,t);if(!A){return}throw new n.EndpointError((0,s.evaluateExpression)(i,"Error",{...t,referenceRecord:{...t.referenceRecord,...a}}))};t.evaluateErrorRule=evaluateErrorRule},82980:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateExpression=void 0;const n=o(57433);const r=o(65075);const s=o(57535);const i=o(68810);const evaluateExpression=(e,t,o)=>{if(typeof e==="string"){return(0,s.evaluateTemplate)(e,o)}else if(e["fn"]){return(0,r.callFunction)(e,o)}else if(e["ref"]){return(0,i.getReferenceValue)(e,o)}throw new n.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};t.evaluateExpression=evaluateExpression},59738:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateRules=void 0;const n=o(57433);const r=o(35324);const s=o(12110);const i=o(26587);const evaluateRules=(e,t)=>{for(const o of e){if(o.type==="endpoint"){const e=(0,r.evaluateEndpointRule)(o,t);if(e){return e}}else if(o.type==="error"){(0,s.evaluateErrorRule)(o,t)}else if(o.type==="tree"){const e=(0,i.evaluateTreeRule)(o,t);if(e){return e}}else{throw new n.EndpointError(`Unknown endpoint rule: ${o}`)}}throw new n.EndpointError(`Rules evaluation failed`)};t.evaluateRules=evaluateRules},57535:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateTemplate=void 0;const n=o(83188);const evaluateTemplate=(e,t)=>{const o=[];const r={...t.endpointParams,...t.referenceRecord};let s=0;while(s<e.length){const t=e.indexOf("{",s);if(t===-1){o.push(e.slice(s));break}o.push(e.slice(s,t));const i=e.indexOf("}",t);if(i===-1){o.push(e.slice(t));break}if(e[t+1]==="{"&&e[i+1]==="}"){o.push(e.slice(t+1,i));s=i+2}const A=e.substring(t+1,i);if(A.includes("#")){const[e,t]=A.split("#");o.push((0,n.getAttr)(r[e],t))}else{o.push(r[A])}s=i+1}return o.join("")};t.evaluateTemplate=evaluateTemplate},26587:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluateTreeRule=void 0;const n=o(59169);const r=o(59738);const evaluateTreeRule=(e,t)=>{const{conditions:o,rules:s}=e;const{result:i,referenceRecord:A}=(0,n.evaluateConditions)(o,t);if(!i){return}return(0,r.evaluateRules)(s,{...t,referenceRecord:{...t.referenceRecord,...A}})};t.evaluateTreeRule=evaluateTreeRule},88268:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointHeaders=void 0;const n=o(57433);const r=o(82980);const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[o,s])=>({...e,[o]:s.map((e=>{const s=(0,r.evaluateExpression)(e,"Header value entry",t);if(typeof s!=="string"){throw new n.EndpointError(`Header '${o}' value '${s}' is not a string`)}return s}))})),{});t.getEndpointHeaders=getEndpointHeaders},34973:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointProperties=void 0;const n=o(42978);const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[o,r])=>({...e,[o]:(0,n.getEndpointProperty)(r,t)})),{});t.getEndpointProperties=getEndpointProperties},42978:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointProperty=void 0;const n=o(57433);const r=o(57535);const s=o(34973);const getEndpointProperty=(e,o)=>{if(Array.isArray(e)){return e.map((e=>(0,t.getEndpointProperty)(e,o)))}switch(typeof e){case"string":return(0,r.evaluateTemplate)(e,o);case"object":if(e===null){throw new n.EndpointError(`Unexpected endpoint property: ${e}`)}return(0,s.getEndpointProperties)(e,o);case"boolean":return e;default:throw new n.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};t.getEndpointProperty=getEndpointProperty},23602:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrl=void 0;const n=o(57433);const r=o(82980);const getEndpointUrl=(e,t)=>{const o=(0,r.evaluateExpression)(e,"Endpoint URL",t);if(typeof o==="string"){try{return new URL(o)}catch(e){console.error(`Failed to construct URL with ${o}`,e);throw e}}throw new n.EndpointError(`Endpoint URL must be a string, got ${typeof o}`)};t.getEndpointUrl=getEndpointUrl},68810:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getReferenceValue=void 0;const getReferenceValue=({ref:e},t)=>{const o={...t.endpointParams,...t.referenceRecord};return o[e]};t.getReferenceValue=getReferenceValue},81114:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(59738),t)},98095:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultUserAgent=t.UA_APP_ID_INI_NAME=t.UA_APP_ID_ENV_NAME=void 0;const n=o(33461);const r=o(22037);const s=o(77282);const i=o(68390);t.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";t.UA_APP_ID_INI_NAME="sdk-ua-app-id";const defaultUserAgent=({serviceId:e,clientVersion:o})=>{const A=[["aws-sdk-js",o],["ua","2.0"],[`os/${(0,r.platform)()}`,(0,r.release)()],["lang/js"],["md/nodejs",`${s.versions.node}`]];const a=(0,i.isCrtAvailable)();if(a){A.push(a)}if(e){A.push([`api/${e}`,o])}if(s.env.AWS_EXECUTION_ENV){A.push([`exec-env/${s.env.AWS_EXECUTION_ENV}`])}const c=(0,n.loadConfig)({environmentVariableSelector:e=>e[t.UA_APP_ID_ENV_NAME],configFileSelector:e=>e[t.UA_APP_ID_INI_NAME],default:undefined})();let u=undefined;return async()=>{if(!u){const e=await c;u=e?[...A,[`app/${e}`]]:[...A]}return u}};t.defaultUserAgent=defaultUserAgent},68390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCrtAvailable=void 0;const isCrtAvailable=()=>{try{if(true&&o(87578)){return["md/crt-avail"]}return null}catch(e){return null}};t.isCrtAvailable=isCrtAvailable},28172:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const n=o(21590);const r=o(89215);const fromUtf8=e=>typeof TextEncoder==="function"?(0,r.fromUtf8)(e):(0,n.fromUtf8)(e);t.fromUtf8=fromUtf8;const toUtf8=e=>typeof TextDecoder==="function"?(0,r.toUtf8)(e):(0,n.toUtf8)(e);t.toUtf8=toUtf8},21590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;const fromUtf8=e=>{const t=[];for(let o=0,n=e.length;o<n;o++){const n=e.charCodeAt(o);if(n<128){t.push(n)}else if(n<2048){t.push(n>>6|192,n&63|128)}else if(o+1<e.length&&(n&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320){const r=65536+((n&1023)<<10)+(e.charCodeAt(++o)&1023);t.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{t.push(n>>12|224,n>>6&63|128,n&63|128)}}return Uint8Array.from(t)};t.fromUtf8=fromUtf8;const toUtf8=e=>{let t="";for(let o=0,n=e.length;o<n;o++){const n=e[o];if(n<128){t+=String.fromCharCode(n)}else if(192<=n&&n<224){const r=e[++o];t+=String.fromCharCode((n&31)<<6|r&63)}else if(240<=n&&n<365){const r=[n,e[++o],e[++o],e[++o]];const s="%"+r.map((e=>e.toString(16))).join("%");t+=decodeURIComponent(s)}else{t+=String.fromCharCode((n&15)<<12|(e[++o]&63)<<6|e[++o]&63)}}return t};t.toUtf8=toUtf8},89215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=t.fromUtf8=void 0;function fromUtf8(e){return(new TextEncoder).encode(e)}t.fromUtf8=fromUtf8;function toUtf8(e){return new TextDecoder("utf-8").decode(e)}t.toUtf8=toUtf8},91949:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Exec=void 0;const i=s(o(42186));const A=s(o(71514));class Exec{static async exec(e,t,o){i.debug(`Exec.exec: ${e} ${t?.join(" ")}`);return A.exec(e,t,o)}static async getExecOutput(e,t,o){i.debug(`Exec.getExecOutput: ${e} ${t?.join(" ")}`);return A.getExecOutput(e,t,o)}}t.Exec=Exec},56618:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.run=void 0;const i=s(o(42186));const A=!!process.env["STATE_isPost"];if(!A){i.saveState("isPost","true")}async function run(e,t){if(!A){try{await e()}catch(e){i.setFailed(e.message)}}else if(t){await t()}}t.run=run},2856:(e,t,o)=>{"use strict";const n=o(84492).Writable;const r=o(47261).inherits;const s=o(88534);const i=o(38710);const A=o(90333);const a=45;const c=Buffer.from("-");const u=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}n.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new A(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}r(Dicer,n);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{n.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,o){if(!this._hparser&&!this._bparser){return o()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new i(this._partOpts);if(this._events.preamble){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t<e.length){e=e.slice(t)}else{return o()}}if(this._firstWrite){this._bparser.push(u);this._firstWrite=false}this._bparser.push(e);if(this._pause){this._cb=o}else{o()}};Dicer.prototype.reset=function(){this._part=undefined;this._bparser=undefined;this._hparser=undefined};Dicer.prototype.setBoundary=function(e){const t=this;this._bparser=new s("\r\n--"+e);this._bparser.on("info",(function(e,o,n,r){t._oninfo(e,o,n,r)}))};Dicer.prototype._ignore=function(){if(this._part&&!this._ignoreData){this._ignoreData=true;this._part.on("error",EMPTY_FN);this._part.resume()}};Dicer.prototype._oninfo=function(e,t,o,n){let r;const s=this;let A=0;let u;let l=true;if(!this._part&&this._justMatched&&t){while(this._dashes<2&&o+A<n){if(t[o+A]===a){++A;++this._dashes}else{if(this._dashes){r=c}this._dashes=0;break}}if(this._dashes===2){if(o+A<n&&this._events.trailer){this.emit("trailer",t.slice(o+A,n))}this.reset();this._finished=true;if(s._parts===0){s._realFinish=true;s.emit("finish");s._realFinish=false}}if(this._dashes){return}}if(this._justMatched){this._justMatched=false}if(!this._part){this._part=new i(this._partOpts);this._part._read=function(e){s._unpause()};if(this._isPreamble&&this._events.preamble){this.emit("preamble",this._part)}else if(this._isPreamble!==true&&this._events.part){this.emit("part",this._part)}else{this._ignore()}if(!this._isPreamble){this._inHeader=true}}if(t&&o<n&&!this._ignoreData){if(this._isPreamble||!this._inHeader){if(r){l=this._part.push(r)}l=this._part.push(t.slice(o,n));if(!l){this._pause=true}}else if(!this._isPreamble&&this._inHeader){if(r){this._hparser.push(r)}u=this._hparser.push(t.slice(o,n));if(!this._inHeader&&u!==undefined&&u<n){this._oninfo(false,t,o+u,n)}}}if(e){this._hparser.reset();if(this._isPreamble){this._isPreamble=false}else{if(o!==n){++this._parts;this._part.on("end",(function(){if(--s._parts===0){if(s._finished){s._realFinish=true;s.emit("finish");s._realFinish=false}else{s._unpause()}}}))}}this._part.push(null);this._part=undefined;this._ignoreData=false;this._justMatched=true;this._dashes=0}};Dicer.prototype._unpause=function(){if(!this._pause){return}this._pause=false;if(this._cb){const e=this._cb;this._cb=undefined;e()}};e.exports=Dicer},90333:(e,t,o)=>{"use strict";const n=o(15673).EventEmitter;const r=o(47261).inherits;const s=o(49692);const i=o(88534);const A=Buffer.from("\r\n\r\n");const a=/\r\n/g;const c=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){n.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=s(e,"maxHeaderPairs",2e3);this.maxHeaderSize=s(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new i(A);this.ss.on("info",(function(e,o,n,r){if(o&&!t.maxed){if(t.nread+r-n>=t.maxHeaderSize){r=t.maxHeaderSize-t.nread+n;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=r-n}t.buffer+=o.toString("binary",n,r)}if(e){t._finish()}}))}r(HeaderParser,n);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(a);const t=e.length;let o,n;for(var r=0;r<t;++r){if(e[r].length===0){continue}if(e[r][0]==="\t"||e[r][0]===" "){if(n){this.header[n][this.header[n].length-1]+=e[r];continue}}const t=e[r].indexOf(":");if(t===-1||t===0){return}o=c.exec(e[r]);n=o[1].toLowerCase();this.header[n]=this.header[n]||[];this.header[n].push(o[2]||"");if(++this.npairs===this.maxHeaderPairs){break}}};e.exports=HeaderParser},38710:(e,t,o)=>{"use strict";const n=o(47261).inherits;const r=o(84492).Readable;function PartStream(e){r.call(this,e)}n(PartStream,r);PartStream.prototype._read=function(e){};e.exports=PartStream},88534:(e,t,o)=>{"use strict";const n=o(15673).EventEmitter;const r=o(47261).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var o=0;o<t-1;++o){this._occ[e[o]]=t-1-o}}r(SBMH,n);SBMH.prototype.reset=function(){this._lookbehind_size=0;this.matches=0;this._bufpos=0};SBMH.prototype.push=function(e,t){if(!Buffer.isBuffer(e)){e=Buffer.from(e,"binary")}const o=e.length;this._bufpos=t||0;let n;while(n!==o&&this.matches<this.maxMatches){n=this._sbmh_feed(e)}return n};SBMH.prototype._sbmh_feed=function(e){const t=e.length;const o=this._needle;const n=o.length;const r=o[n-1];let s=-this._lookbehind_size;let i;if(s<0){while(s<0&&s<=t-n){i=this._sbmh_lookup_char(e,s+n-1);if(i===r&&this._sbmh_memcmp(e,s,n-1)){this._lookbehind_size=0;++this.matches;this.emit("info",true);return this._bufpos=s+n}s+=this._occ[i]}if(s<0){while(s<0&&!this._sbmh_memcmp(e,s,t-s)){++s}}if(s>=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const o=this._lookbehind_size+s;if(o>0){this.emit("info",false,this._lookbehind,0,o)}this._lookbehind.copy(this._lookbehind,0,o,this._lookbehind_size-o);this._lookbehind_size-=o;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}s+=(s>=0)*this._bufpos;if(e.indexOf(o,s)!==-1){s=e.indexOf(o,s);++this.matches;if(s>0){this.emit("info",true,e,this._bufpos,s)}else{this.emit("info",true)}return this._bufpos=s+n}else{s=t-n}while(s<t&&(e[s]!==o[0]||Buffer.compare(e.subarray(s,s+t-s),o.subarray(0,t-s))!==0)){++s}if(s<t){e.copy(this._lookbehind,0,s,s+(t-s));this._lookbehind_size=t-s}if(s>0){this.emit("info",false,e,this._bufpos,s<t?s:t)}this._bufpos=t;return t};SBMH.prototype._sbmh_lookup_char=function(e,t){return t<0?this._lookbehind[this._lookbehind_size+t]:e[t]};SBMH.prototype._sbmh_memcmp=function(e,t,o){for(var n=0;n<o;++n){if(this._sbmh_lookup_char(e,t+n)!==this._needle[n]){return false}}return true};e.exports=SBMH},33438:(e,t,o)=>{"use strict";const n=o(84492).Writable;const{inherits:r}=o(47261);const s=o(2856);const i=o(90415);const A=o(16780);const a=o(34426);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...o}=e;this.opts={autoDestroy:false,...o};n.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}r(Busboy,n);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}n.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=a(e["content-type"]);const o={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(i.detect.test(t[0])){return new i(this,o)}if(A.detect.test(t[0])){return new A(this,o)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,o){this._parser.write(e,o)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=s},90415:(e,t,o)=>{"use strict";const{Readable:n}=o(84492);const{inherits:r}=o(47261);const s=o(2856);const i=o(34426);const A=o(99136);const a=o(60496);const c=o(49692);const u=/^boundary$/i;const l=/^form-data$/i;const d=/^charset$/i;const g=/^filename$/i;const E=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let o;let n;const r=this;let p;const C=t.limits;const h=t.isPartAFile||((e,t,o)=>t==="application/octet-stream"||o!==undefined);const f=t.parsedConType||[];const m=t.defCharset||"utf8";const I=t.preservePath;const y={highWaterMark:t.fileHwm};for(o=0,n=f.length;o<n;++o){if(Array.isArray(f[o])&&u.test(f[o][0])){p=f[o][1];break}}function checkFinished(){if(P===0&&k&&!e._done){k=false;r.end()}}if(typeof p!=="string"){throw new Error("Multipart: Boundary not found")}const Q=c(C,"fieldSize",1*1024*1024);const B=c(C,"fileSize",Infinity);const w=c(C,"files",Infinity);const S=c(C,"fields",Infinity);const b=c(C,"parts",Infinity);const R=c(C,"headerPairs",2e3);const v=c(C,"headerSize",80*1024);let D=0;let _=0;let P=0;let x;let N;let k=false;this._needDrain=false;this._pause=false;this._cb=undefined;this._nparts=0;this._boy=e;const F={boundary:p,maxHeaderPairs:R,maxHeaderSize:v,partHwm:y.highWaterMark,highWaterMark:t.highWaterMark};this.parser=new s(F);this.parser.on("drain",(function(){r._needDrain=false;if(r._cb&&!r._pause){const e=r._cb;r._cb=undefined;e()}})).on("part",(function onPart(t){if(++r._nparts>b){r.parser.removeListener("part",onPart);r.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(N){const e=N;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(s){let c;let u;let p;let C;let f;let b;let R=0;if(s["content-type"]){p=i(s["content-type"][0]);if(p[0]){c=p[0].toLowerCase();for(o=0,n=p.length;o<n;++o){if(d.test(p[o][0])){C=p[o][1].toLowerCase();break}}}}if(c===undefined){c="text/plain"}if(C===undefined){C=m}if(s["content-disposition"]){p=i(s["content-disposition"][0]);if(!l.test(p[0])){return skipPart(t)}for(o=0,n=p.length;o<n;++o){if(E.test(p[o][0])){u=p[o][1]}else if(g.test(p[o][0])){b=p[o][1];if(!I){b=a(b)}}}}else{return skipPart(t)}if(s["content-transfer-encoding"]){f=s["content-transfer-encoding"][0].toLowerCase()}else{f="7bit"}let v,k;if(h(u,c,b)){if(D===w){if(!e.hitFilesLimit){e.hitFilesLimit=true;e.emit("filesLimit")}return skipPart(t)}++D;if(!e._events.file){r.parser._ignore();return}++P;const o=new FileStream(y);x=o;o.on("end",(function(){--P;r._pause=false;checkFinished();if(r._cb&&!r._needDrain){const e=r._cb;r._cb=undefined;e()}}));o._read=function(e){if(!r._pause){return}r._pause=false;if(r._cb&&!r._needDrain){const e=r._cb;r._cb=undefined;e()}};e.emit("file",u,o,b,f,c);v=function(e){if((R+=e.length)>B){const n=B-R+e.length;if(n>0){o.push(e.slice(0,n))}o.truncated=true;o.bytesRead=B;t.removeAllListeners("data");o.emit("limit");return}else if(!o.push(e)){r._pause=true}o.bytesRead=R};k=function(){x=undefined;o.push(null)}}else{if(_===S){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++_;++P;let o="";let n=false;N=t;v=function(e){if((R+=e.length)>Q){const r=Q-(R-e.length);o+=e.toString("binary",0,r);n=true;t.removeAllListeners("data")}else{o+=e.toString("binary")}};k=function(){N=undefined;if(o.length){o=A(o,"binary",C)}e.emit("field",u,o,false,n,f,c);--P;checkFinished()}}t._readableState.sync=false;t.on("data",v);t.on("end",k)})).on("error",(function(e){if(x){x.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){k=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const o=this.parser.write(e);if(o&&!this._pause){t()}else{this._needDrain=!o;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){n.call(this,e);this.bytesRead=0;this.truncated=false}r(FileStream,n);FileStream.prototype._read=function(e){};e.exports=Multipart},16780:(e,t,o)=>{"use strict";const n=o(89730);const r=o(99136);const s=o(49692);const i=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const o=t.limits;const r=t.parsedConType;this.boy=e;this.fieldSizeLimit=s(o,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=s(o,"fieldNameSize",100);this.fieldsLimit=s(o,"fields",Infinity);let A;for(var a=0,c=r.length;a<c;++a){if(Array.isArray(r[a])&&i.test(r[a][0])){A=r[a][1].toLowerCase();break}}if(A===undefined){A=t.defCharset||"utf8"}this.decoder=new n;this.charset=A;this._fields=0;this._state="key";this._checkingBytes=true;this._bytesKey=0;this._bytesVal=0;this._key="";this._val="";this._keyTrunc=false;this._valTrunc=false;this._hitLimit=false}UrlEncoded.prototype.write=function(e,t){if(this._fields===this.fieldsLimit){if(!this.boy.hitFieldsLimit){this.boy.hitFieldsLimit=true;this.boy.emit("fieldsLimit")}return t()}let o;let n;let s;let i=0;const A=e.length;while(i<A){if(this._state==="key"){o=n=undefined;for(s=i;s<A;++s){if(!this._checkingBytes){++i}if(e[s]===61){o=s;break}else if(e[s]===38){n=s;break}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=true;break}else if(this._checkingBytes){++this._bytesKey}}if(o!==undefined){if(o>i){this._key+=this.decoder.write(e.toString("binary",i,o))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();i=o+1}else if(n!==undefined){++this._fields;let o;const s=this._keyTrunc;if(n>i){o=this._key+=this.decoder.write(e.toString("binary",i,n))}else{o=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(o.length){this.boy.emit("field",r(o,"binary",this.charset),"",s,false)}i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(s>i){this._key+=this.decoder.write(e.toString("binary",i,s))}i=s;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(i<A){this._key+=this.decoder.write(e.toString("binary",i))}i=A}}else{n=undefined;for(s=i;s<A;++s){if(!this._checkingBytes){++i}if(e[s]===38){n=s;break}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=true;break}else if(this._checkingBytes){++this._bytesVal}}if(n!==undefined){++this._fields;if(n>i){this._val+=this.decoder.write(e.toString("binary",i,n))}this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();i=n+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(s>i){this._val+=this.decoder.write(e.toString("binary",i,s))}i=s;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(i<A){this._val+=this.decoder.write(e.toString("binary",i))}i=A}}}t()};UrlEncoded.prototype.end=function(){if(this.boy._done){return}if(this._state==="key"&&this._key.length>0){this.boy.emit("field",r(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},89730:e=>{"use strict";const t=/\+/g;const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let n="";let r=0;let s=0;const i=e.length;for(;r<i;++r){if(this.buffer!==undefined){if(!o[e.charCodeAt(r)]){n+="%"+this.buffer;this.buffer=undefined;--r}else{this.buffer+=e[r];++s;if(this.buffer.length===2){n+=String.fromCharCode(parseInt(this.buffer,16));this.buffer=undefined}}}else if(e[r]==="%"){if(r>s){n+=e.substring(s,r);s=r}this.buffer="";++s}}if(s<i&&this.buffer===undefined){n+=e.substring(s)}return n};Decoder.prototype.reset=function(){this.buffer=undefined};e.exports=Decoder},60496:e=>{"use strict";e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},99136:e=>{"use strict";const t=new TextDecoder("utf-8");const o=new Map([["utf-8",t],["utf8",t]]);function decodeText(e,t,n){if(e){if(o.has(n)){try{return o.get(n).decode(Buffer.from(e,t))}catch(e){}}else{try{o.set(n,new TextDecoder(n));return o.get(n).decode(Buffer.from(e,t))}catch(e){}}}return e}e.exports=decodeText},49692:e=>{"use strict";e.exports=function getLimit(e,t,o){if(!e||e[t]===undefined||e[t]===null){return o}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},34426:(e,t,o)=>{"use strict";const n=o(99136);const r=/%([a-fA-F0-9]{2})/g;function encodedReplacer(e,t){return String.fromCharCode(parseInt(t,16))}function parseParams(e){const t=[];let o="key";let s="";let i=false;let A=false;let a=0;let c="";for(var u=0,l=e.length;u<l;++u){const l=e[u];if(l==="\\"&&i){if(A){A=false}else{A=true;continue}}else if(l==='"'){if(!A){if(i){i=false;o="key"}else{i=true}continue}else{A=false}}else{if(A&&i){c+="\\"}A=false;if((o==="charset"||o==="lang")&&l==="'"){if(o==="charset"){o="lang";s=c.substring(1)}else{o="value"}c="";continue}else if(o==="key"&&(l==="*"||l==="=")&&t.length){if(l==="*"){o="charset"}else{o="value"}t[a]=[c,undefined];c="";continue}else if(!i&&l===";"){o="key";if(s){if(c.length){c=n(c.replace(r,encodedReplacer),"binary",s)}s=""}else if(c.length){c=n(c,"binary","utf8")}if(t[a]===undefined){t[a]=c}else{t[a][1]=c}c="";++a;continue}else if(!i&&(l===" "||l==="\t")){continue}}c+=l}if(s&&c.length){c=n(c.replace(r,encodedReplacer),"binary",s)}else if(c){c=n(c,"binary","utf8")}if(t[a]===undefined){if(c){t[a]=c}}else{t[a][1]=c}return t}e.exports=parseParams},43779:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_DUALSTACK_ENDPOINT=t.CONFIG_USE_DUALSTACK_ENDPOINT=t.ENV_USE_DUALSTACK_ENDPOINT=void 0;const n=o(83375);t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";t.DEFAULT_USE_DUALSTACK_ENDPOINT=false;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,n.booleanSelector)(e,t.ENV_USE_DUALSTACK_ENDPOINT,n.SelectorType.ENV),configFileSelector:e=>(0,n.booleanSelector)(e,t.CONFIG_USE_DUALSTACK_ENDPOINT,n.SelectorType.CONFIG),default:false}},17994:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=t.DEFAULT_USE_FIPS_ENDPOINT=t.CONFIG_USE_FIPS_ENDPOINT=t.ENV_USE_FIPS_ENDPOINT=void 0;const n=o(83375);t.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";t.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";t.DEFAULT_USE_FIPS_ENDPOINT=false;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,n.booleanSelector)(e,t.ENV_USE_FIPS_ENDPOINT,n.SelectorType.ENV),configFileSelector:e=>(0,n.booleanSelector)(e,t.CONFIG_USE_FIPS_ENDPOINT,n.SelectorType.CONFIG),default:false}},18421:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(43779),t);n.__exportStar(o(17994),t);n.__exportStar(o(37432),t);n.__exportStar(o(61892),t)},37432:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveCustomEndpointsConfig=void 0;const n=o(2390);const resolveCustomEndpointsConfig=e=>{var t,o;const{endpoint:r,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:true,endpoint:(0,n.normalizeProvider)(typeof r==="string"?s(r):r),isCustomEndpoint:true,useDualstackEndpoint:(0,n.normalizeProvider)((o=e.useDualstackEndpoint)!==null&&o!==void 0?o:false)}};t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig},61892:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointsConfig=void 0;const n=o(2390);const r=o(48570);const resolveEndpointsConfig=e=>{var t,o;const s=(0,n.normalizeProvider)((t=e.useDualstackEndpoint)!==null&&t!==void 0?t:false);const{endpoint:i,useFipsEndpoint:A,urlParser:a}=e;return{...e,tls:(o=e.tls)!==null&&o!==void 0?o:true,endpoint:i?(0,n.normalizeProvider)(typeof i==="string"?a(i):i):()=>(0,r.getEndpointFromRegion)({...e,useDualstackEndpoint:s,useFipsEndpoint:A}),isCustomEndpoint:!!i,useDualstackEndpoint:s}};t.resolveEndpointsConfig=resolveEndpointsConfig},48570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromRegion=void 0;const getEndpointFromRegion=async e=>{var t;const{tls:o=true}=e;const n=await e.region();const r=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!r.test(n)){throw new Error("Invalid region in client config")}const s=await e.useDualstackEndpoint();const i=await e.useFipsEndpoint();const{hostname:A}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:s,useFipsEndpoint:i}))!==null&&t!==void 0?t:{};if(!A){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${o?"https:":"http:"}//${A}`)};t.getEndpointFromRegion=getEndpointFromRegion},53098:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(18421),t);n.__exportStar(o(221),t);n.__exportStar(o(86985),t)},33898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_REGION_CONFIG_FILE_OPTIONS=t.NODE_REGION_CONFIG_OPTIONS=t.REGION_INI_NAME=t.REGION_ENV_NAME=void 0;t.REGION_ENV_NAME="AWS_REGION";t.REGION_INI_NAME="region";t.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.REGION_ENV_NAME],configFileSelector:e=>e[t.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};t.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}},49506:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRealRegion=void 0;const n=o(43870);const getRealRegion=e=>(0,n.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;t.getRealRegion=getRealRegion},221:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(33898),t);n.__exportStar(o(87065),t)},43870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFipsRegion=void 0;const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));t.isFipsRegion=isFipsRegion},87065:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRegionConfig=void 0;const n=o(49506);const r=o(43870);const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:o}=e;if(!t){throw new Error("Region is missing")}return{...e,region:async()=>{if(typeof t==="string"){return(0,n.getRealRegion)(t)}const e=await t();return(0,n.getRealRegion)(e)},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if((0,r.isFipsRegion)(e)){return true}return typeof o!=="function"?Promise.resolve(!!o):o()}}};t.resolveRegionConfig=resolveRegionConfig},19814:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},99760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHostnameFromVariants=void 0;const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:o})=>{var n;return(n=e.find((({tags:e})=>t===e.includes("fips")&&o===e.includes("dualstack"))))===null||n===void 0?void 0:n.hostname};t.getHostnameFromVariants=getHostnameFromVariants},77792:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRegionInfo=void 0;const n=o(99760);const r=o(1487);const s=o(44441);const i=o(92281);const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:o=false,signingService:A,regionHash:a,partitionHash:c})=>{var u,l,d,g,E,p;const C=(0,s.getResolvedPartition)(e,{partitionHash:c});const h=e in a?e:(l=(u=c[C])===null||u===void 0?void 0:u.endpoint)!==null&&l!==void 0?l:e;const f={useFipsEndpoint:t,useDualstackEndpoint:o};const m=(0,n.getHostnameFromVariants)((d=a[h])===null||d===void 0?void 0:d.variants,f);const I=(0,n.getHostnameFromVariants)((g=c[C])===null||g===void 0?void 0:g.variants,f);const y=(0,r.getResolvedHostname)(h,{regionHostname:m,partitionHostname:I});if(y===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:o}}`)}const Q=(0,i.getResolvedSigningRegion)(y,{signingRegion:(E=a[h])===null||E===void 0?void 0:E.signingRegion,regionRegex:c[C].regionRegex,useFipsEndpoint:t});return{partition:C,signingService:A,hostname:y,...Q&&{signingRegion:Q},...((p=a[h])===null||p===void 0?void 0:p.signingService)&&{signingService:a[h].signingService}}};t.getRegionInfo=getRegionInfo},1487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedHostname=void 0;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:o})=>t?t:o?o.replace("{region}",e):undefined;t.getResolvedHostname=getResolvedHostname},44441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedPartition=void 0;const getResolvedPartition=(e,{partitionHash:t})=>{var o;return(o=Object.keys(t||{}).find((o=>t[o].regions.includes(e))))!==null&&o!==void 0?o:"aws"};t.getResolvedPartition=getResolvedPartition},92281:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResolvedSigningRegion=void 0;const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:o,useFipsEndpoint:n})=>{if(t){return t}else if(n){const t=o.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const n=e.match(t);if(n){return n[0].slice(1,-1)}}};t.getResolvedSigningRegion=getResolvedSigningRegion},86985:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(19814),t);n.__exportStar(o(14832),t);n.__exportStar(o(77792),t)},18044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var o;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(o=t.Endpoint||(t.Endpoint={}))},57342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_NAME=t.ENV_ENDPOINT_NAME=void 0;t.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";t.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";t.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_NAME],default:undefined}},80991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var o;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(o=t.EndpointMode||(t.EndpointMode={}))},88337:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_MODE_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_MODE_NAME=t.ENV_ENDPOINT_MODE_NAME=void 0;const n=o(80991);t.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";t.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";t.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_MODE_NAME],default:n.EndpointMode.IPv4}},89227:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=t.ENV_CMDS_AUTH_TOKEN=t.ENV_CMDS_RELATIVE_URI=t.ENV_CMDS_FULL_URI=void 0;const n=o(79721);const r=o(57310);const s=o(32199);const i=o(6894);const A=o(98533);const a=o(91351);t.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";t.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";t.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:o}=(0,A.providerConfigFromInit)(e);return()=>(0,a.retry)((async()=>{const e=await getCmdsUri();const o=JSON.parse(await requestFromEcsImds(t,e));if(!(0,i.isImdsCredentials)(o)){throw new n.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(o)}),o)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,o)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){o.headers={...o.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const n=await(0,s.httpRequest)({...o,timeout:e});return n.toString()};const c="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const l={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:c,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=(0,r.parse)(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new n.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in l)){throw new n.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new n.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${t.ENV_CMDS_RELATIVE_URI} or ${t.ENV_CMDS_FULL_URI} environment`+" variable is set",false)}},52207:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const n=o(79721);const r=o(32199);const s=o(6894);const i=o(98533);const A=o(91351);const a=o(92460);const c=o(74035);const u="/latest/meta-data/iam/security-credentials/";const l="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,c.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:o,maxRetries:n}=(0,i.providerConfigFromInit)(e);const getCredentials=async(e,o)=>{const n=(await(0,A.retry)((async()=>{let e;try{e=await getProfile(o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return(0,A.retry)((async()=>{let e;try{e=await getCredentialsFromProfile(n,o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await(0,a.getInstanceMetadataEndpoint)();if(t){return getCredentials(n,{...e,timeout:o})}else{let r;try{r=(await getMetadataToken({...e,timeout:o})).toString()}catch(r){if((r===null||r===void 0?void 0:r.statusCode)===400){throw Object.assign(r,{message:"EC2 Metadata token request returned error"})}else if(r.message==="TimeoutError"||[403,404,405].includes(r.statusCode)){t=true}return getCredentials(n,{...e,timeout:o})}return getCredentials(n,{...e,headers:{"x-aws-ec2-metadata-token":r},timeout:o})}}};const getMetadataToken=async e=>(0,r.httpRequest)({...e,path:l,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await(0,r.httpRequest)({...e,path:u})).toString();const getCredentialsFromProfile=async(e,t)=>{const o=JSON.parse((await(0,r.httpRequest)({...t,path:u+e})).toString());if(!(0,s.isImdsCredentials)(o)){throw new n.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.fromImdsCredentials)(o)}},7477:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const n=o(4351);n.__exportStar(o(89227),t);n.__exportStar(o(52207),t);n.__exportStar(o(98533),t);n.__exportStar(o(45036),t);var r=o(32199);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return r.httpRequest}});var s=o(92460);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return s.getInstanceMetadataEndpoint}})},6894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromImdsCredentials=t.isImdsCredentials=void 0;const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";t.isImdsCredentials=isImdsCredentials;const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});t.fromImdsCredentials=fromImdsCredentials},98533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.providerConfigFromInit=t.DEFAULT_MAX_RETRIES=t.DEFAULT_TIMEOUT=void 0;t.DEFAULT_TIMEOUT=1e3;t.DEFAULT_MAX_RETRIES=0;const providerConfigFromInit=({maxRetries:e=t.DEFAULT_MAX_RETRIES,timeout:o=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:o});t.providerConfigFromInit=providerConfigFromInit},32199:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const n=o(79721);const r=o(14300);const s=o(13685);function httpRequest(e){return new Promise(((t,o)=>{var i;const A=(0,s.request)({method:"GET",...e,hostname:(i=e.hostname)===null||i===void 0?void 0:i.replace(/^\[(.+)\]$/,"$1")});A.on("error",(e=>{o(Object.assign(new n.ProviderError("Unable to connect to instance metadata service"),e));A.destroy()}));A.on("timeout",(()=>{o(new n.ProviderError("TimeoutError from instance metadata service"));A.destroy()}));A.on("response",(e=>{const{statusCode:s=400}=e;if(s<200||300<=s){o(Object.assign(new n.ProviderError("Error response received from instance metadata service"),{statusCode:s}));A.destroy()}const i=[];e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t(r.Buffer.concat(i));A.destroy()}))}));A.end()}))}t.httpRequest=httpRequest},91351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let o=e();for(let n=0;n<t;n++){o=o.catch(e)}return o};t.retry=retry},45036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},22666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtendedInstanceMetadataCredentials=void 0;const o=5*60;const n=5*60;const r="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{var s;const i=o+Math.floor(Math.random()*n);const A=new Date(Date.now()+i*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+r);const a=(s=e.originalExpiration)!==null&&s!==void 0?s:e.expiration;return{...e,...a?{originalExpiration:a}:{},expiration:A}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},92460:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const n=o(33461);const r=o(14681);const s=o(18044);const i=o(57342);const A=o(80991);const a=o(88337);const getInstanceMetadataEndpoint=async()=>(0,r.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,n.loadConfig)(i.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,n.loadConfig)(a.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case A.EndpointMode.IPv4:return s.Endpoint.IPv4;case A.EndpointMode.IPv6:return s.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(A.EndpointMode)}`)}}},74035:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const n=o(22666);const staticStabilityProvider=(e,t={})=>{const o=(t===null||t===void 0?void 0:t.logger)||console;let r;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=(0,n.getExtendedInstanceMetadataCredentials)(t,o)}}catch(e){if(r){o.warn("Credential renew failed: ",e);t=(0,n.getExtendedInstanceMetadataCredentials)(r,o)}else{throw e}}r=t;return t}};t.staticStabilityProvider=staticStabilityProvider},11014:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EventStreamCodec=void 0;const n=o(47327);const r=o(74712);const s=o(20597);class EventStreamCodec{constructor(e,t){this.headerMarshaller=new r.HeaderMarshaller(e,t);this.messageBuffer=[];this.isEndOfStream=false}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=true}getMessage(){const e=this.messageBuffer.pop();const t=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return t}}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return t}}}encode({headers:e,body:t}){const o=this.headerMarshaller.format(e);const r=o.byteLength+t.byteLength+16;const s=new Uint8Array(r);const i=new DataView(s.buffer,s.byteOffset,s.byteLength);const A=new n.Crc32;i.setUint32(0,r,false);i.setUint32(4,o.byteLength,false);i.setUint32(8,A.update(s.subarray(0,8)).digest(),false);s.set(o,12);s.set(t,o.byteLength+12);i.setUint32(r-4,A.update(s.subarray(8,r-4)).digest(),false);return s}decode(e){const{headers:t,body:o}=(0,s.splitMessage)(e);return{headers:this.headerMarshaller.parse(t),body:o}}formatHeaders(e){return this.headerMarshaller.format(e)}}t.EventStreamCodec=EventStreamCodec},74712:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HeaderMarshaller=void 0;const n=o(45364);const r=o(46086);class HeaderMarshaller{constructor(e,t){this.toUtf8=e;this.fromUtf8=t}format(e){const t=[];for(const o of Object.keys(e)){const n=this.fromUtf8(o);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[o]))}const o=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t){o.set(e,n);n+=e.byteLength}return o}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const o=new DataView(new ArrayBuffer(5));o.setUint8(0,4);o.setInt32(1,e.value,false);return new Uint8Array(o.buffer);case"long":const s=new Uint8Array(9);s[0]=5;s.set(e.value.bytes,1);return s;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6);i.setUint16(1,e.value.byteLength,false);const A=new Uint8Array(i.buffer);A.set(e.value,3);return A;case"string":const a=this.fromUtf8(e.value);const c=new DataView(new ArrayBuffer(3+a.byteLength));c.setUint8(0,7);c.setUint16(1,a.byteLength,false);const u=new Uint8Array(c.buffer);u.set(a,3);return u;case"timestamp":const l=new Uint8Array(9);l[0]=8;l.set(r.Int64.fromNumber(e.value.valueOf()).bytes,1);return l;case"uuid":if(!p.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const d=new Uint8Array(17);d[0]=9;d.set((0,n.fromHex)(e.value.replace(/\-/g,"")),1);return d}}parse(e){const t={};let o=0;while(o<e.byteLength){const s=e.getUint8(o++);const p=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+o,s));o+=s;switch(e.getUint8(o++)){case 0:t[p]={type:i,value:true};break;case 1:t[p]={type:i,value:false};break;case 2:t[p]={type:A,value:e.getInt8(o++)};break;case 3:t[p]={type:a,value:e.getInt16(o,false)};o+=2;break;case 4:t[p]={type:c,value:e.getInt32(o,false)};o+=4;break;case 5:t[p]={type:u,value:new r.Int64(new Uint8Array(e.buffer,e.byteOffset+o,8))};o+=8;break;case 6:const s=e.getUint16(o,false);o+=2;t[p]={type:l,value:new Uint8Array(e.buffer,e.byteOffset+o,s)};o+=s;break;case 7:const C=e.getUint16(o,false);o+=2;t[p]={type:d,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+o,C))};o+=C;break;case 8:t[p]={type:g,value:new Date(new r.Int64(new Uint8Array(e.buffer,e.byteOffset+o,8)).valueOf())};o+=8;break;case 9:const h=new Uint8Array(e.buffer,e.byteOffset+o,16);o+=16;t[p]={type:E,value:`${(0,n.toHex)(h.subarray(0,4))}-${(0,n.toHex)(h.subarray(4,6))}-${(0,n.toHex)(h.subarray(6,8))}-${(0,n.toHex)(h.subarray(8,10))}-${(0,n.toHex)(h.subarray(10))}`};break;default:throw new Error(`Unrecognized header type tag`)}}return t}}t.HeaderMarshaller=HeaderMarshaller;var s;(function(e){e[e["boolTrue"]=0]="boolTrue";e[e["boolFalse"]=1]="boolFalse";e[e["byte"]=2]="byte";e[e["short"]=3]="short";e[e["integer"]=4]="integer";e[e["long"]=5]="long";e[e["byteArray"]=6]="byteArray";e[e["string"]=7]="string";e[e["timestamp"]=8]="timestamp";e[e["uuid"]=9]="uuid"})(s||(s={}));const i="boolean";const A="byte";const a="short";const c="integer";const u="long";const l="binary";const d="string";const g="timestamp";const E="uuid";const p=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/},46086:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Int64=void 0;const n=o(45364);class Int64{constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let o=7,n=Math.abs(Math.round(e));o>-1&&n>0;o--,n/=256){t[o]=n}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt((0,n.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}t.Int64=Int64;function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}},73684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageDecoderStream=void 0;class MessageDecoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}t.MessageDecoderStream=MessageDecoderStream},52362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageEncoderStream=void 0;class MessageEncoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}if(this.options.includeEndFrame){yield new Uint8Array(0)}}}t.MessageEncoderStream=MessageEncoderStream},62379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SmithyMessageDecoderStream=void 0;class SmithyMessageDecoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);if(t===undefined)continue;yield t}}}t.SmithyMessageDecoderStream=SmithyMessageDecoderStream},12484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SmithyMessageEncoderStream=void 0;class SmithyMessageEncoderStream{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}t.SmithyMessageEncoderStream=SmithyMessageEncoderStream},56459:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(11014),t);n.__exportStar(o(74712),t);n.__exportStar(o(46086),t);n.__exportStar(o(73684),t);n.__exportStar(o(57255),t);n.__exportStar(o(52362),t);n.__exportStar(o(62379),t);n.__exportStar(o(12484),t)},20597:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitMessage=void 0;const n=o(47327);const r=4;const s=r*2;const i=4;const A=s+i*2;function splitMessage({byteLength:e,byteOffset:t,buffer:o}){if(e<A){throw new Error("Provided message too short to accommodate event stream message overhead")}const a=new DataView(o,t,e);const c=a.getUint32(0,false);if(e!==c){throw new Error("Reported message length does not match received message length")}const u=a.getUint32(r,false);const l=a.getUint32(s,false);const d=a.getUint32(e-i,false);const g=(new n.Crc32).update(new Uint8Array(o,t,s));if(l!==g.digest()){throw new Error(`The prelude checksum specified in the message (${l}) does not match the calculated CRC32 checksum (${g.digest()})`)}g.update(new Uint8Array(o,t+s,e-(s+i)));if(d!==g.digest()){throw new Error(`The message checksum (${g.digest()}) did not match the expected value of ${d}`)}return{headers:new DataView(o,t+s+i,u),body:new Uint8Array(o,t+s+i+u,c-u-(s+i+i))}}t.splitMessage=splitMessage},3081:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;const n=o(31381);const r=o(41895);const s=o(14300);const i=o(6113);class Hash{constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update((0,r.toUint8Array)(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,i.createHmac)(this.algorithmIdentifier,castSourceData(this.secret)):(0,i.createHash)(this.algorithmIdentifier)}}t.Hash=Hash;function castSourceData(e,t){if(s.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return(0,n.fromString)(e,t)}if(ArrayBuffer.isView(e)){return(0,n.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength)}return(0,n.fromArrayBuffer)(e)}},10780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayBuffer=void 0;const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},82800:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getContentLengthPlugin=t.contentLengthMiddlewareOptions=t.contentLengthMiddleware=void 0;const n=o(64418);const r="content-length";function contentLengthMiddleware(e){return t=>async o=>{const s=o.request;if(n.HttpRequest.isInstance(s)){const{body:t,headers:o}=s;if(t&&Object.keys(o).map((e=>e.toLowerCase())).indexOf(r)===-1){try{const o=e(t);s.headers={...s.headers,[r]:String(o)}}catch(e){}}}return t({...o,request:s})}}t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:o=>{o.add(contentLengthMiddleware(e.bodyLengthChecker),t.contentLengthMiddlewareOptions)}});t.getContentLengthPlugin=getContentLengthPlugin},465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigValueProvider=void 0;const createConfigValueProvider=(e,t,o)=>{const configProvider=async()=>{var n;const r=(n=o[e])!==null&&n!==void 0?n:o[t];if(typeof r==="function"){return r()}return r};if(e==="endpoint"||t==="endpoint"){return async()=>{const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:o,port:n,path:r}=e;return`${t}//${o}${n?":"+n:""}${r}`}}return e}}return configProvider};t.createConfigValueProvider=createConfigValueProvider},73929:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveParams=t.getEndpointFromInstructions=void 0;const n=o(13105);const r=o(465);const getEndpointFromInstructions=async(e,o,n,r)=>{const s=await(0,t.resolveParams)(e,o,n);if(typeof n.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const i=n.endpointProvider(s,r);return i};t.getEndpointFromInstructions=getEndpointFromInstructions;const resolveParams=async(e,t,o)=>{var s;const i={};const A=((s=t===null||t===void 0?void 0:t.getEndpointParameterInstructions)===null||s===void 0?void 0:s.call(t))||{};for(const[t,n]of Object.entries(A)){switch(n.type){case"staticContextParams":i[t]=n.value;break;case"contextParams":i[t]=e[n.name];break;case"clientContextParams":case"builtInParams":i[t]=await(0,r.createConfigValueProvider)(n.name,t,o)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(n))}}if(Object.keys(A).length===0){Object.assign(i,o)}if(String(o.serviceId).toLowerCase()==="s3"){await(0,n.resolveParamsForS3)(i)}return i};t.resolveParams=resolveParams},50890:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(73929),t);n.__exportStar(o(38938),t)},38938:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toEndpointV1=void 0;const n=o(14681);const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){return(0,n.parseUrl)(e.url)}return e}return(0,n.parseUrl)(e)};t.toEndpointV1=toEndpointV1},55520:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.endpointMiddleware=void 0;const n=o(73929);const endpointMiddleware=({config:e,instructions:t})=>(o,r)=>async s=>{var i,A;const a=await(0,n.getEndpointFromInstructions)(s.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=a;r.authSchemes=(i=a.properties)===null||i===void 0?void 0:i.authSchemes;const c=(A=r.authSchemes)===null||A===void 0?void 0:A[0];if(c){r["signing_region"]=c.signingRegion;r["signing_service"]=c.signingName}return o({...s})};t.endpointMiddleware=endpointMiddleware},71329:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEndpointPlugin=t.endpointMiddlewareOptions=void 0;const n=o(81238);const r=o(55520);t.endpointMiddlewareOptions={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:n.serializerMiddlewareOption.name};const getEndpointPlugin=(e,o)=>({applyToStack:n=>{n.addRelativeTo((0,r.endpointMiddleware)({config:e,instructions:o}),t.endpointMiddlewareOptions)}});t.getEndpointPlugin=getEndpointPlugin},82918:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(50890),t);n.__exportStar(o(55520),t);n.__exportStar(o(71329),t);n.__exportStar(o(74139),t);n.__exportStar(o(39720),t)},74139:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveEndpointConfig=void 0;const n=o(2390);const r=o(38938);const resolveEndpointConfig=e=>{var t,o,s;const i=(t=e.tls)!==null&&t!==void 0?t:true;const{endpoint:A}=e;const a=A!=null?async()=>(0,r.toEndpointV1)(await(0,n.normalizeProvider)(A)()):undefined;const c=!!A;return{...e,endpoint:a,tls:i,isCustomEndpoint:c,useDualstackEndpoint:(0,n.normalizeProvider)((o=e.useDualstackEndpoint)!==null&&o!==void 0?o:false),useFipsEndpoint:(0,n.normalizeProvider)((s=e.useFipsEndpoint)!==null&&s!==void 0?s:false)}};t.resolveEndpointConfig=resolveEndpointConfig},13105:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(19194),t)},19194:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArnBucketName=t.isDnsCompatibleBucketName=t.S3_HOSTNAME_PATTERN=t.DOT_PATTERN=t.resolveParamsForS3=void 0;const resolveParamsForS3=async e=>{const o=(e===null||e===void 0?void 0:e.Bucket)||"";if(typeof e.Bucket==="string"){e.Bucket=o.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if((0,t.isArnBucketName)(o)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!(0,t.isDnsCompatibleBucketName)(o)||o.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||o.toLowerCase()!==o||o.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};t.resolveParamsForS3=resolveParamsForS3;const o=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const n=/(\d+\.){3}\d+/;const r=/\.\./;t.DOT_PATTERN=/\./;t.S3_HOSTNAME_PATTERN=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;const isDnsCompatibleBucketName=e=>o.test(e)&&!n.test(e)&&!r.test(e);t.isDnsCompatibleBucketName=isDnsCompatibleBucketName;const isArnBucketName=e=>{const[t,o,n,r,s,i]=e.split(":");const A=t==="arn"&&e.split(":").length>=6;const a=[t,o,n,s,i].filter(Boolean).length===5;if(A&&!a){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return t==="arn"&&!!o&&!!n&&!!s&&!!i};t.isArnBucketName=isArnBucketName},39720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},80155:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const n=o(84902);const r=o(94582);class AdaptiveRetryStrategy extends r.StandardRetryStrategy{constructor(e,t){const{rateLimiter:o,...r}=t!==null&&t!==void 0?t:{};super(e,r);this.rateLimiter=o!==null&&o!==void 0?o:new n.DefaultRateLimiter;this.mode=n.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},94582:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const n=o(64418);const r=o(6375);const s=o(84902);const i=o(75840);const A=o(29991);const a=o(9465);const c=o(67653);const u=o(42827);class StandardRetryStrategy{constructor(e,t){var o,n,r;this.maxAttemptsProvider=e;this.mode=s.RETRY_MODES.STANDARD;this.retryDecider=(o=t===null||t===void 0?void 0:t.retryDecider)!==null&&o!==void 0?o:c.defaultRetryDecider;this.delayDecider=(n=t===null||t===void 0?void 0:t.delayDecider)!==null&&n!==void 0?n:a.defaultDelayDecider;this.retryQuota=(r=t===null||t===void 0?void 0:t.retryQuota)!==null&&r!==void 0?r:(0,A.getDefaultRetryQuota)(s.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,o){return t<o&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=s.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,o){let A;let a=0;let c=0;const l=await this.getMaxAttempts();const{request:d}=t;if(n.HttpRequest.isInstance(d)){d.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)()}while(true){try{if(n.HttpRequest.isInstance(d)){d.headers[s.REQUEST_HEADER]=`attempt=${a+1}; max=${l}`}if(o===null||o===void 0?void 0:o.beforeRequest){await o.beforeRequest()}const{response:r,output:i}=await e(t);if(o===null||o===void 0?void 0:o.afterRequest){o.afterRequest(r)}this.retryQuota.releaseRetryTokens(A);i.$metadata.attempts=a+1;i.$metadata.totalRetryDelay=c;return{response:r,output:i}}catch(e){const t=(0,u.asSdkError)(e);a++;if(this.shouldRetry(t,a,l)){A=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,r.isThrottlingError)(t)?s.THROTTLING_RETRY_DELAY_BASE:s.DEFAULT_RETRY_DELAY_BASE,a);const o=getDelayFromRetryAfterHeader(t.$response);const n=Math.max(o||0,e);c+=n;await new Promise((e=>setTimeout(e,n)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=a;t.$metadata.totalRetryDelay=c;throw t}}}}t.StandardRetryStrategy=StandardRetryStrategy;const getDelayFromRetryAfterHeader=e=>{if(!n.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const r=Number(o);if(!Number.isNaN(r))return r*1e3;const s=new Date(o);return s.getTime()-Date.now()}},58709:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_RETRY_MODE_CONFIG_OPTIONS=t.CONFIG_RETRY_MODE=t.ENV_RETRY_MODE=t.resolveRetryConfig=t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=t.CONFIG_MAX_ATTEMPTS=t.ENV_MAX_ATTEMPTS=void 0;const n=o(2390);const r=o(84902);t.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";t.CONFIG_MAX_ATTEMPTS="max_attempts";t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{const o=e[t.ENV_MAX_ATTEMPTS];if(!o)return undefined;const n=parseInt(o);if(Number.isNaN(n)){throw new Error(`Environment variable ${t.ENV_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return n},configFileSelector:e=>{const o=e[t.CONFIG_MAX_ATTEMPTS];if(!o)return undefined;const n=parseInt(o);if(Number.isNaN(n)){throw new Error(`Shared config file entry ${t.CONFIG_MAX_ATTEMPTS} mast be a number, got "${o}"`)}return n},default:r.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{var t;const{retryStrategy:o}=e;const s=(0,n.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:r.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:s,retryStrategy:async()=>{if(o){return o}const t=await(0,n.normalizeProvider)(e.retryMode)();if(t===r.RETRY_MODES.ADAPTIVE){return new r.AdaptiveRetryStrategy(s)}return new r.StandardRetryStrategy(s)}}};t.resolveRetryConfig=resolveRetryConfig;t.ENV_RETRY_MODE="AWS_RETRY_MODE";t.CONFIG_RETRY_MODE="retry_mode";t.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_RETRY_MODE],configFileSelector:e=>e[t.CONFIG_RETRY_MODE],default:r.DEFAULT_RETRY_MODE}},29991:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryQuota=void 0;const n=o(84902);const getDefaultRetryQuota=(e,t)=>{var o,r,s;const i=e;const A=(o=t===null||t===void 0?void 0:t.noRetryIncrement)!==null&&o!==void 0?o:n.NO_RETRY_INCREMENT;const a=(r=t===null||t===void 0?void 0:t.retryCost)!==null&&r!==void 0?r:n.RETRY_COST;const c=(s=t===null||t===void 0?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:n.TIMEOUT_RETRY_COST;let u=e;const getCapacityAmount=e=>e.name==="TimeoutError"?c:a;const hasRetryTokens=e=>getCapacityAmount(e)<=u;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);u-=t;return t};const releaseRetryTokens=e=>{u+=e!==null&&e!==void 0?e:A;u=Math.min(u,i)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};t.getDefaultRetryQuota=getDefaultRetryQuota},9465:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultDelayDecider=void 0;const n=o(84902);const defaultDelayDecider=(e,t)=>Math.floor(Math.min(n.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));t.defaultDelayDecider=defaultDelayDecider},96039:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(80155),t);n.__exportStar(o(94582),t);n.__exportStar(o(58709),t);n.__exportStar(o(9465),t);n.__exportStar(o(76556),t);n.__exportStar(o(67653),t);n.__exportStar(o(81434),t)},76556:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOmitRetryHeadersPlugin=t.omitRetryHeadersMiddlewareOptions=t.omitRetryHeadersMiddleware=void 0;const n=o(64418);const r=o(84902);const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:o}=t;if(n.HttpRequest.isInstance(o)){delete o.headers[r.INVOCATION_ID_HEADER];delete o.headers[r.REQUEST_HEADER]}return e(t)};t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo((0,t.omitRetryHeadersMiddleware)(),t.omitRetryHeadersMiddlewareOptions)}});t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin},67653:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryDecider=void 0;const n=o(6375);const defaultRetryDecider=e=>{if(!e){return false}return(0,n.isRetryableByTrait)(e)||(0,n.isClockSkewError)(e)||(0,n.isThrottlingError)(e)||(0,n.isTransientError)(e)};t.defaultRetryDecider=defaultRetryDecider},81434:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRetryAfterHint=t.getRetryPlugin=t.retryMiddlewareOptions=t.retryMiddleware=void 0;const n=o(64418);const r=o(6375);const s=o(84902);const i=o(75840);const A=o(42827);const retryMiddleware=e=>(t,o)=>async r=>{let a=await e.retryStrategy();const c=await e.maxAttempts();if(isRetryStrategyV2(a)){a=a;let e=await a.acquireInitialRetryToken(o["partition_id"]);let u=new Error;let l=0;let d=0;const{request:g}=r;if(n.HttpRequest.isInstance(g)){g.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)()}while(true){try{if(n.HttpRequest.isInstance(g)){g.headers[s.REQUEST_HEADER]=`attempt=${l+1}; max=${c}`}const{response:o,output:i}=await t(r);a.recordSuccess(e);i.$metadata.attempts=l+1;i.$metadata.totalRetryDelay=d;return{response:o,output:i}}catch(t){const o=getRetryErrorInfo(t);u=(0,A.asSdkError)(t);try{e=await a.refreshRetryTokenForRetry(e,o)}catch(e){if(!u.$metadata){u.$metadata={}}u.$metadata.attempts=l+1;u.$metadata.totalRetryDelay=d;throw u}l=e.getRetryCount();const n=e.getRetryDelay();d+=n;await new Promise((e=>setTimeout(e,n)))}}}else{a=a;if(a===null||a===void 0?void 0:a.mode)o.userAgent=[...o.userAgent||[],["cfg/retry-mode",a.mode]];return a.retry(t,r)}};t.retryMiddleware=retryMiddleware;const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const o={errorType:getRetryErrorType(e)};const n=(0,t.getRetryAfterHint)(e.$response);if(n){o.retryAfterHint=n}return o};const getRetryErrorType=e=>{if((0,r.isThrottlingError)(e))return"THROTTLING";if((0,r.isTransientError)(e))return"TRANSIENT";if((0,r.isServerError)(e))return"SERVER_ERROR";return"CLIENT_ERROR"};t.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:o=>{o.add((0,t.retryMiddleware)(e),t.retryMiddlewareOptions)}});t.getRetryPlugin=getRetryPlugin;const getRetryAfterHint=e=>{if(!n.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const o=e.headers[t];const r=Number(o);if(!Number.isNaN(r))return new Date(r*1e3);const s=new Date(o);return s};t.getRetryAfterHint=getRetryAfterHint},42827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asSdkError=void 0;const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};t.asSdkError=asSdkError},21595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializerMiddleware=void 0;const deserializerMiddleware=(e,t)=>(o,n)=>async n=>{const{response:r}=await o(n);try{const o=await t(r,e);return{response:r,output:o}}catch(e){Object.defineProperty(e,"$response",{value:r});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;e.message+="\n "+t}throw e}};t.deserializerMiddleware=deserializerMiddleware},81238:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(21595),t);n.__exportStar(o(72338),t);n.__exportStar(o(23566),t)},72338:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSerdePlugin=t.serializerMiddlewareOption=t.deserializerMiddlewareOption=void 0;const n=o(21595);const r=o(23566);t.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};t.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,o,s){return{applyToStack:i=>{i.add((0,n.deserializerMiddleware)(e,s),t.deserializerMiddlewareOption);i.add((0,r.serializerMiddleware)(e,o),t.serializerMiddlewareOption)}}}t.getSerdePlugin=getSerdePlugin},23566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializerMiddleware=void 0;const serializerMiddleware=(e,t)=>(o,n)=>async r=>{var s;const i=((s=n.endpointV2)===null||s===void 0?void 0:s.url)&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i){throw new Error("No valid endpoint provider available.")}const A=await t(r.input,{...e,endpoint:i});return o({...r,request:A})};t.serializerMiddleware=serializerMiddleware},2404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constructStack=void 0;const constructStack=()=>{let e=[];let r=[];const s=new Set;const sort=e=>e.sort(((e,t)=>o[t.step]-o[e.step]||n[t.priority||"normal"]-n[e.priority||"normal"]));const removeByName=t=>{let o=false;const filterCb=e=>{if(e.name&&e.name===t){o=true;s.delete(t);return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return o};const removeByReference=t=>{let o=false;const filterCb=e=>{if(e.middleware===t){o=true;if(e.name)s.delete(e.name);return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return o};const cloneTo=t=>{e.forEach((e=>{t.add(e.middleware,{...e})}));r.forEach((e=>{t.addRelativeTo(e.middleware,{...e})}));return t};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(t=false)=>{const o=[];const n=[];const s={};e.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;o.push(t)}));r.forEach((e=>{const t={...e,before:[],after:[]};if(t.name)s[t.name]=t;n.push(t)}));n.forEach((e=>{if(e.toMiddleware){const o=s[e.toMiddleware];if(o===undefined){if(t){return}throw new Error(`${e.toMiddleware} is not found when adding ${e.name||"anonymous"} middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){o.after.push(e)}if(e.relation==="before"){o.before.push(e)}}}));const i=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return i};const i={add:(t,o={})=>{const{name:n,override:r}=o;const i={step:"initialize",priority:"normal",middleware:t,...o};if(n){if(s.has(n)){if(!r)throw new Error(`Duplicate middleware name '${n}'`);const t=e.findIndex((e=>e.name===n));const o=e[t];if(o.step!==i.step||o.priority!==i.priority){throw new Error(`"${n}" middleware with ${o.priority} priority in ${o.step} step cannot be `+`overridden by same-name middleware with ${i.priority} priority in ${i.step} step.`)}e.splice(t,1)}s.add(n)}e.push(i)},addRelativeTo:(e,t)=>{const{name:o,override:n}=t;const i={middleware:e,...t};if(o){if(s.has(o)){if(!n)throw new Error(`Duplicate middleware name '${o}'`);const e=r.findIndex((e=>e.name===o));const t=r[e];if(t.toMiddleware!==i.toMiddleware||t.relation!==i.relation){throw new Error(`"${o}" middleware ${t.relation} "${t.toMiddleware}" middleware cannot be overridden `+`by same-name middleware ${i.relation} "${i.toMiddleware}" middleware.`)}r.splice(e,1)}s.add(o)}r.push(i)},clone:()=>cloneTo((0,t.constructStack)()),use:e=>{e.applyToStack(i)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:t=>{let o=false;const filterCb=e=>{const{tags:n,name:r}=e;if(n&&n.includes(t)){if(r)s.delete(r);o=true;return false}return true};e=e.filter(filterCb);r=r.filter(filterCb);return o},concat:e=>{const o=cloneTo((0,t.constructStack)());o.use(e);return o},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>e.name+": "+(e.tags||[]).join(","))),resolve:(e,t)=>{for(const o of getMiddlewareList().map((e=>e.middleware)).reverse()){e=o(e,t)}return e}};return i};t.constructStack=constructStack;const o={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const n={high:3,normal:2,low:1}},97911:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(2404),t)},54766:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=void 0;const n=o(21473);const r=o(15606);const s=o(45784);const i=o(23091);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:o},A={})=>(0,n.memoize)((0,n.chain)((0,r.fromEnv)(e),(0,s.fromSharedConfigFiles)(t,A),(0,i.fromStatic)(o)));t.loadConfig=loadConfig},15606:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEnv=void 0;const n=o(21473);const fromEnv=e=>async()=>{try{const t=e(process.env);if(t===undefined){throw new Error}return t}catch(t){throw new n.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};t.fromEnv=fromEnv},45784:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSharedConfigFiles=void 0;const n=o(21473);const r=o(43507);const fromSharedConfigFiles=(e,{preferredFile:t="config",...o}={})=>async()=>{const s=(0,r.getProfileName)(o);const{configFile:i,credentialsFile:A}=await(0,r.loadSharedConfigFiles)(o);const a=A[s]||{};const c=i[s]||{};const u=t==="config"?{...a,...c}:{...c,...a};try{const t=e(u);if(t===undefined){throw new Error}return t}catch(t){throw new n.CredentialsProviderError(t.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}};t.fromSharedConfigFiles=fromSharedConfigFiles},23091:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const n=o(21473);const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():(0,n.fromStatic)(e);t.fromStatic=fromStatic},33461:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(54766),t)},12218:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const n=o(14014);class CredentialsProviderError extends n.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},14014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},52729:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const n=o(14014);class TokenProviderError extends n.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},25775:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const n=o(14014);const chain=(...e)=>async()=>{if(e.length===0){throw new n.ProviderError("No providers in chain")}let t;for(const o of e){try{const e=await o();return e}catch(e){t=e;if(e===null||e===void 0?void 0:e.tryNextLink){continue}throw e}}throw t};t.chain=chain},38623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},21473:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(12218),t);n.__exportStar(o(14014),t);n.__exportStar(o(52729),t);n.__exportStar(o(25775),t);n.__exportStar(o(38623),t);n.__exportStar(o(27487),t)},27487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let n;let r;let s;let i=false;const coalesceProvider=async()=>{if(!r){r=e()}try{n=await r;s=true;i=false}finally{r=undefined}return n};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){n=await coalesceProvider()}return n}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){n=await coalesceProvider()}if(i){return n}if(o&&!o(n)){i=true;return n}if(t(n)){await coalesceProvider();return n}return n}};t.memoize=memoize},33946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=void 0;t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]},70508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTransformedHeaders=void 0;const getTransformedHeaders=e=>{const t={};for(const o of Object.keys(e)){const n=e[o];t[o]=Array.isArray(n)?n.join(","):n}return t};t.getTransformedHeaders=getTransformedHeaders},20258:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(96948),t);n.__exportStar(o(46999),t);n.__exportStar(o(81030),t)},96948:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttpHandler=t.DEFAULT_REQUEST_TIMEOUT=void 0;const n=o(64418);const r=o(68031);const s=o(13685);const i=o(95687);const A=o(33946);const a=o(70508);const c=o(25545);const u=o(83751);const l=o(42618);const d=o(73766);t.DEFAULT_REQUEST_TIMEOUT=0;class NodeHttpHandler{constructor(e){this.metadata={handlerProtocol:"http/1.1"};this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(o)}else{t(this.resolveDefaultConfig(e))}}))}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:o,socketTimeout:n,httpAgent:r,httpsAgent:A}=e||{};const a=true;const c=50;return{connectionTimeout:o,requestTimeout:t!==null&&t!==void 0?t:n,httpAgent:r||new s.Agent({keepAlive:a,maxSockets:c}),httpsAgent:A||new i.Agent({keepAlive:a,maxSockets:c})}}destroy(){var e,t,o,n;(t=(e=this.config)===null||e===void 0?void 0:e.httpAgent)===null||t===void 0?void 0:t.destroy();(n=(o=this.config)===null||o===void 0?void 0:o.httpsAgent)===null||n===void 0?void 0:n.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider}return new Promise(((o,g)=>{var E,p;let C=undefined;const resolve=async e=>{await C;o(e)};const reject=async e=>{await C;g(e)};if(!this.config){throw new Error("Node HTTP request handler config is not resolved")}if(t===null||t===void 0?void 0:t.aborted){const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const h=e.protocol==="https:";const f=(0,r.buildQueryString)(e.query||{});let m=undefined;if(e.username!=null||e.password!=null){const t=(E=e.username)!==null&&E!==void 0?E:"";const o=(p=e.password)!==null&&p!==void 0?p:"";m=`${t}:${o}`}let I=e.path;if(f){I+=`?${f}`}if(e.fragment){I+=`#${e.fragment}`}const y={headers:e.headers,host:e.hostname,method:e.method,path:I,port:e.port,agent:h?this.config.httpsAgent:this.config.httpAgent,auth:m};const Q=h?i.request:s.request;const B=Q(y,(e=>{const t=new n.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:(0,a.getTransformedHeaders)(e.headers),body:e});resolve({response:t})}));B.on("error",(e=>{if(A.NODEJS_TIMEOUT_ERROR_CODES.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));(0,c.setConnectionTimeout)(B,reject,this.config.connectionTimeout);(0,l.setSocketTimeout)(B,reject,this.config.requestTimeout);if(t){t.onabort=()=>{B.abort();const e=new Error("Request aborted");e.name="AbortError";reject(e)}}const w=y.agent;if(typeof w==="object"&&"keepAlive"in w){(0,u.setSocketKeepAlive)(B,{keepAlive:w.keepAlive,keepAliveMsecs:w.keepAliveMsecs})}C=(0,d.writeRequestBody)(B,e,this.config.requestTimeout).catch(g)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((o=>({...o,[e]:t})))}httpHandlerConfigs(){var e;return(e=this.config)!==null&&e!==void 0?e:{}}}t.NodeHttpHandler=NodeHttpHandler},5771:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2ConnectionManager=void 0;const n=o(4351);const r=n.__importDefault(o(85158));const s=o(95157);class NodeHttp2ConnectionManager{constructor(e){this.sessionCache=new Map;this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}lease(e,t){const o=this.getUrlString(e);const n=this.sessionCache.get(o);if(n){const e=n.poll();if(e&&!this.config.disableConcurrency){return e}}const i=r.default.connect(o);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(o,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(o,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const A=this.sessionCache.get(o)||new s.NodeHttp2ConnectionPool;A.offerLast(i);this.sessionCache.set(o,A);return i}deleteSession(e,t){const o=this.sessionCache.get(e);if(!o){return}if(!o.contains(t)){return}o.remove(t);this.sessionCache.set(e,o)}release(e,t){var o;const n=this.getUrlString(e);(o=this.sessionCache.get(n))===null||o===void 0?void 0:o.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}t.NodeHttp2ConnectionManager=NodeHttp2ConnectionManager},95157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2ConnectionPool=void 0;class NodeHttp2ConnectionPool{constructor(e){this.sessions=[];this.sessions=e!==null&&e!==void 0?e:[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}t.NodeHttp2ConnectionPool=NodeHttp2ConnectionPool},46999:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NodeHttp2Handler=void 0;const n=o(64418);const r=o(68031);const s=o(85158);const i=o(70508);const A=o(5771);const a=o(73766);class NodeHttp2Handler{constructor(e){this.metadata={handlerProtocol:"h2"};this.connectionManager=new A.NodeHttp2ConnectionManager({});this.configProvider=new Promise(((t,o)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(o)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:o,disableConcurrentStreams:A}=this.config;return new Promise(((c,u)=>{var l,d,g;let E=false;let p=undefined;const resolve=async e=>{await p;c(e)};const reject=async e=>{await p;u(e)};if(t===null||t===void 0?void 0:t.aborted){E=true;const e=new Error("Request aborted");e.name="AbortError";reject(e);return}const{hostname:C,method:h,port:f,protocol:m,query:I}=e;let y="";if(e.username!=null||e.password!=null){const t=(l=e.username)!==null&&l!==void 0?l:"";const o=(d=e.password)!==null&&d!==void 0?d:"";y=`${t}:${o}@`}const Q=`${m}//${y}${C}${f?`:${f}`:""}`;const B={destination:new URL(Q)};const w=this.connectionManager.lease(B,{requestTimeout:(g=this.config)===null||g===void 0?void 0:g.sessionTimeout,disableConcurrentStreams:A||false});const rejectWithDestroy=e=>{if(A){this.destroySession(w)}E=true;reject(e)};const S=(0,r.buildQueryString)(I||{});let b=e.path;if(S){b+=`?${S}`}if(e.fragment){b+=`#${e.fragment}`}const R=w.request({...e.headers,[s.constants.HTTP2_HEADER_PATH]:b,[s.constants.HTTP2_HEADER_METHOD]:h});w.ref();R.on("response",(e=>{const t=new n.HttpResponse({statusCode:e[":status"]||-1,headers:(0,i.getTransformedHeaders)(e),body:R});E=true;resolve({response:t});if(A){w.close();this.connectionManager.deleteSession(Q,w)}}));if(o){R.setTimeout(o,(()=>{R.close();const e=new Error(`Stream timed out because of no activity for ${o} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){t.onabort=()=>{R.close();const e=new Error("Request aborted");e.name="AbortError";rejectWithDestroy(e)}}R.on("frameError",((e,t,o)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${o} has failed with code ${t}.`))}));R.on("error",rejectWithDestroy);R.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${R.rstCode}.`))}));R.on("close",(()=>{w.unref();if(A){w.destroy()}if(!E){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));p=(0,a.writeRequestBody)(R,e,o)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((o=>({...o,[e]:t})))}httpHandlerConfigs(){var e;return(e=this.config)!==null&&e!==void 0?e:{}}destroySession(e){if(!e.destroyed){e.destroy()}}}t.NodeHttp2Handler=NodeHttp2Handler},25545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setConnectionTimeout=void 0;const setConnectionTimeout=(e,t,o=0)=>{if(!o){return}const n=setTimeout((()=>{e.destroy();t(Object.assign(new Error(`Socket timed out without establishing a connection within ${o} ms`),{name:"TimeoutError"}))}),o);e.on("socket",(e=>{if(e.connecting){e.on("connect",(()=>{clearTimeout(n)}))}else{clearTimeout(n)}}))};t.setConnectionTimeout=setConnectionTimeout},83751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketKeepAlive=void 0;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:o})=>{if(t!==true){return}e.on("socket",(e=>{e.setKeepAlive(t,o||0)}))};t.setSocketKeepAlive=setSocketKeepAlive},42618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setSocketTimeout=void 0;const setSocketTimeout=(e,t,o=0)=>{e.setTimeout(o,(()=>{e.destroy();t(Object.assign(new Error(`Connection timed out after ${o} ms`),{name:"TimeoutError"}))}))};t.setSocketTimeout=setSocketTimeout},23211:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Collector=void 0;const n=o(12781);class Collector extends n.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,o){this.bufferedBytes.push(e);o()}}t.Collector=Collector},81030:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streamCollector=void 0;const n=o(23211);const streamCollector=e=>new Promise(((t,o)=>{const r=new n.Collector;e.pipe(r);e.on("error",(e=>{r.end();o(e)}));r.on("error",o);r.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}));t.streamCollector=streamCollector},73766:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.writeRequestBody=void 0;const n=o(12781);const r=1e3;async function writeRequestBody(e,t,o=r){var n;const s=(n=t.headers)!==null&&n!==void 0?n:{};const i=s["Expect"]||s["expect"];let A=-1;let a=false;if(i==="100-continue"){await Promise.race([new Promise((e=>{A=Number(setTimeout(e,Math.max(r,o)))})),new Promise((t=>{e.on("continue",(()=>{clearTimeout(A);t()}));e.on("error",(()=>{a=true;clearTimeout(A);t()}))}))])}if(!a){writeBody(e,t.body)}}t.writeRequestBody=writeRequestBody;function writeBody(e,t){if(t instanceof n.Readable){t.pipe(e)}else if(t){e.end(Buffer.from(t))}else{e.end()}}},63936:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const n=o(23324);class CredentialsProviderError extends n.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},23324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},50429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const n=o(23324);class TokenProviderError extends n.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},45079:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const n=o(23324);function chain(...e){return()=>{let t=Promise.reject(new n.ProviderError("No providers in chain"));for(const o of e){t=t.catch((e=>{if(e===null||e===void 0?void 0:e.tryNextLink){return o()}throw e}))}return t}}t.chain=chain},51322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},79721:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(63936),t);n.__exportStar(o(23324),t);n.__exportStar(o(50429),t);n.__exportStar(o(45079),t);n.__exportStar(o(51322),t);n.__exportStar(o(49762),t)},49762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let n;let r;let s;let i=false;const coalesceProvider=async()=>{if(!r){r=e()}try{n=await r;s=true;i=false}finally{r=undefined}return n};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){n=await coalesceProvider()}return n}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){n=await coalesceProvider()}if(i){return n}if(o&&!o(n)){i=true;return n}if(t(n)){await coalesceProvider();return n}return n}};t.memoize=memoize},89179:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Field=void 0;const n=o(55756);class Field{constructor({name:e,kind:t=n.FieldPosition.HEADER,values:o=[]}){this.name=e;this.kind=t;this.values=o}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}t.Field=Field},99242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Fields=void 0;class Fields{constructor({fields:e=[],encoding:t="utf-8"}){this.entries={};e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}t.Fields=Fields},22474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpHandlerRuntimeConfig=t.getHttpHandlerExtensionConfiguration=void 0;const getHttpHandlerExtensionConfiguration=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler(){return t},updateHttpClientConfig(e,o){t.updateHttpClientConfig(e,o)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}};t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},91654:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(22474),t)},63206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},38746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpRequest=void 0;class HttpRequest{constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static isInstance(e){if(!e)return false;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){const e=new HttpRequest({...this,headers:{...this.headers}});if(e.query)e.query=cloneQuery(e.query);return e}}t.HttpRequest=HttpRequest;function cloneQuery(e){return Object.keys(e).reduce(((t,o)=>{const n=e[o];return{...t,[o]:Array.isArray(n)?[...n]:n}}),{})}},26322:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpResponse=void 0;class HttpResponse{constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}t.HttpResponse=HttpResponse},64418:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(91654),t);n.__exportStar(o(89179),t);n.__exportStar(o(99242),t);n.__exportStar(o(63206),t);n.__exportStar(o(38746),t);n.__exportStar(o(26322),t);n.__exportStar(o(61466),t);n.__exportStar(o(19135),t)},61466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidHostname=void 0;function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.isValidHostname=isValidHostname},19135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68031:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildQueryString=void 0;const n=o(54197);function buildQueryString(e){const t=[];for(let o of Object.keys(e).sort()){const r=e[o];o=(0,n.escapeUri)(o);if(Array.isArray(r)){for(let e=0,s=r.length;e<s;e++){t.push(`${o}=${(0,n.escapeUri)(r[e])}`)}}else{let e=o;if(r||typeof r==="string"){e+=`=${(0,n.escapeUri)(r)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},4769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseQueryString=void 0;function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const o of e.split("&")){let[e,n=null]=o.split("=");e=decodeURIComponent(e);if(n){n=decodeURIComponent(n)}if(!(e in t)){t[e]=n}else if(Array.isArray(t[e])){t[e].push(n)}else{t[e]=[t[e],n]}}}return t}t.parseQueryString=parseQueryString},68415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODEJS_TIMEOUT_ERROR_CODES=t.TRANSIENT_ERROR_STATUS_CODES=t.TRANSIENT_ERROR_CODES=t.THROTTLING_ERROR_CODES=t.CLOCK_SKEW_ERROR_CODES=void 0;t.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];t.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];t.TRANSIENT_ERROR_CODES=["TimeoutError","RequestTimeout","RequestTimeoutException"];t.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504];t.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"]},6375:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isServerError=t.isTransientError=t.isThrottlingError=t.isClockSkewError=t.isRetryableByTrait=void 0;const n=o(68415);const isRetryableByTrait=e=>e.$retryable!==undefined;t.isRetryableByTrait=isRetryableByTrait;const isClockSkewError=e=>n.CLOCK_SKEW_ERROR_CODES.includes(e.name);t.isClockSkewError=isClockSkewError;const isThrottlingError=e=>{var t,o;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||n.THROTTLING_ERROR_CODES.includes(e.name)||((o=e.$retryable)===null||o===void 0?void 0:o.throttling)==true};t.isThrottlingError=isThrottlingError;const isTransientError=e=>{var t;return n.TRANSIENT_ERROR_CODES.includes(e.name)||n.NODEJS_TIMEOUT_ERROR_CODES.includes((e===null||e===void 0?void 0:e.code)||"")||n.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};t.isTransientError=isTransientError;const isServerError=e=>{var o;if(((o=e.$metadata)===null||o===void 0?void 0:o.httpStatusCode)!==undefined){const o=e.$metadata.httpStatusCode;if(500<=o&&o<=599&&!(0,t.isTransientError)(e)){return true}return false}return false};t.isServerError=isServerError},47237:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getConfigFilepath=t.ENV_CONFIG_PATH=void 0;const n=o(71017);const r=o(68340);t.ENV_CONFIG_PATH="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[t.ENV_CONFIG_PATH]||(0,n.join)((0,r.getHomeDir)(),".aws","config");t.getConfigFilepath=getConfigFilepath},99036:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCredentialsFilepath=t.ENV_CREDENTIALS_PATH=void 0;const n=o(71017);const r=o(68340);t.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[t.ENV_CREDENTIALS_PATH]||(0,n.join)((0,r.getHomeDir)(),".aws","credentials");t.getCredentialsFilepath=getCredentialsFilepath},68340:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const n=o(22037);const r=o(71017);const s={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:i=`C:${r.sep}`}=process.env;if(e)return e;if(t)return t;if(o)return`${i}${o}`;const A=getHomeDirCacheKey();if(!s[A])s[A]=(0,n.homedir)();return s[A]};t.getHomeDir=getHomeDir},32041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileData=void 0;const o=/^profile\s(["'])?([^\1]+)\1$/;const getProfileData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,n])=>({...e,[o.exec(t)[2]]:n})),{...e.default&&{default:e.default}});t.getProfileData=getProfileData},52802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProfileName=t.DEFAULT_PROFILE=t.ENV_PROFILE=void 0;t.ENV_PROFILE="AWS_PROFILE";t.DEFAULT_PROFILE="default";const getProfileName=e=>e.profile||process.env[t.ENV_PROFILE]||t.DEFAULT_PROFILE;t.getProfileName=getProfileName},24740:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const n=o(6113);const r=o(71017);const s=o(68340);const getSSOTokenFilepath=e=>{const t=(0,n.createHash)("sha1");const o=t.update(e).digest("hex");return(0,r.join)((0,s.getHomeDir)(),".aws","sso","cache",`${o}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},69678:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=void 0;const n=o(57147);const r=o(24740);const{readFile:s}=n.promises;const getSSOTokenFromFile=async e=>{const t=(0,r.getSSOTokenFilepath)(e);const o=await s(t,"utf8");return JSON.parse(o)};t.getSSOTokenFromFile=getSSOTokenFromFile},82820:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSsoSessionData=void 0;const o=/^sso-session\s(["'])?([^\1]+)\1$/;const getSsoSessionData=e=>Object.entries(e).filter((([e])=>o.test(e))).reduce(((e,[t,n])=>({...e,[o.exec(t)[2]]:n})),{});t.getSsoSessionData=getSsoSessionData},43507:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(68340),t);n.__exportStar(o(52802),t);n.__exportStar(o(24740),t);n.__exportStar(o(69678),t);n.__exportStar(o(41879),t);n.__exportStar(o(34649),t);n.__exportStar(o(2546),t);n.__exportStar(o(63191),t)},41879:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSharedConfigFiles=void 0;const n=o(47237);const r=o(99036);const s=o(32041);const i=o(54262);const A=o(19155);const swallowError=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=(0,r.getCredentialsFilepath)(),configFilepath:o=(0,n.getConfigFilepath)()}=e;const a=await Promise.all([(0,A.slurpFile)(o,{ignoreCache:e.ignoreCache}).then(i.parseIni).then(s.getProfileData).catch(swallowError),(0,A.slurpFile)(t,{ignoreCache:e.ignoreCache}).then(i.parseIni).catch(swallowError)]);return{configFile:a[0],credentialsFile:a[1]}};t.loadSharedConfigFiles=loadSharedConfigFiles},34649:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadSsoSessionData=void 0;const n=o(47237);const r=o(82820);const s=o(54262);const i=o(19155);const swallowError=()=>({});const loadSsoSessionData=async(e={})=>{var t;return(0,i.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,n.getConfigFilepath)()).then(s.parseIni).then(r.getSsoSessionData).catch(swallowError)};t.loadSsoSessionData=loadSsoSessionData},19447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeConfigFiles=void 0;const mergeConfigFiles=(...e)=>{const t={};for(const o of e){for(const[e,n]of Object.entries(o)){if(t[e]!==undefined){Object.assign(t[e],n)}else{t[e]=n}}}return t};t.mergeConfigFiles=mergeConfigFiles},54262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseIni=void 0;const o=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0].trim();const e=r[0]==="["&&r[r.length-1]==="]";if(e){n=r.substring(1,r.length-1);if(o.includes(n)){throw new Error(`Found invalid profile name "${n}"`)}}else if(n){const e=r.indexOf("=");const o=0;const s=r.length-1;const i=e!==-1&&e!==o&&e!==s;if(i){const[o,s]=[r.substring(0,e).trim(),r.substring(e+1).trim()];t[n]=t[n]||{};t[n][o]=s}}}return t};t.parseIni=parseIni},2546:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseKnownFiles=void 0;const n=o(41879);const r=o(19447);const parseKnownFiles=async e=>{const t=await(0,n.loadSharedConfigFiles)(e);return(0,r.mergeConfigFiles)(t.configFile,t.credentialsFile)};t.parseKnownFiles=parseKnownFiles},19155:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slurpFile=void 0;const n=o(57147);const{readFile:r}=n.promises;const s={};const slurpFile=(e,t)=>{if(!s[e]||(t===null||t===void 0?void 0:t.ignoreCache)){s[e]=r(e,"utf8")}return s[e]};t.slurpFile=slurpFile},63191:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39733:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignatureV4=void 0;const n=o(56459);const r=o(45364);const s=o(2390);const i=o(41895);const A=o(48644);const a=o(19623);const c=o(51393);const u=o(33243);const l=o(48545);const d=o(62179);const g=o(49828);const E=o(60075);const p=o(39299);class SignatureV4{constructor({applyChecksum:e,credentials:t,region:o,service:r,sha256:A,uriEscapePath:a=true}){this.headerMarshaller=new n.HeaderMarshaller(i.toUtf8,i.fromUtf8);this.service=r;this.sha256=A;this.uriEscapePath=a;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=(0,s.normalizeProvider)(o);this.credentialProvider=(0,s.normalizeProvider)(t)}async presign(e,t={}){const{signingDate:o=new Date,expiresIn:n=3600,unsignableHeaders:r,unhoistableHeaders:s,signableHeaders:i,signingRegion:u,signingService:d}=t;const p=await this.credentialProvider();this.validateResolvedCredentials(p);const C=u!==null&&u!==void 0?u:await this.regionProvider();const{longDate:h,shortDate:f}=formatDate(o);if(n>A.MAX_PRESIGNED_TTL){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const m=(0,a.createScope)(f,C,d!==null&&d!==void 0?d:this.service);const I=(0,g.moveHeadersToQuery)((0,E.prepareRequest)(e),{unhoistableHeaders:s});if(p.sessionToken){I.query[A.TOKEN_QUERY_PARAM]=p.sessionToken}I.query[A.ALGORITHM_QUERY_PARAM]=A.ALGORITHM_IDENTIFIER;I.query[A.CREDENTIAL_QUERY_PARAM]=`${p.accessKeyId}/${m}`;I.query[A.AMZ_DATE_QUERY_PARAM]=h;I.query[A.EXPIRES_QUERY_PARAM]=n.toString(10);const y=(0,c.getCanonicalHeaders)(I,r,i);I.query[A.SIGNED_HEADERS_QUERY_PARAM]=getCanonicalHeaderList(y);I.query[A.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,m,this.getSigningKey(p,C,f,d),this.createCanonicalRequest(I,y,await(0,l.getPayloadHash)(e,this.sha256)));return I}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:o=new Date,priorSignature:n,signingRegion:s,signingService:i}){const c=s!==null&&s!==void 0?s:await this.regionProvider();const{shortDate:u,longDate:d}=formatDate(o);const g=(0,a.createScope)(u,c,i!==null&&i!==void 0?i:this.service);const E=await(0,l.getPayloadHash)({headers:{},body:t},this.sha256);const p=new this.sha256;p.update(e);const C=(0,r.toHex)(await p.digest());const h=[A.EVENT_ALGORITHM_IDENTIFIER,d,g,n,C,E].join("\n");return this.signString(h,{signingDate:o,signingRegion:c,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:o,signingService:n}){const r=this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:o,signingService:n,priorSignature:e.priorSignature});return r.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:o,signingService:n}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const A=o!==null&&o!==void 0?o:await this.regionProvider();const{shortDate:a}=formatDate(t);const c=new this.sha256(await this.getSigningKey(s,A,a,n));c.update((0,i.toUint8Array)(e));return(0,r.toHex)(await c.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:o,unsignableHeaders:n,signingRegion:r,signingService:s}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const u=r!==null&&r!==void 0?r:await this.regionProvider();const g=(0,E.prepareRequest)(e);const{longDate:p,shortDate:C}=formatDate(t);const h=(0,a.createScope)(C,u,s!==null&&s!==void 0?s:this.service);g.headers[A.AMZ_DATE_HEADER]=p;if(i.sessionToken){g.headers[A.TOKEN_HEADER]=i.sessionToken}const f=await(0,l.getPayloadHash)(g,this.sha256);if(!(0,d.hasHeader)(A.SHA256_HEADER,g.headers)&&this.applyChecksum){g.headers[A.SHA256_HEADER]=f}const m=(0,c.getCanonicalHeaders)(g,n,o);const I=await this.getSignature(p,h,this.getSigningKey(i,u,C,s),this.createCanonicalRequest(g,m,f));g.headers[A.AUTH_HEADER]=`${A.ALGORITHM_IDENTIFIER} `+`Credential=${i.accessKeyId}/${h}, `+`SignedHeaders=${getCanonicalHeaderList(m)}, `+`Signature=${I}`;return g}createCanonicalRequest(e,t,o){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,u.getCanonicalQuery)(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${o}`}async createStringToSign(e,t,o){const n=new this.sha256;n.update((0,i.toUint8Array)(o));const s=await n.digest();return`${A.ALGORITHM_IDENTIFIER}\n${e}\n${t}\n${(0,r.toHex)(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const o of e.split("/")){if((o===null||o===void 0?void 0:o.length)===0)continue;if(o===".")continue;if(o===".."){t.pop()}else{t.push(o)}}const o=`${(e===null||e===void 0?void 0:e.startsWith("/"))?"/":""}${t.join("/")}${t.length>0&&(e===null||e===void 0?void 0:e.endsWith("/"))?"/":""}`;const n=encodeURIComponent(o);return n.replace(/%2F/g,"/")}return e}async getSignature(e,t,o,n){const s=await this.createStringToSign(e,t,n);const A=new this.sha256(await o);A.update((0,i.toUint8Array)(s));return(0,r.toHex)(await A.digest())}getSigningKey(e,t,o,n){return(0,a.getSigningKey)(this.sha256,e,o,t,n||this.service)}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}}t.SignatureV4=SignatureV4;const formatDate=e=>{const t=(0,p.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}};const getCanonicalHeaderList=e=>Object.keys(e).sort().join(";")},69098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneQuery=t.cloneRequest=void 0;const cloneRequest=({headers:e,query:o,...n})=>({...n,headers:{...e},query:o?(0,t.cloneQuery)(o):undefined});t.cloneRequest=cloneRequest;const cloneQuery=e=>Object.keys(e).reduce(((t,o)=>{const n=e[o];return{...t,[o]:Array.isArray(n)?[...n]:n}}),{});t.cloneQuery=cloneQuery},48644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MAX_PRESIGNED_TTL=t.KEY_TYPE_IDENTIFIER=t.MAX_CACHE_SIZE=t.UNSIGNED_PAYLOAD=t.EVENT_ALGORITHM_IDENTIFIER=t.ALGORITHM_IDENTIFIER_V4A=t.ALGORITHM_IDENTIFIER=t.UNSIGNABLE_PATTERNS=t.SEC_HEADER_PATTERN=t.PROXY_HEADER_PATTERN=t.ALWAYS_UNSIGNABLE_HEADERS=t.HOST_HEADER=t.TOKEN_HEADER=t.SHA256_HEADER=t.SIGNATURE_HEADER=t.GENERATED_HEADERS=t.DATE_HEADER=t.AMZ_DATE_HEADER=t.AUTH_HEADER=t.REGION_SET_PARAM=t.TOKEN_QUERY_PARAM=t.SIGNATURE_QUERY_PARAM=t.EXPIRES_QUERY_PARAM=t.SIGNED_HEADERS_QUERY_PARAM=t.AMZ_DATE_QUERY_PARAM=t.CREDENTIAL_QUERY_PARAM=t.ALGORITHM_QUERY_PARAM=void 0;t.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";t.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";t.AMZ_DATE_QUERY_PARAM="X-Amz-Date";t.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";t.EXPIRES_QUERY_PARAM="X-Amz-Expires";t.SIGNATURE_QUERY_PARAM="X-Amz-Signature";t.TOKEN_QUERY_PARAM="X-Amz-Security-Token";t.REGION_SET_PARAM="X-Amz-Region-Set";t.AUTH_HEADER="authorization";t.AMZ_DATE_HEADER=t.AMZ_DATE_QUERY_PARAM.toLowerCase();t.DATE_HEADER="date";t.GENERATED_HEADERS=[t.AUTH_HEADER,t.AMZ_DATE_HEADER,t.DATE_HEADER];t.SIGNATURE_HEADER=t.SIGNATURE_QUERY_PARAM.toLowerCase();t.SHA256_HEADER="x-amz-content-sha256";t.TOKEN_HEADER=t.TOKEN_QUERY_PARAM.toLowerCase();t.HOST_HEADER="host";t.ALWAYS_UNSIGNABLE_HEADERS={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};t.PROXY_HEADER_PATTERN=/^proxy-/;t.SEC_HEADER_PATTERN=/^sec-/;t.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];t.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";t.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";t.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";t.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";t.MAX_CACHE_SIZE=50;t.KEY_TYPE_IDENTIFIER="aws4_request";t.MAX_PRESIGNED_TTL=60*60*24*7},19623:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearCredentialCache=t.getSigningKey=t.createScope=void 0;const n=o(45364);const r=o(41895);const s=o(48644);const i={};const A=[];const createScope=(e,t,o)=>`${e}/${t}/${o}/${s.KEY_TYPE_IDENTIFIER}`;t.createScope=createScope;const getSigningKey=async(e,t,o,r,a)=>{const c=await hmac(e,t.secretAccessKey,t.accessKeyId);const u=`${o}:${r}:${a}:${(0,n.toHex)(c)}:${t.sessionToken}`;if(u in i){return i[u]}A.push(u);while(A.length>s.MAX_CACHE_SIZE){delete i[A.shift()]}let l=`AWS4${t.secretAccessKey}`;for(const t of[o,r,a,s.KEY_TYPE_IDENTIFIER]){l=await hmac(e,l,t)}return i[u]=l};t.getSigningKey=getSigningKey;const clearCredentialCache=()=>{A.length=0;Object.keys(i).forEach((e=>{delete i[e]}))};t.clearCredentialCache=clearCredentialCache;const hmac=(e,t,o)=>{const n=new e(t);n.update((0,r.toUint8Array)(o));return n.digest()}},51393:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalHeaders=void 0;const n=o(48644);const getCanonicalHeaders=({headers:e},t,o)=>{const r={};for(const s of Object.keys(e).sort()){if(e[s]==undefined){continue}const i=s.toLowerCase();if(i in n.ALWAYS_UNSIGNABLE_HEADERS||(t===null||t===void 0?void 0:t.has(i))||n.PROXY_HEADER_PATTERN.test(i)||n.SEC_HEADER_PATTERN.test(i)){if(!o||o&&!o.has(i)){continue}}r[i]=e[s].trim().replace(/\s+/g," ")}return r};t.getCanonicalHeaders=getCanonicalHeaders},33243:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCanonicalQuery=void 0;const n=o(54197);const r=o(48644);const getCanonicalQuery=({query:e={}})=>{const t=[];const o={};for(const s of Object.keys(e).sort()){if(s.toLowerCase()===r.SIGNATURE_HEADER){continue}t.push(s);const i=e[s];if(typeof i==="string"){o[s]=`${(0,n.escapeUri)(s)}=${(0,n.escapeUri)(i)}`}else if(Array.isArray(i)){o[s]=i.slice(0).reduce(((e,t)=>e.concat([`${(0,n.escapeUri)(s)}=${(0,n.escapeUri)(t)}`])),[]).sort().join("&")}}return t.map((e=>o[e])).filter((e=>e)).join("&")};t.getCanonicalQuery=getCanonicalQuery},48545:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPayloadHash=void 0;const n=o(10780);const r=o(45364);const s=o(41895);const i=o(48644);const getPayloadHash=async({headers:e,body:t},o)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===i.SHA256_HEADER){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||(0,n.isArrayBuffer)(t)){const e=new o;e.update((0,s.toUint8Array)(t));return(0,r.toHex)(await e.digest())}return i.UNSIGNED_PAYLOAD};t.getPayloadHash=getPayloadHash},62179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteHeader=t.getHeaderValue=t.hasHeader=void 0;const hasHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return true}}return false};t.hasHeader=hasHeader;const getHeaderValue=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){return t[o]}}return undefined};t.getHeaderValue=getHeaderValue;const deleteHeader=(e,t)=>{e=e.toLowerCase();for(const o of Object.keys(t)){if(e===o.toLowerCase()){delete t[o]}}};t.deleteHeader=deleteHeader},11528:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=t.moveHeadersToQuery=t.getPayloadHash=t.getCanonicalQuery=t.getCanonicalHeaders=void 0;const n=o(4351);n.__exportStar(o(39733),t);var r=o(51393);Object.defineProperty(t,"getCanonicalHeaders",{enumerable:true,get:function(){return r.getCanonicalHeaders}});var s=o(33243);Object.defineProperty(t,"getCanonicalQuery",{enumerable:true,get:function(){return s.getCanonicalQuery}});var i=o(48545);Object.defineProperty(t,"getPayloadHash",{enumerable:true,get:function(){return i.getPayloadHash}});var A=o(49828);Object.defineProperty(t,"moveHeadersToQuery",{enumerable:true,get:function(){return A.moveHeadersToQuery}});var a=o(60075);Object.defineProperty(t,"prepareRequest",{enumerable:true,get:function(){return a.prepareRequest}});n.__exportStar(o(19623),t)},49828:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveHeadersToQuery=void 0;const n=o(69098);const moveHeadersToQuery=(e,t={})=>{var o;const{headers:r,query:s={}}=typeof e.clone==="function"?e.clone():(0,n.cloneRequest)(e);for(const e of Object.keys(r)){const n=e.toLowerCase();if(n.slice(0,6)==="x-amz-"&&!((o=t.unhoistableHeaders)===null||o===void 0?void 0:o.has(n))){s[e]=r[e];delete r[e]}}return{...e,headers:r,query:s}};t.moveHeadersToQuery=moveHeadersToQuery},60075:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepareRequest=void 0;const n=o(69098);const r=o(48644);const prepareRequest=e=>{e=typeof e.clone==="function"?e.clone():(0,n.cloneRequest)(e);for(const t of Object.keys(e.headers)){if(r.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};t.prepareRequest=prepareRequest},39299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toDate=t.iso8601=void 0;const iso8601=e=>(0,t.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");t.iso8601=iso8601;const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};t.toDate=toDate},70438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NoOpLogger=void 0;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}t.NoOpLogger=NoOpLogger},61600:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const n=o(97911);class Client{constructor(e){this.middlewareStack=(0,n.constructStack)();this.config=e}send(e,t,o){const n=typeof t!=="function"?t:undefined;const r=typeof t==="function"?t:o;const s=e.resolveMiddleware(this.middlewareStack,this.config,n);if(r){s(e).then((e=>r(null,e.output)),(e=>r(e))).catch((()=>{}))}else{return s(e).then((e=>e.output))}}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}t.Client=Client},32813:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.collectBody=void 0;const n=o(96607);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return n.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return n.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const o=t.streamCollector(e);return n.Uint8ArrayBlobAdapter.mutate(await o)};t.collectBody=collectBody},75414:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Command=void 0;const n=o(97911);class Command{constructor(){this.middlewareStack=(0,n.constructStack)()}}t.Command=Command},92541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SENSITIVE_STRING=void 0;t.SENSITIVE_STRING="***SensitiveInformation***"},56929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAggregatedClient=void 0;const createAggregatedClient=(e,t)=>{for(const o of Object.keys(e)){const n=e[o];const methodImpl=async function(e,t,o){const r=new n(e);if(typeof t==="function"){this.send(r,t)}else if(typeof o==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(r,t||{},o)}else{return this.send(r,t)}};const r=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");t.prototype[r]=methodImpl}};t.createAggregatedClient=createAggregatedClient},21737:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseEpochTimestamp=t.parseRfc7231DateTime=t.parseRfc3339DateTimeWithOffset=t.parseRfc3339DateTime=t.dateToUtcString=void 0;const n=o(74857);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const o=e.getUTCMonth();const n=e.getUTCDay();const i=e.getUTCDate();const A=e.getUTCHours();const a=e.getUTCMinutes();const c=e.getUTCSeconds();const u=i<10?`0${i}`:`${i}`;const l=A<10?`0${A}`:`${A}`;const d=a<10?`0${a}`:`${a}`;const g=c<10?`0${c}`:`${c}`;return`${r[n]}, ${u} ${s[o]} ${t} ${l}:${d}:${g} GMT`}t.dateToUtcString=dateToUtcString;const i=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=i.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,r,s,A,a,c,u,l]=t;const d=(0,n.strictParseShort)(stripLeadingZeroes(r));const g=parseDateValue(s,"month",1,12);const E=parseDateValue(A,"day",1,31);return buildDate(d,g,E,{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l})};t.parseRfc3339DateTime=parseRfc3339DateTime;const A=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=A.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[o,r,s,i,a,c,u,l,d]=t;const g=(0,n.strictParseShort)(stripLeadingZeroes(r));const E=parseDateValue(s,"month",1,12);const p=parseDateValue(i,"day",1,31);const C=buildDate(g,E,p,{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l});if(d.toUpperCase()!="Z"){C.setTime(C.getTime()-parseOffsetToMilliseconds(d))}return C};t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;const a=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const c=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const u=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=a.exec(e);if(t){const[e,o,r,s,i,A,a,c]=t;return buildDate((0,n.strictParseShort)(stripLeadingZeroes(s)),parseMonthByShortName(r),parseDateValue(o,"day",1,31),{hours:i,minutes:A,seconds:a,fractionalMilliseconds:c})}t=c.exec(e);if(t){const[e,o,n,r,s,i,A,a]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(r),parseMonthByShortName(n),parseDateValue(o,"day",1,31),{hours:s,minutes:i,seconds:A,fractionalMilliseconds:a}))}t=u.exec(e);if(t){const[e,o,r,s,i,A,a,c]=t;return buildDate((0,n.strictParseShort)(stripLeadingZeroes(c)),parseMonthByShortName(o),parseDateValue(r.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:A,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")};t.parseRfc7231DateTime=parseRfc7231DateTime;const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=(0,n.strictParseDouble)(e)}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};t.parseEpochTimestamp=parseEpochTimestamp;const buildDate=(e,t,o,n)=>{const r=t-1;validateDayOfMonth(e,r,o);return new Date(Date.UTC(e,r,o,parseDateValue(n.hours,"hour",0,23),parseDateValue(n.minutes,"minute",0,59),parseDateValue(n.seconds,"seconds",0,60),parseMilliseconds(n.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const o=Math.floor(t/100)*100+(0,n.strictParseShort)(stripLeadingZeroes(e));if(o<t){return o+100}return o};const l=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>l){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=s.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const d=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,o)=>{let n=d[t];if(t===1&&isLeapYear(e)){n=29}if(o>n){throw new TypeError(`Invalid day for ${s[t]} in ${e}: ${o}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,o,r)=>{const s=(0,n.strictParseByte)(stripLeadingZeroes(e));if(s<o||s>r){throw new TypeError(`${t} must be between ${o} and ${r}, inclusive`)}return s};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return(0,n.strictParseFloat32)("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let o=1;if(t=="+"){o=1}else if(t=="-"){o=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const n=Number(e.substring(1,3));const r=Number(e.substring(4,6));return o*(n*60+r)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)}},9681:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.withBaseException=t.throwDefaultError=void 0;const n=o(88074);const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:o,errorCode:r})=>{const s=deserializeMetadata(e);const i=s.httpStatusCode?s.httpStatusCode+"":undefined;const A=new o({name:(t===null||t===void 0?void 0:t.code)||(t===null||t===void 0?void 0:t.Code)||r||i||"UnknownError",$fault:"client",$metadata:s});throw(0,n.decorateServiceException)(A,t)};t.throwDefaultError=throwDefaultError;const withBaseException=e=>({output:o,parsedBody:n,errorCode:r})=>{(0,t.throwDefaultError)({output:o,parsedBody:n,exceptionCtor:e,errorCode:r})};t.withBaseException=withBaseException;const deserializeMetadata=e=>{var t,o;return{httpStatusCode:e.statusCode,requestId:(o=(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"])!==null&&o!==void 0?o:e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}},11163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadConfigsForDefaultMode=void 0;const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};t.loadConfigsForDefaultMode=loadConfigsForDefaultMode},91809:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.emitWarningIfUnsupportedVersion=void 0;let o=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!o&&parseInt(e.substring(1,e.indexOf(".")))<14){o=true}};t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion},88074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decorateServiceException=t.ServiceException=void 0;class ServiceException extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ServiceException.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}}t.ServiceException=ServiceException;const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,o])=>{if(e[t]==undefined||e[t]===""){e[t]=o}}));const o=e.message||e.Message||"UnknownError";e.message=o;delete e.Message;return e};t.decorateServiceException=decorateServiceException},76016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendedEncodeURIComponent=void 0;function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}t.extendedEncodeURIComponent=extendedEncodeURIComponent},30941:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveChecksumRuntimeConfig=t.getChecksumConfiguration=t.AlgorithmId=void 0;const n=o(55756);Object.defineProperty(t,"AlgorithmId",{enumerable:true,get:function(){return n.AlgorithmId}});const getChecksumConfiguration=e=>{const t=[];for(const o in n.AlgorithmId){const r=n.AlgorithmId[o];if(e[r]===undefined){continue}t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}};t.getChecksumConfiguration=getChecksumConfiguration;const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};t.resolveChecksumRuntimeConfig=resolveChecksumRuntimeConfig},78643:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultRuntimeConfig=t.getDefaultClientConfiguration=t.getDefaultExtensionConfiguration=void 0;const n=o(30941);const r=o(67367);const getDefaultExtensionConfiguration=e=>({...(0,n.getChecksumConfiguration)(e),...(0,r.getRetryConfiguration)(e)});t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getDefaultClientConfiguration=t.getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>({...(0,n.resolveChecksumRuntimeConfig)(e),...(0,r.resolveRetryRuntimeConfig)(e)});t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},1822:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(78643),t)},67367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveRetryRuntimeConfig=t.getRetryConfiguration=void 0;const getRetryConfiguration=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy(){return t}}};t.getRetryConfiguration=getRetryConfiguration;const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};t.resolveRetryRuntimeConfig=resolveRetryRuntimeConfig},42638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getArrayIfSingleItem=void 0;const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];t.getArrayIfSingleItem=getArrayIfSingleItem},92188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getValueFromTextNode=void 0;const getValueFromTextNode=e=>{const o="#text";for(const n in e){if(e.hasOwnProperty(n)&&e[n][o]!==undefined){e[n]=e[n][o]}else if(typeof e[n]==="object"&&e[n]!==null){e[n]=(0,t.getValueFromTextNode)(e[n])}}return e};t.getValueFromTextNode=getValueFromTextNode},63570:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(70438),t);n.__exportStar(o(61600),t);n.__exportStar(o(32813),t);n.__exportStar(o(75414),t);n.__exportStar(o(92541),t);n.__exportStar(o(56929),t);n.__exportStar(o(21737),t);n.__exportStar(o(9681),t);n.__exportStar(o(11163),t);n.__exportStar(o(91809),t);n.__exportStar(o(1822),t);n.__exportStar(o(88074),t);n.__exportStar(o(76016),t);n.__exportStar(o(42638),t);n.__exportStar(o(92188),t);n.__exportStar(o(32964),t);n.__exportStar(o(83495),t);n.__exportStar(o(74857),t);n.__exportStar(o(15342),t);n.__exportStar(o(53456),t);n.__exportStar(o(1752),t);n.__exportStar(o(92480),t)},32964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LazyJsonString=t.StringWrapper=void 0;const StringWrapper=function(){const e=Object.getPrototypeOf(this).constructor;const t=Function.bind.apply(String,[null,...arguments]);const o=new t;Object.setPrototypeOf(o,e.prototype);return o};t.StringWrapper=StringWrapper;t.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:t.StringWrapper,enumerable:false,writable:true,configurable:true}});Object.setPrototypeOf(t.StringWrapper,String);class LazyJsonString extends t.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(e){if(e instanceof LazyJsonString){return e}else if(e instanceof String||typeof e==="string"){return new LazyJsonString(e)}return new LazyJsonString(JSON.stringify(e))}}t.LazyJsonString=LazyJsonString},83495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.take=t.convertMap=t.map=void 0;function map(e,t,o){let n;let r;let s;if(typeof t==="undefined"&&typeof o==="undefined"){n={};s=e}else{n=e;if(typeof t==="function"){r=t;s=o;return mapWithFilter(n,r,s)}else{s=t}}for(const e of Object.keys(s)){if(!Array.isArray(s[e])){n[e]=s[e];continue}applyInstruction(n,null,s,e)}return n}t.map=map;const convertMap=e=>{const t={};for(const[o,n]of Object.entries(e||{})){t[o]=[,n]}return t};t.convertMap=convertMap;const take=(e,t)=>{const o={};for(const n in t){applyInstruction(o,e,t,n)}return o};t.take=take;const mapWithFilter=(e,t,o)=>map(e,Object.entries(o).reduce(((e,[o,n])=>{if(Array.isArray(n)){e[o]=n}else{if(typeof n==="function"){e[o]=[t,n()]}else{e[o]=[t,n]}}return e}),{}));const applyInstruction=(e,t,o,n)=>{if(t!==null){let r=o[n];if(typeof r==="function"){r=[,r]}const[s=nonNullish,i=pass,A=n]=r;if(typeof s==="function"&&s(t[A])||typeof s!=="function"&&!!s){e[n]=i(t[A])}return}let[r,s]=o[n];if(typeof s==="function"){let t;const o=r===undefined&&(t=s())!=null;const i=typeof r==="function"&&!!r(void 0)||typeof r!=="function"&&!!r;if(o){e[n]=t}else if(i){e[n]=s()}}else{const t=r===undefined&&s!=null;const o=typeof r==="function"&&!!r(s)||typeof r!=="function"&&!!r;if(t||o){e[n]=s}}};const nonNullish=e=>e!=null;const pass=e=>e},74857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.strictParseByte=t.strictParseShort=t.strictParseInt32=t.strictParseInt=t.strictParseLong=t.limitedParseFloat32=t.limitedParseFloat=t.handleFloat=t.limitedParseDouble=t.strictParseFloat32=t.strictParseFloat=t.strictParseDouble=t.expectUnion=t.expectString=t.expectObject=t.expectNonNull=t.expectByte=t.expectShort=t.expectInt32=t.expectInt=t.expectLong=t.expectFloat32=t.expectNumber=t.expectBoolean=t.parseBoolean=void 0;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};t.parseBoolean=parseBoolean;const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const o=e.toLowerCase();if(o==="false"||o==="true"){t.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(o==="false"){return false}if(o==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};t.expectBoolean=expectBoolean;const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const o=parseFloat(e);if(!Number.isNaN(o)){if(String(o)!==String(e)){t.logger.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return o}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};t.expectNumber=expectNumber;const o=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const n=(0,t.expectNumber)(e);if(n!==undefined&&!Number.isNaN(n)&&n!==Infinity&&n!==-Infinity){if(Math.abs(n)>o){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return n};t.expectFloat32=expectFloat32;const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};t.expectLong=expectLong;t.expectInt=t.expectLong;const expectInt32=e=>expectSizedInt(e,32);t.expectInt32=expectInt32;const expectShort=e=>expectSizedInt(e,16);t.expectShort=expectShort;const expectByte=e=>expectSizedInt(e,8);t.expectByte=expectByte;const expectSizedInt=(e,o)=>{const n=(0,t.expectLong)(e);if(n!==undefined&&castInt(n,o)!==n){throw new TypeError(`Expected ${o}-bit integer, got ${e}`)}return n};const castInt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};t.expectNonNull=expectNonNull;const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};t.expectObject=expectObject;const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){t.logger.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};t.expectString=expectString;const expectUnion=e=>{if(e===null||e===undefined){return undefined}const o=(0,t.expectObject)(e);const n=Object.entries(o).filter((([,e])=>e!=null)).map((([e])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(n.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`)}return o};t.expectUnion=expectUnion;const strictParseDouble=e=>{if(typeof e=="string"){return(0,t.expectNumber)(parseNumber(e))}return(0,t.expectNumber)(e)};t.strictParseDouble=strictParseDouble;t.strictParseFloat=t.strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return(0,t.expectFloat32)(parseNumber(e))}return(0,t.expectFloat32)(e)};t.strictParseFloat32=strictParseFloat32;const n=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(n);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectNumber)(e)};t.limitedParseDouble=limitedParseDouble;t.handleFloat=t.limitedParseDouble;t.limitedParseFloat=t.limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return(0,t.expectFloat32)(e)};t.limitedParseFloat32=limitedParseFloat32;const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return(0,t.expectLong)(parseNumber(e))}return(0,t.expectLong)(e)};t.strictParseLong=strictParseLong;t.strictParseInt=t.strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return(0,t.expectInt32)(parseNumber(e))}return(0,t.expectInt32)(e)};t.strictParseInt32=strictParseInt32;const strictParseShort=e=>{if(typeof e==="string"){return(0,t.expectShort)(parseNumber(e))}return(0,t.expectShort)(e)};t.strictParseShort=strictParseShort;const strictParseByte=e=>{if(typeof e==="string"){return(0,t.expectByte)(parseNumber(e))}return(0,t.expectByte)(e)};t.strictParseByte=strictParseByte;const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");t.logger={warn:console.warn}},15342:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolvedPath=void 0;const n=o(76016);const resolvedPath=(e,t,o,r,s,i)=>{if(t!=null&&t[o]!==undefined){const t=r();if(t.length<=0){throw new Error("Empty value provided for input HTTP label: "+o+".")}e=e.replace(s,i?t.split("/").map((e=>(0,n.extendedEncodeURIComponent)(e))).join("/"):(0,n.extendedEncodeURIComponent)(t))}else{throw new Error("No value provided for input HTTP label: "+o+".")}return e};t.resolvedPath=resolvedPath},53456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializeFloat=void 0;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};t.serializeFloat=serializeFloat},1752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._json=void 0;const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null))}if(typeof e==="object"){const o={};for(const n of Object.keys(e)){if(e[n]==null){continue}o[n]=(0,t._json)(e[n])}return o}return e};t._json=_json},92480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitEvery=void 0;function splitEvery(e,t,o){if(o<=0||!Number.isInteger(o)){throw new Error("Invalid number of delimiters ("+o+") for splitEvery.")}const n=e.split(t);if(o===1){return n}const r=[];let s="";for(let e=0;e<n.length;e++){if(s===""){s=n[e]}else{s+=t+n[e]}if((e+1)%o===0){r.push(s);s=""}}if(s!==""){r.push(s)}return r}t.splitEvery=splitEvery},74075:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},48960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpAuthLocation=void 0;var o;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(o=t.HttpAuthLocation||(t.HttpAuthLocation={}))},63274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},78340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},4744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},39580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57628:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(39580),t);n.__exportStar(o(98398),t);n.__exportStar(o(76522),t)},98398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76522:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7225:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},54126:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointURLScheme=void 0;var o;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(o=t.EndpointURLScheme||(t.EndpointURLScheme={}))},55612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},43084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},89843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},63799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},21550:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(55612),t);n.__exportStar(o(43084),t);n.__exportStar(o(89843),t);n.__exportStar(o(57658),t);n.__exportStar(o(63799),t)},57658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},88508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveChecksumRuntimeConfig=t.getChecksumConfiguration=t.AlgorithmId=void 0;var o;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(o=t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const t=[];if(e.sha256!==undefined){t.push({algorithmId:()=>o.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){t.push({algorithmId:()=>o.MD5,checksumConstructor:()=>e.md5})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}};t.getChecksumConfiguration=getChecksumConfiguration;const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};t.resolveChecksumRuntimeConfig=resolveChecksumRuntimeConfig},89169:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultRuntimeConfig=t.getDefaultClientConfiguration=void 0;const n=o(8947);const getDefaultClientConfiguration=e=>({...(0,n.getChecksumConfiguration)(e)});t.getDefaultClientConfiguration=getDefaultClientConfiguration;const resolveDefaultRuntimeConfig=e=>({...(0,n.resolveChecksumRuntimeConfig)(e)});t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},32245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},47447:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AlgorithmId=void 0;const n=o(4351);n.__exportStar(o(89169),t);n.__exportStar(o(32245),t);var r=o(8947);Object.defineProperty(t,"AlgorithmId",{enumerable:true,get:function(){return r.AlgorithmId}})},18883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FieldPosition=void 0;var o;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(o=t.FieldPosition||(t.FieldPosition={}))},7545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},49123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},28006:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(7545),t);n.__exportStar(o(49123),t)},55756:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(74075),t);n.__exportStar(o(48960),t);n.__exportStar(o(63274),t);n.__exportStar(o(78340),t);n.__exportStar(o(4744),t);n.__exportStar(o(68270),t);n.__exportStar(o(57628),t);n.__exportStar(o(89035),t);n.__exportStar(o(7225),t);n.__exportStar(o(54126),t);n.__exportStar(o(21550),t);n.__exportStar(o(88508),t);n.__exportStar(o(47447),t);n.__exportStar(o(18883),t);n.__exportStar(o(28006),t);n.__exportStar(o(52866),t);n.__exportStar(o(17756),t);n.__exportStar(o(45489),t);n.__exportStar(o(26524),t);n.__exportStar(o(14603),t);n.__exportStar(o(83752),t);n.__exportStar(o(30774),t);n.__exportStar(o(14089),t);n.__exportStar(o(45678),t);n.__exportStar(o(69926),t);n.__exportStar(o(9945),t);n.__exportStar(o(28564),t);n.__exportStar(o(61285),t);n.__exportStar(o(50364),t);n.__exportStar(o(69304),t);n.__exportStar(o(10375),t);n.__exportStar(o(66894),t);n.__exportStar(o(57887),t);n.__exportStar(o(66255),t)},52866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26524:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},83752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},30774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},69926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},9945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},28564:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},61285:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},50364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RequestHandlerProtocol=void 0;var o;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(o=t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}))},69304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},10375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},66894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},57887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},66255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},14681:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseUrl=void 0;const n=o(4769);const parseUrl=e=>{if(typeof e==="string"){return(0,t.parseUrl)(new URL(e))}const{hostname:o,pathname:r,port:s,protocol:i,search:A}=e;let a;if(A){a=(0,n.parseQueryString)(A)}return{hostname:o,port:s?parseInt(s):undefined,protocol:i,path:r,query:a}};t.parseUrl=parseUrl},30305:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const n=o(31381);const r=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!r.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,n.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},75600:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(30305),t);n.__exportStar(o(74730),t)},74730:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const n=o(31381);const toBase64=e=>(0,n.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64");t.toBase64=toBase64},54880:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateBodyLength=void 0;const n=o(57147);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.from(e).length}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(typeof e.path==="string"||Buffer.isBuffer(e.path)){return(0,n.lstatSync)(e.path).size}else if(typeof e.fd==="number"){return(0,n.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},68075:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(54880),t)},31381:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromString=t.fromArrayBuffer=void 0;const n=o(10780);const r=o(14300);const fromArrayBuffer=(e,t=0,o=e.byteLength-t)=>{if(!(0,n.isArrayBuffer)(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return r.Buffer.from(e,t,o)};t.fromArrayBuffer=fromArrayBuffer;const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?r.Buffer.from(e,t):r.Buffer.from(e)};t.fromString=fromString},42491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.booleanSelector=t.SelectorType=void 0;var o;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(o=t.SelectorType||(t.SelectorType={}));const booleanSelector=(e,t,o)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${o} "${t}". Expected "true" or "false", got ${e[t]}.`)};t.booleanSelector=booleanSelector},83375:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(42491),t)},56470:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IMDS_REGION_PATH=t.DEFAULTS_MODE_OPTIONS=t.ENV_IMDS_DISABLED=t.AWS_DEFAULT_REGION_ENV=t.AWS_REGION_ENV=t.AWS_EXECUTION_ENV=void 0;t.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";t.AWS_REGION_ENV="AWS_REGION";t.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";t.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";t.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];t.IMDS_REGION_PATH="/latest/meta-data/placement/region"},15577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;const o="AWS_DEFAULTS_MODE";const n="defaults_mode";t.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[o],configFileSelector:e=>e[n],default:"legacy"}},72429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(46217),t)},46217:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveDefaultsModeConfig=void 0;const n=o(53098);const r=o(23810);const s=o(33461);const i=o(37390);const A=o(56470);const a=o(15577);const resolveDefaultsModeConfig=({region:e=(0,s.loadConfig)(n.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,s.loadConfig)(a.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,i.memoize)((async()=>{const o=typeof t==="function"?await t():t;switch(o===null||o===void 0?void 0:o.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(o===null||o===void 0?void 0:o.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${A.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${o}`)}}));t.resolveDefaultsModeConfig=resolveDefaultsModeConfig;const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const o=await inferPhysicalRegion();if(!o){return"standard"}if(t===o){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{var e;if(process.env[A.AWS_EXECUTION_ENV]&&(process.env[A.AWS_REGION_ENV]||process.env[A.AWS_DEFAULT_REGION_ENV])){return(e=process.env[A.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[A.AWS_DEFAULT_REGION_ENV]}if(!process.env[A.ENV_IMDS_DISABLED]){try{const e=await(0,r.getInstanceMetadataEndpoint)();return(await(0,r.httpRequest)({...e,path:A.IMDS_REGION_PATH})).toString()}catch(e){}}}},5441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;var o;(function(e){e["IPv4"]="http://169.254.169.254";e["IPv6"]="http://[fd00:ec2::254]"})(o=t.Endpoint||(t.Endpoint={}))},33826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_NAME=t.ENV_ENDPOINT_NAME=void 0;t.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";t.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";t.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_NAME],default:undefined}},36530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EndpointMode=void 0;var o;(function(e){e["IPv4"]="IPv4";e["IPv6"]="IPv6"})(o=t.EndpointMode||(t.EndpointMode={}))},6640:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ENDPOINT_MODE_CONFIG_OPTIONS=t.CONFIG_ENDPOINT_MODE_NAME=t.ENV_ENDPOINT_MODE_NAME=void 0;const n=o(36530);t.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";t.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";t.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[t.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[t.CONFIG_ENDPOINT_MODE_NAME],default:n.EndpointMode.IPv4}},46363:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromContainerMetadata=t.ENV_CMDS_AUTH_TOKEN=t.ENV_CMDS_RELATIVE_URI=t.ENV_CMDS_FULL_URI=void 0;const n=o(37390);const r=o(57310);const s=o(45994);const i=o(23844);const A=o(42917);const a=o(80330);t.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";t.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";t.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";const fromContainerMetadata=(e={})=>{const{timeout:t,maxRetries:o}=(0,A.providerConfigFromInit)(e);return()=>(0,a.retry)((async()=>{const e=await getCmdsUri();const o=JSON.parse(await requestFromEcsImds(t,e));if(!(0,i.isImdsCredentials)(o)){throw new n.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,i.fromImdsCredentials)(o)}),o)};t.fromContainerMetadata=fromContainerMetadata;const requestFromEcsImds=async(e,o)=>{if(process.env[t.ENV_CMDS_AUTH_TOKEN]){o.headers={...o.headers,Authorization:process.env[t.ENV_CMDS_AUTH_TOKEN]}}const n=await(0,s.httpRequest)({...o,timeout:e});return n.toString()};const c="169.254.170.2";const u={localhost:true,"127.0.0.1":true};const l={"http:":true,"https:":true};const getCmdsUri=async()=>{if(process.env[t.ENV_CMDS_RELATIVE_URI]){return{hostname:c,path:process.env[t.ENV_CMDS_RELATIVE_URI]}}if(process.env[t.ENV_CMDS_FULL_URI]){const e=(0,r.parse)(process.env[t.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in u)){throw new n.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,false)}if(!e.protocol||!(e.protocol in l)){throw new n.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,false)}return{...e,port:e.port?parseInt(e.port,10):undefined}}throw new n.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${t.ENV_CMDS_RELATIVE_URI} or ${t.ENV_CMDS_FULL_URI} environment`+" variable is set",false)}},11971:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromInstanceMetadata=void 0;const n=o(37390);const r=o(45994);const s=o(23844);const i=o(42917);const A=o(80330);const a=o(99060);const c=o(89401);const u="/latest/meta-data/iam/security-credentials/";const l="/latest/api/token";const fromInstanceMetadata=(e={})=>(0,c.staticStabilityProvider)(getInstanceImdsProvider(e),{logger:e.logger});t.fromInstanceMetadata=fromInstanceMetadata;const getInstanceImdsProvider=e=>{let t=false;const{timeout:o,maxRetries:n}=(0,i.providerConfigFromInit)(e);const getCredentials=async(e,o)=>{const n=(await(0,A.retry)((async()=>{let e;try{e=await getProfile(o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)).trim();return(0,A.retry)((async()=>{let e;try{e=await getCredentialsFromProfile(n,o)}catch(e){if(e.statusCode===401){t=false}throw e}return e}),e)};return async()=>{const e=await(0,a.getInstanceMetadataEndpoint)();if(t){return getCredentials(n,{...e,timeout:o})}else{let r;try{r=(await getMetadataToken({...e,timeout:o})).toString()}catch(r){if((r===null||r===void 0?void 0:r.statusCode)===400){throw Object.assign(r,{message:"EC2 Metadata token request returned error"})}else if(r.message==="TimeoutError"||[403,404,405].includes(r.statusCode)){t=true}return getCredentials(n,{...e,timeout:o})}return getCredentials(n,{...e,headers:{"x-aws-ec2-metadata-token":r},timeout:o})}}};const getMetadataToken=async e=>(0,r.httpRequest)({...e,path:l,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}});const getProfile=async e=>(await(0,r.httpRequest)({...e,path:u})).toString();const getCredentialsFromProfile=async(e,t)=>{const o=JSON.parse((await(0,r.httpRequest)({...t,path:u+e})).toString());if(!(0,s.isImdsCredentials)(o)){throw new n.CredentialsProviderError("Invalid response received from instance metadata service.")}return(0,s.fromImdsCredentials)(o)}},23810:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=t.httpRequest=void 0;const n=o(4351);n.__exportStar(o(46363),t);n.__exportStar(o(11971),t);n.__exportStar(o(42917),t);n.__exportStar(o(23730),t);var r=o(45994);Object.defineProperty(t,"httpRequest",{enumerable:true,get:function(){return r.httpRequest}});var s=o(99060);Object.defineProperty(t,"getInstanceMetadataEndpoint",{enumerable:true,get:function(){return s.getInstanceMetadataEndpoint}})},23844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromImdsCredentials=t.isImdsCredentials=void 0;const isImdsCredentials=e=>Boolean(e)&&typeof e==="object"&&typeof e.AccessKeyId==="string"&&typeof e.SecretAccessKey==="string"&&typeof e.Token==="string"&&typeof e.Expiration==="string";t.isImdsCredentials=isImdsCredentials;const fromImdsCredentials=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});t.fromImdsCredentials=fromImdsCredentials},42917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.providerConfigFromInit=t.DEFAULT_MAX_RETRIES=t.DEFAULT_TIMEOUT=void 0;t.DEFAULT_TIMEOUT=1e3;t.DEFAULT_MAX_RETRIES=0;const providerConfigFromInit=({maxRetries:e=t.DEFAULT_MAX_RETRIES,timeout:o=t.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:o});t.providerConfigFromInit=providerConfigFromInit},45994:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.httpRequest=void 0;const n=o(37390);const r=o(14300);const s=o(13685);function httpRequest(e){return new Promise(((t,o)=>{var i;const A=(0,s.request)({method:"GET",...e,hostname:(i=e.hostname)===null||i===void 0?void 0:i.replace(/^\[(.+)\]$/,"$1")});A.on("error",(e=>{o(Object.assign(new n.ProviderError("Unable to connect to instance metadata service"),e));A.destroy()}));A.on("timeout",(()=>{o(new n.ProviderError("TimeoutError from instance metadata service"));A.destroy()}));A.on("response",(e=>{const{statusCode:s=400}=e;if(s<200||300<=s){o(Object.assign(new n.ProviderError("Error response received from instance metadata service"),{statusCode:s}));A.destroy()}const i=[];e.on("data",(e=>{i.push(e)}));e.on("end",(()=>{t(r.Buffer.concat(i));A.destroy()}))}));A.end()}))}t.httpRequest=httpRequest},80330:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;const retry=(e,t)=>{let o=e();for(let n=0;n<t;n++){o=o.catch(e)}return o};t.retry=retry},23730:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtendedInstanceMetadataCredentials=void 0;const o=5*60;const n=5*60;const r="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";const getExtendedInstanceMetadataCredentials=(e,t)=>{var s;const i=o+Math.floor(Math.random()*n);const A=new Date(Date.now()+i*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+r);const a=(s=e.originalExpiration)!==null&&s!==void 0?s:e.expiration;return{...e,...a?{originalExpiration:a}:{},expiration:A}};t.getExtendedInstanceMetadataCredentials=getExtendedInstanceMetadataCredentials},99060:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInstanceMetadataEndpoint=void 0;const n=o(33461);const r=o(14681);const s=o(5441);const i=o(33826);const A=o(36530);const a=o(6640);const getInstanceMetadataEndpoint=async()=>(0,r.parseUrl)(await getFromEndpointConfig()||await getFromEndpointModeConfig());t.getInstanceMetadataEndpoint=getInstanceMetadataEndpoint;const getFromEndpointConfig=async()=>(0,n.loadConfig)(i.ENDPOINT_CONFIG_OPTIONS)();const getFromEndpointModeConfig=async()=>{const e=await(0,n.loadConfig)(a.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case A.EndpointMode.IPv4:return s.Endpoint.IPv4;case A.EndpointMode.IPv6:return s.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}.`+` Select from ${Object.values(A.EndpointMode)}`)}}},89401:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.staticStabilityProvider=void 0;const n=o(7799);const staticStabilityProvider=(e,t={})=>{const o=(t===null||t===void 0?void 0:t.logger)||console;let r;return async()=>{let t;try{t=await e();if(t.expiration&&t.expiration.getTime()<Date.now()){t=(0,n.getExtendedInstanceMetadataCredentials)(t,o)}}catch(e){if(r){o.warn("Credential renew failed: ",e);t=(0,n.getExtendedInstanceMetadataCredentials)(r,o)}else{throw e}}r=t;return t}};t.staticStabilityProvider=staticStabilityProvider},25773:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialsProviderError=void 0;const n=o(19946);class CredentialsProviderError extends n.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="CredentialsProviderError";Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}t.CredentialsProviderError=CredentialsProviderError},19946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProviderError=void 0;class ProviderError extends Error{constructor(e,t=true){super(e);this.tryNextLink=t;this.name="ProviderError";Object.setPrototypeOf(this,ProviderError.prototype)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}t.ProviderError=ProviderError},94957:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenProviderError=void 0;const n=o(19946);class TokenProviderError extends n.ProviderError{constructor(e,t=true){super(e,t);this.tryNextLink=t;this.name="TokenProviderError";Object.setPrototypeOf(this,TokenProviderError.prototype)}}t.TokenProviderError=TokenProviderError},93738:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chain=void 0;const n=o(19946);const chain=(...e)=>async()=>{if(e.length===0){throw new n.ProviderError("No providers in chain")}let t;for(const o of e){try{const e=await o();return e}catch(e){t=e;if(e===null||e===void 0?void 0:e.tryNextLink){continue}throw e}}throw t};t.chain=chain},28506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromStatic=void 0;const fromStatic=e=>()=>Promise.resolve(e);t.fromStatic=fromStatic},37390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(25773),t);n.__exportStar(o(19946),t);n.__exportStar(o(94957),t);n.__exportStar(o(93738),t);n.__exportStar(o(28506),t);n.__exportStar(o(51121),t)},51121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.memoize=void 0;const memoize=(e,t,o)=>{let n;let r;let s;let i=false;const coalesceProvider=async()=>{if(!r){r=e()}try{n=await r;s=true;i=false}finally{r=undefined}return n};if(t===undefined){return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){n=await coalesceProvider()}return n}}return async e=>{if(!s||(e===null||e===void 0?void 0:e.forceRefresh)){n=await coalesceProvider()}if(i){return n}if(o&&!o(n)){i=true;return n}if(t(n)){await coalesceProvider();return n}return n}};t.memoize=memoize},45364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHex=t.fromHex=void 0;const o={};const n={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}o[e]=t;n[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let o=0;o<e.length;o+=2){const r=e.slice(o,o+2).toLowerCase();if(r in n){t[o/2]=n[r]}else{throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}}return t}t.fromHex=fromHex;function toHex(e){let t="";for(let n=0;n<e.byteLength;n++){t+=o[e[n]]}return t}t.toHex=toHex},2390:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(80149),t)},80149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.normalizeProvider=void 0;const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.normalizeProvider=normalizeProvider},65053:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AdaptiveRetryStrategy=void 0;const n=o(93435);const r=o(22234);const s=o(48361);class AdaptiveRetryStrategy{constructor(e,t){this.maxAttemptsProvider=e;this.mode=n.RETRY_MODES.ADAPTIVE;const{rateLimiter:o}=t!==null&&t!==void 0?t:{};this.rateLimiter=o!==null&&o!==void 0?o:new r.DefaultRateLimiter;this.standardRetryStrategy=new s.StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy},25689:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfiguredRetryStrategy=void 0;const n=o(66302);const r=o(48361);class ConfiguredRetryStrategy extends r.StandardRetryStrategy{constructor(e,t=n.DEFAULT_RETRY_DELAY_BASE){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const o=await super.refreshRetryTokenForRetry(e,t);o.getRetryDelay=()=>this.computeNextBackoffDelay(o.getRetryCount());return o}}t.ConfiguredRetryStrategy=ConfiguredRetryStrategy},22234:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DefaultRateLimiter=void 0;const n=o(6375);class DefaultRateLimiter{constructor(e){var t,o,n,r,s;this.currentCapacity=0;this.enabled=false;this.lastMaxRate=0;this.measuredTxRate=0;this.requestCount=0;this.lastTimestamp=0;this.timeWindow=0;this.beta=(t=e===null||e===void 0?void 0:e.beta)!==null&&t!==void 0?t:.7;this.minCapacity=(o=e===null||e===void 0?void 0:e.minCapacity)!==null&&o!==void 0?o:1;this.minFillRate=(n=e===null||e===void 0?void 0:e.minFillRate)!==null&&n!==void 0?n:.5;this.scaleConstant=(r=e===null||e===void 0?void 0:e.scaleConstant)!==null&&r!==void 0?r:.4;this.smooth=(s=e===null||e===void 0?void 0:e.smooth)!==null&&s!==void 0?s:.8;const i=this.getCurrentTimeInSeconds();this.lastThrottleTime=i;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>setTimeout(e,t)))}this.currentCapacity=this.currentCapacity-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();if((0,n.isThrottlingError)(e)){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const o=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(o)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}t.DefaultRateLimiter=DefaultRateLimiter},48361:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StandardRetryStrategy=void 0;const n=o(93435);const r=o(66302);const s=o(21337);const i=o(1127);class StandardRetryStrategy{constructor(e){this.maxAttempts=e;this.mode=n.RETRY_MODES.STANDARD;this.capacity=r.INITIAL_RETRY_TOKENS;this.retryBackoffStrategy=(0,s.getDefaultRetryBackoffStrategy)();this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return(0,i.createDefaultRetryToken)({retryDelay:r.DEFAULT_RETRY_DELAY_BASE,retryCount:0})}async refreshRetryTokenForRetry(e,t){const o=await this.getMaxAttempts();if(this.shouldRetry(e,t,o)){const o=t.errorType;this.retryBackoffStrategy.setDelayBase(o==="THROTTLING"?r.THROTTLING_RETRY_DELAY_BASE:r.DEFAULT_RETRY_DELAY_BASE);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const s=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n;const A=this.getCapacityCost(o);this.capacity-=A;return(0,i.createDefaultRetryToken)({retryDelay:s,retryCount:e.getRetryCount()+1,retryCost:A})}throw new Error("No retry token available")}recordSuccess(e){var t;this.capacity=Math.max(r.INITIAL_RETRY_TOKENS,this.capacity+((t=e.getRetryCost())!==null&&t!==void 0?t:r.NO_RETRY_INCREMENT))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${n.DEFAULT_MAX_ATTEMPTS}`);return n.DEFAULT_MAX_ATTEMPTS}}shouldRetry(e,t,o){const n=e.getRetryCount()+1;return n<o&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?r.TIMEOUT_RETRY_COST:r.RETRY_COST}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}t.StandardRetryStrategy=StandardRetryStrategy},93435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_MODE=t.DEFAULT_MAX_ATTEMPTS=t.RETRY_MODES=void 0;var o;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(o=t.RETRY_MODES||(t.RETRY_MODES={}));t.DEFAULT_MAX_ATTEMPTS=3;t.DEFAULT_RETRY_MODE=o.STANDARD},66302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.REQUEST_HEADER=t.INVOCATION_ID_HEADER=t.NO_RETRY_INCREMENT=t.TIMEOUT_RETRY_COST=t.RETRY_COST=t.INITIAL_RETRY_TOKENS=t.THROTTLING_RETRY_DELAY_BASE=t.MAXIMUM_RETRY_DELAY=t.DEFAULT_RETRY_DELAY_BASE=void 0;t.DEFAULT_RETRY_DELAY_BASE=100;t.MAXIMUM_RETRY_DELAY=20*1e3;t.THROTTLING_RETRY_DELAY_BASE=500;t.INITIAL_RETRY_TOKENS=500;t.RETRY_COST=5;t.TIMEOUT_RETRY_COST=10;t.NO_RETRY_INCREMENT=1;t.INVOCATION_ID_HEADER="amz-sdk-invocation-id";t.REQUEST_HEADER="amz-sdk-request"},21337:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDefaultRetryBackoffStrategy=void 0;const n=o(66302);const getDefaultRetryBackoffStrategy=()=>{let e=n.DEFAULT_RETRY_DELAY_BASE;const computeNextBackoffDelay=t=>Math.floor(Math.min(n.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};t.getDefaultRetryBackoffStrategy=getDefaultRetryBackoffStrategy},1127:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultRetryToken=void 0;const n=o(66302);const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:o})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(n.MAXIMUM_RETRY_DELAY,e);const getRetryCost=()=>o;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};t.createDefaultRetryToken=createDefaultRetryToken},84902:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(65053),t);n.__exportStar(o(25689),t);n.__exportStar(o(22234),t);n.__exportStar(o(48361),t);n.__exportStar(o(93435),t);n.__exportStar(o(66302),t);n.__exportStar(o(75427),t)},75427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},22094:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Uint8ArrayBlobAdapter=void 0;const n=o(82098);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){switch(typeof e){case"string":return(0,n.transformFromString)(e,t);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){return(0,n.transformToString)(this,e)}}t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter},82098:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromString=t.transformToString=void 0;const n=o(75600);const r=o(41895);const s=o(22094);function transformToString(e,t="utf-8"){if(t==="base64"){return(0,n.toBase64)(e)}return(0,r.toUtf8)(e)}t.transformToString=transformToString;function transformFromString(e,t){if(t==="base64"){return s.Uint8ArrayBlobAdapter.mutate((0,n.fromBase64)(e))}return s.Uint8ArrayBlobAdapter.mutate((0,r.fromUtf8)(e))}t.transformFromString=transformFromString},23636:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const n=o(12781);const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:o,bodyLengthChecker:r,checksumAlgorithmFn:s,checksumLocationName:i,streamHasher:A}=t;const a=o!==undefined&&s!==undefined&&i!==undefined&&A!==undefined;const c=a?A(s,e):undefined;const u=new n.Readable({read:()=>{}});e.on("data",(e=>{const t=r(e)||0;u.push(`${t.toString(16)}\r\n`);u.push(e);u.push("\r\n")}));e.on("end",(async()=>{u.push(`0\r\n`);if(a){const e=o(await c);u.push(`${i}:${e}\r\n`);u.push(`\r\n`)}u.push(null)}));return u};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},96607:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(22094),t);n.__exportStar(o(23636),t);n.__exportStar(o(4515),t)},4515:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const n=o(20258);const r=o(31381);const s=o(12781);const i=o(73837);const A="The stream has already been transformed.";const sdkStreamMixin=e=>{var t,o;if(!(e instanceof s.Readable)){const n=((o=(t=e===null||e===void 0?void 0:e.__proto__)===null||t===void 0?void 0:t.constructor)===null||o===void 0?void 0:o.name)||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}let a=false;const transformToByteArray=async()=>{if(a){throw new Error(A)}a=true;return await(0,n.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,r.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const o=new i.TextDecoder(e);return o.decode(t)}},transformToWebStream:()=>{if(a){throw new Error(A)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof s.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.")}a=true;return s.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},26174:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUriPath=void 0;const n=o(60010);const escapeUriPath=e=>e.split("/").map(n.escapeUri).join("/");t.escapeUriPath=escapeUriPath},60010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeUri=void 0;const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);t.escapeUri=escapeUri;const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},54197:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(60010),t);n.__exportStar(o(26174),t)},45917:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromUtf8=void 0;const n=o(31381);const fromUtf8=e=>{const t=(0,n.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};t.fromUtf8=fromUtf8},41895:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(45917),t);n.__exportStar(o(95470),t);n.__exportStar(o(99960),t)},95470:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUint8Array=void 0;const n=o(45917);const toUint8Array=e=>{if(typeof e==="string"){return(0,n.fromUtf8)(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};t.toUint8Array=toUint8Array},99960:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toUtf8=void 0;const n=o(31381);const toUtf8=e=>(0,n.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");t.toUtf8=toUtf8},76991:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createWaiter=void 0;const n=o(39033);const r=o(26e3);const s=o(79089);const abortTimeout=async e=>new Promise((t=>{e.onabort=()=>t({state:s.WaiterState.ABORTED})}));const createWaiter=async(e,t,o)=>{const i={...s.waiterServiceDefaults,...e};(0,r.validateWaiterOptions)(i);const A=[(0,n.runPolling)(i,t,o)];if(e.abortController){A.push(abortTimeout(e.abortController.signal))}if(e.abortSignal){A.push(abortTimeout(e.abortSignal))}return Promise.race(A)};t.createWaiter=createWaiter},78011:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(76991),t);n.__exportStar(o(79089),t)},39033:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runPolling=void 0;const n=o(62380);const r=o(79089);const exponentialBackoffWithJitter=(e,t,o,n)=>{if(n>o)return t;const r=e*2**(n-1);return randomInRange(e,r)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:t,maxWaitTime:o,abortController:s,client:i,abortSignal:A},a,c)=>{var u;const{state:l,reason:d}=await c(i,a);if(l!==r.WaiterState.RETRY){return{state:l,reason:d}}let g=1;const E=Date.now()+o*1e3;const p=Math.log(t/e)/Math.log(2)+1;while(true){if(((u=s===null||s===void 0?void 0:s.signal)===null||u===void 0?void 0:u.aborted)||(A===null||A===void 0?void 0:A.aborted)){return{state:r.WaiterState.ABORTED}}const o=exponentialBackoffWithJitter(e,t,p,g);if(Date.now()+o*1e3>E){return{state:r.WaiterState.TIMEOUT}}await(0,n.sleep)(o);const{state:l,reason:d}=await c(i,a);if(l!==r.WaiterState.RETRY){return{state:l,reason:d}}g+=1}};t.runPolling=runPolling},26e3:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=o(4351);n.__exportStar(o(62380),t);n.__exportStar(o(6594),t)},62380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sleep=void 0;const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));t.sleep=sleep},6594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateWaiterOptions=void 0;const validateWaiterOptions=e=>{if(e.maxWaitTime<1){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<1){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<1){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};t.validateWaiterOptions=validateWaiterOptions},79089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkExceptions=t.WaiterState=t.waiterServiceDefaults=void 0;t.waiterServiceDefaults={minDelay:2,maxDelay:120};var o;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(o=t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===o.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);t.name="AbortError";throw t}else if(e.state===o.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);t.name="TimeoutError";throw t}else if(e.state!==o.SUCCESS){throw new Error(`${JSON.stringify({result:e})}`)}return e};t.checkExceptions=checkExceptions},8348:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const i=s(o(13685));const A=s(o(95687));async function toBuffer(e){let t=0;const o=[];for await(const n of e){t+=n.length;o.push(n)}return Buffer.concat(o,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const o=t.toString("utf8");try{return JSON.parse(o)}catch(e){const t=e;t.message+=` (input: ${o})`;throw t}}t.json=json;function req(e,t={}){const o=typeof e==="string"?e:e.href;const n=(o.startsWith("https:")?A:i).request(e,t);const r=new Promise(((e,t)=>{n.once("response",e).once("error",t).end()}));n.then=r.then.bind(r);return n}t.req=req},70694:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var i=this&&this.__exportStar||function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))n(t,e,o)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const A=s(o(13685));i(o(8348),t);const a=Symbol("AgentBaseInternalState");class Agent extends A.Agent{constructor(e){super(e);this[a]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}createSocket(e,t,o){const n={...t,secureEndpoint:this.isSecureEndpoint(t)};Promise.resolve().then((()=>this.connect(e,n))).then((r=>{if(r instanceof A.Agent){return r.addRequest(e,n)}this[a].currentSocket=r;super.createSocket(e,t,o)}),o)}createConnection(){const e=this[a].currentSocket;this[a].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[a].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[a]){this[a].defaultPort=e}}get protocol(){return this[a].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[a]){this[a].protocol=e}}}t.Agent=Agent},28222:(e,t,o)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const o="color: "+this.color;t.splice(1,0,o,"color: inherit");let n=0;let r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){r=n}}));t.splice(r,0,o)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=o(46243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},46243:(e,t,o)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=o(80900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let o=0;o<e.length;o++){t=(t<<5)-t+e.charCodeAt(o);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let o=null;let n;let r;function debug(...e){if(!debug.enabled){return}const o=debug;const n=Number(new Date);const r=n-(t||n);o.diff=r;o.prev=t;o.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}s++;const r=createDebug.formatters[n];if(typeof r==="function"){const n=e[s];t=r.call(o,n);e.splice(s,1);s--}return t}));createDebug.formatArgs.call(o,e);const i=o.log||createDebug.log;i.apply(o,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(o!==null){return o}if(n!==createDebug.namespaces){n=createDebug.namespaces;r=createDebug.enabled(e)}return r},set:e=>{o=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const o=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);o.log=this.log;return o}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const o=(typeof e==="string"?e:"").split(/[\s,]+/);const n=o.length;for(t=0;t<n;t++){if(!o[t]){continue}e=o[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let o;for(t=0,o=createDebug.skips.length;t<o;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,o=createDebug.names.length;t<o;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},38237:(e,t,o)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=o(28222)}else{e.exports=o(35332)}},35332:(e,t,o)=>{const n=o(76224);const r=o(73837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=o(59318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const o=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[o]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:o,useColors:n}=this;if(n){const n=this.color;const r="[3"+(n<8?n:"8;5;"+n);const s=` ${r};1m${o} [0m`;t[0]=s+t[0].split("\n").join("\n"+s);t.push(r+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+o+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(r.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const o=Object.keys(t.inspectOpts);for(let n=0;n<o.length;n++){e.inspectOpts[o[n]]=t.inspectOpts[o[n]]}}e.exports=o(46243)(t);const{formatters:s}=e.exports;s.o=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};s.O=function(e){this.inspectOpts.colors=this.useColors;return r.inspect(e,this.inspectOpts)}},12603:(e,t,o)=>{"use strict";const n=o(61739);const r=o(42380);const s=o(80660);e.exports={XMLParser:r,XMLValidator:n,XMLBuilder:s}},38280:(e,t)=>{"use strict";const o=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";const n=o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const r="["+o+"]["+n+"]*";const s=new RegExp("^"+r+"$");const getAllMatches=function(e,t){const o=[];let n=t.exec(e);while(n){const r=[];r.startIndex=t.lastIndex-n[0].length;const s=n.length;for(let e=0;e<s;e++){r.push(n[e])}o.push(r);n=t.exec(e)}return o};const isName=function(e){const t=s.exec(e);return!(t===null||typeof t==="undefined")};t.isExist=function(e){return typeof e!=="undefined"};t.isEmptyObject=function(e){return Object.keys(e).length===0};t.merge=function(e,t,o){if(t){const n=Object.keys(t);const r=n.length;for(let s=0;s<r;s++){if(o==="strict"){e[n[s]]=[t[n[s]]]}else{e[n[s]]=t[n[s]]}}}};t.getValue=function(e){if(t.isExist(e)){return e}else{return""}};t.isName=isName;t.getAllMatches=getAllMatches;t.nameRegexp=r},61739:(e,t,o)=>{"use strict";const n=o(38280);const r={allowBooleanAttributes:false,unpairedTags:[]};t.validate=function(e,t){t=Object.assign({},r,t);const o=[];let n=false;let s=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let r=0;r<e.length;r++){if(e[r]==="<"&&e[r+1]==="?"){r+=2;r=readPI(e,r);if(r.err)return r}else if(e[r]==="<"){let i=r;r++;if(e[r]==="!"){r=readCommentAndCDATA(e,r);continue}else{let A=false;if(e[r]==="/"){A=true;r++}let a="";for(;r<e.length&&e[r]!==">"&&e[r]!==" "&&e[r]!=="\t"&&e[r]!=="\n"&&e[r]!=="\r";r++){a+=e[r]}a=a.trim();if(a[a.length-1]==="/"){a=a.substring(0,a.length-1);r--}if(!validateTagName(a)){let t;if(a.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+a+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,r))}const c=readAttributeStr(e,r);if(c===false){return getErrorObject("InvalidAttr","Attributes for '"+a+"' have open quote.",getLineNumberForPosition(e,r))}let u=c.value;r=c.index;if(u[u.length-1]==="/"){const o=r-u.length;u=u.substring(0,u.length-1);const s=validateAttributeString(u,t);if(s===true){n=true}else{return getErrorObject(s.err.code,s.err.msg,getLineNumberForPosition(e,o+s.err.line))}}else if(A){if(!c.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+a+"' doesn't have proper closing.",getLineNumberForPosition(e,r))}else if(u.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+a+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,i))}else{const t=o.pop();if(a!==t.tagName){let o=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+o.line+", col "+o.col+") instead of closing tag '"+a+"'.",getLineNumberForPosition(e,i))}if(o.length==0){s=true}}}else{const A=validateAttributeString(u,t);if(A!==true){return getErrorObject(A.err.code,A.err.msg,getLineNumberForPosition(e,r-u.length+A.err.line))}if(s===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,r))}else if(t.unpairedTags.indexOf(a)!==-1){}else{o.push({tagName:a,tagStartPos:i})}n=true}for(r++;r<e.length;r++){if(e[r]==="<"){if(e[r+1]==="!"){r++;r=readCommentAndCDATA(e,r);continue}else if(e[r+1]==="?"){r=readPI(e,++r);if(r.err)return r}else{break}}else if(e[r]==="&"){const t=validateAmpersand(e,r);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,r));r=t}else{if(s===true&&!isWhiteSpace(e[r])){return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,r))}}}if(e[r]==="<"){r--}}}else{if(isWhiteSpace(e[r])){continue}return getErrorObject("InvalidChar","char '"+e[r]+"' is not expected.",getLineNumberForPosition(e,r))}}if(!n){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(o.length==1){return getErrorObject("InvalidTag","Unclosed tag '"+o[0].tagName+"'.",getLineNumberForPosition(e,o[0].tagStartPos))}else if(o.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(o.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true};function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const o=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){const n=e.substr(o,t-o);if(t>5&&n==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++){if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let o=1;for(t+=8;t<e.length;t++){if(e[t]==="<"){o++}else if(e[t]===">"){o--;if(o===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++){if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}}return t}const s='"';const i="'";function readAttributeStr(e,t){let o="";let n="";let r=false;for(;t<e.length;t++){if(e[t]===s||e[t]===i){if(n===""){n=e[t]}else if(n!==e[t]){}else{n=""}}else if(e[t]===">"){if(n===""){r=true;break}}o+=e[t]}if(n!==""){return false}return{value:o,index:t,tagClosed:r}}const A=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const o=n.getAllMatches(e,A);const r={};for(let e=0;e<o.length;e++){if(o[e][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+o[e][2]+"' has no space in starting.",getPositionFromMatch(o[e]))}else if(o[e][3]!==undefined&&o[e][4]===undefined){return getErrorObject("InvalidAttr","Attribute '"+o[e][2]+"' is without value.",getPositionFromMatch(o[e]))}else if(o[e][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+o[e][2]+"' is not allowed.",getPositionFromMatch(o[e]))}const n=o[e][2];if(!validateAttrName(n)){return getErrorObject("InvalidAttr","Attribute '"+n+"' is an invalid name.",getPositionFromMatch(o[e]))}if(!r.hasOwnProperty(n)){r[n]=1}else{return getErrorObject("InvalidAttr","Attribute '"+n+"' is repeated.",getPositionFromMatch(o[e]))}}return true}function validateNumberAmpersand(e,t){let o=/\d/;if(e[t]==="x"){t++;o=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(o))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let o=0;for(;t<e.length;t++,o++){if(e[t].match(/\w/)&&o<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,o){return{err:{code:e,msg:t,line:o.line||o,col:o.col}}}function validateAttrName(e){return n.isName(e)}function validateTagName(e){return n.isName(e)}function getLineNumberForPosition(e,t){const o=e.substring(0,t).split(/\r?\n/);return{line:o.length,col:o[o.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}},80660:(e,t,o)=>{"use strict";const n=o(72462);const r={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false};function Builder(e){this.options=Object.assign({},r,e);if(this.options.ignoreAttributes||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return n(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}return this.j2x(e,0).val}};Builder.prototype.j2x=function(e,t){let o="";let n="";for(let r in e){if(typeof e[r]==="undefined"){}else if(e[r]===null){if(r[0]==="?")n+=this.indentate(t)+"<"+r+"?"+this.tagEndChar;else n+=this.indentate(t)+"<"+r+"/"+this.tagEndChar}else if(e[r]instanceof Date){n+=this.buildTextValNode(e[r],r,"",t)}else if(typeof e[r]!=="object"){const s=this.isAttribute(r);if(s){o+=this.buildAttrPairStr(s,""+e[r])}else{if(r===this.options.textNodeName){let t=this.options.tagValueProcessor(r,""+e[r]);n+=this.replaceEntitiesValue(t)}else{n+=this.buildTextValNode(e[r],r,"",t)}}}else if(Array.isArray(e[r])){const o=e[r].length;let s="";for(let i=0;i<o;i++){const o=e[r][i];if(typeof o==="undefined"){}else if(o===null){if(r[0]==="?")n+=this.indentate(t)+"<"+r+"?"+this.tagEndChar;else n+=this.indentate(t)+"<"+r+"/"+this.tagEndChar}else if(typeof o==="object"){if(this.options.oneListGroup){s+=this.j2x(o,t+1).val}else{s+=this.processTextOrObjNode(o,r,t)}}else{s+=this.buildTextValNode(o,r,"",t)}}if(this.options.oneListGroup){s=this.buildObjectNode(s,r,"",t)}n+=s}else{if(this.options.attributesGroupName&&r===this.options.attributesGroupName){const t=Object.keys(e[r]);const n=t.length;for(let s=0;s<n;s++){o+=this.buildAttrPairStr(t[s],""+e[r][t[s]])}}else{n+=this.processTextOrObjNode(e[r],r,t)}}}return{attrStr:o,val:n}};Builder.prototype.buildAttrPairStr=function(e,t){t=this.options.attributeValueProcessor(e,""+t);t=this.replaceEntitiesValue(t);if(this.options.suppressBooleanAttributes&&t==="true"){return" "+e}else return" "+e+'="'+t+'"'};function processTextOrObjNode(e,t,o){const n=this.j2x(e,o+1);if(e[this.options.textNodeName]!==undefined&&Object.keys(e).length===1){return this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,o)}else{return this.buildObjectNode(n.val,t,n.attrStr,o)}}Builder.prototype.buildObjectNode=function(e,t,o,n){if(e===""){if(t[0]==="?")return this.indentate(n)+"<"+t+o+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+t+o+this.closeTag(t)+this.tagEndChar}}else{let r="</"+t+this.tagEndChar;let s="";if(t[0]==="?"){s="?";r=""}if(o&&e.indexOf("<")===-1){return this.indentate(n)+"<"+t+o+s+">"+e+r}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&s.length===0){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(n)+"<"+t+o+s+this.tagEndChar+e+this.indentate(n)+r}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`></${e}`}return t};function buildEmptyObjNode(e,t,o,n){if(e!==""){return this.buildObjectNode(e,t,o,n)}else{if(t[0]==="?")return this.indentate(n)+"<"+t+o+"?"+this.tagEndChar;else{return this.indentate(n)+"<"+t+o+"/"+this.tagEndChar}}}Builder.prototype.buildTextValNode=function(e,t,o,n){if(this.options.cdataPropName!==false&&t===this.options.cdataPropName){return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(n)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(n)+"<"+t+o+"?"+this.tagEndChar}else{let r=this.options.tagValueProcessor(t,e);r=this.replaceEntitiesValue(r);if(r===""){return this.indentate(n)+"<"+t+o+this.closeTag(t)+this.tagEndChar}else{return this.indentate(n)+"<"+t+o+">"+r+"</"+t+this.tagEndChar}}};Builder.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities){for(let t=0;t<this.options.entities.length;t++){const o=this.options.entities[t];e=e.replace(o.regex,o.val)}}return e};function indentate(e){return this.options.indentBy.repeat(e)}function isAttribute(e){if(e.startsWith(this.options.attributeNamePrefix)){return e.substr(this.attrPrefixLen)}else{return false}}e.exports=Builder},72462:e=>{const t="\n";function toXml(e,o){let n="";if(o.format&&o.indentBy.length>0){n=t}return arrToStr(e,o,"",n)}function arrToStr(e,t,o,n){let r="";let s=false;for(let i=0;i<e.length;i++){const A=e[i];const a=propName(A);let c="";if(o.length===0)c=a;else c=`${o}.${a}`;if(a===t.textNodeName){let e=A[a];if(!isStopNode(c,t)){e=t.tagValueProcessor(a,e);e=replaceEntitiesValue(e,t)}if(s){r+=n}r+=e;s=false;continue}else if(a===t.cdataPropName){if(s){r+=n}r+=`<![CDATA[${A[a][0][t.textNodeName]}]]>`;s=false;continue}else if(a===t.commentPropName){r+=n+`\x3c!--${A[a][0][t.textNodeName]}--\x3e`;s=true;continue}else if(a[0]==="?"){const e=attr_to_str(A[":@"],t);const o=a==="?xml"?"":n;let i=A[a][0][t.textNodeName];i=i.length!==0?" "+i:"";r+=o+`<${a}${i}${e}?>`;s=true;continue}let u=n;if(u!==""){u+=t.indentBy}const l=attr_to_str(A[":@"],t);const d=n+`<${a}${l}`;const g=arrToStr(A[a],t,c,u);if(t.unpairedTags.indexOf(a)!==-1){if(t.suppressUnpairedNode)r+=d+">";else r+=d+"/>"}else if((!g||g.length===0)&&t.suppressEmptyNode){r+=d+"/>"}else if(g&&g.endsWith(">")){r+=d+`>${g}${n}</${a}>`}else{r+=d+">";if(g&&n!==""&&(g.includes("/>")||g.includes("</"))){r+=n+t.indentBy+g+n}else{r+=g}r+=`</${a}>`}s=true}return r}function propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const o=t[e];if(o!==":@")return o}}function attr_to_str(e,t){let o="";if(e&&!t.ignoreAttributes){for(let n in e){let r=t.attributeValueProcessor(n,e[n]);r=replaceEntitiesValue(r,t);if(r===true&&t.suppressBooleanAttributes){o+=` ${n.substr(t.attributeNamePrefix.length)}`}else{o+=` ${n.substr(t.attributeNamePrefix.length)}="${r}"`}}}return o}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let o=e.substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes){if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+o)return true}return false}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities){for(let o=0;o<t.entities.length;o++){const n=t.entities[o];e=e.replace(n.regex,n.val)}}return e}e.exports=toXml},6072:(e,t,o)=>{const n=o(38280);function readDocType(e,t){const o={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let n=1;let r=false,s=false;let i="";for(;t<e.length;t++){if(e[t]==="<"&&!s){if(r&&isEntity(e,t)){t+=7;[entityName,val,t]=readEntityExp(e,t+1);if(val.indexOf("&")===-1)o[validateEntityName(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val}}else if(r&&isElement(e,t))t+=8;else if(r&&isAttlist(e,t))t+=8;else if(r&&isNotation(e,t))t+=9;else if(isComment)s=true;else throw new Error("Invalid DOCTYPE");n++;i=""}else if(e[t]===">"){if(s){if(e[t-1]==="-"&&e[t-2]==="-"){s=false;n--}}else{n--}if(n===0){break}}else if(e[t]==="["){r=true}else{i+=e[t]}}if(n!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:o,i:t}}function readEntityExp(e,t){let o="";for(;t<e.length&&(e[t]!=="'"&&e[t]!=='"');t++){o+=e[t]}o=o.trim();if(o.indexOf(" ")!==-1)throw new Error("External entites are not supported");const n=e[t++];let r="";for(;t<e.length&&e[t]!==n;t++){r+=e[t]}return[o,r,t]}function isComment(e,t){if(e[t+1]==="!"&&e[t+2]==="-"&&e[t+3]==="-")return true;return false}function isEntity(e,t){if(e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="N"&&e[t+4]==="T"&&e[t+5]==="I"&&e[t+6]==="T"&&e[t+7]==="Y")return true;return false}function isElement(e,t){if(e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="L"&&e[t+4]==="E"&&e[t+5]==="M"&&e[t+6]==="E"&&e[t+7]==="N"&&e[t+8]==="T")return true;return false}function isAttlist(e,t){if(e[t+1]==="!"&&e[t+2]==="A"&&e[t+3]==="T"&&e[t+4]==="T"&&e[t+5]==="L"&&e[t+6]==="I"&&e[t+7]==="S"&&e[t+8]==="T")return true;return false}function isNotation(e,t){if(e[t+1]==="!"&&e[t+2]==="N"&&e[t+3]==="O"&&e[t+4]==="T"&&e[t+5]==="A"&&e[t+6]==="T"&&e[t+7]==="I"&&e[t+8]==="O"&&e[t+9]==="N")return true;return false}function validateEntityName(e){if(n.isName(e))return e;else throw new Error(`Invalid entity name ${e}`)}e.exports=readDocType},86993:(e,t)=>{const o={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,o){return e}};const buildOptions=function(e){return Object.assign({},o,e)};t.buildOptions=buildOptions;t.defaultOptions=o},25832:(e,t,o)=>{"use strict";const n=o(38280);const r=o(7462);const s=o(6072);const i=o(14526);const A="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,n.nameRegexp);class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild}}function addExternalEntities(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const n=t[o];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function parseTextData(e,t,o,n,r,s,i){if(e!==undefined){if(this.options.trimValues&&!n){e=e.trim()}if(e.length>0){if(!i)e=this.replaceEntitiesValue(e);const n=this.options.tagValueProcessor(t,e,o,r,s);if(n===null||n===undefined){return e}else if(typeof n!==typeof e||n!==e){return n}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const o=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=o+t[1]}}return e}const a=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,o){if(!this.options.ignoreAttributes&&typeof e==="string"){const o=n.getAllMatches(e,a);const r=o.length;const s={};for(let e=0;e<r;e++){const n=this.resolveNameSpace(o[e][1]);let r=o[e][4];let i=this.options.attributeNamePrefix+n;if(n.length){if(this.options.transformAttributeName){i=this.options.transformAttributeName(i)}if(i==="__proto__")i="#__proto__";if(r!==undefined){if(this.options.trimValues){r=r.trim()}r=this.replaceEntitiesValue(r);const e=this.options.attributeValueProcessor(n,r,t);if(e===null||e===undefined){s[i]=r}else if(typeof e!==typeof r||e!==r){s[i]=e}else{s[i]=parseValue(r,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){s[i]=true}}}if(!Object.keys(s).length){return}if(this.options.attributesGroupName){const e={};e[this.options.attributesGroupName]=s;return e}return s}}const parseXml=function(e){e=e.replace(/\r\n?/g,"\n");const t=new r("!xml");let o=t;let n="";let i="";for(let A=0;A<e.length;A++){const a=e[A];if(a==="<"){if(e[A+1]==="/"){const t=findClosingIndex(e,">",A,"Closing Tag is not closed.");let r=e.substring(A+2,t).trim();if(this.options.removeNSPrefix){const e=r.indexOf(":");if(e!==-1){r=r.substr(e+1)}}if(this.options.transformTagName){r=this.options.transformTagName(r)}if(o){n=this.saveTextToParentTag(n,o,i)}const s=i.substring(i.lastIndexOf(".")+1);if(r&&this.options.unpairedTags.indexOf(r)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: </${r}>`)}let a=0;if(s&&this.options.unpairedTags.indexOf(s)!==-1){a=i.lastIndexOf(".",i.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{a=i.lastIndexOf(".")}i=i.substring(0,a);o=this.tagsNodeStack.pop();n="";A=t}else if(e[A+1]==="?"){let t=readTagExp(e,A,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,o,i);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new r(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)}this.addChild(o,e,i)}A=t.closeIndex+1}else if(e.substr(A+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",A+4,"Comment is not closed.");if(this.options.commentPropName){const r=e.substring(A+4,t-2);n=this.saveTextToParentTag(n,o,i);o.add(this.options.commentPropName,[{[this.options.textNodeName]:r}])}A=t}else if(e.substr(A+1,2)==="!D"){const t=s(e,A);this.docTypeEntities=t.entities;A=t.i}else if(e.substr(A+1,2)==="!["){const t=findClosingIndex(e,"]]>",A,"CDATA is not closed.")-2;const r=e.substring(A+9,t);n=this.saveTextToParentTag(n,o,i);if(this.options.cdataPropName){o.add(this.options.cdataPropName,[{[this.options.textNodeName]:r}])}else{let e=this.parseTextData(r,o.tagname,i,true,false,true);if(e==undefined)e="";o.add(this.options.textNodeName,e)}A=t+2}else{let s=readTagExp(e,A,this.options.removeNSPrefix);let a=s.tagName;let c=s.tagExp;let u=s.attrExpPresent;let l=s.closeIndex;if(this.options.transformTagName){a=this.options.transformTagName(a)}if(o&&n){if(o.tagname!=="!xml"){n=this.saveTextToParentTag(n,o,i,false)}}const d=o;if(d&&this.options.unpairedTags.indexOf(d.tagname)!==-1){o=this.tagsNodeStack.pop();i=i.substring(0,i.lastIndexOf("."))}if(a!==t.tagname){i+=i?"."+a:a}if(this.isItStopNode(this.options.stopNodes,i,a)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1){A=s.closeIndex}else if(this.options.unpairedTags.indexOf(a)!==-1){A=s.closeIndex}else{const o=this.readStopNodeData(e,a,l+1);if(!o)throw new Error(`Unexpected end of ${a}`);A=o.i;t=o.tagContent}const n=new r(a);if(a!==c&&u){n[":@"]=this.buildAttributesMap(c,i,a)}if(t){t=this.parseTextData(t,a,i,true,u,true,true)}i=i.substr(0,i.lastIndexOf("."));n.add(this.options.textNodeName,t);this.addChild(o,n,i)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){if(a[a.length-1]==="/"){a=a.substr(0,a.length-1);c=a}else{c=c.substr(0,c.length-1)}if(this.options.transformTagName){a=this.options.transformTagName(a)}const e=new r(a);if(a!==c&&u){e[":@"]=this.buildAttributesMap(c,i,a)}this.addChild(o,e,i);i=i.substr(0,i.lastIndexOf("."))}else{const e=new r(a);this.tagsNodeStack.push(o);if(a!==c&&u){e[":@"]=this.buildAttributesMap(c,i,a)}this.addChild(o,e,i);o=e}n="";A=l}}}else{n+=e[A]}}return t.child};function addChild(e,t,o){const n=this.options.updateTag(t.tagname,o,t[":@"]);if(n===false){}else if(typeof n==="string"){t.tagname=n;e.addChild(t)}else{e.addChild(t)}}const replaceEntitiesValue=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const o=this.docTypeEntities[t];e=e.replace(o.regx,o.val)}for(let t in this.lastEntities){const o=this.lastEntities[t];e=e.replace(o.regex,o.val)}if(this.options.htmlEntities){for(let t in this.htmlEntities){const o=this.htmlEntities[t];e=e.replace(o.regex,o.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function saveTextToParentTag(e,t,o,n){if(e){if(n===undefined)n=Object.keys(t.child).length===0;e=this.parseTextData(e,t.tagname,o,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,n);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t,o){const n="*."+o;for(const o in e){const r=e[o];if(n===r||t===r)return true}return false}function tagExpWithClosingIndex(e,t,o=">"){let n;let r="";for(let s=t;s<e.length;s++){let t=e[s];if(n){if(t===n)n=""}else if(t==='"'||t==="'"){n=t}else if(t===o[0]){if(o[1]){if(e[s+1]===o[1]){return{data:r,index:s}}}else{return{data:r,index:s}}}else if(t==="\t"){t=" "}r+=t}}function findClosingIndex(e,t,o,n){const r=e.indexOf(t,o);if(r===-1){throw new Error(n)}else{return r+t.length-1}}function readTagExp(e,t,o,n=">"){const r=tagExpWithClosingIndex(e,t+1,n);if(!r)return;let s=r.data;const i=r.index;const A=s.search(/\s/);let a=s;let c=true;if(A!==-1){a=s.substr(0,A).replace(/\s\s*$/,"");s=s.substr(A+1)}if(o){const e=a.indexOf(":");if(e!==-1){a=a.substr(e+1);c=a!==r.data.substr(e+1)}}return{tagName:a,tagExp:s,closeIndex:i,attrExpPresent:c}}function readStopNodeData(e,t,o){const n=o;let r=1;for(;o<e.length;o++){if(e[o]==="<"){if(e[o+1]==="/"){const s=findClosingIndex(e,">",o,`${t} is not closed`);let i=e.substring(o+2,s).trim();if(i===t){r--;if(r===0){return{tagContent:e.substring(n,o),i:s}}}o=s}else if(e[o+1]==="?"){const t=findClosingIndex(e,"?>",o+1,"StopNode is not closed.");o=t}else if(e.substr(o+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",o+3,"StopNode is not closed.");o=t}else if(e.substr(o+1,2)==="!["){const t=findClosingIndex(e,"]]>",o,"StopNode is not closed.")-2;o=t}else{const n=readTagExp(e,o,">");if(n){const e=n&&n.tagName;if(e===t&&n.tagExp[n.tagExp.length-1]!=="/"){r++}o=n.closeIndex}}}}}function parseValue(e,t,o){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return i(e,o)}else{if(n.isExist(e)){return e}else{return""}}}e.exports=OrderedObjParser},42380:(e,t,o)=>{const{buildOptions:n}=o(86993);const r=o(25832);const{prettify:s}=o(42882);const i=o(61739);class XMLParser{constructor(e){this.externalEntities={};this.options=n(e)}parse(e,t){if(typeof e==="string"){}else if(e.toString){e=e.toString()}else{throw new Error("XML data is accepted in String or Bytes[] form.")}if(t){if(t===true)t={};const o=i.validate(e,t);if(o!==true){throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}}const o=new r(this.options);o.addExternalEntities(this.externalEntities);const n=o.parseXml(e);if(this.options.preserveOrder||n===undefined)return n;else return s(n,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'")}else if(t==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=t}}}e.exports=XMLParser},42882:(e,t)=>{"use strict";function prettify(e,t){return compress(e,t)}function compress(e,t,o){let n;const r={};for(let s=0;s<e.length;s++){const i=e[s];const A=propName(i);let a="";if(o===undefined)a=A;else a=o+"."+A;if(A===t.textNodeName){if(n===undefined)n=i[A];else n+=""+i[A]}else if(A===undefined){continue}else if(i[A]){let e=compress(i[A],t,a);const o=isLeafTag(e,t);if(i[":@"]){assignAttributes(e,i[":@"],a,t)}else if(Object.keys(e).length===1&&e[t.textNodeName]!==undefined&&!t.alwaysCreateTextNode){e=e[t.textNodeName]}else if(Object.keys(e).length===0){if(t.alwaysCreateTextNode)e[t.textNodeName]="";else e=""}if(r[A]!==undefined&&r.hasOwnProperty(A)){if(!Array.isArray(r[A])){r[A]=[r[A]]}r[A].push(e)}else{if(t.isArray(A,a,o)){r[A]=[e]}else{r[A]=e}}}}if(typeof n==="string"){if(n.length>0)r[t.textNodeName]=n}else if(n!==undefined)r[t.textNodeName]=n;return r}function propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const o=t[e];if(o!==":@")return o}}function assignAttributes(e,t,o,n){if(t){const r=Object.keys(t);const s=r.length;for(let i=0;i<s;i++){const s=r[i];if(n.isArray(s,o+"."+s,true,true)){e[s]=[t[s]]}else{e[s]=t[s]}}}}function isLeafTag(e,t){const{textNodeName:o}=t;const n=Object.keys(e).length;if(n===0){return true}if(n===1&&(e[o]||typeof e[o]==="boolean"||e[o]===0)){return true}return false}t.prettify=prettify},7462:e=>{"use strict";class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}}}e.exports=XmlNode},31621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const o=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(o+e);const r=t.indexOf("--");return n!==-1&&(r===-1||n<r)}},23764:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpProxyAgent=void 0;const A=s(o(41808));const a=s(o(24404));const c=i(o(38237));const u=o(82361);const l=o(70694);const d=(0,c.default)("http-proxy-agent");class HttpProxyAgent extends l.Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new URL(e):e;this.proxyHeaders=t?.headers??{};d("Creating new HttpProxyAgent instance: %o",this.proxy.href);const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?omit(t,"headers"):null,host:o,port:n}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:o}=this;const n=t.secureEndpoint?"https:":"http:";const r=e.getHeader("host")||"localhost";const s=`${n}//${r}`;const i=new URL(e.path,s);if(t.port!==80){i.port=String(t.port)}e.path=String(i);const A=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(o.username||o.password){const e=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!A["Proxy-Connection"]){A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(A)){const o=A[t];if(o){e.setHeader(t,o)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let o;let n;d("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){d("Patching connection write() output buffer with updated header");o=e.outputData[0].data;n=o.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+o.substring(n);d("Output buffer: %o",e.outputData[0].data)}let r;if(this.proxy.protocol==="https:"){d("Creating `tls.Socket`: %o",this.connectOpts);r=a.connect(this.connectOpts)}else{d("Creating `net.Socket`: %o",this.connectOpts);r=A.connect(this.connectOpts)}await(0,u.once)(r,"connect");return r}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const o={};let n;for(n in e){if(!t.includes(n)){o[n]=e[n]}}return o}},77219:function(e,t,o){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))n(t,e,o);r(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const A=s(o(41808));const a=s(o(24404));const c=i(o(39491));const u=i(o(38237));const l=o(70694);const d=o(595);const g=(0,u.default)("https-proxy-agent");class HttpsProxyAgent extends l.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new URL(e):e;this.proxyHeaders=t?.headers??{};g("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:o,port:n}}async connect(e,t){const{proxy:o}=this;if(!t.host){throw new TypeError('No "host" provided')}let n;if(o.protocol==="https:"){g("Creating `tls.Socket`: %o",this.connectOpts);const e=this.connectOpts.servername||this.connectOpts.host;n=a.connect({...this.connectOpts,servername:e&&A.isIP(e)?undefined:e})}else{g("Creating `net.Socket`: %o",this.connectOpts);n=A.connect(this.connectOpts)}const r=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const s=A.isIPv6(t.host)?`[${t.host}]`:t.host;let i=`CONNECT ${s}:${t.port} HTTP/1.1\r\n`;if(o.username||o.password){const e=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;r["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}r.Host=`${s}:${t.port}`;if(!r["Proxy-Connection"]){r["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(r)){i+=`${e}: ${r[e]}\r\n`}const u=(0,d.parseProxyResponse)(n);n.write(`${i}\r\n`);const{connect:l,buffered:E}=await u;e.emit("proxyConnect",l);this.emit("proxyConnect",l,e);if(l.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){g("Upgrading socket connection to TLS");const e=t.servername||t.host;return a.connect({...omit(t,"host","path","port"),socket:n,servername:A.isIP(e)?undefined:e})}return n}n.destroy();const p=new A.Socket({writable:false});p.readable=true;e.once("socket",(e=>{g("Replaying proxy buffer for failed request");(0,c.default)(e.listenerCount("data")>0);e.push(E);e.push(null)}));return p}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const o={};let n;for(n in e){if(!t.includes(n)){o[n]=e[n]}}return o}},595:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const r=n(o(38237));const s=(0,r.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,o)=>{let n=0;const r=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();s("onend");o(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();s("onerror %o",e);o(e)}function ondata(i){r.push(i);n+=i.length;const A=Buffer.concat(r,n);const a=A.indexOf("\r\n\r\n");if(a===-1){s("have not received end of HTTP headers yet...");read();return}const c=A.slice(0,a).toString("ascii").split("\r\n");const u=c.shift();if(!u){e.destroy();return o(new Error("No header received from proxy CONNECT response"))}const l=u.split(" ");const d=+l[1];const g=l.slice(2).join(" ");const E={};for(const t of c){if(!t)continue;const n=t.indexOf(":");if(n===-1){e.destroy();return o(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const r=t.slice(0,n).toLowerCase();const s=t.slice(n+1).trimStart();const i=E[r];if(typeof i==="string"){E[r]=[i,s]}else if(Array.isArray(i)){i.push(s)}else{E[r]=s}}s("got proxy server response: %o %o",u,E);cleanup();t({connect:{statusCode:d,statusText:g,headers:E},buffered:A})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},80900:e=>{var t=1e3;var o=t*60;var n=o*60;var r=n*24;var s=r*7;var i=r*365.25;e.exports=function(e,t){t=t||{};var o=typeof e;if(o==="string"&&e.length>0){return parse(e)}else if(o==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!A){return}var a=parseFloat(A[1]);var c=(A[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*o;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=r){return Math.round(e/r)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=o){return Math.round(e/o)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=r){return plural(e,s,r,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=o){return plural(e,s,o,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,o,n){var r=t>=o*1.5;return Math.round(e/o)+" "+n+(r?"s":"")}},14526:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/;const o=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt){Number.parseInt=window.parseInt}if(!Number.parseFloat&&window.parseFloat){Number.parseFloat=window.parseFloat}const n={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true};function toNumber(e,r={}){r=Object.assign({},n,r);if(!e||typeof e!=="string")return e;let s=e.trim();if(r.skipLike!==undefined&&r.skipLike.test(s))return e;else if(r.hex&&t.test(s)){return Number.parseInt(s,16)}else{const t=o.exec(s);if(t){const o=t[1];const n=t[2];let i=trimZeros(t[3]);const A=t[4]||t[6];if(!r.leadingZeros&&n.length>0&&o&&s[2]!==".")return e;else if(!r.leadingZeros&&n.length>0&&!o&&s[1]!==".")return e;else{const t=Number(s);const a=""+t;if(a.search(/[eE]/)!==-1){if(r.eNotation)return t;else return e}else if(A){if(r.eNotation)return t;else return e}else if(s.indexOf(".")!==-1){if(a==="0"&&i==="")return t;else if(a===i)return t;else if(o&&a==="-"+i)return t;else return e}if(n){if(i===a)return t;else if(o+i===a)return t;else return e}if(s===a)return t;else if(s===o+a)return t;return e}}else{return e}}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substr(0,e.length-1);return e}return e}e.exports=toNumber},59318:(e,t,o)=>{"use strict";const n=o(22037);const r=o(76224);const s=o(31621);const{env:i}=process;let A;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){A=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){A=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){A=1}else if(i.FORCE_COLOR==="false"){A=0}else{A=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(A===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!t&&A===undefined){return 0}const o=A||0;if(i.TERM==="dumb"){return o}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return o}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}return o}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,r.isatty(1))),stderr:translateLevel(supportsColor(true,r.isatty(2)))}},4351:e=>{var t;var o;var n;var r;var s;var i;var A;var a;var c;var u;var l;var d;var g;var E;var p;var C;var h;var f;var m;var I;var y;var Q;var B;var w;var S;var b;var R;var v;var D;var _;var P;(function(t){var o=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(o,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(o,createExporter(e.exports)))}else{t(createExporter(o))}function createExporter(e,t){if(e!==o){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(o,n){return e[o]=t?t(o,n):n}}})((function(e){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");x(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};o=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++){t=arguments[o];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};n=function(e,t){var o={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)o[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++){if(t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r]))o[n[r]]=e[n[r]]}return o};r=function(e,t,o,n){var r=arguments.length,s=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,i;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,o,n);else for(var A=e.length-1;A>=0;A--)if(i=e[A])s=(r<3?i(s):r>3?i(t,o,s):i(t,o))||s;return r>3&&s&&Object.defineProperty(t,o,s),s};s=function(e,t){return function(o,n){t(o,n,e)}};i=function(e,t,o,n,r,s){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var i=n.kind,A=i==="getter"?"get":i==="setter"?"set":"value";var a=!t&&e?n["static"]?e:e.prototype:null;var c=t||(a?Object.getOwnPropertyDescriptor(a,n.name):{});var u,l=false;for(var d=o.length-1;d>=0;d--){var g={};for(var E in n)g[E]=E==="access"?{}:n[E];for(var E in n.access)g.access[E]=n.access[E];g.addInitializer=function(e){if(l)throw new TypeError("Cannot add initializers after decoration has completed");s.push(accept(e||null))};var p=(0,o[d])(i==="accessor"?{get:c.get,set:c.set}:c[A],g);if(i==="accessor"){if(p===void 0)continue;if(p===null||typeof p!=="object")throw new TypeError("Object expected");if(u=accept(p.get))c.get=u;if(u=accept(p.set))c.set=u;if(u=accept(p.init))r.unshift(u)}else if(u=accept(p)){if(i==="field")r.unshift(u);else c[A]=u}}if(a)Object.defineProperty(a,n.name,c);l=true};A=function(e,t,o){var n=arguments.length>2;for(var r=0;r<t.length;r++){o=n?t[r].call(e,o):t[r].call(e)}return n?o:void 0};a=function(e){return typeof e==="symbol"?e:"".concat(e)};c=function(e,t,o){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:o?"".concat(o," ",t):t})};u=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};l=function(e,t,o,n){function adopt(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function fulfilled(e){try{step(n.next(e))}catch(e){r(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){r(e)}}function step(e){e.done?o(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};d=function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,i;return i={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(A){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,A[0]&&(o=0)),o)try{if(n=1,r&&(s=A[0]&2?r["return"]:A[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,A[1])).done)return s;if(r=0,s)A=[A[0]&2,s.value];switch(A[0]){case 0:case 1:s=A;break;case 4:o.label++;return{value:A[1],done:false};case 5:o.label++;r=A[1];A=[0];continue;case 7:A=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(A[0]===6||A[0]===2)){o=0;continue}if(A[0]===3&&(!s||A[1]>s[0]&&A[1]<s[3])){o.label=A[1];break}if(A[0]===6&&o.label<s[1]){o.label=s[1];s=A;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(A);break}if(s[2])o.ops.pop();o.trys.pop();continue}A=t.call(e,o)}catch(e){A=[6,e];r=0}finally{n=s=0}if(A[0]&5)throw A[1];return{value:A[0]?A[1]:void 0,done:true}}};g=function(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))D(t,e,o)};D=Object.create?function(e,t,o,n){if(n===undefined)n=o;var r=Object.getOwnPropertyDescriptor(t,o);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,n,r)}:function(e,t,o,n){if(n===undefined)n=o;e[n]=t[o]};E=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};p=function(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var n=o.call(e),r,s=[],i;try{while((t===void 0||t-- >0)&&!(r=n.next()).done)s.push(r.value)}catch(e){i={error:e}}finally{try{if(r&&!r.done&&(o=n["return"]))o.call(n)}finally{if(i)throw i.error}}return s};C=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e};h=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<o;t++)for(var s=arguments[t],i=0,A=s.length;i<A;i++,r++)n[r]=s[i];return n};f=function(e,t,o){if(o||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};m=function(e){return this instanceof m?(this.v=e,this):new m(e)};I=function(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=o.apply(e,t||[]),r,s=[];return r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r;function verb(e){if(n[e])r[e]=function(t){return new Promise((function(o,n){s.push([e,t,o,n])>1||resume(e,t)}))}}function resume(e,t){try{step(n[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof m?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};y=function(e){var t,o;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,r){t[n]=e[n]?function(t){return(o=!o)?{value:m(e[n](t)),done:false}:r?r(t):t}:r}};Q=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof E==="function"?E(e):e[Symbol.iterator](),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(t){o[t]=e[t]&&function(o){return new Promise((function(n,r){o=e[t](o),settle(n,r,o.done,o.value)}))}}function settle(e,t,o,n){Promise.resolve(n).then((function(t){e({value:t,done:o})}),t)}};B=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};w=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))D(t,e,o);N(t,e);return t};S=function(e){return e&&e.__esModule?e:{default:e}};b=function(e,t,o,n){if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?n:o==="a"?n.call(e):n?n.value:t.get(e)};R=function(e,t,o,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(e,o):r?r.value=o:t.set(e,o),o};v=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};_=function(e,t,o){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var n;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!=="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:o})}else if(o){e.stack.push({async:true})}return t};var k=typeof SuppressedError==="function"?SuppressedError:function(e,t,o){var n=new Error(o);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};P=function(e){function fail(t){e.error=e.hasError?new k(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}function next(){while(e.stack.length){var t=e.stack.pop();try{var o=t.dispose&&t.dispose.call(t.value);if(t.async)return Promise.resolve(o).then(next,(function(e){fail(e);return next()}))}catch(e){fail(e)}}if(e.hasError)throw e.error}return next()};e("__extends",t);e("__assign",o);e("__rest",n);e("__decorate",r);e("__param",s);e("__esDecorate",i);e("__runInitializers",A);e("__propKey",a);e("__setFunctionName",c);e("__metadata",u);e("__awaiter",l);e("__generator",d);e("__exportStar",g);e("__createBinding",D);e("__values",E);e("__read",p);e("__spread",C);e("__spreadArrays",h);e("__spreadArray",f);e("__await",m);e("__asyncGenerator",I);e("__asyncDelegator",y);e("__asyncValues",Q);e("__makeTemplateObject",B);e("__importStar",w);e("__importDefault",S);e("__classPrivateFieldGet",b);e("__classPrivateFieldSet",R);e("__classPrivateFieldIn",v);e("__addDisposableResource",_);e("__disposeResources",P)}))},74294:(e,t,o)=>{e.exports=o(54219)},54219:(e,t,o)=>{"use strict";var n=o(41808);var r=o(24404);var s=o(13685);var i=o(95687);var A=o(82361);var a=o(39491);var c=o(73837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,o,n,r){var s=toOptions(o,n,r);for(var i=0,A=t.requests.length;i<A;++i){var a=t.requests[i];if(a.host===s.host&&a.port===s.port){t.requests.splice(i,1);a.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}c.inherits(TunnelingAgent,A.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,o,n){var r=this;var s=mergeOptions({request:e},r.options,toOptions(t,o,n));if(r.sockets.length>=this.maxSockets){r.requests.push(s);return}r.createSocket(s,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){r.emit("free",t,s)}function onCloseOrRemove(e){r.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var o=this;var n={};o.sockets.push(n);var r=mergeOptions({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){r.localAddress=e.localAddress}if(r.proxyAuth){r.headers=r.headers||{};r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")}u("making CONNECT request");var s=o.request(r);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,o){process.nextTick((function(){onConnect(e,t,o)}))}function onConnect(r,i,A){s.removeAllListeners();i.removeAllListeners();if(r.statusCode!==200){u("tunneling socket could not be established, statusCode=%d",r.statusCode);i.destroy();var a=new Error("tunneling socket could not be established, "+"statusCode="+r.statusCode);a.code="ECONNRESET";e.request.emit("error",a);o.removeSocket(n);return}if(A.length>0){u("got illegal response body from proxy");i.destroy();var a=new Error("got illegal response body from proxy");a.code="ECONNRESET";e.request.emit("error",a);o.removeSocket(n);return}u("tunneling connection has established");o.sockets[o.sockets.indexOf(n)]=i;return t(i)}function onError(t){s.removeAllListeners();u("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=new Error("tunneling socket could not be established, "+"cause="+t.message);r.code="ECONNRESET";e.request.emit("error",r);o.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var o=this.requests.shift();if(o){this.createSocket(o,(function(e){o.request.onSocket(e)}))}};function createSecureSocket(e,t){var o=this;TunnelingAgent.prototype.createSocket.call(o,e,(function(n){var s=e.request.getHeader("host");var i=mergeOptions({},o.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var A=r.connect(0,i);o.sockets[o.sockets.indexOf(n)]=A;t(A)}))}function toOptions(e,t,o){if(typeof e==="string"){return{host:e,port:t,localAddress:o}}return e}function mergeOptions(e){for(var t=1,o=arguments.length;t<o;++t){var n=arguments[t];if(typeof n==="object"){var r=Object.keys(n);for(var s=0,i=r.length;s<i;++s){var A=r[s];if(n[A]!==undefined){e[A]=n[A]}}}}return e}var u;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){u=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{u=function(){}}t.debug=u},41773:(e,t,o)=>{"use strict";const n=o(33598);const r=o(60412);const s=o(48045);const i=o(4634);const A=o(37931);const a=o(7890);const c=o(83983);const{InvalidArgumentError:u}=s;const l=o(44059);const d=o(82067);const g=o(58687);const E=o(66771);const p=o(26193);const C=o(50888);const h=o(97858);const{getGlobalDispatcher:f,setGlobalDispatcher:m}=o(21892);const I=o(46930);const y=o(72860);const Q=o(38861);let B;try{o(6113);B=true}catch{B=false}Object.assign(r.prototype,l);e.exports.Dispatcher=r;e.exports.Client=n;e.exports.Pool=i;e.exports.BalancedPool=A;e.exports.Agent=a;e.exports.ProxyAgent=h;e.exports.DecoratorHandler=I;e.exports.RedirectHandler=y;e.exports.createRedirectInterceptor=Q;e.exports.buildConnector=d;e.exports.errors=s;function makeDispatcher(e){return(t,o,n)=>{if(typeof o==="function"){n=o;o=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new u("invalid url")}if(o!=null&&typeof o!=="object"){throw new u("invalid opts")}if(o&&o.path!=null){if(typeof o.path!=="string"){throw new u("invalid opts.path")}let e=o.path;if(!o.path.startsWith("/")){e=`/${e}`}t=new URL(c.parseOrigin(t).origin+e)}else{if(!o){o=typeof t==="object"?t:{}}t=c.parseURL(t)}const{agent:r,dispatcher:s=f()}=o;if(r){throw new u("unsupported opts.agent. Did you mean opts.client?")}return e.call(s,{...o,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:o.method||(o.body?"PUT":"GET")},n)}}e.exports.setGlobalDispatcher=m;e.exports.getGlobalDispatcher=f;if(c.nodeMajor>16||c.nodeMajor===16&&c.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=o(74881).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=o(10554).Headers;e.exports.Response=o(27823).Response;e.exports.Request=o(48359).Request;e.exports.FormData=o(72015).FormData;e.exports.File=o(78511).File;e.exports.FileReader=o(1446).FileReader;const{setGlobalOrigin:n,getGlobalOrigin:r}=o(71246);e.exports.setGlobalOrigin=n;e.exports.getGlobalOrigin=r;const{CacheStorage:s}=o(37907);const{kConstruct:i}=o(29174);e.exports.caches=new s(i)}if(c.nodeMajor>=16){const{deleteCookie:t,getCookies:n,getSetCookies:r,setCookie:s}=o(41724);e.exports.deleteCookie=t;e.exports.getCookies=n;e.exports.getSetCookies=r;e.exports.setCookie=s;const{parseMIMEType:i,serializeAMimeType:A}=o(685);e.exports.parseMIMEType=i;e.exports.serializeAMimeType=A}if(c.nodeMajor>=18&&B){const{WebSocket:t}=o(54284);e.exports.WebSocket=t}e.exports.request=makeDispatcher(l.request);e.exports.stream=makeDispatcher(l.stream);e.exports.pipeline=makeDispatcher(l.pipeline);e.exports.connect=makeDispatcher(l.connect);e.exports.upgrade=makeDispatcher(l.upgrade);e.exports.MockClient=g;e.exports.MockPool=p;e.exports.MockAgent=E;e.exports.mockErrors=C},7890:(e,t,o)=>{"use strict";const{InvalidArgumentError:n}=o(48045);const{kClients:r,kRunning:s,kClose:i,kDestroy:A,kDispatch:a,kInterceptors:c}=o(72785);const u=o(74839);const l=o(4634);const d=o(33598);const g=o(83983);const E=o(38861);const{WeakRef:p,FinalizationRegistry:C}=o(56436)();const h=Symbol("onConnect");const f=Symbol("onDisconnect");const m=Symbol("onConnectionError");const I=Symbol("maxRedirections");const y=Symbol("onDrain");const Q=Symbol("factory");const B=Symbol("finalizer");const w=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new d(e,t):new l(e,t)}class Agent extends u{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:o,...s}={}){super();if(typeof e!=="function"){throw new n("factory must be a function.")}if(o!=null&&typeof o!=="function"&&typeof o!=="object"){throw new n("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new n("maxRedirections must be a positive number")}if(o&&typeof o!=="function"){o={...o}}this[c]=s.interceptors&&s.interceptors.Agent&&Array.isArray(s.interceptors.Agent)?s.interceptors.Agent:[E({maxRedirections:t})];this[w]={...g.deepClone(s),connect:o};this[w].interceptors=s.interceptors?{...s.interceptors}:undefined;this[I]=t;this[Q]=e;this[r]=new Map;this[B]=new C((e=>{const t=this[r].get(e);if(t!==undefined&&t.deref()===undefined){this[r].delete(e)}}));const i=this;this[y]=(e,t)=>{i.emit("drain",e,[i,...t])};this[h]=(e,t)=>{i.emit("connect",e,[i,...t])};this[f]=(e,t,o)=>{i.emit("disconnect",e,[i,...t],o)};this[m]=(e,t,o)=>{i.emit("connectionError",e,[i,...t],o)}}get[s](){let e=0;for(const t of this[r].values()){const o=t.deref();if(o){e+=o[s]}}return e}[a](e,t){let o;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){o=String(e.origin)}else{throw new n("opts.origin must be a non-empty string or URL.")}const s=this[r].get(o);let i=s?s.deref():null;if(!i){i=this[Q](e.origin,this[w]).on("drain",this[y]).on("connect",this[h]).on("disconnect",this[f]).on("connectionError",this[m]);this[r].set(o,new p(i));this[B].register(i,o)}return i.dispatch(e,t)}async[i](){const e=[];for(const t of this[r].values()){const o=t.deref();if(o){e.push(o.close())}}await Promise.all(e)}async[A](e){const t=[];for(const o of this[r].values()){const n=o.deref();if(n){t.push(n.destroy(e))}}await Promise.all(t)}}e.exports=Agent},7032:(e,t,o)=>{const{addAbortListener:n}=o(83983);const{RequestAbortedError:r}=o(48045);const s=Symbol("kListener");const i=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new r)}}function addSignal(e,t){e[i]=null;e[s]=null;if(!t){return}if(t.aborted){abort(e);return}e[i]=t;e[s]=()=>{abort(e)};n(e[i],e[s])}function removeSignal(e){if(!e[i]){return}if("removeEventListener"in e[i]){e[i].removeEventListener("abort",e[s])}else{e[i].removeListener("abort",e[s])}e[i]=null;e[s]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},29744:(e,t,o)=>{"use strict";const{AsyncResource:n}=o(50852);const{InvalidArgumentError:r,RequestAbortedError:s,SocketError:i}=o(48045);const A=o(83983);const{addSignal:a,removeSignal:c}=o(7032);class ConnectHandler extends n{constructor(e,t){if(!e||typeof e!=="object"){throw new r("invalid opts")}if(typeof t!=="function"){throw new r("invalid callback")}const{signal:o,opaque:n,responseHeaders:s}=e;if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new r("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=n||null;this.responseHeaders=s||null;this.callback=t;this.abort=null;a(this,o)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=t}onHeaders(){throw new i("bad connect",null)}onUpgrade(e,t,o){const{callback:n,opaque:r,context:s}=this;c(this);this.callback=null;let i=t;if(i!=null){i=this.responseHeaders==="raw"?A.parseRawHeaders(t):A.parseHeaders(t)}this.runInAsyncScope(n,null,null,{statusCode:e,headers:i,socket:o,opaque:r,context:s})}onError(e){const{callback:t,opaque:o}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:o})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,o)=>{connect.call(this,e,((e,n)=>e?o(e):t(n)))}))}try{const o=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},o)}catch(o){if(typeof t!=="function"){throw o}const n=e&&e.opaque;queueMicrotask((()=>t(o,{opaque:n})))}}e.exports=connect},28752:(e,t,o)=>{"use strict";const{Readable:n,Duplex:r,PassThrough:s}=o(12781);const{InvalidArgumentError:i,InvalidReturnValueError:A,RequestAbortedError:a}=o(48045);const c=o(83983);const{AsyncResource:u}=o(50852);const{addSignal:l,removeSignal:d}=o(7032);const g=o(39491);const E=Symbol("resume");class PipelineRequest extends n{constructor(){super({autoDestroy:true});this[E]=null}_read(){const{[E]:e}=this;if(e){this[E]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends n{constructor(e){super({autoDestroy:true});this[E]=e}_read(){this[E]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new a}t(e)}}class PipelineHandler extends u{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid handler")}const{signal:o,method:n,opaque:s,onInfo:A,responseHeaders:u}=e;if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new i("invalid method")}if(A&&typeof A!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=s||null;this.responseHeaders=u||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=A||null;this.req=(new PipelineRequest).on("error",c.nop);this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,o)=>{const{req:n}=this;if(n.push(e,t)||n._readableState.destroyed){o()}else{n[E]=o}},destroy:(e,t)=>{const{body:o,req:n,res:r,ret:s,abort:i}=this;if(!e&&!s._readableState.endEmitted){e=new a}if(i&&e){i()}c.destroy(o,e);c.destroy(n,e);c.destroy(r,e);d(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;l(this,o)}onConnect(e,t){const{ret:o,res:n}=this;g(!n,"pipeline cannot be retried");if(o.destroyed){throw new a}this.abort=e;this.context=t}onHeaders(e,t,o){const{opaque:n,handler:r,context:s}=this;if(e<200){if(this.onInfo){const o=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:o})}return}this.res=new PipelineResponse(o);let i;try{this.handler=null;const o=this.responseHeaders==="raw"?c.parseRawHeaders(t):c.parseHeaders(t);i=this.runInAsyncScope(r,null,{statusCode:e,headers:o,opaque:n,body:this.res,context:s})}catch(e){this.res.on("error",c.nop);throw e}if(!i||typeof i.on!=="function"){throw new A("expected Readable")}i.on("data",(e=>{const{ret:t,body:o}=this;if(!t.push(e)&&o.pause){o.pause()}})).on("error",(e=>{const{ret:t}=this;c.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){c.destroy(e,new a)}}));this.body=i}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;c.destroy(t,e)}}function pipeline(e,t){try{const o=new PipelineHandler(e,t);this.dispatch({...e,body:o.req},o);return o.ret}catch(e){return(new s).destroy(e)}}e.exports=pipeline},55448:(e,t,o)=>{"use strict";const n=o(73858);const{InvalidArgumentError:r,RequestAbortedError:s}=o(48045);const i=o(83983);const{getResolveErrorBodyCallback:A}=o(77474);const{AsyncResource:a}=o(50852);const{addSignal:c,removeSignal:u}=o(7032);class RequestHandler extends a{constructor(e,t){if(!e||typeof e!=="object"){throw new r("invalid opts")}const{signal:o,method:n,opaque:s,body:A,onInfo:a,responseHeaders:u,throwOnError:l,highWaterMark:d}=e;try{if(typeof t!=="function"){throw new r("invalid callback")}if(d&&(typeof d!=="number"||d<0)){throw new r("invalid highWaterMark")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new r("signal must be an EventEmitter or EventTarget")}if(n==="CONNECT"){throw new r("invalid method")}if(a&&typeof a!=="function"){throw new r("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(i.isStream(A)){i.destroy(A.on("error",i.nop),e)}throw e}this.responseHeaders=u||null;this.opaque=s||null;this.callback=t;this.res=null;this.abort=null;this.body=A;this.trailers={};this.context=null;this.onInfo=a||null;this.throwOnError=l;this.highWaterMark=d;if(i.isStream(A)){A.on("error",(e=>{this.onError(e)}))}c(this,o)}onConnect(e,t){if(!this.callback){throw new s}this.abort=e;this.context=t}onHeaders(e,t,o,r){const{callback:s,opaque:a,abort:c,context:u,responseHeaders:l,highWaterMark:d}=this;const g=l==="raw"?i.parseRawHeaders(t):i.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:g})}return}const E=l==="raw"?i.parseHeaders(t):g;const p=E["content-type"];const C=new n({resume:o,abort:c,contentType:p,highWaterMark:d});this.callback=null;this.res=C;if(s!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(A,null,{callback:s,body:C,contentType:p,statusCode:e,statusMessage:r,headers:g})}else{this.runInAsyncScope(s,null,null,{statusCode:e,headers:g,trailers:this.trailers,opaque:a,body:C,context:u})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;u(this);i.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:o,body:n,opaque:r}=this;u(this);if(o){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(o,null,e,{opaque:r})}))}if(t){this.res=null;queueMicrotask((()=>{i.destroy(t,e)}))}if(n){this.body=null;i.destroy(n,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,o)=>{request.call(this,e,((e,n)=>e?o(e):t(n)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(o){if(typeof t!=="function"){throw o}const n=e&&e.opaque;queueMicrotask((()=>t(o,{opaque:n})))}}e.exports=request},75395:(e,t,o)=>{"use strict";const{finished:n,PassThrough:r}=o(12781);const{InvalidArgumentError:s,InvalidReturnValueError:i,RequestAbortedError:A}=o(48045);const a=o(83983);const{getResolveErrorBodyCallback:c}=o(77474);const{AsyncResource:u}=o(50852);const{addSignal:l,removeSignal:d}=o(7032);class StreamHandler extends u{constructor(e,t,o){if(!e||typeof e!=="object"){throw new s("invalid opts")}const{signal:n,method:r,opaque:i,body:A,onInfo:c,responseHeaders:u,throwOnError:d}=e;try{if(typeof o!=="function"){throw new s("invalid callback")}if(typeof t!=="function"){throw new s("invalid factory")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new s("signal must be an EventEmitter or EventTarget")}if(r==="CONNECT"){throw new s("invalid method")}if(c&&typeof c!=="function"){throw new s("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(a.isStream(A)){a.destroy(A.on("error",a.nop),e)}throw e}this.responseHeaders=u||null;this.opaque=i||null;this.factory=t;this.callback=o;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=A;this.onInfo=c||null;this.throwOnError=d||false;if(a.isStream(A)){A.on("error",(e=>{this.onError(e)}))}l(this,n)}onConnect(e,t){if(!this.callback){throw new A}this.abort=e;this.context=t}onHeaders(e,t,o,s){const{factory:A,opaque:u,context:l,callback:d,responseHeaders:g}=this;const E=g==="raw"?a.parseRawHeaders(t):a.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:E})}return}this.factory=null;let p;if(this.throwOnError&&e>=400){const o=g==="raw"?a.parseHeaders(t):E;const n=o["content-type"];p=new r;this.callback=null;this.runInAsyncScope(c,null,{callback:d,body:p,contentType:n,statusCode:e,statusMessage:s,headers:E})}else{if(A===null){return}p=this.runInAsyncScope(A,null,{statusCode:e,headers:E,opaque:u,context:l});if(!p||typeof p.write!=="function"||typeof p.end!=="function"||typeof p.on!=="function"){throw new i("expected Writable")}n(p,{readable:false},(e=>{const{callback:t,res:o,opaque:n,trailers:r,abort:s}=this;this.res=null;if(e||!o.readable){a.destroy(o,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:r});if(e){s()}}))}p.on("drain",o);this.res=p;const C=p.writableNeedDrain!==undefined?p.writableNeedDrain:p._writableState&&p._writableState.needDrain;return C!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;d(this);if(!t){return}this.trailers=a.parseHeaders(e);t.end()}onError(e){const{res:t,callback:o,opaque:n,body:r}=this;d(this);this.factory=null;if(t){this.res=null;a.destroy(t,e)}else if(o){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(o,null,e,{opaque:n})}))}if(r){this.body=null;a.destroy(r,e)}}}function stream(e,t,o){if(o===undefined){return new Promise(((o,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):o(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,o))}catch(t){if(typeof o!=="function"){throw t}const n=e&&e.opaque;queueMicrotask((()=>o(t,{opaque:n})))}}e.exports=stream},36923:(e,t,o)=>{"use strict";const{InvalidArgumentError:n,RequestAbortedError:r,SocketError:s}=o(48045);const{AsyncResource:i}=o(50852);const A=o(83983);const{addSignal:a,removeSignal:c}=o(7032);const u=o(39491);class UpgradeHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new n("invalid opts")}if(typeof t!=="function"){throw new n("invalid callback")}const{signal:o,opaque:r,responseHeaders:s}=e;if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new n("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=s||null;this.opaque=r||null;this.callback=t;this.abort=null;this.context=null;a(this,o)}onConnect(e,t){if(!this.callback){throw new r}this.abort=e;this.context=null}onHeaders(){throw new s("bad upgrade",null)}onUpgrade(e,t,o){const{callback:n,opaque:r,context:s}=this;u.strictEqual(e,101);c(this);this.callback=null;const i=this.responseHeaders==="raw"?A.parseRawHeaders(t):A.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:i,socket:o,opaque:r,context:s})}onError(e){const{callback:t,opaque:o}=this;c(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:o})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,o)=>{upgrade.call(this,e,((e,n)=>e?o(e):t(n)))}))}try{const o=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},o)}catch(o){if(typeof t!=="function"){throw o}const n=e&&e.opaque;queueMicrotask((()=>t(o,{opaque:n})))}}e.exports=upgrade},44059:(e,t,o)=>{"use strict";e.exports.request=o(55448);e.exports.stream=o(75395);e.exports.pipeline=o(28752);e.exports.upgrade=o(36923);e.exports.connect=o(29744)},73858:(e,t,o)=>{"use strict";const n=o(39491);const{Readable:r}=o(12781);const{RequestAbortedError:s,NotSupportedError:i,InvalidArgumentError:A}=o(48045);const a=o(83983);const{ReadableStreamFrom:c,toUSVString:u}=o(83983);let l;const d=Symbol("kConsume");const g=Symbol("kReading");const E=Symbol("kBody");const p=Symbol("abort");const C=Symbol("kContentType");e.exports=class BodyReadable extends r{constructor({resume:e,abort:t,contentType:o="",highWaterMark:n=64*1024}){super({autoDestroy:true,read:e,highWaterMark:n});this._readableState.dataEmitted=false;this[p]=t;this[d]=null;this[E]=null;this[C]=o;this[g]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new s}if(e){this[p]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[g]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const o=super.off(e,...t);if(e==="data"||e==="readable"){this[g]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return o}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[d]&&e!==null&&this.readableLength===0){consumePush(this[d],e);return this[g]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new i}get bodyUsed(){return a.isDisturbed(this)}get body(){if(!this[E]){this[E]=c(this);if(this[d]){this[E].getReader();n(this[E].locked)}}return this[E]}async dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const o=e&&e.signal;const abortFn=()=>{this.destroy()};let n;if(o){if(typeof o!=="object"||!("aborted"in o)){throw new A("signal must be an AbortSignal")}a.throwIfAborted(o);n=a.addAbortListener(o,abortFn)}try{for await(const e of this){a.throwIfAborted(o);t-=Buffer.byteLength(e);if(t<0){return}}}catch{a.throwIfAborted(o)}finally{if(typeof n==="function"){n()}else if(n){n[Symbol.dispose]()}}}};function isLocked(e){return e[E]&&e[E].locked===true||e[d]}function isUnusable(e){return a.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}n(!e[d]);return new Promise(((o,n)=>{e[d]={type:t,stream:e,resolve:o,reject:n,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[d],e)})).on("close",(function(){if(this[d].body!==null){consumeFinish(this[d],new s)}}));process.nextTick(consumeStart,e[d])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const o of t.buffer){consumePush(e,o)}if(t.endEmitted){consumeEnd(this[d])}else{e.stream.on("end",(function(){consumeEnd(this[d])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:n,resolve:r,stream:s,length:i}=e;try{if(t==="text"){r(u(Buffer.concat(n)))}else if(t==="json"){r(JSON.parse(Buffer.concat(n)))}else if(t==="arrayBuffer"){const e=new Uint8Array(i);let t=0;for(const o of n){e.set(o,t);t+=o.byteLength}r(e.buffer)}else if(t==="blob"){if(!l){l=o(14300).Blob}r(new l(n,{type:s[C]}))}consumeFinish(e)}catch(e){s.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},77474:(e,t,o)=>{const n=o(39491);const{ResponseStatusCodeError:r}=o(48045);const{toUSVString:s}=o(83983);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:o,statusCode:i,statusMessage:A,headers:a}){n(t);let c=[];let u=0;for await(const e of t){c.push(e);u+=e.length;if(u>128*1024){c=null;break}}if(i===204||!o||!c){process.nextTick(e,new r(`Response status code ${i}${A?`: ${A}`:""}`,i,a));return}try{if(o.startsWith("application/json")){const t=JSON.parse(s(Buffer.concat(c)));process.nextTick(e,new r(`Response status code ${i}${A?`: ${A}`:""}`,i,a,t));return}if(o.startsWith("text/")){const t=s(Buffer.concat(c));process.nextTick(e,new r(`Response status code ${i}${A?`: ${A}`:""}`,i,a,t));return}}catch(e){}process.nextTick(e,new r(`Response status code ${i}${A?`: ${A}`:""}`,i,a))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},37931:(e,t,o)=>{"use strict";const{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=o(48045);const{PoolBase:s,kClients:i,kNeedDrain:A,kAddClient:a,kRemoveClient:c,kGetDispatcher:u}=o(73198);const l=o(4634);const{kUrl:d,kInterceptors:g}=o(72785);const{parseOrigin:E}=o(83983);const p=Symbol("factory");const C=Symbol("options");const h=Symbol("kGreatestCommonDivisor");const f=Symbol("kCurrentWeight");const m=Symbol("kIndex");const I=Symbol("kWeight");const y=Symbol("kMaxWeightPerServer");const Q=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new l(e,t)}class BalancedPool extends s{constructor(e=[],{factory:t=defaultFactory,...o}={}){super();this[C]=o;this[m]=-1;this[f]=0;this[y]=this[C].maxWeightPerServer||100;this[Q]=this[C].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new r("factory must be a function.")}this[g]=o.interceptors&&o.interceptors.BalancedPool&&Array.isArray(o.interceptors.BalancedPool)?o.interceptors.BalancedPool:[];this[p]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=E(e).origin;if(this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const o=this[p](t,Object.assign({},this[C]));this[a](o);o.on("connect",(()=>{o[I]=Math.min(this[y],o[I]+this[Q])}));o.on("connectionError",(()=>{o[I]=Math.max(1,o[I]-this[Q]);this._updateBalancedPoolStats()}));o.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){o[I]=Math.max(1,o[I]-this[Q]);this._updateBalancedPoolStats()}}));for(const e of this[i]){e[I]=this[y]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[h]=this[i].map((e=>e[I])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=E(e).origin;const o=this[i].find((e=>e[d].origin===t&&e.closed!==true&&e.destroyed!==true));if(o){this[c](o)}return this}get upstreams(){return this[i].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[d].origin))}[u](){if(this[i].length===0){throw new n}const e=this[i].find((e=>!e[A]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[i].map((e=>e[A])).reduce(((e,t)=>e&&t),true);if(t){return}let o=0;let r=this[i].findIndex((e=>!e[A]));while(o++<this[i].length){this[m]=(this[m]+1)%this[i].length;const e=this[i][this[m]];if(e[I]>this[i][r][I]&&!e[A]){r=this[m]}if(this[m]===0){this[f]=this[f]-this[h];if(this[f]<=0){this[f]=this[y]}}if(e[I]>=this[f]&&!e[A]){return e}}this[f]=this[i][r][I];this[m]=r;return this[i][r]}}e.exports=BalancedPool},66101:(e,t,o)=>{"use strict";const{kConstruct:n}=o(29174);const{urlEquals:r,fieldValues:s}=o(82396);const{kEnumerableProperty:i,isDisturbed:A}=o(83983);const{kHeadersList:a}=o(72785);const{webidl:c}=o(21744);const{Response:u,cloneResponse:l}=o(27823);const{Request:d}=o(48359);const{kState:g,kHeaders:E,kGuard:p,kRealm:C}=o(15861);const{fetching:h}=o(74881);const{urlIsHttpHttpsScheme:f,createDeferredPromise:m,readAllBytes:I}=o(52538);const y=o(39491);const{getGlobalDispatcher:Q}=o(21892);class Cache{#e;constructor(){if(arguments[0]!==n){c.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);const o=await this.matchAll(e,t);if(o.length===0){return}return o[0]}async matchAll(e=undefined,t={}){c.brandCheck(this,Cache);if(e!==undefined)e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let o=null;if(e!==undefined){if(e instanceof d){o=e[g];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new d(e)[g]}}const n=[];if(e===undefined){for(const e of this.#e){n.push(e[1])}}else{const e=this.#t(o,t);for(const t of e){n.push(t[1])}}const r=[];for(const e of n){const t=new u(e.body?.source??null);const o=t[g].body;t[g]=e;t[g].body=o;t[E][a]=e.headersList;t[E][p]="immutable";r.push(t)}return Object.freeze(r)}async add(e){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=c.converters.RequestInfo(e);const t=[e];const o=this.addAll(t);return await o}async addAll(e){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=c.converters["sequence<RequestInfo>"](e);const t=[];const o=[];for(const t of e){if(typeof t==="string"){continue}const e=t[g];if(!f(e.url)||e.method!=="GET"){throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const n=[];for(const r of e){const e=new d(r)[g];if(!f(e.url)){throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";o.push(e);const i=m();n.push(h({request:e,dispatcher:Q(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){i.reject(c.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=s(e.headersList.get("vary"));for(const e of t){if(e==="*"){i.reject(c.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return}i.resolve(e)}}));t.push(i.promise)}const r=Promise.all(t);const i=await r;const A=[];let a=0;for(const e of i){const t={type:"put",request:o[a],response:e};A.push(t);a++}const u=m();let l=null;try{this.#o(A)}catch(e){l=e}queueMicrotask((()=>{if(l===null){u.resolve(undefined)}else{u.reject(l)}}));return u.promise}async put(e,t){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=c.converters.RequestInfo(e);t=c.converters.Response(t);let o=null;if(e instanceof d){o=e[g]}else{o=new d(e)[g]}if(!f(o.url)||o.method!=="GET"){throw c.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const n=t[g];if(n.status===206){throw c.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(n.headersList.contains("vary")){const e=s(n.headersList.get("vary"));for(const t of e){if(t==="*"){throw c.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(n.body&&(A(n.body.stream)||n.body.stream.locked)){throw c.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const r=l(n);const i=m();if(n.body!=null){const e=n.body.stream;const t=e.getReader();I(t).then(i.resolve,i.reject)}else{i.resolve(undefined)}const a=[];const u={type:"put",request:o,response:r};a.push(u);const E=await i.promise;if(r.body!=null){r.body.source=E}const p=m();let C=null;try{this.#o(a)}catch(e){C=e}queueMicrotask((()=>{if(C===null){p.resolve()}else{p.reject(C)}}));return p.promise}async delete(e,t={}){c.brandCheck(this,Cache);c.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let o=null;if(e instanceof d){o=e[g];if(o.method!=="GET"&&!t.ignoreMethod){return false}}else{y(typeof e==="string");o=new d(e)[g]}const n=[];const r={type:"delete",request:o,options:t};n.push(r);const s=m();let i=null;let A;try{A=this.#o(n)}catch(e){i=e}queueMicrotask((()=>{if(i===null){s.resolve(!!A?.length)}else{s.reject(i)}}));return s.promise}async keys(e=undefined,t={}){c.brandCheck(this,Cache);if(e!==undefined)e=c.converters.RequestInfo(e);t=c.converters.CacheQueryOptions(t);let o=null;if(e!==undefined){if(e instanceof d){o=e[g];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new d(e)[g]}}const n=m();const r=[];if(e===undefined){for(const e of this.#e){r.push(e[0])}}else{const e=this.#t(o,t);for(const t of e){r.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of r){const o=new d("https://a");o[g]=t;o[E][a]=t.headersList;o[E][p]="immutable";o[C]=t.client;e.push(o)}n.resolve(Object.freeze(e))}));return n.promise}#o(e){const t=this.#e;const o=[...t];const n=[];const r=[];try{for(const o of e){if(o.type!=="delete"&&o.type!=="put"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(o.type==="delete"&&o.response!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(o.request,o.options,n).length){throw new DOMException("???","InvalidStateError")}let e;if(o.type==="delete"){e=this.#t(o.request,o.options);if(e.length===0){return[]}for(const o of e){const e=t.indexOf(o);y(e!==-1);t.splice(e,1)}}else if(o.type==="put"){if(o.response==null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const r=o.request;if(!f(r.url)){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(r.method!=="GET"){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(o.options!=null){throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(o.request);for(const o of e){const e=t.indexOf(o);y(e!==-1);t.splice(e,1)}t.push([o.request,o.response]);n.push([o.request,o.response])}r.push([o.request,o.response])}return r}catch(e){this.#e.length=0;this.#e=o;throw e}}#t(e,t,o){const n=[];const r=o??this.#e;for(const o of r){const[r,s]=o;if(this.#n(e,r,s,t)){n.push(o)}}return n}#n(e,t,o=null,n){const i=new URL(e.url);const A=new URL(t.url);if(n?.ignoreSearch){A.search="";i.search=""}if(!r(i,A,true)){return false}if(o==null||n?.ignoreVary||!o.headersList.contains("vary")){return true}const a=s(o.headersList.get("vary"));for(const o of a){if(o==="*"){return false}const n=t.headersList.get(o);const r=e.headersList.get(o);if(n!==r){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:i,matchAll:i,add:i,addAll:i,put:i,delete:i,keys:i});const B=[{key:"ignoreSearch",converter:c.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:c.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:c.converters.boolean,defaultValue:false}];c.converters.CacheQueryOptions=c.dictionaryConverter(B);c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...B,{key:"cacheName",converter:c.converters.DOMString}]);c.converters.Response=c.interfaceConverter(u);c.converters["sequence<RequestInfo>"]=c.sequenceConverter(c.converters.RequestInfo);e.exports={Cache:Cache}},37907:(e,t,o)=>{"use strict";const{kConstruct:n}=o(29174);const{Cache:r}=o(66101);const{webidl:s}=o(21744);const{kEnumerableProperty:i}=o(83983);class CacheStorage{#r=new Map;constructor(){if(arguments[0]!==n){s.illegalConstructor()}}async match(e,t={}){s.brandCheck(this,CacheStorage);s.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=s.converters.RequestInfo(e);t=s.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#r.has(t.cacheName)){const o=this.#r.get(t.cacheName);const s=new r(n,o);return await s.match(e,t)}}else{for(const o of this.#r.values()){const s=new r(n,o);const i=await s.match(e,t);if(i!==undefined){return i}}}}async has(e){s.brandCheck(this,CacheStorage);s.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=s.converters.DOMString(e);return this.#r.has(e)}async open(e){s.brandCheck(this,CacheStorage);s.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=s.converters.DOMString(e);if(this.#r.has(e)){const t=this.#r.get(e);return new r(n,t)}const t=[];this.#r.set(e,t);return new r(n,t)}async delete(e){s.brandCheck(this,CacheStorage);s.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=s.converters.DOMString(e);return this.#r.delete(e)}async keys(){s.brandCheck(this,CacheStorage);const e=this.#r.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:i,has:i,open:i,delete:i,keys:i});e.exports={CacheStorage:CacheStorage}},29174:e=>{"use strict";e.exports={kConstruct:Symbol("constructable")}},82396:(e,t,o)=>{"use strict";const n=o(39491);const{URLSerializer:r}=o(685);const{isValidHeaderName:s}=o(52538);function urlEquals(e,t,o=false){const n=r(e,o);const s=r(t,o);return n===s}function fieldValues(e){n(e!==null);const t=[];for(let o of e.split(",")){o=o.trim();if(!o.length){continue}else if(!s(o)){continue}t.push(o)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},33598:(e,t,o)=>{"use strict";const n=o(39491);const r=o(41808);const s=o(13685);const{pipeline:i}=o(12781);const A=o(83983);const a=o(29459);const c=o(62905);const u=o(74839);const{RequestContentLengthMismatchError:l,ResponseContentLengthMismatchError:d,InvalidArgumentError:g,RequestAbortedError:E,HeadersTimeoutError:p,HeadersOverflowError:C,SocketError:h,InformationalError:f,BodyTimeoutError:m,HTTPParserError:I,ResponseExceededMaxSizeError:y,ClientDestroyedError:Q}=o(48045);const B=o(82067);const{kUrl:w,kReset:S,kServerName:b,kClient:R,kBusy:v,kParser:D,kConnect:_,kBlocking:P,kResuming:x,kRunning:N,kPending:k,kSize:F,kWriting:T,kQueue:M,kConnected:U,kConnecting:L,kNeedDrain:O,kNoRef:H,kKeepAliveDefaultTimeout:G,kHostHeader:j,kPendingIdx:Y,kRunningIdx:V,kError:J,kPipelining:q,kSocket:z,kKeepAliveTimeoutValue:W,kMaxHeadersSize:$,kKeepAliveMaxTimeout:K,kKeepAliveTimeoutThreshold:X,kHeadersTimeout:Z,kBodyTimeout:ee,kStrictContentLength:te,kConnector:oe,kMaxRedirections:ne,kMaxRequests:re,kCounter:se,kClose:ie,kDestroy:Ae,kDispatch:ae,kInterceptors:ce,kLocalAddress:ue,kMaxResponseSize:le,kHTTPConnVersion:de,kHost:ge,kHTTP2Session:Ee,kHTTP2SessionState:pe,kHTTP2BuildRequest:Ce,kHTTP2CopyHeaders:he,kHTTP1BuildRequest:fe}=o(72785);let me;try{me=o(85158)}catch{me={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ie,HTTP2_HEADER_METHOD:ye,HTTP2_HEADER_PATH:Qe,HTTP2_HEADER_SCHEME:Be,HTTP2_HEADER_CONTENT_LENGTH:we,HTTP2_HEADER_EXPECT:Se,HTTP2_HEADER_STATUS:be}}=me;let Re=false;const ve=Buffer[Symbol.species];const De=Symbol("kClosedResolve");const _e={};try{const e=o(67643);_e.sendHeaders=e.channel("undici:client:sendHeaders");_e.beforeConnect=e.channel("undici:client:beforeConnect");_e.connectError=e.channel("undici:client:connectError");_e.connected=e.channel("undici:client:connected")}catch{_e.sendHeaders={hasSubscribers:false};_e.beforeConnect={hasSubscribers:false};_e.connectError={hasSubscribers:false};_e.connected={hasSubscribers:false}}class Client extends u{constructor(e,{interceptors:t,maxHeaderSize:o,headersTimeout:n,socketTimeout:i,requestTimeout:a,connectTimeout:c,bodyTimeout:u,idleTimeout:l,keepAlive:d,keepAliveTimeout:E,maxKeepAliveTimeout:p,keepAliveMaxTimeout:C,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:m,tls:I,strictContentLength:y,maxCachedSessions:Q,maxRedirections:S,connect:R,maxRequestsPerClient:v,localAddress:D,maxResponseSize:_,autoSelectFamily:P,autoSelectFamilyAttemptTimeout:N,allowH2:k,maxConcurrentStreams:F}={}){super();if(d!==undefined){throw new g("unsupported keepAlive, use pipelining=0 instead")}if(i!==undefined){throw new g("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(a!==undefined){throw new g("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(l!==undefined){throw new g("unsupported idleTimeout, use keepAliveTimeout instead")}if(p!==undefined){throw new g("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(o!=null&&!Number.isFinite(o)){throw new g("invalid maxHeaderSize")}if(f!=null&&typeof f!=="string"){throw new g("invalid socketPath")}if(c!=null&&(!Number.isFinite(c)||c<0)){throw new g("invalid connectTimeout")}if(E!=null&&(!Number.isFinite(E)||E<=0)){throw new g("invalid keepAliveTimeout")}if(C!=null&&(!Number.isFinite(C)||C<=0)){throw new g("invalid keepAliveMaxTimeout")}if(h!=null&&!Number.isFinite(h)){throw new g("invalid keepAliveTimeoutThreshold")}if(n!=null&&(!Number.isInteger(n)||n<0)){throw new g("headersTimeout must be a positive integer or zero")}if(u!=null&&(!Number.isInteger(u)||u<0)){throw new g("bodyTimeout must be a positive integer or zero")}if(R!=null&&typeof R!=="function"&&typeof R!=="object"){throw new g("connect must be a function or an object")}if(S!=null&&(!Number.isInteger(S)||S<0)){throw new g("maxRedirections must be a positive number")}if(v!=null&&(!Number.isInteger(v)||v<0)){throw new g("maxRequestsPerClient must be a positive number")}if(D!=null&&(typeof D!=="string"||r.isIP(D)===0)){throw new g("localAddress must be valid string IP address")}if(_!=null&&(!Number.isInteger(_)||_<-1)){throw new g("maxResponseSize must be a positive number")}if(N!=null&&(!Number.isInteger(N)||N<-1)){throw new g("autoSelectFamilyAttemptTimeout must be a positive number")}if(k!=null&&typeof k!=="boolean"){throw new g("allowH2 must be a valid boolean value")}if(F!=null&&(typeof F!=="number"||F<1)){throw new g("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof R!=="function"){R=B({...I,maxCachedSessions:Q,allowH2:k,socketPath:f,timeout:c,...A.nodeHasAutoSelectFamily&&P?{autoSelectFamily:P,autoSelectFamilyAttemptTimeout:N}:undefined,...R})}this[ce]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[xe({maxRedirections:S})];this[w]=A.parseOrigin(e);this[oe]=R;this[z]=null;this[q]=m!=null?m:1;this[$]=o||s.maxHeaderSize;this[G]=E==null?4e3:E;this[K]=C==null?6e5:C;this[X]=h==null?1e3:h;this[W]=this[G];this[b]=null;this[ue]=D!=null?D:null;this[x]=0;this[O]=0;this[j]=`host: ${this[w].hostname}${this[w].port?`:${this[w].port}`:""}\r\n`;this[ee]=u!=null?u:3e5;this[Z]=n!=null?n:3e5;this[te]=y==null?true:y;this[ne]=S;this[re]=v;this[De]=null;this[le]=_>-1?_:-1;this[de]="h1";this[Ee]=null;this[pe]=!k?null:{openStreams:0,maxConcurrentStreams:F!=null?F:100};this[ge]=`${this[w].hostname}${this[w].port?`:${this[w].port}`:""}`;this[M]=[];this[V]=0;this[Y]=0}get pipelining(){return this[q]}set pipelining(e){this[q]=e;resume(this,true)}get[k](){return this[M].length-this[Y]}get[N](){return this[Y]-this[V]}get[F](){return this[M].length-this[V]}get[U](){return!!this[z]&&!this[L]&&!this[z].destroyed}get[v](){const e=this[z];return e&&(e[S]||e[T]||e[P])||this[F]>=(this[q]||1)||this[k]>0}[_](e){connect(this);this.once("connect",e)}[ae](e,t){const o=e.origin||this[w].origin;const n=this[de]==="h2"?c[Ce](o,e,t):c[fe](o,e,t);this[M].push(n);if(this[x]){}else if(A.bodyLength(n.body)==null&&A.isIterable(n.body)){this[x]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[x]&&this[O]!==2&&this[v]){this[O]=2}return this[O]<2}async[ie](){return new Promise((e=>{if(!this[F]){e(null)}else{this[De]=e}}))}async[Ae](e){return new Promise((t=>{const o=this[M].splice(this[Y]);for(let t=0;t<o.length;t++){const n=o[t];errorRequest(this,n,e)}const callback=()=>{if(this[De]){this[De]();this[De]=null}t()};if(this[Ee]!=null){A.destroy(this[Ee],e);this[Ee]=null;this[pe]=null}if(!this[z]){queueMicrotask(callback)}else{A.destroy(this[z].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[z][J]=e;onError(this[R],e)}function onHttp2FrameError(e,t,o){const n=new f(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(o===0){this[z][J]=n;onError(this[R],n)}}function onHttp2SessionEnd(){A.destroy(this,new h("other side closed"));A.destroy(this[z],new h("other side closed"))}function onHTTP2GoAway(e){const t=this[R];const o=new f(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[z]=null;t[Ee]=null;if(t.destroyed){n(this[k]===0);const e=t[M].splice(t[V]);for(let t=0;t<e.length;t++){const n=e[t];errorRequest(this,n,o)}}else if(t[N]>0){const e=t[M][t[V]];t[M][t[V]++]=null;errorRequest(t,e,o)}t[Y]=t[V];n(t[N]===0);t.emit("disconnect",t[w],[t],o);resume(t)}const Pe=o(30953);const xe=o(38861);const Ne=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?o(61145):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(o(95627),"base64"))}catch(n){t=await WebAssembly.compile(Buffer.from(e||o(61145),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,o)=>0,wasm_on_status:(e,t,o)=>{n.strictEqual(Te.ptr,e);const r=t-Le+Me.byteOffset;return Te.onStatus(new ve(Me.buffer,r,o))||0},wasm_on_message_begin:e=>{n.strictEqual(Te.ptr,e);return Te.onMessageBegin()||0},wasm_on_header_field:(e,t,o)=>{n.strictEqual(Te.ptr,e);const r=t-Le+Me.byteOffset;return Te.onHeaderField(new ve(Me.buffer,r,o))||0},wasm_on_header_value:(e,t,o)=>{n.strictEqual(Te.ptr,e);const r=t-Le+Me.byteOffset;return Te.onHeaderValue(new ve(Me.buffer,r,o))||0},wasm_on_headers_complete:(e,t,o,r)=>{n.strictEqual(Te.ptr,e);return Te.onHeadersComplete(t,Boolean(o),Boolean(r))||0},wasm_on_body:(e,t,o)=>{n.strictEqual(Te.ptr,e);const r=t-Le+Me.byteOffset;return Te.onBody(new ve(Me.buffer,r,o))||0},wasm_on_message_complete:e=>{n.strictEqual(Te.ptr,e);return Te.onMessageComplete()||0}}})}let ke=null;let Fe=lazyllhttp();Fe.catch();let Te=null;let Me=null;let Ue=0;let Le=null;const Oe=1;const He=2;const Ge=3;class Parser{constructor(e,t,{exports:o}){n(Number.isFinite(e[$])&&e[$]>0);this.llhttp=o;this.ptr=this.llhttp.llhttp_alloc(Pe.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[$];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[le]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){a.clearTimeout(this.timeout);if(e){this.timeout=a.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}n(this.ptr!=null);n(Te==null);this.llhttp.llhttp_resume(this.ptr);n(this.timeoutType===He);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Ne);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){n(this.ptr!=null);n(Te==null);n(!this.paused);const{socket:t,llhttp:o}=this;if(e.length>Ue){if(Le){o.free(Le)}Ue=Math.ceil(e.length/4096)*4096;Le=o.malloc(Ue)}new Uint8Array(o.memory.buffer,Le,Ue).set(e);try{let n;try{Me=e;Te=this;n=o.llhttp_execute(this.ptr,Le,e.length)}catch(e){throw e}finally{Te=null;Me=null}const r=o.llhttp_get_error_pos(this.ptr)-Le;if(n===Pe.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(r))}else if(n===Pe.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(r))}else if(n!==Pe.ERROR.OK){const t=o.llhttp_get_error_reason(this.ptr);let s="";if(t){const e=new Uint8Array(o.memory.buffer,t).indexOf(0);s="Response does not match the HTTP/1.1 protocol ("+Buffer.from(o.memory.buffer,t,e).toString()+")"}throw new I(s,Pe.ERROR[n],e.slice(r))}}catch(e){A.destroy(t,e)}}destroy(){n(this.ptr!=null);n(Te==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;a.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const o=t[M][t[V]];if(!o){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const o=this.headers[t-2];if(o.length===10&&o.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(o.length===10&&o.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(o.length===14&&o.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){A.destroy(this.socket,new C)}}onUpgrade(e){const{upgrade:t,client:o,socket:r,headers:s,statusCode:i}=this;n(t);const a=o[M][o[V]];n(a);n(!r.destroyed);n(r===o[z]);n(!this.paused);n(a.upgrade||a.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;n(this.headers.length%2===0);this.headers=[];this.headersSize=0;r.unshift(e);r[D].destroy();r[D]=null;r[R]=null;r[J]=null;r.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);o[z]=null;o[M][o[V]++]=null;o.emit("disconnect",o[w],[o],new f("upgrade"));try{a.onUpgrade(i,s,r)}catch(e){A.destroy(r,e)}resume(o)}onHeadersComplete(e,t,o){const{client:r,socket:s,headers:i,statusText:a}=this;if(s.destroyed){return-1}const c=r[M][r[V]];if(!c){return-1}n(!this.upgrade);n(this.statusCode<200);if(e===100){A.destroy(s,new h("bad response",A.getSocketInfo(s)));return-1}if(t&&!c.upgrade){A.destroy(s,new h("bad upgrade",A.getSocketInfo(s)));return-1}n.strictEqual(this.timeoutType,Oe);this.statusCode=e;this.shouldKeepAlive=o||c.method==="HEAD"&&!s[S]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=c.bodyTimeout!=null?c.bodyTimeout:r[ee];this.setTimeout(e,He)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(c.method==="CONNECT"){n(r[N]===1);this.upgrade=true;return 2}if(t){n(r[N]===1);this.upgrade=true;return 2}n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&r[q]){const e=this.keepAlive?A.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-r[X],r[K]);if(t<=0){s[S]=true}else{r[W]=t}}else{r[W]=r[G]}}else{s[S]=true}let u;try{u=c.onHeaders(e,i,this.resume,a)===false}catch(e){A.destroy(s,e);return-1}if(c.method==="HEAD"){return 1}if(e<200){return 1}if(s[P]){s[P]=false;resume(r)}return u?Pe.ERROR.PAUSED:0}onBody(e){const{client:t,socket:o,statusCode:r,maxResponseSize:s}=this;if(o.destroyed){return-1}const i=t[M][t[V]];n(i);n.strictEqual(this.timeoutType,He);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}n(r>=200);if(s>-1&&this.bytesRead+e.length>s){A.destroy(o,new y);return-1}this.bytesRead+=e.length;try{if(i.onData(e)===false){return Pe.ERROR.PAUSED}}catch(e){A.destroy(o,e);return-1}}onMessageComplete(){const{client:e,socket:t,statusCode:o,upgrade:r,headers:s,contentLength:i,bytesRead:a,shouldKeepAlive:c}=this;if(t.destroyed&&(!o||c)){return-1}if(r){return}const u=e[M][e[V]];n(u);n(o>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";n(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(o<200){return}if(u.method!=="HEAD"&&i&&a!==parseInt(i,10)){A.destroy(t,new d);return-1}try{u.onComplete(s)}catch(t){errorRequest(e,u,t)}e[M][e[V]++]=null;if(t[T]){n.strictEqual(e[N],0);A.destroy(t,new f("reset"));return Pe.ERROR.PAUSED}else if(!c){A.destroy(t,new f("reset"));return Pe.ERROR.PAUSED}else if(t[S]&&e[N]===0){A.destroy(t,new f("reset"));return Pe.ERROR.PAUSED}else if(e[q]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:o,client:r}=e;if(o===Oe){if(!t[T]||t.writableNeedDrain||r[N]>1){n(!e.paused,"cannot be paused while waiting for headers");A.destroy(t,new p)}}else if(o===He){if(!e.paused){A.destroy(t,new m)}}else if(o===Ge){n(r[N]===0&&r[W]);A.destroy(t,new f("socket idle timeout"))}}function onSocketReadable(){const{[D]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[R]:t,[D]:o}=this;n(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[de]!=="h2"){if(e.code==="ECONNRESET"&&o.statusCode&&!o.shouldKeepAlive){o.onMessageComplete();return}}this[J]=e;onError(this[R],e)}function onError(e,t){if(e[N]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){n(e[Y]===e[V]);const o=e[M].splice(e[V]);for(let n=0;n<o.length;n++){const r=o[n];errorRequest(e,r,t)}n(e[F]===0)}}function onSocketEnd(){const{[D]:e,[R]:t}=this;if(t[de]!=="h2"){if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}}A.destroy(this,new h("other side closed",A.getSocketInfo(this)))}function onSocketClose(){const{[R]:e,[D]:t}=this;if(e[de]==="h1"&&t){if(!this[J]&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete()}this[D].destroy();this[D]=null}const o=this[J]||new h("closed",A.getSocketInfo(this));e[z]=null;if(e.destroyed){n(e[k]===0);const t=e[M].splice(e[V]);for(let n=0;n<t.length;n++){const r=t[n];errorRequest(e,r,o)}}else if(e[N]>0&&o.code!=="UND_ERR_INFO"){const t=e[M][e[V]];e[M][e[V]++]=null;errorRequest(e,t,o)}e[Y]=e[V];n(e[N]===0);e.emit("disconnect",e[w],[e],o);resume(e)}async function connect(e){n(!e[L]);n(!e[z]);let{host:t,hostname:o,protocol:s,port:i}=e[w];if(o[0]==="["){const e=o.indexOf("]");n(e!==-1);const t=o.substr(1,e-1);n(r.isIP(t));o=t}e[L]=true;if(_e.beforeConnect.hasSubscribers){_e.beforeConnect.publish({connectParams:{host:t,hostname:o,protocol:s,port:i,servername:e[b],localAddress:e[ue]},connector:e[oe]})}try{const r=await new Promise(((n,r)=>{e[oe]({host:t,hostname:o,protocol:s,port:i,servername:e[b],localAddress:e[ue]},((e,t)=>{if(e){r(e)}else{n(t)}}))}));if(e.destroyed){A.destroy(r.on("error",(()=>{})),new Q);return}e[L]=false;n(r);const a=r.alpnProtocol==="h2";if(a){if(!Re){Re=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=me.connect(e[w],{createConnection:()=>r,peerMaxConcurrentStreams:e[pe].maxConcurrentStreams});e[de]="h2";t[R]=e;t[z]=r;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[Ee]=t;r[Ee]=t}else{if(!ke){ke=await Fe;Fe=null}r[H]=false;r[T]=false;r[S]=false;r[P]=false;r[D]=new Parser(e,r,ke)}r[se]=0;r[re]=e[re];r[R]=e;r[J]=null;r.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[z]=r;if(_e.connected.hasSubscribers){_e.connected.publish({connectParams:{host:t,hostname:o,protocol:s,port:i,servername:e[b],localAddress:e[ue]},connector:e[oe],socket:r})}e.emit("connect",e[w],[e])}catch(r){if(e.destroyed){return}e[L]=false;if(_e.connectError.hasSubscribers){_e.connectError.publish({connectParams:{host:t,hostname:o,protocol:s,port:i,servername:e[b],localAddress:e[ue]},connector:e[oe],error:r})}if(r.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(e[N]===0);while(e[k]>0&&e[M][e[Y]].servername===e[b]){const t=e[M][e[Y]++];errorRequest(e,t,r)}}else{onError(e,r)}e.emit("connectionError",e[w],[e],r)}resume(e)}function emitDrain(e){e[O]=0;e.emit("drain",e[w],[e])}function resume(e,t){if(e[x]===2){return}e[x]=2;_resume(e,t);e[x]=0;if(e[V]>256){e[M].splice(0,e[V]);e[Y]-=e[V];e[V]=0}}function _resume(e,t){while(true){if(e.destroyed){n(e[k]===0);return}if(e[De]&&!e[F]){e[De]();e[De]=null;return}const o=e[z];if(o&&!o.destroyed&&o.alpnProtocol!=="h2"){if(e[F]===0){if(!o[H]&&o.unref){o.unref();o[H]=true}}else if(o[H]&&o.ref){o.ref();o[H]=false}if(e[F]===0){if(o[D].timeoutType!==Ge){o[D].setTimeout(e[W],Ge)}}else if(e[N]>0&&o[D].statusCode<200){if(o[D].timeoutType!==Oe){const t=e[M][e[V]];const n=t.headersTimeout!=null?t.headersTimeout:e[Z];o[D].setTimeout(n,Oe)}}}if(e[v]){e[O]=2}else if(e[O]===2){if(t){e[O]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[k]===0){return}if(e[N]>=(e[q]||1)){return}const r=e[M][e[Y]];if(e[w].protocol==="https:"&&e[b]!==r.servername){if(e[N]>0){return}e[b]=r.servername;if(o&&o.servername!==r.servername){A.destroy(o,new f("servername changed"));return}}if(e[L]){return}if(!o&&!e[Ee]){connect(e);return}if(o.destroyed||o[T]||o[S]||o[P]){return}if(e[N]>0&&!r.idempotent){return}if(e[N]>0&&(r.upgrade||r.method==="CONNECT")){return}if(A.isStream(r.body)&&A.bodyLength(r.body)===0){r.body.on("data",(function(){n(false)})).on("error",(function(t){errorRequest(e,r,t)})).on("end",(function(){A.destroy(this)}));r.body=null}if(e[N]>0&&(A.isStream(r.body)||A.isAsyncIterable(r.body))){return}if(!r.aborted&&write(e,r)){e[Y]++}else{e[M].splice(e[Y],1)}}}function write(e,t){if(e[de]==="h2"){writeH2(e,e[Ee],t);return}const{body:o,method:r,path:s,host:i,upgrade:a,headers:c,blocking:u,reset:d}=t;const g=r==="PUT"||r==="POST"||r==="PATCH";if(o&&typeof o.read==="function"){o.read(0)}let p=A.bodyLength(o);if(p===null){p=t.contentLength}if(p===0&&!g){p=null}if(t.contentLength!==null&&t.contentLength!==p){if(e[te]){errorRequest(e,t,new l);return false}process.emitWarning(new l)}const C=e[z];try{t.onConnect((o=>{if(t.aborted||t.completed){return}errorRequest(e,t,o||new E);A.destroy(C,new f("aborted"))}))}catch(o){errorRequest(e,t,o)}if(t.aborted){return false}if(r==="HEAD"){C[S]=true}if(a||r==="CONNECT"){C[S]=true}if(d!=null){C[S]=d}if(e[re]&&C[se]++>=e[re]){C[S]=true}if(u){C[P]=true}let h=`${r} ${s} HTTP/1.1\r\n`;if(typeof i==="string"){h+=`host: ${i}\r\n`}else{h+=e[j]}if(a){h+=`connection: upgrade\r\nupgrade: ${a}\r\n`}else if(e[q]&&!C[S]){h+="connection: keep-alive\r\n"}else{h+="connection: close\r\n"}if(c){h+=c}if(_e.sendHeaders.hasSubscribers){_e.sendHeaders.publish({request:t,headers:h,socket:C})}if(!o){if(p===0){C.write(`${h}content-length: 0\r\n\r\n`,"latin1")}else{n(p===null,"no body must not have content length");C.write(`${h}\r\n`,"latin1")}t.onRequestSent()}else if(A.isBuffer(o)){n(p===o.byteLength,"buffer body must have content length");C.cork();C.write(`${h}content-length: ${p}\r\n\r\n`,"latin1");C.write(o);C.uncork();t.onBodySent(o);t.onRequestSent();if(!g){C[S]=true}}else if(A.isBlobLike(o)){if(typeof o.stream==="function"){writeIterable({body:o.stream(),client:e,request:t,socket:C,contentLength:p,header:h,expectsPayload:g})}else{writeBlob({body:o,client:e,request:t,socket:C,contentLength:p,header:h,expectsPayload:g})}}else if(A.isStream(o)){writeStream({body:o,client:e,request:t,socket:C,contentLength:p,header:h,expectsPayload:g})}else if(A.isIterable(o)){writeIterable({body:o,client:e,request:t,socket:C,contentLength:p,header:h,expectsPayload:g})}else{n(false)}return true}function writeH2(e,t,o){const{body:r,method:s,path:i,host:a,upgrade:u,expectContinue:d,signal:g,headers:p}=o;let C;if(typeof p==="string")C=c[he](p.trim());else C=p;if(u){errorRequest(e,o,new Error("Upgrade not supported for H2"));return false}try{o.onConnect((t=>{if(o.aborted||o.completed){return}errorRequest(e,o,t||new E)}))}catch(t){errorRequest(e,o,t)}if(o.aborted){return false}let h;const m=e[pe];C[Ie]=a||e[ge];C[ye]=s;if(s==="CONNECT"){t.ref();h=t.request(C,{endStream:false,signal:g});if(h.id&&!h.pending){o.onUpgrade(null,null,h);++m.openStreams}else{h.once("ready",(()=>{o.onUpgrade(null,null,h);++m.openStreams}))}h.once("close",(()=>{m.openStreams-=1;if(m.openStreams===0)t.unref()}));return true}C[Qe]=i;C[Be]="https";const I=s==="PUT"||s==="POST"||s==="PATCH";if(r&&typeof r.read==="function"){r.read(0)}let y=A.bodyLength(r);if(y==null){y=o.contentLength}if(y===0||!I){y=null}if(o.contentLength!=null&&o.contentLength!==y){if(e[te]){errorRequest(e,o,new l);return false}process.emitWarning(new l)}if(y!=null){n(r,"no body must not have content length");C[we]=`${y}`}t.ref();const Q=s==="GET"||s==="HEAD";if(d){C[Se]="100-continue";h=t.request(C,{endStream:Q,signal:g});h.once("continue",writeBodyH2)}else{h=t.request(C,{endStream:Q,signal:g});writeBodyH2()}++m.openStreams;h.once("response",(e=>{if(o.onHeaders(Number(e[be]),e,h.resume.bind(h),"")===false){h.pause()}}));h.once("end",(()=>{o.onComplete([])}));h.on("data",(e=>{if(o.onData(e)===false)h.pause()}));h.once("close",(()=>{m.openStreams-=1;if(m.openStreams===0)t.unref()}));h.once("error",(function(t){if(e[Ee]&&!e[Ee].destroyed&&!this.closed&&!this.destroyed){m.streams-=1;A.destroy(h,t)}}));h.once("frameError",((t,n)=>{const r=new f(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,o,r);if(e[Ee]&&!e[Ee].destroyed&&!this.closed&&!this.destroyed){m.streams-=1;A.destroy(h,r)}}));return true;function writeBodyH2(){if(!r){o.onRequestSent()}else if(A.isBuffer(r)){n(y===r.byteLength,"buffer body must have content length");h.cork();h.write(r);h.uncork();h.end();o.onBodySent(r);o.onRequestSent()}else if(A.isBlobLike(r)){if(typeof r.stream==="function"){writeIterable({client:e,request:o,contentLength:y,h2stream:h,expectsPayload:I,body:r.stream(),socket:e[z],header:""})}else{writeBlob({body:r,client:e,request:o,contentLength:y,expectsPayload:I,h2stream:h,header:"",socket:e[z]})}}else if(A.isStream(r)){writeStream({body:r,client:e,request:o,contentLength:y,expectsPayload:I,socket:e[z],h2stream:h,header:""})}else if(A.isIterable(r)){writeIterable({body:r,client:e,request:o,contentLength:y,expectsPayload:I,header:"",h2stream:h,socket:e[z]})}else{n(false)}}}function writeStream({h2stream:e,body:t,client:o,request:r,socket:s,contentLength:a,header:c,expectsPayload:u}){n(a!==0||o[N]===0,"stream body cannot be pipelined");if(o[de]==="h2"){const g=i(t,e,(o=>{if(o){A.destroy(t,o);A.destroy(e,o)}else{r.onRequestSent()}}));g.on("data",onPipeData);g.once("end",(()=>{g.removeListener("data",onPipeData);A.destroy(g)}));function onPipeData(e){r.onBodySent(e)}return}let l=false;const d=new AsyncWriter({socket:s,request:r,contentLength:a,client:o,expectsPayload:u,header:c});const onData=function(e){if(l){return}try{if(!d.write(e)&&this.pause){this.pause()}}catch(e){A.destroy(this,e)}};const onDrain=function(){if(l){return}if(t.resume){t.resume()}};const onAbort=function(){onFinished(new E)};const onFinished=function(e){if(l){return}l=true;n(s.destroyed||s[T]&&o[N]<=1);s.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{d.end()}catch(t){e=t}}d.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){A.destroy(t,e)}else{A.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}s.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:o,request:r,socket:s,contentLength:i,header:a,expectsPayload:c}){n(i===t.size,"blob body must have content length");const u=o[de]==="h2";try{if(i!=null&&i!==t.size){throw new l}const n=Buffer.from(await t.arrayBuffer());if(u){e.cork();e.write(n);e.uncork()}else{s.cork();s.write(`${a}content-length: ${i}\r\n\r\n`,"latin1");s.write(n);s.uncork()}r.onBodySent(n);r.onRequestSent();if(!c){s[S]=true}resume(o)}catch(t){A.destroy(u?e:s,t)}}async function writeIterable({h2stream:e,body:t,client:o,request:r,socket:s,contentLength:i,header:A,expectsPayload:a}){n(i!==0||o[N]===0,"iterator body cannot be pipelined");let c=null;function onDrain(){if(c){const e=c;c=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{n(c===null);if(s[J]){t(s[J])}else{c=e}}));if(o[de]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const o of t){if(s[J]){throw s[J]}const t=e.write(o);r.onBodySent(o);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{r.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}s.on("close",onDrain).on("drain",onDrain);const u=new AsyncWriter({socket:s,request:r,contentLength:i,client:o,expectsPayload:a,header:A});try{for await(const e of t){if(s[J]){throw s[J]}if(!u.write(e)){await waitForDrain()}}u.end()}catch(e){u.destroy(e)}finally{s.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:o,client:n,expectsPayload:r,header:s}){this.socket=e;this.request=t;this.contentLength=o;this.client=n;this.bytesWritten=0;this.expectsPayload=r;this.header=s;e[T]=true}write(e){const{socket:t,request:o,contentLength:n,client:r,bytesWritten:s,expectsPayload:i,header:A}=this;if(t[J]){throw t[J]}if(t.destroyed){return false}const a=Buffer.byteLength(e);if(!a){return true}if(n!==null&&s+a>n){if(r[te]){throw new l}process.emitWarning(new l)}t.cork();if(s===0){if(!i){t[S]=true}if(n===null){t.write(`${A}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${A}content-length: ${n}\r\n\r\n`,"latin1")}}if(n===null){t.write(`\r\n${a.toString(16)}\r\n`,"latin1")}this.bytesWritten+=a;const c=t.write(e);t.uncork();o.onBodySent(e);if(!c){if(t[D].timeout&&t[D].timeoutType===Oe){if(t[D].timeout.refresh){t[D].timeout.refresh()}}}return c}end(){const{socket:e,contentLength:t,client:o,bytesWritten:n,expectsPayload:r,header:s,request:i}=this;i.onRequestSent();e[T]=false;if(e[J]){throw e[J]}if(e.destroyed){return}if(n===0){if(r){e.write(`${s}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${s}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&n!==t){if(o[te]){throw new l}else{process.emitWarning(new l)}}if(e[D].timeout&&e[D].timeoutType===Oe){if(e[D].timeout.refresh){e[D].timeout.refresh()}}resume(o)}destroy(e){const{socket:t,client:o}=this;t[T]=false;if(e){n(o[N]<=1,"pipeline should only contain this request");A.destroy(t,e)}}}function errorRequest(e,t,o){try{t.onError(o);n(t.aborted)}catch(o){e.emit("error",o)}}e.exports=Client},56436:(e,t,o)=>{"use strict";const{kConnected:n,kSize:r}=o(72785);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[n]===0&&e[r]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},20663:e=>{"use strict";const t=1024;const o=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:o}},41724:(e,t,o)=>{"use strict";const{parseSetCookie:n}=o(24408);const{stringify:r,getHeadersList:s}=o(43121);const{webidl:i}=o(21744);const{Headers:A}=o(10554);function getCookies(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"});i.brandCheck(e,A,{strict:false});const t=e.get("cookie");const o={};if(!t){return o}for(const e of t.split(";")){const[t,...n]=e.split("=");o[t.trim()]=n.join("=")}return o}function deleteCookie(e,t,o){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"});i.brandCheck(e,A,{strict:false});t=i.converters.DOMString(t);o=i.converters.DeleteCookieAttributes(o);setCookie(e,{name:t,value:"",expires:new Date(0),...o})}function getSetCookies(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"});i.brandCheck(e,A,{strict:false});const t=s(e).cookies;if(!t){return[]}return t.map((e=>n(Array.isArray(e)?e[1]:e)))}function setCookie(e,t){i.argumentLengthCheck(arguments,2,{header:"setCookie"});i.brandCheck(e,A,{strict:false});t=i.converters.Cookie(t);const o=r(t);if(o){e.append("Set-Cookie",r(t))}}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]);i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter((e=>{if(typeof e==="number"){return i.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},24408:(e,t,o)=>{"use strict";const{maxNameValuePairSize:n,maxAttributeValueSize:r}=o(20663);const{isCTLExcludingHtab:s}=o(43121);const{collectASequenceOfCodePointsFast:i}=o(685);const A=o(39491);function parseSetCookie(e){if(s(e)){return null}let t="";let o="";let r="";let A="";if(e.includes(";")){const n={position:0};t=i(";",e,n);o=e.slice(n.position)}else{t=e}if(!t.includes("=")){A=t}else{const e={position:0};r=i("=",t,e);A=t.slice(e.position+1)}r=r.trim();A=A.trim();if(r.length+A.length>n){return null}return{name:r,value:A,...parseUnparsedAttributes(o)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}A(e[0]===";");e=e.slice(1);let o="";if(e.includes(";")){o=i(";",e,{position:0});e=e.slice(o.length)}else{o=e;e=""}let n="";let s="";if(o.includes("=")){const e={position:0};n=i("=",o,e);s=o.slice(e.position+1)}else{n=o}n=n.trim();s=s.trim();if(s.length>r){return parseUnparsedAttributes(e,t)}const a=n.toLowerCase();if(a==="expires"){const e=new Date(s);t.expires=e}else if(a==="max-age"){const o=s.charCodeAt(0);if((o<48||o>57)&&s[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(s)){return parseUnparsedAttributes(e,t)}const n=Number(s);t.maxAge=n}else if(a==="domain"){let e=s;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(a==="path"){let e="";if(s.length===0||s[0]!=="/"){e="/"}else{e=s}t.path=e}else if(a==="secure"){t.secure=true}else if(a==="httponly"){t.httpOnly=true}else if(a==="samesite"){let e="Default";const o=s.toLowerCase();if(o.includes("none")){e="None"}if(o.includes("strict")){e="Strict"}if(o.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${n}=${s}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},43121:(e,t,o)=>{"use strict";const n=o(39491);const{kHeadersList:r}=o(72785);function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const n=t[e.getUTCDay()];const r=e.getUTCDate().toString().padStart(2,"0");const s=o[e.getUTCMonth()];const i=e.getUTCFullYear();const A=e.getUTCHours().toString().padStart(2,"0");const a=e.getUTCMinutes().toString().padStart(2,"0");const c=e.getUTCSeconds().toString().padStart(2,"0");return`${n}, ${r} ${s} ${i} ${A}:${a}:${c} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const o of e.unparsed){if(!o.includes("=")){throw new Error("Invalid unparsed")}const[e,...n]=o.split("=");t.push(`${e.trim()}=${n.join("=")}`)}return t.join("; ")}let s;function getHeadersList(e){if(e[r]){return e[r]}if(!s){s=Object.getOwnPropertySymbols(e).find((e=>e.description==="headers list"));n(s,"Headers cannot be parsed")}const t=e[s];n(t);return t}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,stringify:stringify,getHeadersList:getHeadersList}},82067:(e,t,o)=>{"use strict";const n=o(41808);const r=o(39491);const s=o(83983);const{InvalidArgumentError:i,ConnectTimeoutError:A}=o(48045);let a;let c;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){c=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size<this._maxCachedSessions){return}const t=this._sessionCache.get(e);if(t!==undefined&&t.deref()===undefined){this._sessionCache.delete(e)}}))}get(e){const t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){if(this._maxCachedSessions===0){return}this._sessionCache.set(e,new WeakRef(t));this._sessionRegistry.register(t,e)}}}else{c=class SimpleSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions===0){return}if(this._sessionCache.size>=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:A,timeout:u,...l}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new i("maxCachedSessions must be a positive integer or zero")}const d={path:A,...l};const g=new c(t==null?100:t);u=u==null?1e4:u;e=e!=null?e:false;return function connect({hostname:t,host:i,protocol:A,port:c,servername:l,localAddress:E,httpSocket:p},C){let h;if(A==="https:"){if(!a){a=o(24404)}l=l||d.servername||s.getServerName(i)||null;const n=l||t;const A=g.get(n)||null;r(n);h=a.connect({highWaterMark:16384,...d,servername:l,session:A,localAddress:E,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:p,port:c||443,host:t});h.on("session",(function(e){g.set(n,e)}))}else{r(!p,"httpSocket can only be sent on TLS update");h=n.connect({highWaterMark:64*1024,...d,localAddress:E,port:c||80,host:t})}if(d.keepAlive==null||d.keepAlive){const e=d.keepAliveInitialDelay===undefined?6e4:d.keepAliveInitialDelay;h.setKeepAlive(true,e)}const f=setupTimeout((()=>onConnectTimeout(h)),u);h.setNoDelay(true).once(A==="https:"?"secureConnect":"connect",(function(){f();if(C){const e=C;C=null;e(null,this)}})).on("error",(function(e){f();if(C){const t=C;C=null;t(e)}}));return h}}function setupTimeout(e,t){if(!t){return()=>{}}let o=null;let n=null;const r=setTimeout((()=>{o=setImmediate((()=>{if(process.platform==="win32"){n=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(r);clearImmediate(o);clearImmediate(n)}}function onConnectTimeout(e){s.destroy(e,new A)}e.exports=buildConnector},48045:e=>{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,o,n){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=n;this.status=t;this.statusCode=t;this.headers=o}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,o){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=o?o.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError}},62905:(e,t,o)=>{"use strict";const{InvalidArgumentError:n,NotSupportedError:r}=o(48045);const s=o(39491);const{kHTTP2BuildRequest:i,kHTTP2CopyHeaders:A,kHTTP1BuildRequest:a}=o(72785);const c=o(83983);const u=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const l=/[^\t\x20-\x7e\x80-\xff]/;const d=/[^\u0021-\u00ff]/;const g=Symbol("handler");const E={};let p;try{const e=o(67643);E.create=e.channel("undici:request:create");E.bodySent=e.channel("undici:request:bodySent");E.headers=e.channel("undici:request:headers");E.trailers=e.channel("undici:request:trailers");E.error=e.channel("undici:request:error")}catch{E.create={hasSubscribers:false};E.bodySent={hasSubscribers:false};E.headers={hasSubscribers:false};E.trailers={hasSubscribers:false};E.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:r,body:s,headers:i,query:A,idempotent:a,blocking:l,upgrade:C,headersTimeout:h,bodyTimeout:f,reset:m,throwOnError:I,expectContinue:y},Q){if(typeof t!=="string"){throw new n("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&r!=="CONNECT"){throw new n("path must be an absolute URL or start with a slash")}else if(d.exec(t)!==null){throw new n("invalid request path")}if(typeof r!=="string"){throw new n("method must be a string")}else if(u.exec(r)===null){throw new n("invalid request method")}if(C&&typeof C!=="string"){throw new n("upgrade must be a string")}if(h!=null&&(!Number.isFinite(h)||h<0)){throw new n("invalid headersTimeout")}if(f!=null&&(!Number.isFinite(f)||f<0)){throw new n("invalid bodyTimeout")}if(m!=null&&typeof m!=="boolean"){throw new n("invalid reset")}if(y!=null&&typeof y!=="boolean"){throw new n("invalid expectContinue")}this.headersTimeout=h;this.bodyTimeout=f;this.throwOnError=I===true;this.method=r;if(s==null){this.body=null}else if(c.isStream(s)){this.body=s}else if(c.isBuffer(s)){this.body=s.byteLength?s:null}else if(ArrayBuffer.isView(s)){this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null}else if(s instanceof ArrayBuffer){this.body=s.byteLength?Buffer.from(s):null}else if(typeof s==="string"){this.body=s.length?Buffer.from(s):null}else if(c.isFormDataLike(s)||c.isIterable(s)||c.isBlobLike(s)){this.body=s}else{throw new n("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=C||null;this.path=A?c.buildURL(t,A):t;this.origin=e;this.idempotent=a==null?r==="HEAD"||r==="GET":a;this.blocking=l==null?false:l;this.reset=m==null?null:m;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=y!=null?y:false;if(Array.isArray(i)){if(i.length%2!==0){throw new n("headers array must be even")}for(let e=0;e<i.length;e+=2){processHeader(this,i[e],i[e+1])}}else if(i&&typeof i==="object"){const e=Object.keys(i);for(let t=0;t<e.length;t++){const o=e[t];processHeader(this,o,i[o])}}else if(i!=null){throw new n("headers must be an object or an array")}if(c.isFormDataLike(this.body)){if(c.nodeMajor<16||c.nodeMajor===16&&c.nodeMinor<8){throw new n("Form-Data bodies are only supported in node v16.8 and newer.")}if(!p){p=o(41472).extractBody}const[e,t]=p(s);if(this.contentType==null){this.contentType=t;this.headers+=`content-type: ${t}\r\n`}this.body=e.stream;this.contentLength=e.length}else if(c.isBlobLike(s)&&this.contentType==null&&s.type){this.contentType=s.type;this.headers+=`content-type: ${s.type}\r\n`}c.validateHandler(Q,r,C);this.servername=c.getServerName(this.host);this[g]=Q;if(E.create.hasSubscribers){E.create.publish({request:this})}}onBodySent(e){if(this[g].onBodySent){try{this[g].onBodySent(e)}catch(e){this.onError(e)}}}onRequestSent(){if(E.bodySent.hasSubscribers){E.bodySent.publish({request:this})}}onConnect(e){s(!this.aborted);s(!this.completed);return this[g].onConnect(e)}onHeaders(e,t,o,n){s(!this.aborted);s(!this.completed);if(E.headers.hasSubscribers){E.headers.publish({request:this,response:{statusCode:e,headers:t,statusText:n}})}return this[g].onHeaders(e,t,o,n)}onData(e){s(!this.aborted);s(!this.completed);return this[g].onData(e)}onUpgrade(e,t,o){s(!this.aborted);s(!this.completed);return this[g].onUpgrade(e,t,o)}onComplete(e){s(!this.aborted);this.completed=true;if(E.trailers.hasSubscribers){E.trailers.publish({request:this,trailers:e})}return this[g].onComplete(e)}onError(e){if(E.error.hasSubscribers){E.error.publish({request:this,error:e})}if(this.aborted){return}this.aborted=true;return this[g].onError(e)}addHeader(e,t){processHeader(this,e,t);return this}static[a](e,t,o){return new Request(e,t,o)}static[i](e,t,o){const r=t.headers;t={...t,headers:null};const s=new Request(e,t,o);s.headers={};if(Array.isArray(r)){if(r.length%2!==0){throw new n("headers array must be even")}for(let e=0;e<r.length;e+=2){processHeader(s,r[e],r[e+1],true)}}else if(r&&typeof r==="object"){const e=Object.keys(r);for(let t=0;t<e.length;t++){const o=e[t];processHeader(s,o,r[o],true)}}else if(r!=null){throw new n("headers must be an object or an array")}return s}static[A](e){const t=e.split("\r\n");const o={};for(const e of t){const[t,n]=e.split(": ");if(n==null||n.length===0)continue;if(o[t])o[t]+=`,${n}`;else o[t]=n}return o}}function processHeaderValue(e,t,o){if(t&&typeof t==="object"){throw new n(`invalid ${e} header`)}t=t!=null?`${t}`:"";if(l.exec(t)!==null){throw new n(`invalid ${e} header`)}return o?t:`${e}: ${t}\r\n`}function processHeader(e,t,o,s=false){if(o&&(typeof o==="object"&&!Array.isArray(o))){throw new n(`invalid ${t} header`)}else if(o===undefined){return}if(e.host===null&&t.length===4&&t.toLowerCase()==="host"){if(l.exec(o)!==null){throw new n(`invalid ${t} header`)}e.host=o}else if(e.contentLength===null&&t.length===14&&t.toLowerCase()==="content-length"){e.contentLength=parseInt(o,10);if(!Number.isFinite(e.contentLength)){throw new n("invalid content-length header")}}else if(e.contentType===null&&t.length===12&&t.toLowerCase()==="content-type"){e.contentType=o;if(s)e.headers[t]=processHeaderValue(t,o,s);else e.headers+=processHeaderValue(t,o)}else if(t.length===17&&t.toLowerCase()==="transfer-encoding"){throw new n("invalid transfer-encoding header")}else if(t.length===10&&t.toLowerCase()==="connection"){const t=typeof o==="string"?o.toLowerCase():null;if(t!=="close"&&t!=="keep-alive"){throw new n("invalid connection header")}else if(t==="close"){e.reset=true}}else if(t.length===10&&t.toLowerCase()==="keep-alive"){throw new n("invalid keep-alive header")}else if(t.length===7&&t.toLowerCase()==="upgrade"){throw new n("invalid upgrade header")}else if(t.length===6&&t.toLowerCase()==="expect"){throw new r("expect header not supported")}else if(u.exec(t)===null){throw new n("invalid header key")}else{if(Array.isArray(o)){for(let n=0;n<o.length;n++){if(s){if(e.headers[t])e.headers[t]+=`,${processHeaderValue(t,o[n],s)}`;else e.headers[t]=processHeaderValue(t,o[n],s)}else{e.headers+=processHeaderValue(t,o[n])}}}else{if(s)e.headers[t]=processHeaderValue(t,o,s);else e.headers+=processHeaderValue(t,o)}}}e.exports=Request},72785:e=>{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version")}},83983:(e,t,o)=>{"use strict";const n=o(39491);const{kDestroyed:r,kBodyUsed:s}=o(72785);const{IncomingMessage:i}=o(13685);const A=o(12781);const a=o(41808);const{InvalidArgumentError:c}=o(48045);const{Blob:u}=o(14300);const l=o(73837);const{stringify:d}=o(63477);const[g,E]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return u&&e instanceof u||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const o=d(t);if(o){e+="?"+o}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new c("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new c("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new c("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new c("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new c("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new c("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new c("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new c("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let o=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let n=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(o.endsWith("/")){o=o.substring(0,o.length-1)}if(n&&!n.startsWith("/")){n=`/${n}`}e=new URL(o+n)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new c("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");n(t!==-1);return e.substr(1,t-1)}const t=e.indexOf(":");if(t===-1)return e;return e.substr(0,t)}function getServerName(e){if(!e){return null}n.strictEqual(typeof e,"string");const t=getHostname(e);if(a.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[r])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===i){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[r]=true}}const p=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(p);return t?parseInt(t[1],10)*1e3:null}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let o=0;o<e.length;o+=2){const n=e[o].toString().toLowerCase();let r=t[n];if(!r){if(Array.isArray(e[o+1])){t[n]=e[o+1]}else{t[n]=e[o+1].toString("utf8")}}else{if(!Array.isArray(r)){r=[r];t[n]=r}r.push(e[o+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let o=false;let n=-1;for(let r=0;r<e.length;r+=2){const s=e[r+0].toString();const i=e[r+1].toString("utf8");if(s.length===14&&(s==="content-length"||s.toLowerCase()==="content-length")){t.push(s,i);o=true}else if(s.length===19&&(s==="content-disposition"||s.toLowerCase()==="content-disposition")){n=t.push(s,i)-1}else{t.push(s,i)}}if(o&&n!==-1){t[n]=Buffer.from(t[n]).toString("latin1")}return t}function isBuffer(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}function validateHandler(e,t,o){if(!e||typeof e!=="object"){throw new c("handler must be an object")}if(typeof e.onConnect!=="function"){throw new c("invalid onConnect method")}if(typeof e.onError!=="function"){throw new c("invalid onError method")}if(typeof e.onBodySent!=="function"&&e.onBodySent!==undefined){throw new c("invalid onBodySent method")}if(o||t==="CONNECT"){if(typeof e.onUpgrade!=="function"){throw new c("invalid onUpgrade method")}}else{if(typeof e.onHeaders!=="function"){throw new c("invalid onHeaders method")}if(typeof e.onData!=="function"){throw new c("invalid onData method")}if(typeof e.onComplete!=="function"){throw new c("invalid onComplete method")}}}function isDisturbed(e){return!!(e&&(A.isDisturbed?A.isDisturbed(e)||e[s]:e[s]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||isReadableAborted(e)))}function isErrored(e){return!!(e&&(A.isErrored?A.isErrored(e):/state: 'errored'/.test(l.inspect(e))))}function isReadable(e){return!!(e&&(A.isReadable?A.isReadable(e):/state: 'readable'/.test(l.inspect(e))))}function getSocketInfo(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}}async function*convertIterableToBuffer(e){for await(const t of e){yield Buffer.isBuffer(t)?t:Buffer.from(t)}}let C;function ReadableStreamFrom(e){if(!C){C=o(35356).ReadableStream}if(C.from){return C.from(convertIterableToBuffer(e))}let t;return new C({async start(){t=e[Symbol.asyncIterator]()},async pull(e){const{done:o,value:n}=await t.next();if(o){queueMicrotask((()=>{e.close()}))}else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}let h;function addAbortListener(e,t){if(typeof Symbol.dispose==="symbol"){if(!h){h=o(82361)}if(typeof h.addAbortListener==="function"&&"aborted"in e){return h.addAbortListener(e,t)}}if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const f=!!String.prototype.toWellFormed;function toUSVString(e){if(f){return`${e}`.toWellFormed()}else if(l.toUSVString){return l.toUSVString(e)}return`${e}`}const m=Object.create(null);m.enumerable=true;e.exports={kEnumerableProperty:m,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,nodeMajor:g,nodeMinor:E,nodeHasAutoSelectFamily:g>18||g===18&&E>=13}},74839:(e,t,o)=>{"use strict";const n=o(60412);const{ClientDestroyedError:r,ClientClosedError:s,InvalidArgumentError:i}=o(48045);const{kDestroy:A,kClose:a,kDispatch:c,kInterceptors:u}=o(72785);const l=Symbol("destroyed");const d=Symbol("closed");const g=Symbol("onDestroyed");const E=Symbol("onClosed");const p=Symbol("Intercepted Dispatch");class DispatcherBase extends n{constructor(){super();this[l]=false;this[g]=null;this[d]=false;this[E]=[]}get destroyed(){return this[l]}get closed(){return this[d]}get interceptors(){return this[u]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[u][t];if(typeof e!=="function"){throw new i("interceptor must be an function")}}}this[u]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((o,n)=>o?t(o):e(n)))}))}if(typeof e!=="function"){throw new i("invalid callback")}if(this[l]){queueMicrotask((()=>e(new r,null)));return}if(this[d]){if(this[E]){this[E].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[d]=true;this[E].push(e);const onClosed=()=>{const e=this[E];this[E]=null;for(let t=0;t<e.length;t++){e[t](null,null)}};this[a]().then((()=>this.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,o)=>{this.destroy(e,((e,n)=>e?o(e):t(n)))}))}if(typeof t!=="function"){throw new i("invalid callback")}if(this[l]){if(this[g]){this[g].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new r}this[l]=true;this[g]=this[g]||[];this[g].push(t);const onDestroyed=()=>{const e=this[g];this[g]=null;for(let t=0;t<e.length;t++){e[t](null,null)}};this[A](e).then((()=>{queueMicrotask(onDestroyed)}))}[p](e,t){if(!this[u]||this[u].length===0){this[p]=this[c];return this[c](e,t)}let o=this[c].bind(this);for(let e=this[u].length-1;e>=0;e--){o=this[u][e](o)}this[p]=o;return o(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new i("handler must be an object")}try{if(!e||typeof e!=="object"){throw new i("opts must be an object.")}if(this[l]||this[g]){throw new r}if(this[d]){throw new s}return this[p](e,t)}catch(e){if(typeof t.onError!=="function"){throw new i("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},60412:(e,t,o)=>{"use strict";const n=o(82361);class Dispatcher extends n{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},41472:(e,t,o)=>{"use strict";const n=o(33438);const r=o(83983);const{ReadableStreamFrom:s,isBlobLike:i,isReadableStreamLike:A,readableStreamClose:a,createDeferredPromise:c,fullyReadBody:u}=o(52538);const{FormData:l}=o(72015);const{kState:d}=o(15861);const{webidl:g}=o(21744);const{DOMException:E,structuredClone:p}=o(41037);const{Blob:C,File:h}=o(14300);const{kBodyUsed:f}=o(72785);const m=o(39491);const{isErrored:I}=o(83983);const{isUint8Array:y,isArrayBuffer:Q}=o(29830);const{File:B}=o(78511);const{parseMIMEType:w,serializeAMimeType:S}=o(685);let b=globalThis.ReadableStream;const R=h??B;function extractBody(e,t=false){if(!b){b=o(35356).ReadableStream}let n=null;if(e instanceof b){n=e}else if(i(e)){n=e.stream()}else{n=new b({async pull(e){e.enqueue(typeof u==="string"?(new TextEncoder).encode(u):u);queueMicrotask((()=>a(e)))},start(){},type:undefined})}m(A(n));let c=null;let u=null;let l=null;let d=null;if(typeof e==="string"){u=e;d="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){u=e.toString();d="application/x-www-form-urlencoded;charset=UTF-8"}else if(Q(e)){u=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){u=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(r.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(Math.random()*1e11)}`.padStart(11,"0")}`;const o=`--${t}\r\nContent-Disposition: form-data`
|